joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ad0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x121c
call fcn.00429df0
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1210]
mov dword [ebp - 0x1218], ecx
push eax
push 0x1000
lea eax, [ebp - 0x120c]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
jne 0x408b1a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f784
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x1210]
push esi
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x408bed
mov eax, dword [0x4341bc]
movups xmm0, xmmword [str._unknown_]
push 0x1f4
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x1f8]
push 0
push eax
movups xmmword [ebp - 0x20c], xmm0
call fcn.00411750
add esp, 0xc
push dword [ebp + edi*4 - 0x120c]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408bdd
lea eax, [ebp - 0x121c]
push eax
push 4
lea eax, [ebp - 0x1214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x408bdd
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x1214]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x1218]
push dword [eax]
call fcn.00418bce
add esp, 8
test eax, eax
jne 0x408bdd
cmp dword [ebp + edi*4 - 0x120c], eax
je 0x408bdd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x408c00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x408b30
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f784
mov esp, ebp
pop ebp
ret
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f784
mov esp, ebp
pop ebp
ret

Function at 0x408cf0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x435dd0
push 0x410fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x438040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x408d72
push edi
push dword [ebp - 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00408d9f
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040f784
mov esp, ebp
pop ebp
ret
Function at 0x408fb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x439838]
mov ecx, dword [0x438aa0]
inc eax
mov dword [0x439838], eax
test ecx, ecx
jle 0x409041
imul eax, eax, 0x64
push esi
cdq
idiv ecx
imul ecx, eax, 0x62
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
inc esi
add esi, edx
cmp dword [0x439834], esi
je 0x409040
mov dword [0x439834], esi
cmp esi, 1
jge 0x408ffb
mov esi, 1
jmp 0x409005
mov eax, 0x63
cmp esi, eax
cmovg esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x439830]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x37
ja 0x409027
test edx, edx
je 0x409027
test esi, esi
je 0x409027
cmp esi, 0x64
jne 0x409040
push esi
push 6
push 0x915
push dword [0x43982c]
mov dword [0x439830], eax
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
pop esi
ret
Function at 0x40eb00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x438040]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 2
jne 0x40ec0f
push dword [eax + 4]
lea ecx, [esp + 8]
call fcn.004031f0
lea edx, [esp + 4]
lea ecx, [esp + 0x10]
call fcn.00401200
lea ecx, [esp + 0x14]
push dword [eax]
call fcn.00404fa0
mov edx, dword [esp + 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eb74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40eb8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x28], 0xf
lea eax, [esp + 0x14]
cmova eax, dword [esp + 0x14]
push eax
call fcn.00419942
add esp, 4
mov dword [0x43982c], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0
call fcn.00408cf0
cmp dword [esp + 8], 0
jne 0x40ebd8
push 0
push 0
push 0x916
push dword [0x43982c]
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
jmp 0x40ebdd
call fcn.0040dfc0
mov ecx, dword [esp + 0x28]
cmp ecx, 0xf
jbe 0x40ec0f
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec23
push ecx
push edx
call fcn.0040fabb
add esp, 8
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0040f784
mov esp, ebp
pop ebp
ret 0x10
call fcn.00414b5e
int3

Function at 0x41040d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41044c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41044c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41044c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41044c
cmp dword [ecx + 0x74], 0xe
jbe 0x41044c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41dfef
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041e5f3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e05e
cmp esi, dword [ebp - 4]
je 0x41e059
cmp dword [ebp + 0xc], 0
je 0x41e059
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41e036
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041db41
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41e060
xor eax, eax
inc eax
jmp 0x41e060
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41e0c5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041e5f3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041e5f3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41e13c
cmp word [ecx], dx
je 0x41e13c
mov eax, dword [0x42f634]
push edi
dec eax
push eax
push 0x42f520
call fcn.0041e064
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41e1af
cmp word [eax], dx
je 0x41e1af
mov eax, dword [edi]
test eax, eax
je 0x41e160
cmp word [eax], dx
je 0x41e160
lea eax, [ebp - 0x10]
push eax
call fcn.0041da47
jmp 0x41e169
lea eax, [ebp - 0x10]
push eax
call fcn.0041dae2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41e1d9
mov eax, dword [0x42f51c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42f210
call fcn.0041e064
add esp, 0xc
test al, al
je 0x41e1d9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41e1a4
cmp word [eax], di
je 0x41e1a4
lea eax, [ebp - 0x10]
push eax
call fcn.0041da47
pop ecx
jmp 0x41e1db
lea eax, [ebp - 0x10]
push eax
call fcn.0041dae2
jmp 0x41e1a1
mov eax, dword [edi]
test eax, eax
je 0x41e1c6
cmp word [eax], dx
je 0x41e1c6
lea eax, [ebp - 0x10]
push eax
call fcn.0041d9fc
pop ecx
jmp 0x41e1d9
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41e2a4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041dee9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41e2a4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41e2a4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41e2a4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41e231
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041ef81
test ebx, ebx
je 0x41e29f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041ef81
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e2a4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e2a4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042372f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41e2a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f784
leave
ret
Function at 0x41ed84
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430618
push 0x430610
push str.FlsAlloc
push 0x1f
call fcn.0041ebef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41edb8
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d230]
call esi
jmp 0x41edbe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ee02
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430628
push 0x430620
push str.FlsGetValue
push 0x21
call fcn.0041ebef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ee39
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ee41
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430630
push 0x430628
push str.FlsSetValue
push 0x22
call fcn.0041ebef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ee7b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d230]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x421e41
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x421ede
push ebx
push esi
call fcn.00421e0a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421d9e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421e8b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421edd
push edi
push eax
call fcn.0041bf64
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421eab
call fcn.0041bf2a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421edc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421d9e
add esp, 0x20
test eax, eax
jne 0x421eca
push edi
call fcn.0041bf2a
jmp 0x421ed2
push ebx
call fcn.0041bf2a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x421ee1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x421ef2
pop esi
ret
push ebx
push edi
push esi
call fcn.00421e0a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041bf64
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x421f1a
push ebx
push esi
push edi
call fcn.004111d0
add esp, 0xc
push 0
call fcn.0041bf2a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4222ea
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421f2f
Function at 0x4299a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4299cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4299cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427011
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x435300]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.console.0
xor edi, edi
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], edi
mov word [esi + 0xc], di
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
call fcn.00404db0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov byte [esp + 0x14], 1
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x14
mov dword [esi + 0x3c], 0x32
call fcn.00404b30
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x405b10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42692b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x435300]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041056a
push 4
mov dword [esp + 0x20], 0
call fcn.00411164
mov edi, eax
add esp, 4
test edi, edi
je 0x405b90
call fcn.0041037d
mov dword [edi], eax
call fcn.004101b1
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004104b9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405b85
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004104da
jmp 0x405b92
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4093a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x426ca6
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x435300]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0xc], ecx
mov dword [esi], vtable.registry_value.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, 7
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], eax
mov word [esi + 0x14], ax
mov dword [esp + 0x10], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
push edx
push esi
mov byte [esp + 0x18], 1
call fcn.00409490
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x409920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4270f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x435300]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], edi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
mov word [ecx + 4], di
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
mov byte [esp + 0x1c], 1
push edi
mov dword [esi + 0x2c], 0x80000002
call fcn.00404720
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x4099a0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x427608
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x435300]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x435300]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
cmp dword [edi + 0x28], 8
jb 0x4099dc
mov eax, dword [edi + 0x14]
jmp 0x4099df
lea eax, [edi + 0x14]
lea esi, [edi + 0x30]
push esi
push 0xf003f
push 0
push eax
mov eax, dword [edi + 0x2c]
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409b02
mov ecx, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [edi + 0x860]
push eax
lea ebx, [edi + 0x85c]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x409b02
cmp dword [ebx], eax
mov dword [edi + 0x858], eax
jbe 0x409af9
lea ebp, [edi + 0x864]
lea ebx, [edi + 0x448]
lea esp, [esp]
mov eax, dword [edi + 0x858]
mov edx, dword [edi + 0x860]
mov ecx, dword [esi]
push 0
push 0
push 0
push 0
push ebp
push ebx
push eax
add edx, 1
push ecx
mov dword [ebp], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [edi + 0x874], eax
xor esi, esi
mov eax, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409a94
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [esp + 0x20]
call fcn.004060c0
mov edx, esi
push edx
mov esi, edi
mov dword [esp + 0x44], 0
call fcn.00403830
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x409adc
mov eax, dword [esp + 0x1c]
push eax
call fcn.00411032
add esp, 4
add dword [edi + 0x858], 1
mov ecx, dword [edi + 0x858]
cmp ecx, dword [edi + 0x85c]
mov esi, dword [esp + 0x14]
jb 0x409a50
mov edx, dword [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00410b9c
add esp, 0x34
ret
Function at 0x40cf70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427826
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x38ac
call fcn.004218d0
mov eax, dword [0x435300]
xor eax, esp
mov dword [esp + 0x38a8], eax
push ebx
push esi
push edi
mov eax, dword [0x435300]
xor eax, esp
push eax
lea eax, [esp + 0x38c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x5c]
push 0x400
lea ecx, [esp + 0x10b8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10b4]
push eax
call fcn.00403590
add esp, 4
lea ecx, [esp + 0x20b4]
push ecx
lea edx, [esp + 0x30b8]
push edx
lea eax, [esp + 0x18bc]
push eax
lea ecx, [esp + 0x28c0]
push ecx
lea edx, [esp + 0x10c4]
push edx
call fcn.00411fe5
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
call fcn.00403c00
lea ecx, [esp + 0x18b4]
push ecx
push ecx
lea edx, [esp + 0x28bc]
push edx
lea eax, [esp + 0x40]
xor ebx, ebx
push eax
mov dword [esp + 0x38d8], ebx
call fcn.00407eb0
add esp, 0xc
push eax
call fcn.00407eb0
add esp, 8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x2c]
call fcn.00403d30
push 0xffffffffffffffff
push ebx
mov ecx, 0x438470
mov byte [esp + 0x38d0], 1
call fcn.00404720
mov edi, 8
mov byte [esp + 0x38c8], bl
cmp dword [esp + 0x28], edi
jb 0x40d08a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00411032
add esp, 4
cmp dword [0x438488], edi
mov eax, dword [0x438474]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
jae 0x40d0ad
mov eax, 0x438474
push eax
call fcn.00403590
add esp, 4
push 0x400
lea edx, [esp + 0x8b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x8b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d0d3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x8b8]
push eax
mov esi, 0x43848c
call fcn.004060c0
cmp dword [0x4384a4], edi
mov eax, dword [0x438490]
jae 0x40d107
mov eax, 0x438490
push eax
call fcn.00403590
add esp, 4
push 0x400
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0xb4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d130
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb8]
push edx
mov esi, 0x4384a8
call fcn.004060c0
cmp dword [0x4384c0], edi
mov eax, dword [0x4384ac]
jae 0x40d164
mov eax, 0x4384ac
push eax
call fcn.00403590
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x38c8], 0xffffffff
call fcn.00403ca0
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.00410118
add esp, 4
mov ecx, dword [esp + 0x38c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38a8]
xor ecx, esp
call fcn.00410b9c
mov esp, ebp
pop ebp
ret 4