joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ead53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
test eax, 0x80000000
je 0x4ead70
mov edx, eax
and edx, 0x7fffffff
mov dword [ebp - 0xc], edx
jmp 0x4ead75
xor edx, edx
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x3c]
push edi
mov esi, dword [eax + ebx + 0x78]
lea eax, [eax + ebx + 0x18]
add esi, ebx
mov eax, dword [eax + 0x64]
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
add edi, ebx
add ecx, ebx
add eax, ebx
test edx, edx
mov dword [ebp - 0x10], eax
je 0x4eadb5
mov eax, dword [esi + 0x10]
imul eax, eax, 0x3fffffff
add eax, edx
jmp 0x4eadf3
and dword [ebp + 8], 0
cmp dword [esi + 0x18], 0
jbe 0x4eadfb
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.004eae21
pop ecx
test eax, eax
pop ecx
jne 0x4eade9
inc dword [ebp + 8]
add dword [ebp - 8], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x4eadc2
jmp 0x4eadfb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], 0
je 0x4eae19
cmp dword [ebp - 4], esi
jbe 0x4eae19
mov eax, dword [ebp - 0x14]
add eax, esi
cmp dword [ebp - 4], eax
jae 0x4eae19
push dword [ebp - 0xc]
push ebx
call dword [ebp + 0x10]
jmp 0x4eae1c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4eae4b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push eax
push esi
push edi
mov ecx, edi
sub ecx, eax
mov esi, eax
mov edi, esi
lodsb al, byte [esi]
xor al, 0x4c
stosb byte es:[edi], al
loop 0x4eae57
pop edi
pop esi
pop eax
pop ecx
ret

Function at 0x4eae62
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80

Function at 0x41101e
Capabilities:
Terminate process

Disassembly:
jmp 0x4133d0
jmp fcn.00413410
cmp ecx, dword [0x417060]
jne 0x4133da
repz ret
jmp 0x411096
Function at 0x4023c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402414
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402410
lea ebx, [ebx]
cmp esi, eax
jae 0x402414
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402400
cmp esi, eax
jb 0x40241a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405550
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x42eb5c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x4055e4
push 0x426470
push 4
push eax
call fcn.004054f3
add esp, 0xc
push ebx
push edi
call fcn.00412fc0
mov edi, dword [eax]
call fcn.00412fc0
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00413085
add esp, 0x14
mov ebx, eax
call fcn.00412fc0
cmp dword [eax], 0
je 0x4055ff
call fcn.00412fc0
mov eax, dword [eax]
cmp eax, 0xc
je 0x4055f8
cmp eax, 0x16
je 0x4055da
cmp eax, 0x22
jne 0x405606
push 0x80070057
call fcn.00401100
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x405585
jmp 0x405622
push 0x8007000e
jmp 0x4055df
call fcn.00412fc0
mov dword [eax], edi
cmp ebx, 0xffffffff
je 0x40561e
cmp ebx, esi
jae 0x40561e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x405620
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411aba
leave
ret
Function at 0x40696f
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x423140
call fcn.00412f2c
sub esp, 0x124
mov eax, dword [0x42eb5c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x406a7d
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x406a51
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00404aa0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0040696f
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401240
test bl, bl
jne 0x406a51
or dword [ebp - 4], 0xffffffff
jmp 0x4069bc
cmp esi, 0x103
je 0x406a61
cmp esi, 0x3f2
jne 0x406a71
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411aba
leave
ret 8
Function at 0x407922
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4231c5
call fcn.00412f2c
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
call fcn.00408596
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x407974
call fcn.00408596
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x407985
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x407992
or eax, 0xffffffff
jmp 0x407ae6
mov ecx, esi
call fcn.00407446
mov dword [ebp - 0x14], eax
call fcn.0040acff
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x407a10
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x407a10
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407a10
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040551b
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x407a10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x407a10
mov ecx, ebx
call fcn.0040da2c
test eax, eax
je 0x407a10
push 0
mov ecx, ebx
call fcn.0040da47
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040c724
push dword [ebp - 0x14]
call fcn.0040ac57
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040771e
xor edi, edi
cmp eax, edi
je 0x407a6d
test byte [esi + 0x3c], 0x10
je 0x407a57
push 4
pop edi
mov ecx, esi
call fcn.0040d9ad
test ax, 0x100
je 0x407a4d
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040a821
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x407a6d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040daae
or dword [ebp - 4], 0xffffffff
jmp 0x407a90
cmp dword [ebp - 0x28], edi
je 0x407a9e
push 1
mov ecx, ebx
call fcn.0040da47
cmp dword [ebp - 0x2c], edi
je 0x407aae
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x407ac7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x407ac7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00407480
cmp dword [esi + 0x58], edi
je 0x407ae3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d891
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40d8d4
call fcn.00408596
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d8d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40d8ef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040d448
test ebx, ebx
mov esi, eax
je 0x40d8ed
test edi, edi
je 0x40d8ed
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40ec3f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x42360a
call fcn.00412f2c
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
mov dword [ebp - 0x10], esp
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x40ed60
cmp eax, dword [edi + 0xc]
jge 0x40ed60
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x40ecb4
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x40ed49
cmp dword [ebp + 0xc], ebx
je 0x40ed49
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x40ecf9
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x40ed09
push 0x10
mov dword [ebp - 4], ebx
call fcn.0040e8e7
cmp eax, ebx
je 0x40eccc
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x40ecce
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0040eb1e
jmp 0x40ec9d
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x40ed1b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00404dd2
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00412b60
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40ed5b
cmp ecx, dword [esi + 8]
jge 0x40ed5b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 0x14]
jmp 0x40ed61
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40ee24
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40ee52
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40ee70
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040ed8e
jmp 0x40ee70
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ee70
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040ed8e
test edi, edi
mov eax, edi
jne 0x40ee5a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x431c10]
test ecx, ecx
je 0x40ef36
jmp 0x40ee23
ret 8

Function at 0x411aba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42eb5c]
jne 0x411acb
test ecx, 0xffff0000
jne 0x411acb
ret
jmp fcn.00416634
Function at 0x412c3f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x42b870
call fcn.00412e54
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x412c87
push 0x12
call fcn.00412bda
pop ecx
jmp 0x412e15
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x412ca5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x412e15
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x412cd7
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x431e70], esi
mov dword [0x431e78], eax
mov dword [0x431e7c], ecx
mov dword [0x431e80], edx
mov dword [0x431e74], edi
call fcn.00412bfe
mov dword [ebp - 0x20], eax
call fcn.00412a3f
xor ebx, ebx
inc ebx
push ebx
call fcn.004161f6
pop ecx
test eax, eax
jne 0x412d24
push 0x1c
call fcn.00412bda
pop ecx
call fcn.00417a9e
test eax, eax
jne 0x412d35
push 0x10
call fcn.00412bda
pop ecx
call fcn.00412827
call fcn.00418f85
mov dword [ebp - 4], ebx
call fcn.0041a644
test eax, eax
jge 0x412d53
push 0x1b
call fcn.004127c1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x433904], eax
call fcn.0041a50f
mov dword [0x431eb4], eax
call fcn.0041a456
test eax, eax
jge 0x412d79
push 8
call fcn.004127c1
pop ecx
call fcn.0041a1dc
test eax, eax
jge 0x412d8a
push 9
call fcn.004127c1
pop ecx
push ebx
call fcn.004128df
pop ecx
test eax, eax
je 0x412d9c
push eax
call fcn.004127c1
pop ecx
call fcn.0041a17f
test byte [ebp - 0x44], bl
je 0x412dac
movzx ecx, word [ebp - 0x40]
jmp 0x412daf
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.00422d7a
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x412dcc
push eax
call fcn.004129ff
call fcn.00412a21
jmp 0x412e01
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x412e1a
mov eax, 0xff
call fcn.00412e8f
ret
Function at 0x416250
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, dword [edi*8 + 0x42ee68]
je 0x416268
inc edi
cmp edi, 0x16
jl 0x416259
cmp edi, 0x16
jae 0x4163e7
push ebx
push 3
call fcn.0041d36b
cmp eax, 1
pop ecx
je 0x4163b8
push 3
call fcn.0041d36b
test eax, eax
pop ecx
jne 0x41629c
cmp dword [0x42eb90], 1
je 0x4163b8
cmp esi, 0xfc
je 0x4163e6
push ebp
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x432030
push ebp
call fcn.00413004
add esp, 0xc
test eax, eax
je 0x4162d5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004164ca
add esp, 0x14
push 0x104
mov esi, 0x43204a
push esi
push 0
mov byte [0x43214e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416319
push str._program_name_unknown_
push 0x2fa
push esi
call fcn.00413004
add esp, 0xc
test eax, eax
je 0x416319
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004164ca
add esp, 0x14
push esi
call fcn.00412ea0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41635e
push esi
call fcn.00412ea0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x432344
push 0x427da4
sub ecx, eax
push ecx
push eax
call fcn.0041492a
add esp, 0x14
test eax, eax
je 0x41635e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004164ca
add esp, 0x14
jmp 0x416360
xor esi, esi
push 0x427da0
push ebx
push ebp
call fcn.00414c8b
add esp, 0xc
test eax, eax
je 0x416380
push esi
push esi
push esi
push esi
push esi
call fcn.004164ca
add esp, 0x14
push dword [edi*8 + 0x42ee6c]
push ebx
push ebp
call fcn.00414c8b
add esp, 0xc
test eax, eax
je 0x4163a2
push esi
push esi
push esi
push esi
push esi
call fcn.004164ca
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041d222
add esp, 0xc
pop ebp
jmp 0x4163e6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
test ebx, ebx
je 0x4163e6
push 0
lea eax, [esp + 0x10]
push eax
lea esi, [edi*8 + 0x42ee6c]
push dword [esi]
call fcn.00412ea0
pop ecx
push eax
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x416770
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4167aa
lea esp, [esp]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4167a0
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4167ac
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x416790
xor eax, eax
pop esi
pop ebx
ret
Function at 0x4167b0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebp
push esi
xor eax, eax
or edx, 0xffffffff
cmp ecx, 0xffffffff
push edi
je 0x416895
mov ebp, 0x20000000
jmp 0x4167d0
mov esi, dword [esp + 0x14]
lea ecx, [ecx + ecx*2]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 8]
sub ecx, ebx
and ecx, 0xfffff000
cmp ecx, edx
mov dword [esp + 0xc], esi
je 0x416853
test eax, eax
je 0x416801
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x416801
mov edi, dword [eax + 8]
add edi, edx
cmp ecx, edi
jb 0x416851
mov eax, dword [ebx + 0x3c]
movzx edi, word [eax + ebx + 6]
movzx edx, word [eax + ebx + 0x14]
add eax, ebx
xor esi, esi
test edi, edi
lea edx, [edx + eax + 0x18]
jbe 0x41683a
lea ebx, [ebx]
mov eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x416830
mov ebp, dword [edx + 8]
add ebp, eax
cmp ecx, ebp
jb 0x416841
add esi, 1
add edx, 0x28
cmp esi, edi
jb 0x416820
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ebp, 0x20000000
test dword [edx + 0x24], ebp
mov eax, edx
je 0x41683a
mov esi, dword [esp + 0xc]
mov edx, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41688a
sub ecx, ebx
and ecx, 0xfffff000
mov edi, ecx
cmp edi, edx
je 0x41688a
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x416878
mov edx, dword [eax + 8]
add edx, ecx
cmp edi, edx
jb 0x416888
mov eax, ebx
call fcn.00416770
test eax, eax
je 0x41683a
test dword [eax + 0x24], ebp
je 0x41683a
mov edx, edi
mov ecx, dword [esi]
cmp ecx, 0xffffffff
jne 0x4167d0
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x41d222
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x4326f4], ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d2ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41d25a
xor eax, eax
jmp 0x41d366
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4287c0
push edi
call esi
cmp eax, ebx
mov dword [0x4326f4], eax
je 0x41d253
push 0x4287b0
push edi
call esi
push 0x42879c
push edi
mov dword [0x4326f8], eax
call esi
mov dword [0x4326fc], eax
lea eax, [ebp - 8]
push eax
call fcn.0041286c
test eax, eax
pop ecx
je 0x41d2a6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004164ca
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d2ca
push str.GetUserObjectInformationA
push edi
call esi
cmp eax, ebx
mov dword [0x432704], eax
je 0x41d2ca
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x432700], eax
mov eax, dword [0x432700]
cmp eax, ebx
je 0x41d331
cmp dword [0x432704], ebx
je 0x41d331
call eax
cmp eax, ebx
je 0x41d2fe
lea ecx, [ebp - 0x10]
push ecx
push 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 1
push eax
call dword [0x432704]
test eax, eax
je 0x41d2fe
test byte [ebp - 0x14], 1
jne 0x41d331
lea eax, [ebp - 0xc]
push eax
call fcn.004128a3
test eax, eax
pop ecx
je 0x41d319
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004164ca
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41d328
or dword [ebp + 0x10], 0x200000
jmp 0x41d354
or dword [ebp + 0x10], 0x40000
jmp 0x41d354
mov eax, dword [0x4326f8]
cmp eax, ebx
je 0x41d354
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d354
mov eax, dword [0x4326fc]
cmp eax, ebx
je 0x41d354
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [0x4326f4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422a5c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42eb5c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004229f1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00412b60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x422aab
cmp dword [ebp - 0x1c], 5
jb 0x422ac3
jmp 0x422abf
cmp dword [ebp - 0x10], 1
jne 0x422ac3
cmp dword [ebp - 0x1c], 4
ja 0x422abf
jne 0x422ac3
cmp dword [ebp - 0x18], 0
jbe 0x422ac3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42918c
call fcn.004228c8
test eax, eax
jge 0x422ae4
mov byte [0x42ff60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411aba
add ebp, 0x78
leave
ret