joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063ba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
mov eax, dword [0x4403f0]
mov dword [ebp - 0x10], eax
push edi
mov eax, esi
call fcn.00406a97
mov ebx, eax
xor ecx, ecx
push 4
pop edx
lea eax, [ebx + ebx]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a35c
mov dword [ebp - 0xc], eax
lea eax, [eax + ebx*4]
and dword [eax], 0
pop ecx
add eax, 4
push eax
lea eax, [ebx - 1]
push eax
push 0x1211
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 8], 0
test ebx, ebx
jle 0x406437
mov eax, dword [ebp - 8]
lea edi, [ebp - 0x20]
call fcn.00406aab
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
jl 0x406415
mov eax, ebx
shl eax, 3
push eax
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call fcn.0041a268
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x406462
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4403f0]
push esi
mov dword [ebp - 0x18], eax
push edi
mov eax, ebx
call fcn.00406a97
mov esi, eax
xor ecx, ecx
push 4
pop edx
lea eax, [esi + esi]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a35c
or dword [ebp - 0x10], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
mov edi, esi
push dword [ebp - 0x18]
shl edi, 3
mov byte [ebp - 5], 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40655b
cmp dword [ebp - 0x10], 3
jne 0x40655b
cmp dword [ebp - 0x14], edi
jne 0x40655b
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [eax + esi*4 + 4]
push eax
lea eax, [esi - 1]
push eax
push 0x1212
push dword [ebx + 0xc]
call edi
and dword [ebp + 8], 0
test esi, esi
jle 0x406557
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
jle 0x40654f
mov eax, dword [eax]
push 0x4e
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
jge 0x40654f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], ecx
test eax, eax
jne 0x40653f
lea eax, [ebp - 0x48]
push eax
push 0
push 0x120c
push dword [ebx + 4]
jmp 0x40654d
lea ecx, [ebp - 0x48]
push ecx
dec eax
push eax
push 0x120c
push dword [ebx + 0xc]
call edi
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
jl 0x4064fc
mov byte [ebp - 5], 1
push dword [ebp - 0xc]
call fcn.0041a268
mov al, byte [ebp - 5]
pop ecx
pop edi
pop esi
leave
ret 4
Function at 0x407203
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406f79
cmp al, byte [ebp + 0xc]
setne byte [ebp - 5]
cmp byte [ebp + 0xc], 0
je 0x40729e
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 3
call edi
push 2
mov dword [ebp + 0xc], eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
cmp ebx, eax
jne 0x407251
and dword [ebp - 0x2c], 0
jmp 0x40725a
mov ecx, dword [esi + 0x84]
mov dword [ebp - 0x2c], ecx
cmp ebx, eax
jne 0x407266
mov ebx, dword [esi + 0x84]
jmp 0x40726c
mov ebx, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 0x18]
push 3
sub esi, dword [ebp + 0xc]
call edi
add eax, esi
cmp byte [ebp + 0x10], 0
je 0x407284
sub ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x2c]
push 0x44
sub eax, esi
push eax
push ebx
push esi
push dword [ebp - 0x2c]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4072b3
test al, al
je 0x4072b3
push 0
push ebx
call fcn.0040747a
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4072bd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 8], 0
je 0x407314
push esi
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 2
call esi
mov ecx, dword [ebp - 8]
sub ecx, eax
push 3
mov dword [ebp - 0x10], ecx
call esi
mov edx, dword [ebp - 4]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x44
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
jmp 0x40731f
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret 4
Function at 0x40b912
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b933
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push 0x439e88
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40b92f
mov eax, dword [ebp - 0xc]
push esi
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
je 0x40b98a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b98a
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x40c5b6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x440178]
test esi, esi
je 0x40c60d
and dword [ebp - 0x60], 0
push 0x58
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0041aab0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x5c
lea eax, [ebp - 0x60]
push eax
push 3
push 0
push 0x438eac
push dword [0x4403f0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004179b6
leave
ret

Function at 0x40c61a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x60], 0
push 0x58
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0041aab0
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x438eac
push dword [0x4403f0]
mov dword [ebp - 0x64], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c675
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x440178], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004179b6
leave
ret
Function at 0x40c777
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov edx, dword [0x4403f0]
push edi
push 0xa
pop ecx
push 0x2c
pop esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c8d4
cmp dword [ebp - 0x50], esi
jne 0x40c8d4
mov esi, dword [ebp + 8]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
mov eax, dword [ebp - 0x48]
dec eax
dec eax
je 0x40c7e6
dec eax
jne 0x40c7fc
and ebx, 0xdfffffff
or ebx, 0x1000000
jmp 0x40c7f2
and ebx, 0xfeffffff
or ebx, 0x20000000
push ebx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x14]
push eax
shr ebx, 0x12
push esi
and bl, 1
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
test bl, bl
je 0x40c823
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov ecx, eax
sub ecx, dword [ebp - 0x14]
cmp edx, ecx
jge 0x40c82c
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
test bl, bl
je 0x40c842
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [ebp - 0x10]
cmp edx, ecx
jge 0x40c84b
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
call esi
push 0x4d
mov dword [ebp - 0x24], eax
call esi
push 0x4e
mov dword [ebp - 0x20], eax
call esi
push 0x4c
mov ebx, eax
call esi
push 0x4f
add ebx, eax
call esi
push 0x4d
mov edi, eax
call esi
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
add edi, eax
cmp dword [ebp - 0x28], edi
jle 0x40c88e
sub edi, dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push edi
push 0
push eax
call esi
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x30], eax
jge 0x40c8a2
sub eax, dword [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call esi
cmp dword [ebp - 0x2c], ebx
jle 0x40c8b3
sub ebx, dword [ebp - 0x2c]
push 0
push ebx
lea eax, [ebp - 0x34]
push eax
call esi
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x34], eax
jge 0x40c8c7
sub eax, dword [ebp - 0x34]
push 0
push eax
lea eax, [ebp - 0x34]
push eax
call esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cee0
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x430
lea ebp, [esp - 4]
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp + 0x430], eax
push 0xc
mov eax, 0x431809
call fcn.0042d90d
mov eax, dword [ebp + 0x43c]
and dword [ebp - 0x18], 0
test byte [0x440f60], 1
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov esi, 0x440ef8
jne 0x40cf52
or dword [0x440f60], 1
and dword [ebp - 4], 0
push 0x4015f6
push 0x401538
push 0x1a
push 4
push esi
call fcn.0041a16a
push 0x432aed
call fcn.00419fe6
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x440cdc], 0
jne 0x40cfbb
xor ebx, ebx
push 0x3a
lea eax, [ebx + 0x41]
mov word [ebp + 0x410], ax
pop eax
mov word [ebp + 0x412], ax
push 6
xor eax, eax
pop ecx
mov word [ebp + 0x414], ax
lea edi, [ebp + 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00401622
inc ebx
add esi, 4
cmp ebx, 0x1a
jb 0x40cf5d
mov ebx, dword [ebp - 0x10]
mov byte [0x440cdc], 1
and dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x10]
lea esi, [esi*4 + 0x440ef8]
mov eax, dword [esi]
test eax, eax
je 0x40cfd3
mov eax, dword [eax]
jmp 0x40cfd5
xor eax, eax
push eax
call fcn.0041a9d8
mov esi, dword [esi]
pop ecx
mov edi, eax
test esi, esi
je 0x40cfe8
mov esi, dword [esi]
jmp 0x40cfea
xor esi, esi
push edi
push esi
push ebx
call fcn.0041b578
add esp, 0xc
test eax, eax
jne 0x40d008
movzx eax, word [ebx + edi*2]
cmp ax, 0x5c
je 0x40d03f
test ax, ax
je 0x40d03f
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x1a
jb 0x40cfbf
push ebx
mov edi, dword [ebp - 0x14]
call fcn.004015ab
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x430]
xor ecx, ebp
call fcn.004179b6
add ebp, 0x434
leave
ret
mov eax, dword [ebp - 0x10]
add eax, 0x41
push 0x3a
mov word [ebp + 0x208], ax
pop eax
mov word [ebp + 0x20a], ax
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp + 0x20c]
push 0x102
push eax
call fcn.00417e21
add esp, 0xc
lea eax, [ebp + 0x208]
push eax
jmp 0x40d012
Function at 0x40d9ec
Capabilities:
Enumerate processes

Disassembly:
push 0x230
mov eax, 0x431897
call fcn.0042d976
xor esi, esi
push esi
push 2
mov dword [ebp - 4], esi
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, esi
je 0x40da95
push 0x224
lea eax, [ebp - 0x234]
push esi
push eax
mov dword [ebp - 0x23c], 0x22c
mov dword [ebp - 0x238], esi
call fcn.0041aab0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40da89
cmp dword [ebp - 0x234], esi
je 0x40da7c
lea eax, [ebp + 8]
call fcn.00405c30
push eax
call fcn.0041a9d8
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
call fcn.00405c30
push eax
call fcn.0041b578
add esp, 0xc
test eax, eax
je 0x40da8f
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40da48
jmp 0x40da95
mov ebx, dword [ebp - 0x234]
cmp dword [ebp + 8], esi
je 0x40daa2
mov esi, dword [ebp + 8]
call fcn.00405add
mov eax, ebx
call fcn.0042d9f9
ret

Function at 0x40daaa
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push 4
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push esi
lea ecx, [ebp - 8]
push ecx
mov ebx, 0x440418
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
push dword [0x440414]
mov dword [ebp - 0xc], eax
push 1
push 0x30
push esi
push eax
jmp 0x40db37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40db3d
mov eax, dword [0x440414]
mov dword [ebp - 8], esi
cmp eax, esi
je 0x40db0c
push eax
call fcn.0041a735
pop ecx
add dword [ebp - 4], 0x4000
push dword [ebp - 4]
call fcn.0041a812
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 4]
mov dword [0x440414], eax
push eax
push 1
push 0x30
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x40daec
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4105d9
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x18
mov eax, 0x431a30
call fcn.0042d90d
mov esi, dword [sym.imp.USER32.dll_GetMenu]
xor eax, eax
cmp byte [ebp + 0x41c], al
mov edi, ecx
setne al
mov dword [ebp - 0x20], edi
dec eax
and eax, 3
push eax
push 0x9c66
push edi
mov dword [ebp - 0x18], eax
call esi
mov ebx, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call ebx
push 0x208
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x439788
lea edi, [ebp - 0x14]
call fcn.004015ab
and dword [ebp - 4], 0
push 0x438ca4
lea edi, [ebp - 0x24]
call fcn.004015ab
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov byte [ebp - 4], 1
call fcn.004016e0
mov eax, dword [eax]
test eax, eax
je 0x410676
mov eax, dword [eax]
jmp 0x410678
xor eax, eax
push eax
lea eax, [ebp]
push eax
call fcn.0041b17f
neg eax
sbb al, al
pop ecx
inc al
pop ecx
lea edi, [ebp - 0x1c]
mov byte [ebp - 0xd], al
call fcn.0040174e
lea edi, [ebp - 0x24]
call fcn.0040174e
lea edi, [ebp - 0x14]
call fcn.0040174e
cmp byte [ebp - 0xd], 0
je 0x4106bb
push dword [ebp - 0x18]
push 0x9c7a
push dword [ebp - 0x20]
call esi
push eax
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004179b6
add ebp, 0x414
leave
ret
Function at 0x41132c
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push 0x368
mov eax, 0x431d8e
call fcn.0042d976
push dword [ebp + 8]
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x2e8], eax
cmp eax, 0xffffffff
je 0x41147e
lea eax, [ebp - 0x314]
push eax
push dword [ebp - 0x2e8]
mov dword [ebp - 0x314], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x41146a
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x308], eax
jne 0x411458
push dword [ebp - 0x30c]
push 0
push 0x4a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov dword [ebp - 0x2ec], esi
test esi, esi
je 0x411458
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x411451
lea eax, [ebp - 0x2e4]
push eax
push esi
mov dword [ebp - 0x2e4], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x41144a
xor eax, eax
lea edi, [ebp - 0x2f4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x220]
push 0
push 0x1c
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x374]
push eax
push 0
push esi
call dword [0x440790]
test eax, eax
jne 0x411416
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x2f0], eax
mov esi, dword [ebx + 0x14]
lea eax, [ebp - 0x2f8]
push eax
push dword [esi + 4]
push esi
call fcn.004161ee
mov ecx, dword [ebx + 0x18]
mov edx, 0x15555555
sub edx, ecx
cmp edx, 1
jb 0x411484
inc ecx
mov dword [ebx + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov esi, dword [ebp - 0x2ec]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x314]
push eax
push dword [ebp - 0x2e8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x411375
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0042d9f9
ret
push 0x4360f4
lea ecx, [ebp - 0x358]
call fcn.00403880
and dword [ebp - 4], 0
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x33c]
call fcn.00401447
push 0x43aea4
lea eax, [ebp - 0x33c]
push eax
mov dword [ebp - method.std::length_error.virtual_0], vtable.std::length_error.0
call fcn.0041cfbc
int3
Function at 0x416ea7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
push edi
cmp dword [0x44041c], ebx
jne 0x416ed3
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov dword [0x44041c], eax
mov eax, dword [ebp - 0x60]
mov dword [0x4403ec], eax
push 0x38
push ebx
push esi
call fcn.0041aab0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov edi, eax
sub edi, 0x1c
neg edi
sbb edi, edi
inc edi
jne 0x416f04
xor eax, eax
jmp 0x416fdc
mov ecx, dword [ebp - 0xc]
mov eax, 0x2000
cmp ecx, 0x1000
je 0x416f60
cmp ecx, eax
je 0x416f60
mov eax, 0x10000
cmp ecx, eax
je 0x416f2c
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x416fda
mov ecx, dword [ebp - 0x1c]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
jmp 0x416fda
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x28], edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x30], edx
cmp ecx, eax
jne 0x416f75
mov dword [esi + 0x2c], ebx
jmp 0x416f7e
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
lea ebx, [ebp - 0x40]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416c48
mov eax, dword [ebp - 0x40]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
add dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x28]
add esp, 0x10
add dword [esi + 0x18], eax
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x4177f1
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4335fc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4178c6
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4178b5
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x41789f
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4178b5
push eax
push edi
push dword [ebp - 0x110]
call fcn.0041778e
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x4178c8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004179b6
leave
ret 4

Function at 0x4179b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e054]
jne 0x4179c0
repz ret
jmp fcn.0041d08b
Function at 0x42b954
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042000f
and dword [ebp - 4], 0
cmp dword [0x440080], 0
mov ebx, eax
jne 0x42ba05
push 0x4356bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42bab6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4356b0
push edi
call esi
test eax, eax
je 0x42bab6
push eax
call fcn.0041ff9d
mov dword [esp], 0x4356a0
push edi
mov dword [0x440080], eax
call esi
push eax
call fcn.0041ff9d
mov dword [esp], 0x43568c
push edi
mov dword [0x440084], eax
call esi
push eax
call fcn.0041ff9d
mov dword [esp], 0x435670
push edi
mov dword [0x440088], eax
call esi
push eax
call fcn.0041ff9d
pop ecx
mov dword [0x440090], eax
test eax, eax
je 0x42ba05
push 0x435658
push edi
call esi
push eax
call fcn.0041ff9d
pop ecx
mov dword [0x44008c], eax
mov eax, dword [0x44008c]
cmp eax, ebx
je 0x42ba5d
cmp dword [0x440090], ebx
je 0x42ba5d
push eax
call fcn.00420018
push dword [0x440090]
mov esi, eax
call fcn.00420018
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42ba5d
test edi, edi
je 0x42ba5d
call esi
test eax, eax
je 0x42ba54
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ba54
test byte [ebp - 0xc], 1
jne 0x42ba5d
or dword [ebp + 0x10], 0x200000
jmp 0x42ba96
mov eax, dword [0x440084]
cmp eax, ebx
je 0x42ba96
push eax
call fcn.00420018
pop ecx
test eax, eax
je 0x42ba96
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ba96
mov eax, dword [0x440088]
cmp eax, ebx
je 0x42ba96
push eax
call fcn.00420018
pop ecx
test eax, eax
je 0x42ba96
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440080]
call fcn.00420018
pop ecx
test eax, eax
je 0x42bab6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42bab8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret