joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549e57
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x59e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
push dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x20]
push eax
push 0x59ed18
call fcn.00468170
add esp, 0xc
movzx eax, ax
mov ecx, edi
push edi
push eax
push 0
push 0x80
push 0x82000000
push 0
push 0
push dword [ebp + 8]
call fcn.004c2ee0
mov dword [edi + 4], eax
test eax, eax
je 0x4c2d7a
push 0x74
call fcn.00509b07
mov esi, eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 0
push 0x74
push 0
push esi
call fcn.0050c400
add esp, 0x10
mov dword [esi + 4], 0
call fcn.004cefe0
lea eax, [esi + 8]
mov dword [ebp + 8], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [ebp - 4], 3
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 5
xor eax, eax
movups xmm0, xmmword [0x552ac8]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [0x552ac8]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0xfefefefe
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [0x552ac8]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [0x552ac8]
movups xmmword [esi + 0x38], xmm0
mov dword [esi + 0x50], vtable.RC::IERenderClientSiteDelegate.0
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov word [esi + 0x68], ax
mov byte [esi + 0x6a], al
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.RC::IERenderView.2.0
mov dword [esi + 0x24], vtable.RC::IERenderView.0
mov dword [esi + 0x50], vtable.RC::IERenderView.1.0
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 4]
push 0
push 0
push esi
push 0x4d0ef0
push 0
mov dword [edi + 0x28], esi
push 0
mov dword [esi + 0x54], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1c
mov dword [esi + 0x5c], eax
call fcn.00509b07
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 6
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx], vtable.RC::IEExternal.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x64], ecx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d02b0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
cmp dword [esp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4d036a
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d03fa
push esi
mov dword [ebx + 0x58], esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4d03fa
push dword [ebx + 4]
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x4d03fa
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0x39ffffff
or ecx, 0x46000000
cmp eax, ecx
je 0x4d0322
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebx + 0x58]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetParent]
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push 0
push dword [ebx + 0x58]
call esi
push eax
push 0
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0x57
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push ebp
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push dword [ebx + 0x58]
call esi
push 0
push edi
mov ebp, eax
call esi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, eax
push 0
push ebp
push esi
call edi
test eax, eax
je 0x4d03aa
nop
push 0
push ebp
push esi
call edi
test eax, eax
jne 0x4d03a0
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0x39ffffff
or ecx, 0x80000000
pop ebp
cmp eax, ecx
je 0x4d03df
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push 0
push 0
push 0x7d00
push 0x7d00
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x4d4a00
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov ecx, dword [esp + 8]
je 0x4d4a33
test ecx, ecx
je 0x4d4a33
cmp dword [ecx + 4], 0x100
jne 0x4d4a33
mov eax, dword [ecx + 8]
cmp eax, 0x4c
je 0x4d4a42
add eax, 0xffffffb2
cmp eax, 1
jbe 0x4d4a42
cmp dword [ecx + 4], 0x104
jne 0x4d4a47
cmp dword [ecx + 8], 0x12
jne 0x4d4a47
xor eax, eax
ret 0x10
mov eax, 1
ret 0x10
Function at 0x4df640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
mov edi, ecx
call fcn.004df5e0
test eax, eax
je 0x4df653
mov eax, 0xfffffffe
pop edi
ret
push esi
mov esi, dword [edi + 0x1c]
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], 0
test eax, eax
jns 0x4df68c
neg eax
mov dword [esi + 0x18], eax
cmp eax, 2
jne 0x4df696
lea ecx, [eax + 0x37]
jmp 0x4df6a5
test eax, eax
mov ecx, 0x71
mov edx, 0x2a
cmovne ecx, edx
mov dword [esi + 4], ecx
cmp eax, 2
jne 0x4df6b1
xor eax, eax
jmp 0x4df6bf
push 0
xor edx, edx
xor ecx, ecx
call fcn.004e18e0
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, esi
lea eax, [esi + 0x94]
mov dword [esi + 0x28], 0
mov dword [esi + 0xb18], eax
lea eax, [esi + 0x988]
mov dword [esi + 0xb24], eax
lea eax, [esi + 0xa7c]
mov dword [esi + 0xb30], eax
xor eax, eax
mov dword [esi + 0xb20], 0x564030
mov dword [esi + 0xb2c], 0x5640d0
mov dword [esi + 0xb38], 0x56401c
mov word [esi + 0x16b8], ax
mov dword [esi + 0x16bc], eax
call fcn.004e2670
mov esi, dword [edi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0050c400
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x5619ca]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x5619c8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x5619cc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x5619ce]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop edi
ret
Function at 0x4e23c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4e23cb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004e23e0
Function at 0x4e85a0
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x4e85ba
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4e85ba
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x4e85ba
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4f5040
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4f513a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x4f5133
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x4f5119
call ebx
cmp dword [ebp - 0x14], eax
jne 0x4f5119
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x4f5119
mov edx, dword [esi]
test edx, edx
jne 0x4f50e2
push 0x200
push edx
push dword [0x5a3e8c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x4f5133
jmp 0x4f510d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x4f510d
shl eax, 3
push eax
push edx
push 0
push dword [0x5a3e8c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x4f5133
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4f50a1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x4f517f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x4f517f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x4f5179
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.004f4ed0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x4f5146
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00509af6
mov esp, ebp
pop ebp
ret

Function at 0x4f5190
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x4f51de
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x4f51ce
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x4f51c5
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x4f51a2
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x5a3e8c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x4f51e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x5a52a0]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x4f51fc
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4f5224
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x4f523f
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f5270
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x5a52a8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4f534d
mov eax, dword [0x5a52a0]
add eax, 0x14
test byte [eax], 2
je 0x4f52aa
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x4f5295
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x4f534d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004f5040
mov ecx, dword [0x5a52a8]
add esp, 4
cmp esi, ecx
jae 0x4f52fb
imul edi, esi, 0x2c
mov eax, dword [0x5a52a0]
test byte [edi + eax + 0x14], 2
jne 0x4f52f0
mov ecx, esi
call fcn.004f51e0
mov ebx, eax
test ebx, ebx
jne 0x4f52f8
mov ecx, dword [0x5a52a8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x4f52d1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f534c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x4f533d
mov ebx, eax
jmp 0x4f5310
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x4f5331
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x4f5310
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x5a3e8c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f6230
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d8db
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x59e074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4f6269
call fcn.004f63d0
cmp byte [0x5a4434], 0
jne 0x4f627c
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x4f63ac
mov eax, dword [esi]
test eax, eax
jne 0x4f62fc
push 8
call fcn.00509b07
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.00509b07
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.0050c400
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4f62eb
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4f639b
call fcn.004106a0
test al, al
jne 0x4f6336
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.00410820
test al, al
je 0x4f639b
mov ecx, dword [esi]
add ecx, 4
call fcn.004101c0
call fcn.004106a0
test al, al
je 0x4f639b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00404610
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.0041fe20
mov ecx, eax
call fcn.0041fee0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00404600
test edi, edi
je 0x4f639b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f639b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4f639b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4f63aa
mov dword [eax], reloc.gdiplus.dll_Ordinal_1
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00509af6
mov esp, ebp
pop ebp
ret 4
Function at 0x4f7770
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54db7f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.004f7eb0
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00404600
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00404600
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00404600
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00404600
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00404600
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00404600
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4f8480
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dd1f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x59e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00404600
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00404600
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00404600
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00404600
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00404600
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00404600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f9760
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54debf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00404ba0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00404ba0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00404ba0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00404ba0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00404ba0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00404ba0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4fc650
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x59e074]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4fc6d2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4fc6d2
test ecx, ecx
je 0x4fc6ce
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4fc690
xor eax, eax
jmp 0x4fc6d7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4fc6e1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00509af6
add esp, 0xc
ret 0xc

Function at 0x502a00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54db7f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59e074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00404080
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.004056c0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.004056c0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.004056c0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.004056c0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.004056c0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.004056c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5045b0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x59e074]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x504615
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5045f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x504615
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00509af6
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00509af6
add esp, 8
ret 4
Function at 0x5047b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x59e074]
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 edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x5047f9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x50494b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x504916
test eax, eax
je 0x504916
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x504919
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x50489b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50488f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x50489b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x5048a9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004056c0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x504916
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x504854
jmp 0x504919
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x504942
test edx, edx
je 0x50493e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x504810
mov al, 1
jmp 0x50494d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x50494b
mov dword [ecx], eax
xor al, al
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.00509af6
mov esp, ebp
pop ebp
ret 0x10