joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468410
Capabilities:
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4d2e21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esi], fcn.00465820
call fcn.004318f0
lea ebp, [esi + 0x18]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x24], edi
call fcn.00470bc0
lea ebx, [esi + 0x24]
mov ecx, ebx
call fcn.00470bc0
mov dword [esi + 0x4c], 0x4decc4
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 0x20
mov dword [esi + 0x60], 0x10
lea ecx, [esi + 0x64]
mov byte [esp + 0x24], 1
call fcn.00470bc0
mov dword [esi + 0x78], 0x4decc8
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], 0x20
mov dword [esi + 0x8c], 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.004379b0
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
or ebp, 0xffffffff
push ebp
push ebp
lea ecx, [esp + 0x1c]
mov byte [esi + 0x20], 1
call fcn.004379b0
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x74], edi
pop edi
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov byte [esi + 0x3c], 1
mov dword [esi + 0x48], 1
mov byte [esi + 0x90], 1
mov dword [esi + 0x94], 0x3f800000
mov eax, esi
pop esi
mov dword [ebx + 4], edx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x46dcb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d369e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00469650
xor edi, edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esi], 0x4df7a4
call fcn.004318f0
mov dword [esi + 0x30], 0x4df36c
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], 0x10
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 2
call fcn.00470bc0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], 9
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46dd50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d3c83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x4df7a4
mov eax, dword [esi + 0x3c]
xor ebx, ebx
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], 0x4df36c
jge 0x46dd9a
push ebx
call fcn.004354d0
add esp, 4
mov ebp, eax
push edi
mov edi, dword [esi + 0x38]
cmp edi, ebx
jge 0x46ddbe
mov ecx, edi
neg ecx
shl ecx, 4
mov edx, ecx
shl edi, 4
shr ecx, 2
add edi, ebp
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x34]
cmp eax, ebx
pop edi
je 0x46ddcf
push eax
call fcn.004352c0
add esp, 4
lea ecx, [esi + 0x1c]
mov dword [esi + 0x34], ebp
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov byte [esp + 0x18], bl
call fcn.00431a00
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00462960
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x470220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d3d45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi], 0x4df88c
mov eax, dword [esi + 0x3c]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x24], 2
mov dword [esi + 0x30], 0x4df368
mov dword [esp + 0xc], ebx
jge 0x470274
push ebp
call fcn.004354d0
mov ebx, eax
add esp, 4
mov dword [esp + 0xc], ebx
push edi
mov edi, dword [esi + 0x38]
cmp edi, ebp
jge 0x4702c6
mov ecx, edi
neg ecx
shl ecx, 4
shl edi, 4
mov edx, ecx
shr ecx, 2
add edi, ebx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esi + 0x38]
cmp edi, ebp
mov dword [esp + 0x14], edi
jge 0x4702c6
mov ecx, edi
shl ecx, 4
add ecx, ebx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x28], 4
je 0x4702ba
call fcn.004318f0
inc edi
mov byte [esp + 0x28], 2
mov dword [esp + 0x14], edi
js 0x4702a3
cmp dword [esi + 0x38], ebp
jle 0x4702e7
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [esi + 0x34]
add ecx, ebp
call fcn.00431a00
mov eax, dword [esi + 0x38]
inc edi
add ebp, 0x10
cmp edi, eax
jl 0x4702d0
xor ebp, ebp
mov eax, dword [esi + 0x34]
cmp eax, ebp
pop edi
je 0x4702f8
push eax
call fcn.004352c0
add esp, 4
lea ecx, [esi + 0x24]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebp
mov byte [esp + 0x24], 1
call fcn.00431a00
lea ecx, [esi + 0x1c]
mov byte [esp + 0x24], 0
call fcn.00431a00
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call fcn.00462960
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x489186
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4e2898
call fcn.0048cc18
mov edi, 0x94
mov eax, edi
call fcn.00489560
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x51bf94], ecx
mov eax, dword [esi + 4]
mov dword [0x51bfa0], eax
mov edx, dword [esi + 8]
mov dword [0x51bfa4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x51bf98], esi
cmp ecx, 2
je 0x4891e6
or esi, 0x8000
mov dword [0x51bf98], esi
shl eax, 8
add eax, edx
mov dword [0x51bf9c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x489221
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x489221
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x489239
cmp eax, 0x20b
je 0x489226
mov dword [ebp - 0x1c], esi
jmp 0x48924d
cmp dword [ecx + 0x84], 0xe
jbe 0x489221
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x489247
cmp dword [ecx + 0x74], 0xe
jbe 0x489221
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0048e30c
pop ecx
test eax, eax
jne 0x489261
push 0x1c
call fcn.00489162
pop ecx
call fcn.0048c09a
test eax, eax
jne 0x489272
push 0x10
call fcn.00489162
pop ecx
call fcn.0048e26a
mov dword [ebp - 4], esi
call fcn.0048e06c
test eax, eax
jge 0x48928b
push 0x1b
call fcn.0048913d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x51e454], eax
call fcn.0048df4a
mov dword [0x51bf84], eax
call fcn.0048dea8
test eax, eax
jge 0x4892b1
push 8
call fcn.0048913d
pop ecx
call fcn.0048dc75
test eax, eax
jge 0x4892c2
push 9
call fcn.0048913d
pop ecx
push 1
call fcn.0048971e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4892d8
push eax
call fcn.0048913d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0048dc18
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4892f9
movzx eax, word [ebp - 0x40]
jmp 0x4892fc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00420c20
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x48931a
push edi
call fcn.0048984b
call fcn.0048986d
jmp 0x48934c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0048cc53
ret
Function at 0x489788
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4e28d0
call fcn.0048cc18
push 8
call fcn.0048f3e9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x51bfd4], esi
jne 0x4897bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x51bfd0], esi
mov al, byte [ebp + 0x10]
mov byte [0x51bfcc], al
cmp dword [ebp + 0xc], edi
jne 0x489806
cmp dword [0x51e44c], edi
je 0x4897f6
mov eax, dword [0x51e448]
sub eax, 4
mov dword [0x51e448], eax
cmp eax, dword [0x51e44c]
jb 0x4897f6
mov eax, dword [eax]
cmp eax, edi
je 0x4897d7
call eax
jmp 0x4897d7
push 0x4f40f8
mov eax, 0x4f40f0
call fcn.00489706
pop ecx
push 0x4f4104
mov eax, 0x4f40fc
call fcn.00489706
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x489837
cmp dword [ebp + 0x10], edi
jne 0x489845
mov dword [0x51bfd4], esi
push dword [ebp + 8]
call fcn.004896c4
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x489844
push 8
call fcn.0048f334
pop ecx
ret
call fcn.0048cc53
ret

Function at 0x48d903
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x5144d8]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x514b08]
je 0x48d93a
inc eax
cmp eax, 0x13
jb 0x48d92b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x514b08]
jne 0x48da5d
mov eax, dword [0x51bf8c]
cmp eax, 1
je 0x48da38
cmp eax, edx
jne 0x48d96a
cmp dword [0x5144c4], 1
je 0x48da38
cmp ecx, 0xfc
je 0x48da5d
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48d9a0
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00493ff0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004904a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48d9d4
mov eax, edi
push eax
call fcn.004904a0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e3188
push edi
call fcn.004895a0
add esp, 0x10
push edi
call fcn.004904a0
push dword [esi + 0x514b0c]
mov ebx, eax
call fcn.004904a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00489560
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00493ff0
push edi
push ebx
call fcn.00494000
push 0x4e3168
push ebx
call fcn.00494000
push dword [esi + 0x514b0c]
push ebx
call fcn.00494000
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004966b0
add esp, 0x2c
jmp 0x48da5d
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x514b0c]
push dword [esi]
call fcn.004904a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00489550
add ebp, 0x90
leave
ret
Function at 0x48fbc4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x48fd9a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x51d320]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x48fd9a
test cl, 0x48
je 0x48fc2f
cmp byte [eax + 5], 0xa
je 0x48fc2f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48fc81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x48fc69
call fcn.0048a78a
mov dword [eax], 9
call fcn.0048a793
mov dword [eax], esi
jmp 0x48fc79
cmp eax, 0x6d
je 0x48fd9a
push eax
call fcn.0048a79c
pop ecx
or eax, 0xffffffff
jmp 0x48fd9c
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x48fd95
test eax, eax
je 0x48fca8
cmp byte [ebx], 0xa
jne 0x48fca8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x48fcb1
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x48fd8f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x48fd7f
cmp al, 0xd
je 0x48fce3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x48fd71
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x48fcfd
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x48fcf8
add dword [ebp + 0x10], 2
jmp 0x48fd51
mov dword [ebp + 0x10], eax
jmp 0x48fd6d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48fd25
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48fd6d
cmp dword [ebp - 0xc], 0
je 0x48fd6d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x48fd46
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x48fd51
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x48fd70
cmp ebx, dword [ebp + 0xc]
jne 0x48fd56
cmp byte [ebp - 1], 0xa
jne 0x48fd56
mov byte [ebx], 0xa
jmp 0x48fd70
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00496e67
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48fd71
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x48fcc7
jmp 0x48fd8f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x48fd8f
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x48fd9c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49018d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x5144d8]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4901c9
xor eax, eax
jmp 0x490333
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x51d320]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x490207
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00496e67
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4902a1
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x490304
jmp 0x49022b
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x490266
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x490257
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x490237
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4902c5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4902ce
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x490229
jmp 0x4902ce
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4902c5
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4902ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x49032e
cmp dword [ebp - 0x68], eax
je 0x490301
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4902f6
call fcn.0048a78a
mov dword [eax], 9
call fcn.0048a793
mov dword [eax], esi
jmp 0x490329
push dword [ebp - 0x68]
call fcn.0048a79c
pop ecx
jmp 0x490329
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x490316
cmp byte [edi], 0x1a
jne 0x490316
xor eax, eax
jmp 0x490331
call fcn.0048a78a
mov dword [eax], 0x1c
call fcn.0048a793
and dword [eax], 0
or eax, 0xffffffff
jmp 0x490331
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00489550
add ebp, 0x3a4
leave
ret
Function at 0x494be5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x494c13
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x494c1a
cmp ebx, dword [eax + 4]
jae 0x494c1a
xor eax, eax
jmp 0x494e0a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x494c2b
xor eax, eax
inc eax
jmp 0x494e09
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x494c41
cmp ecx, edx
jae 0x494d86
cmp dword [eax + 4], 0
je 0x494c4a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x494c32
cmp dword [ebp + 8], 0
je 0x494c6c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x494d86
cmp eax, esi
jae 0x494d86
mov eax, dword [0x51c280]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x494c91
cmp dword [esi*4 + 0x51c288], edi
je 0x494d8a
inc esi
cmp esi, eax
jl 0x494c7f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x494e06
cmp dword [ebp - 8], 0x1000000
jne 0x494e06
test byte [ebp - 0xc], 0xcc
je 0x494d0f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x494e06
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x494e06
cmp word [eax + 0x18], 0x10b
jne 0x494e06
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x494e06
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x494d0f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x494d0f
test byte [ecx + 0x27], 0x80
jne 0x494d86
push 1
push 0x51c2c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x494c23
mov ecx, dword [0x51c280]
test ecx, ecx
mov edx, ecx
jle 0x494d43
lea eax, [ecx*4 + 0x51c284]
cmp dword [eax], edi
je 0x494d43
dec edx
sub eax, 4
test edx, edx
jg 0x494d37
test edx, edx
jne 0x494d74
push 0xf
pop ebx
cmp ecx, ebx
jg 0x494d50
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x494d68
lea eax, [edx*4 + 0x51c288]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x494d56
cmp ecx, 0x10
jge 0x494d74
inc ecx
mov dword [0x51c280], ecx
push 0
push 0x51c2c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x494c23
xor eax, eax
jmp 0x494e09
test esi, esi
jle 0x494c23
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x51c2c8
call ebx
test eax, eax
jne 0x494c23
cmp dword [esi*4 + 0x51c288], edi
je 0x494de0
mov eax, dword [0x51c280]
lea esi, [eax - 1]
test esi, esi
jl 0x494dce
cmp dword [esi*4 + 0x51c288], edi
je 0x494dca
dec esi
jns 0x494dbe
test esi, esi
jge 0x494dde
cmp eax, 0x10
jge 0x494dd9
inc eax
mov dword [0x51c280], eax
lea esi, [eax - 1]
jmp 0x494de0
je 0x494df8
xor ecx, ecx
test esi, esi
jl 0x494df8
lea eax, [ecx*4 + 0x51c288]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x494de6
push 0
push 0x51c2c8
call ebx
jmp 0x494c23
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4966b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x51c344], ebx
push esi
push edi
jne 0x496730
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49676b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e8738
push edi
call esi
test eax, eax
mov dword [0x51c344], eax
je 0x49676b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x51c348], eax
call esi
cmp dword [0x51bf94], 2
mov dword [0x51c34c], eax
jne 0x496730
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x51c354], eax
je 0x496730
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x51c350], eax
mov eax, dword [0x51c350]
test eax, eax
je 0x496775
call eax
test eax, eax
je 0x49675c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x51c354]
test eax, eax
je 0x49675c
test byte [ebp - 8], 1
jne 0x496775
cmp dword [0x51bfa0], 4
jb 0x49676f
or byte [ebp + 0x12], 0x20
jmp 0x496794
xor eax, eax
jmp 0x4967a4
or byte [ebp + 0x12], 4
jmp 0x496794
mov eax, dword [0x51c348]
test eax, eax
je 0x496794
call eax
mov ebx, eax
test ebx, ebx
je 0x496794
mov eax, dword [0x51c34c]
test eax, eax
je 0x496794
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x51c344]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4973a7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00489560
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x497442
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x51bf94]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x497442
cmp eax, 1
je 0x497463
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x497442
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x49740f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x49743e
xor eax, eax
inc eax
jmp 0x497482
cmp edi, eax
jae 0x497446
xor eax, eax
jmp 0x497482
cmp eax, esi
jae 0x49744d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x51bf94]
jmp 0x497466
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret