joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402d7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042ac
test esi, esi
jne 0x402db3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040439c
jmp 0x402dd4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c18
mov dword [esp], eax
test esi, esi
je 0x402dd4
cmp dword [ebx], 0
je 0x402dd4
dec esi
jmp 0x402dbb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403368
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x421020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403400
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033e0
xor eax, eax
push ebp
push 0x4033d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40341c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x421020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x421020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x422044], 0
je 0x404105
cmp word [0x422218], 0xd7b2
jne 0x4040cd
cmp dword [0x422220], 0
jbe 0x4040cd
mov eax, 0x422214
call dword [0x422230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42106c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40412c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x421030], 0
jne 0x404121
push 0
push 0x421064
push 0x42106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004029e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x422045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404228
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405dda
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040451c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f5c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dc4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405de1
lea eax, [ebp - 0x10]
call fcn.004042ac
ret

Function at 0x407d0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040476c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407d25
test al, 0x10
jne 0x407d29
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a9ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a9e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040439c
jmp 0x40a9ee
mov eax, ebx
mov edx, esi
call fcn.00404300
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a9f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aa19
mov al, byte [esp]
jmp 0x40aa1b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b0b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40af18
mov eax, dword [0x421930]
cmp byte [eax], 0
je 0x40b12c
mov eax, dword [0x42180c]
call fcn.00402e68
call fcn.00402b44
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408040
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b174
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b162
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4217e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x422660]
call fcn.0040521c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bee0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40bf44
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040451c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040798c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf4b
lea eax, [ebp - 0xc]
call fcn.004042ac
ret

Function at 0x4189e0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00418838
dec esi
jne 0x418a02
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41aed4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0041ab38
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040476c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41af32
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4218ac]
mov dl, 1
mov eax, dword [0x41aa30]
call fcn.0040b270
call fcn.00403c60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41af3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040476c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41af94
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4219dc]
mov dl, 1
mov eax, dword [0x41aa30]
call fcn.0040b270
call fcn.00403c60
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041ab68
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cd1c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040475c
xor eax, eax
push ebp
push 0x41ce97
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.0041ca20
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.0041ca40
mov ebx, eax
jmp 0x41ce69
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.0040451c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00407f30
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040742c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040742c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004046b8
je 0x41ce40
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.0040451c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040742c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040742c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004046b8
jne 0x41ce5a
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.0041ca60
mov ebx, eax
test ebx, ebx
jne 0x41cd9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce9e
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004042d0
lea eax, [ebp - 4]
call fcn.004042ac
ret

Function at 0x41d7e8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040475c
xor eax, eax
push ebp
push 0x41d8d4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41d8ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41d8e4
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41d89b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x41d84f
call fcn.00403d0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d8b6
push 0x41d8fc
push dword [ebp - 4]
push 0x41d918
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040462c
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d8a2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeregisterEventSource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d8db
lea eax, [ebp - 0xc]
call fcn.004042ac
lea eax, [ebp - 4]
call fcn.004042ac
ret
Function at 0x420014
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x420050
call sub.user32.dll_FindWindowA
push 0
push 0x420060
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x420070
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x42007c
push 0
push eax
call sub.user32.dll_FindWindowExA
ret

Function at 0x420348
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x420238
call fcn.00405fec
xor eax, eax
push ebp
push 0x4205f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x42059c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4229a4
mov edx, 0x420610
call fcn.00404300
push 1
push 0x422990
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
push 0x422990
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov dword [0x422984], 0xc
mov dword [0x422988], 0x422990
xor eax, eax
mov dword [0x42298c], eax
push 0x420620
push 0
push 0x422984
call fcn.00406128
mov dword [0x422980], eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x4203ff
mov eax, dword [0x422980]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4205dd
mov eax, 0x4229a4
mov edx, 0x420644
call fcn.00404300
mov edx, 0x42065c
mov eax, 0x20000
call fcn.0041d448
xor eax, eax
push ebp
push 0x42058b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4229a4
mov edx, 0x420668
call fcn.00404300
mov dl, 1
mov eax, dword [0x41aa90]
call fcn.0041ab90
mov dword [0x4229a8], eax
xor eax, eax
push ebp
push 0x420514
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [0x4229a8]
call fcn.0041ac30
mov cl, 1
mov edx, 0x420680
mov eax, dword [0x4229a8]
call fcn.0041ac94
test al, al
je 0x4204c9
lea ecx, [ebp - 0x14]
mov edx, 0x4206b8
mov eax, dword [0x4229a8]
call fcn.0041ae5c
mov edx, dword [ebp - 0x14]
mov eax, 0x4229ac
call fcn.00404300
cmp dword [0x4229ac], 0
jne 0x4204c9
mov eax, 0x4229ac
mov edx, 0x4206d0
call fcn.00404300
mov ecx, dword [0x4229ac]
mov edx, 0x4206b8
mov eax, dword [0x4229a8]
call fcn.0041ae30
mov cl, 1
mov edx, 0x420700
mov eax, dword [0x4229a8]
call fcn.0041ac94
test al, al
je 0x4204f2
mov ecx, 0x420744
mov edx, 0x420754
mov eax, dword [0x4229a8]
call fcn.0041ae30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42051b
mov eax, dword [0x4229a8]
call fcn.0041ac00
mov eax, dword [0x4229a8]
call fcn.004034f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4205ff
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004042d0
ret
Function at 0x4026d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444381
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x45b050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], edx
mov ebx, ecx
mov dword [ebp - 0x280], ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40271e
xor al, al
jmp 0x402963
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
mov edi, eax
xor esi, esi
nop
push dword [esi + 0x453d30]
push edi
call ebx
test eax, eax
jne 0x40274c
add esi, 4
cmp esi, 0x24
jb 0x402730
mov al, 1
jmp 0x402963
cmp byte [0x45e6f0], 0
jne 0x4028ae
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00424380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4027b1
xor ecx, ecx
jmp 0x4027cf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402bf0
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.004024c0
mov esi, eax
cmp esi, 0x45e700
je 0x402847
mov eax, dword [0x45e714]
cmp eax, 8
jb 0x402820
inc eax
mov ecx, 0x45e700
push eax
push dword [0x45e700]
call fcn.00402d60
xor eax, eax
mov dword [0x45e714], 7
push esi
mov ecx, 0x45e700
mov dword [0x45e710], 0
mov word [0x45e700], ax
call fcn.00402cf0
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x402865
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00402d60
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x4028a7
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00402d60
mov byte [0x45e6f0], 1
mov edx, dword [ebp - 0x280]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [edx], ax
jne 0x4028da
xor ecx, ecx
jmp 0x4028ef
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4028e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00402bf0
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.004024c0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x402932
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00402d60
push ecx
lea ecx, [ebp - 0x278]
call fcn.004030f0
mov ecx, dword [ebp - 0x264]
test eax, eax
sete bl
cmp ecx, 8
jb 0x402961
inc ecx
push ecx
push dword [ebp - 0x278]
lea ecx, [ebp - 0x278]
call fcn.00402d60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret
Function at 0x403530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403545
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403586
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403582
nop word [eax + eax]
cmp esi, edx
jae 0x403586
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403570
cmp esi, edx
jb 0x40358b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444572
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x45b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.0043f8a7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x404c94
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00404b90
push eax
push esi
call fcn.0043fbef
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x405d90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444748
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x45b050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
push 0x1c
call fcn.004208b7
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x48], 0xf
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 4], esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x18], eax
cmp byte [esi], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jne 0x405e10
xor ecx, ecx
jmp 0x405e1e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405e15
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.004043d0
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.0040a2e0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404010
cmp byte [ebp - 0x60], 0
jne 0x405ee1
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x405e79
xor ecx, ecx
jmp 0x405e89
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405e80
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004043d0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x2e
push str.more_than_one_flags_defined_with_the_same_name
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004043d0
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00405bd0
lea ecx, [ebp - 0x28]
call fcn.00404010
lea ecx, [ebp - 0x40]
call fcn.00404010
push 0
call fcn.0042a4a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret 0x1c