joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fafc8
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x554200
call fcn.00523837
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.005009b2
push 0x15c
call fcn.00422d42
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4fb00c
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.0050216d
jmp 0x4fb00e
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.00500984
call fcn.004322fa
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4fb1a8
cmp dword [edi + 4], ebx
jle 0x4fb1a8
lea ecx, [ebp - 0x118]
call fcn.00401760
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4fb18c
lea ecx, [ebp - 0x11c]
call fcn.00401760
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4fb0dd
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x575260
push eax
call fcn.004016b0
add esp, 0xc
jmp 0x4fb10f
jge 0x4fb0fd
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.004016b0
add esp, 0x10
jmp 0x4fb10f
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00409020
push 0x15c
call fcn.00422d42
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4fb133
mov ecx, eax
call fcn.004d3e3d
mov esi, eax
jmp 0x4fb135
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00430bc1
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.00500984
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401720
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401720
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4fb076
call fcn.005238ba
ret
Function at 0x4ffb14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ffb2c
mov edi, dword [esi + 0xc]
jmp 0x4ffb6c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ffb45
call fcn.004334a1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ffb5a
call fcn.004334a1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ffb6c
call fcn.004334a1
call fcn.004322fa
cmp dword [eax + 0x3c], 0
je 0x4ffb81
push edi
mov ecx, ebx
call fcn.004fe982
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ffa3a
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4ffb9f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ffbab
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x506f1c
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x506f66
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x506f66
call fcn.005067a8
test eax, eax
je 0x506f66
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00408900
xor eax, eax
inc eax
jmp 0x50717e
cmp dword [ebx + 4], 0x100
push edi
jne 0x507175
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x507063
push 0x11
call edi
test ax, ax
jl 0x507063
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x507063
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x506fd6
cmp eax, 0x20
jbe 0x507063
cmp eax, 0x24
jbe 0x506fc9
cmp eax, 0x26
je 0x506fc9
cmp eax, 0x28
jne 0x507063
call fcn.005067a8
test eax, eax
je 0x507063
mov ecx, esi
call fcn.0043105c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.005067a8
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x50700b
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00408900
jmp 0x507170
call fcn.0042b7c4
test eax, eax
je 0x507170
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0042b7fc
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x507039
xor edi, edi
jmp 0x50703c
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0042b7c4
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x507170
mov eax, dword [ebx + 8]
sub eax, 9
je 0x50713f
sub eax, 0x12
je 0x507117
sub eax, 0xb
je 0x507085
dec eax
dec eax
jne 0x507175
push 0x12
call edi
test ax, ax
jl 0x507175
push 0x11
call edi
test ax, ax
jl 0x507175
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x507175
call fcn.005067a8
test eax, eax
jne 0x507170
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.0050675c
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0042a3f1
test eax, eax
je 0x507170
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0042a3f1
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x507170
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x50712b
push 0
call fcn.0050675c
mov ecx, esi
call fcn.0042af47
test eax, eax
je 0x507175
mov ecx, esi
call fcn.0042af47
jmp 0x507169
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0042a3f1
test eax, eax
je 0x507175
push dword [esi + 0x20]
call edi
push eax
call fcn.0042a3f1
push 0
push esi
mov ecx, eax
call fcn.0042d963
mov ecx, eax
call fcn.0043105c
xor eax, eax
inc eax
jmp 0x50717d
push ebx
mov ecx, esi
call fcn.0042833a
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x5143fb
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x54c5c4
call fcn.005237ce
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x5144d1
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x5144d1
cmp ebx, 0x43
je 0x51443d
cmp ebx, 0x2d
jne 0x5144d1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5144d1
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00401760
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.004016b0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401720
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00494874
call fcn.005238a6
ret 4

Function at 0x51c6ec
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x51c72c
test edi, edi
jl 0x51c72c
cmp al, 0x20
je 0x51c721
cmp word [ebp + 8], 0x71
jne 0x51c72c
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x521840
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ad634]
jne 0x52184a
repz ret
jmp fcn.005288e4
Function at 0x535e58
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.0052b60a
and dword [ebp - 4], 0
cmp dword [0x5ba428], 0
mov ebx, eax
jne 0x535f09
push 0x55f3a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x535fba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5806d0
push edi
call esi
test eax, eax
je 0x535fba
push eax
call fcn.0052b598
mov dword [esp], 0x5806c0
push edi
mov dword [0x5ba428], eax
call esi
push eax
call fcn.0052b598
mov dword [esp], 0x5806ac
push edi
mov dword [0x5ba42c], eax
call esi
push eax
call fcn.0052b598
mov dword [esp], 0x580690
push edi
mov dword [0x5ba430], eax
call esi
push eax
call fcn.0052b598
pop ecx
mov dword [0x5ba438], eax
test eax, eax
je 0x535f09
push 0x580678
push edi
call esi
push eax
call fcn.0052b598
pop ecx
mov dword [0x5ba434], eax
mov eax, dword [0x5ba434]
cmp eax, ebx
je 0x535f61
cmp dword [0x5ba438], ebx
je 0x535f61
push eax
call fcn.0052b613
push dword [0x5ba438]
mov esi, eax
call fcn.0052b613
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x535f61
test edi, edi
je 0x535f61
call esi
test eax, eax
je 0x535f58
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x535f58
test byte [ebp - 0xc], 1
jne 0x535f61
or dword [ebp + 0x10], 0x200000
jmp 0x535f9a
mov eax, dword [0x5ba42c]
cmp eax, ebx
je 0x535f9a
push eax
call fcn.0052b613
pop ecx
test eax, eax
je 0x535f9a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x535f9a
mov eax, dword [0x5ba430]
cmp eax, ebx
je 0x535f9a
push eax
call fcn.0052b613
pop ecx
test eax, eax
je 0x535f9a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5ba428]
call fcn.0052b613
pop ecx
test eax, eax
je 0x535fba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x535fbc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53e830
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x556e78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ad634]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x25c], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
jne 0x53e8a8
call fcn.004322fa
add eax, 0x74
mov ecx, eax
call fcn.00438ff8
mov edi, dword [eax + 0x3c]
mov eax, dword [edi + 0x20]
push 0x1f4
push 0
push 0x418
push eax
call ebx
mov ecx, dword [edi + 0x20]
push 0x2710
push 2
push 0x403
push ecx
call ebx
mov dword [esi + 0x25c], 1
mov ebp, dword [esp + 0x44]
cmp dword [ebp + 4], 0
jne 0x53e8bc
mov eax, 1
jmp 0x53ea53
mov edx, dword [esp + 0x48]
mov dword [edx], 0
call fcn.0042a30d
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x20]
push 0x1039
push edx
mov dword [esp + 0x30], eax
call ebx
test byte [esp + 0x24], 4
mov ebx, dword [esp + 0x2c]
mov edi, eax
je 0x53ea51
call fcn.00422db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x53e935
push 0x80004005
call fcn.004016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
push 0
push 0x584680
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0
call fcn.00409310
push edi
mov ecx, esi
call fcn.0042e314
test eax, eax
je 0x53e97a
imul ebx, ebx, 0x64
lea ecx, [ebx + eax + 0x18]
push ecx
lea ecx, [esp + 0x48]
call fcn.00409020
mov edi, dword [esp + 0x44]
cmp dword [edi - 0xc], 0
je 0x53ea31
cmp dword [ebp + 8], 0xfffffdf8
jne 0x53e9d8
mov eax, dword [esi + 0x264]
test eax, eax
je 0x53e9a4
push eax
call fcn.00422d71
add esp, 4
mov eax, dword [edi - 0xc]
inc eax
push eax
call fcn.00422d7c
add esp, 4
mov dword [esi + 0x264], eax
mov ecx, dword [edi - 0xc]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi - 0xc]
mov edx, dword [esi + 0x264]
mov byte [eax + edx], 0
mov eax, dword [esi + 0x264]
jmp 0x53ea2e
mov eax, dword [esi + 0x260]
test eax, eax
je 0x53e9eb
push eax
call fcn.00422d71
add esp, 4
mov eax, dword [edi - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00422d7c
mov dword [esi + 0x260], eax
mov ecx, dword [edi - 0xc]
push ecx
push edi
push eax
call fcn.004684f3
mov eax, dword [edi - 0xc]
mov ecx, dword [esi + 0x260]
add esp, 0x10
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi + 0x260]
mov dword [ebp + 0xc], eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x38], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53ea51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc
Function at 0x540360
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
jl 0x540427
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1200
push eax
call ebp
cmp edi, eax
jge 0x540427
xor eax, eax
cmp edi, dword [esi + 0x110]
jge 0x540422
mov ecx, dword [esi + 0x10c]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x540429
mov ecx, dword [ecx + 4]
cmp ecx, ebx
je 0x540429
add ecx, 0x18
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
push eax
push edi
push 0x1207
push ecx
call ebp
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
sub eax, ecx
sub eax, 0xd
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
add eax, ecx
mov dword [esp + 0x14], eax
add eax, 0xd
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call fcn.004241ad
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x546880
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5575a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5ad634]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x18]
call fcn.00433cc1
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0043311b
mov ecx, dword [esi + 0x54]
mov edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x148]
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00434036
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
test byte [esi + 0x64], 4
je 0x54690f
add dword [eax], 0xe
push edi
lea ecx, [esp + 0x18]
call fcn.0043314e
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00433d15
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc
Function at 0x430ba0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
jmp 0x430bba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430bc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430bb0
mov eax, 1
add ebx, ebx
jne 0x430bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430bc8
jne 0x430be4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430bc8
xor ecx, ecx
sub eax, 3
jb 0x430bf8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430c6a
mov ebp, eax
add ebx, ebx
jne 0x430c03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430c10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x430c34
inc ecx
add ebx, ebx
jne 0x430c20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x430c15
jne 0x430c31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430c15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x430c54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x430c45
jmp 0x430bb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x430c54
add edi, ecx
jmp 0x430bb6
pop esi
mov edi, esi
mov ecx, 0xa54
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x430c72
cmp byte [edi], 0x11
jne 0x430c72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x430c77
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x430ce6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30044]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x430ca4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3004c]
or eax, eax
je 0x430ce0
mov dword [ebx], eax
add ebx, 4
jmp 0x430cc1
call dword [esi + 0x30048]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x430d17
cmp al, 0xef
ja 0x430d0a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x430cec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x430cf9
mov ebp, dword [esi + 0x30050]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x430d4b
sub esp, 0xffffff80
jmp 0x4091ff
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e960]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41e962], bx
je 0x401027
call eax
mov dword [0x41e960], eax
push eax
call fcn.00402490
push eax
call fcn.0040952e
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402490
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.0040952e
pop ecx
call fcn.00404936
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401893
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.004136c9
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00401403
push 0x5c
mov ecx, edi
call fcn.004017a8
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40133c
push edi
push edi
mov dword [0x41e964], esi
mov dword [0x41e96c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41e9c4], 2
mov dword [0x41e968], eax
je 0x4018f0
call fcn.00408cb6
push 0xffffffffffffffff
push dword [0x41e968]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41e96c]
cmp eax, edi
mov dword [0x41ea58], edi
je 0x40193f
cmp eax, 1
je 0x401933
cmp eax, 2
je 0x40192f
cmp eax, 3
je 0x40192b
cmp eax, 0x67
jle 0x401926
cmp eax, 0x6b
jle 0x4019a3
push eax
push 0x14
jmp 0x401976
push 0x12
jmp 0x401935
push 0x13
jmp 0x401935
push 0x11
push edi
call fcn.00409612
pop ecx
pop ecx
jmp 0x4019a3
cmp dword [0x41ea60], edi
jne 0x4019a3
lea eax, [ebp + 8]
push eax
push dword [0x41e968]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x401966
cmp ecx, edi
jne 0x401966
xor eax, eax
jmp 0x4019a8
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x401979
push ecx
push 0x21
push edi
jmp 0x40199b
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40198d
cmp dword [0x41e9c8], 0xffffffff
je 0x4019a3
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409612
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x402757
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4027b4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4029fa
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402a0a
xor eax, eax
leave
ret
test byte [0x41e9c8], 2
mov dword [ebp - 0x40], 0x40
jne 0x402a5f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402a5f
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402a5f
jb 0x402a3b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402a5f
push 0x2b
call fcn.00402490
push eax
call fcn.004095a5
cmp eax, 1
pop ecx
pop ecx
je 0x402a58
or dword [0x41e9c8], 0xffffffff
jmp 0x402a06
or dword [0x41e9c8], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402e9c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004014eb
cmp dword [ebp - 4], 1
jg 0x402eba
push 1
lea ecx, [ebp - 0xc]
call fcn.004011b7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402ede
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402f15
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402ad5
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401184
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0040143c
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret