joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002c730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
add rcx, 8
call fcn.180009520
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 8]
call fcn.1800275c0
mov rax, qword [0x1800fa1c0]
test rax, rax
je 0x18002c7a5
mov r9, qword [rdi + 0xf0]
lea rcx, [rsp + 0x38]
mov r8d, dword [rdi + 0x100]
mov rdx, qword [rdi + 0xf8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rdi]
call rax
test al, al
jne 0x18002c8c1
cmp dword [rdi], 2
jl 0x18002c7f1
mov ecx, 2
call fcn.18008ad94
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.180003260
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.180003270
mov rcx, rax
mov r9, rbx
mov r8d, 1
call fcn.18008b3ec
mov ecx, 2
call fcn.18008ad94
mov rcx, rax
call fcn.180092834
call fcn.18002c580
test al, al
je 0x18002c832
lea rcx, [rsp + 0x38]
call fcn.180003260
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.180003270
mov rcx, qword [0x1800fa1c8]
lea r9, [rsp + 0x30]
mov rdx, rax
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rdi], 3
jne 0x18002c8c1
lea rcx, [rsp + 0x38]
mov ebx, 0x400
call fcn.180003440
lea rcx, [rsp + 0x38]
cmp qword [rax], rbx
cmovb rbx, qword [rax]
call fcn.1800033c0
cmp qword [rax + 0x18], 0x10
jb 0x18002c865
mov rax, qword [rax]
test rbx, rbx
je 0x18002c87d
mov r8, rbx
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.180083f00
lea rcx, [rsp + 0x80]
call fcn.18002d200
cmp qword [0x1800fa1d8], 0
je 0x18002c8b7
lea rdx, [rsp + 0x58]
lea rcx, [rdi + 8]
call fcn.1800275c0
mov rcx, rax
call qword [0x1800fa1d8]
lea rcx, [rsp + 0x58]
call fcn.180003280
jmp 0x18002c8c1
cmp byte [0x1800fba70], 0
jne 0x18002c905
int3
lea rcx, [rsp + 0x38]
call fcn.180003280
mov ecx, dword [rdi + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rdi + 8]
call fcn.180027550
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180081d90
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call fcn.1800948dc
int3
Function at 0x18002d780
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rcx
lea rdx, [rbp - 0x70]
xor r14d, r14d
mov ecx, 0x104
mov word [rbp - 0x70], r14w
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x18002d972
mov qword [rsp + 0x2d8], rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x2e0], rdi
call fcn.1800031e0
lea rcx, [rsp + 0x68]
call fcn.1800033c0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x18002d801
mov rbx, qword [rax]
lea rcx, [rsp + 0x68]
call fcn.180003260
lea rcx, [rsp + 0x48]
mov rdi, rax
call fcn.1800067d0
lea rcx, [rsp + 0x48]
test rdi, rdi
jne 0x18002d84a
call fcn.1800033c0
mov word [rsp + 0x20], r14w
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], r14
jb 0x18002d83b
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.180001ec0
jmp 0x18002d855
mov r8, rdi
mov rdx, rbx
call fcn.1800034d0
lea rdx, [rsp + 0x20]
mov word [rsp + 0x20], r14w
lea rcx, [rsp + 0x48]
call fcn.18001d6b0
cmp rax, 0xffffffffffffffff
je 0x18002d881
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.180003e70
lea rcx, [rsp + 0x48]
call fcn.1800033c0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x18002d898
mov rbx, qword [rax]
lea rcx, [rsp + 0x48]
call fcn.180003260
lea rcx, [rsp + 0x28]
mov rdi, rax
call fcn.1800067d0
lea rcx, [rsp + 0x28]
test rdi, rdi
jne 0x18002d8e1
call fcn.1800033c0
mov word [rsp + 0x20], r14w
cmp qword [rax + 0x18], 8
mov qword [rax + 0x10], r14
jb 0x18002d8d2
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.180001ec0
jmp 0x18002d8ec
mov r8, rdi
mov rdx, rbx
call fcn.1800034d0
lea rdx, [rsp + 0x20]
mov word [rsp + 0x20], r14w
lea rcx, [rsp + 0x28]
call fcn.18001d6b0
mov rdi, qword [rsp + 0x2e0]
mov rbx, qword [rsp + 0x2d8]
cmp rax, 0xffffffffffffffff
je 0x18002d928
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.180003e70
lea rcx, [rsp + 0x28]
call fcn.18002d5f0
lea rax, [rsp + 0x28]
cmp rsi, rax
je 0x18002d950
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call fcn.180003620
lea rcx, [rsp + 0x28]
call fcn.180003190
lea rcx, [rsp + 0x48]
call fcn.180003190
lea rcx, [rsp + 0x68]
call fcn.180003190
mov al, 1
jmp 0x18002d974
xor al, al
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180081d90
add rsp, 0x2b0
pop r14
pop rsi
pop rbp
ret
Function at 0x180031f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x940
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
or edi, 0xffffffff
call fcn.180084ad0
mov r9, rbx
lea r8, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.1800099b0
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800320bb
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x800
call fcn.180084ad0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x960]
mov qword [rsp + 0x28], rax
lea rdx, str.PnpInstanceID
lea rax, [rsp + 0x140]
mov dword [rsp + 0x960], 0x800
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800320b0
lea r9d, [rdi + 4]
xor ecx, ecx
lea r8, [0x1800d7de0]
lea rdx, [rsp + 0x140]
call qword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x1800320b0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x968]
mov qword [rsp + 0x28], rax
lea rdx, str.MediaSubType
lea rax, [rsp + 0x958]
mov dword [rsp + 0x958], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x968], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1800320ae
test eax, eax
jne 0x1800320b0
mov eax, dword [rsp + 0x958]
cmp eax, 1
je 0x1800320ae
cmp eax, 2
jne 0x1800320b0
lea edi, [rbx + 1]
jmp 0x1800320b0
mov edi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x950]
add rsp, 0x940
pop rdi
ret
Function at 0x180032340
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
xor r15b, r15b
mov byte [rbp + 0x1a0], r15b
xor ebx, ebx
mov dword [rbp + 0x1a1], ebx
mov byte [rbp + 0x1a5], bl
mov dword [rbp + 0x198], edi
lea rdx, [rbp + 0x198]
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov r12d, dword [rbp + 0x198]
mov ecx, r12d
call fcn.1800824f0
mov rsi, rax
test rax, rax
je 0x1800323c5
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.180084ad0
mov byte [rsi], bl
jmp 0x1800323c8
mov rsi, rdi
mov qword [rbp + 0x1a8], rsi
test rsi, rsi
je 0x180032433
lea rdx, [rbp + 0x198]
mov rcx, rsi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x180032433
mov rbx, rsi
nop dword [rax + rax]
lea rcx, [rbx + 0xc]
call fcn.180031f60
cmp eax, 1
ja 0x18003241c
mov ecx, dword [rbx + 0x198]
mov dword [rbp + 0x1a0], ecx
movzx ecx, word [rbx + 0x19c]
mov word [rbp + 0x1a4], cx
test eax, eax
je 0x180032424
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800323f0
movzx ebx, byte [rbp + 0x1a5]
movzx r15d, byte [rbp + 0x1a0]
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x50]
call fcn.180084ad0
movzx eax, bl
movzx ecx, byte [rbp + 0x1a4]
movzx edx, byte [rbp + 0x1a3]
movzx r10d, byte [rbp + 0x1a2]
movzx r9d, byte [rbp + 0x1a1]
movzx r8d, r15b
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, str._02X__02X__02X__02X__02X__02X
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], rdi
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rdi
cmp qword [r14 + 0x18], 8
jb 0x1800324ad
mov rax, qword [r14]
jmp 0x1800324b0
mov rax, r14
mov word [rax], di
cmp word [rsp + 0x50], 0
je 0x1800324ce
lea rax, [rsp + 0x50]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1800324c4
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1800034d0
mov dword [rsp + 0x40], 1
test rsi, rsi
je 0x1800324f4
mov rcx, rsi
call fcn.180082154
nop
mov rax, r14
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800326e0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov esi, reloc.WS2_32.dll_recv
lea rbx, [rsp]
mov eax, esi
mov r11, rdx
mov rdi, rcx
mov r10d, 2
nop dword [rax]
nop word [rax + rax]
mov ecx, r10d
lea r8d, [r10 - 2]
movzx r8d, byte [r8 + r11]
lea edx, [r10 - 1]
movzx edx, byte [rdx + r11]
lea rbx, [rbx + 4]
shl r8d, 8
or r8d, edx
movzx edx, byte [rcx + r11]
shl r8d, 8
lea ecx, [r10 + 1]
movzx ecx, byte [rcx + r11]
or r8d, edx
shl r8d, 8
add r10d, 4
or r8d, ecx
mov dword [rbx - 4], r8d
sub rsi, 1
jne 0x180032720
lea r11, [rsp + 0x40]
nop
lea ecx, [rax - 0xf]
mov r9d, dword [rsp + rcx*4]
lea r11, [r11 + 4]
lea ecx, [rax - 2]
mov edx, r9d
mov r8d, dword [rsp + rcx*4]
mov r10d, r8d
rol r10d, 0xf
mov ecx, r8d
rol ecx, 0xd
xor r10d, ecx
rol edx, 0xe
mov ecx, r9d
shr r8d, 0xa
ror ecx, 7
xor r10d, r8d
xor edx, ecx
shr r9d, 3
lea ecx, [rax - 0x10]
xor edx, r9d
add r10d, edx
add r10d, dword [rsp + rcx*4]
lea ecx, [rax - 7]
add r10d, dword [rsp + rcx*4]
inc eax
mov dword [r11 - 4], r10d
cmp eax, 0x40
jb 0x180032770
mov r9d, dword [rdi + 0x50]
xor r11d, r11d
mov ebx, dword [rdi + 0x54]
mov esi, dword [rdi + 0x58]
mov r12d, dword [rdi + 0x5c]
mov r10d, dword [rdi + 0x60]
lea r15d, [r11 + 0x40]
mov ebp, dword [rdi + 0x64]
mov r14d, dword [rdi + 0x68]
mov r13d, dword [rdi + 0x6c]
lea rdi, [0x1800d5dd0]
nop word [rax + rax]
mov r8d, r10d
lea r11, [r11 + 4]
ror r8d, 0xb
mov eax, r10d
rol eax, 7
mov ecx, r10d
xor r8d, eax
not ecx
and ecx, r14d
mov eax, r10d
ror eax, 6
mov edx, r9d
xor r8d, eax
ror edx, 0xd
mov eax, ebp
and eax, r10d
xor ecx, eax
mov eax, r9d
add r8d, ecx
rol eax, 0xa
add r8d, dword [r11 + rdi - 4]
xor edx, eax
add r8d, dword [rsp + r11 - 4]
mov eax, r9d
ror eax, 2
add r8d, r13d
xor edx, eax
mov ecx, ebx
xor ecx, r9d
mov eax, ebx
and eax, r9d
and ecx, esi
xor ecx, eax
mov r13d, r14d
add edx, ecx
mov r14d, ebp
mov ebp, r10d
lea r10d, [r8 + r12]
mov r12d, esi
mov esi, ebx
mov ebx, r9d
lea r9d, [rdx + r8]
sub r15, 1
jne 0x180032800
mov rdi, qword [rsp + 0x140]
add dword [rdi + 0x54], ebx
add dword [rdi + 0x50], r9d
add dword [rdi + 0x58], esi
add dword [rdi + 0x5c], r12d
add dword [rdi + 0x60], r10d
add dword [rdi + 0x64], ebp
add dword [rdi + 0x68], r14d
add dword [rdi + 0x6c], r13d
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800328d0
Capabilities:
Get user security identifier

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rsi, rdx
mov rbp, rcx
mov ecx, 0x100
call fcn.1800824f0
mov rbx, rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x90], 0x80
mov dword [rsp + 0x98], 0x44
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x98]
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test eax, eax
jne 0x1800329db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800329db
cmp dword [rsp + 0x98], 0x44
ja 0x1800329e1
mov eax, dword [rsp + 0x90]
cmp eax, 0x80
jbe 0x1800329a7
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800824f0
mov rcx, rbx
mov rbx, rax
test rcx, rcx
je 0x1800329a7
call fcn.180082154
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x98]
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne dil
test rbx, rbx
je 0x1800329ee
mov rcx, rbx
call fcn.180082154
movzx eax, dil
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x180035120
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.180084ad0
mov r8d, 0x104
lea rdx, [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180084ad0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jge 0x1800351ab
xor al, al
jmp 0x1800351c5
movsxd r8, eax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call fcn.180086324
test eax, eax
sete al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180081d90
add rsp, 0x450
pop rbx
ret
Function at 0x1800368c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1800368ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180037450
cmp byte [0x1800f8228], 0
jne 0x180036939
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180036929
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800f8220], rax
mov byte [0x1800f8228], 1
jmp 0x180036940
mov rax, qword [0x1800f8220]
mov byte [0x1800f8228], 1
jmp 0x180036940
mov rax, qword [0x1800f8220]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18003695f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800374c4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800374e6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800374e6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x1800374e6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180037300
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.180036e50
mov ebx, eax
test eax, eax
jne 0x180037417
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1800373f1
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180037300
mov ebx, eax
test eax, eax
jne 0x180037417
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800373a0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180037406
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.1800368c0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180037427
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180081d90
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180037450
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1800368ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180037450
cmp byte [0x1800f8228], 0
jne 0x180036939
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180036929
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800f8220], rax
mov byte [0x1800f8228], 1
jmp 0x180036940
mov rax, qword [0x1800f8220]
mov byte [0x1800f8228], 1
jmp 0x180036940
mov rax, qword [0x1800f8220]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18003695f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800374c4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800374e6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800374e6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x1800374e6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800376f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18003777e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18003777e
call fcn.180035ce0
mov ebx, eax
jmp 0x1800378a6
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18003779f
call fcn.180035ce0
jmp 0x180037895
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1800377c2
call fcn.180035ce0
jmp 0x180037895
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800377e4
mov ebx, 0x8007000e
jmp 0x180037897
mov ecx, eax
test eax, eax
je 0x18003781c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180037812
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18003781c
lea rcx, [rsp + 0x70]
call fcn.180035a70
jmp 0x180037826
mov ecx, 0x80070216
call fcn.180036660
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180037839
cmp qword [rsp + 0x70], 0
jne 0x180037848
mov ebx, 0x8007000e
jmp 0x180037897
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180037872
call fcn.180035ce0
jmp 0x180037895
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180037500
mov ebx, eax
test rdi, rdi
je 0x1800378a6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800378bd
lea rcx, [rsp + 0x70]
call fcn.180036c00
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180081d90
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180038050
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180038090
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x1800380a8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x1800380b4
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x1800380b0
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret