joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4520
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b5e39
cwde
and eax, 0x8000
je 0x4a4556
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b5e39
movsx edx, ax
and edx, 0x8000
je 0x4a457b
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b5e39
movsx ecx, ax
and ecx, 0x8000
je 0x4a45a0
mov edx, dword [ebp - 4]
or edx, 4
mov dword [ebp - 4], edx
mov esi, esp
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b5e39
movsx esi, ax
mov edi, esp
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cmp edi, esp
call fcn.004b5e39
cwde
or esi, eax
and esi, 0x8000
je 0x4a45d9
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
mov esi, esp
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b5e39
movsx edx, ax
and edx, 1
je 0x4a45fb
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
mov esi, esp
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b5e39
movsx ecx, ax
and ecx, 1
je 0x4a4620
mov edx, dword [ebp - 4]
or edx, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
pop edi
pop esi
add esp, 4
cmp ebp, esp
call fcn.004b5e39
mov esp, ebp
pop ebp
ret

Function at 0x4a8fb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4a8fda
mov esi, esp
push 0x2b
push 0x4f27f0
push str.tls__win32.allocated__GLFW_FALSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.004b5e39
mov esi, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp esi, esp
call fcn.004b5e39
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x4a900e
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.004a6f70
add esp, 8
xor eax, eax
jmp 0x4a901c
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov eax, 1
pop esi
cmp ebp, esp
call fcn.004b5e39
pop ebp
ret

Function at 0x4a9070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x4a909a
mov esi, esp
push 0x41
push 0x4f28d0
push 0x4f2940
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.004b5e39
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, esp
call fcn.004b5e39
pop esi
cmp ebp, esp
call fcn.004b5e39
pop ebp
ret
Function at 0x4a90c0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x4a90ea
mov esi, esp
push 0x47
push 0x4f2988
push str.tls__win32.allocated__GLFW_TRUE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.004b5e39
mov esi, esp
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp esi, esp
call fcn.004b5e39
pop esi
cmp ebp, esp
call fcn.004b5e39
pop ebp
ret
Function at 0x4aae30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
lea edi, [ebp - 0x88]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f8f48]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c], 0x30
push 0x2c
push 0
lea eax, [ebp - 0x58]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x20
mov dword [ebp - 0x54], 0x4aad70
mov ecx, dword [0x4faca0]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x34], str.GLFW3_Helper
mov esi, esp
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExW]
cmp esi, esp
call fcn.004b5e39
mov word [0x4faca8], ax
movzx eax, word [0x4faca8]
test eax, eax
jne 0x4aaec9
push str.WIn32:_Failed_to_register_helper_window_class
push 0x10008
call fcn.004a9b90
add esp, 8
xor eax, eax
jmp 0x4aaffe
mov esi, esp
push 0
mov ecx, dword [0x4faca0]
push ecx
push 0
push 0
push 1
push 1
push 0
push 0
push 0x6000000
push str.GLFW_message_window
movzx edx, word [0x4faca8]
push edx
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp esi, esp
call fcn.004b5e39
mov dword [0x4faca4], eax
cmp dword [0x4faca4], 0
jne 0x4aaf2b
push str.Win32:_Failed_to_create_helper_window
push 0x10008
call fcn.004a9b90
add esp, 8
xor eax, eax
jmp 0x4aaffe
mov esi, esp
push 0
mov eax, dword [0x4faca4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.004b5e39
push 0x20
push 0
lea ecx, [ebp - 0x84]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x84], 0x20
mov dword [ebp - 0x80], 5
mov edx, dword [0x4c558c]
mov dword [ebp - 0x78], edx
mov eax, dword [0x4c5590]
mov dword [ebp - 0x74], eax
mov ecx, dword [0x4c5594]
mov dword [ebp - 0x70], ecx
mov edx, dword [0x4c5598]
mov dword [ebp - 0x6c], edx
mov esi, esp
push 0
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [0x4faca4]
push ecx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
cmp esi, esp
call fcn.004b5e39
mov dword [0x4facac], eax
mov esi, esp
push 1
push 0
push 0
mov edx, dword [0x4faca4]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp esi, esp
call fcn.004b5e39
test eax, eax
je 0x4aaff9
mov esi, esp
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.004b5e39
mov esi, esp
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, esp
call fcn.004b5e39
jmp 0x4aafad
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4ab02c]
call fcn.004b5de5
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b50b5
add esp, 0x88
cmp ebp, esp
call fcn.004b5e39
mov esp, ebp
pop ebp
ret

Function at 0x4b5ffc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b603b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b603b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b603b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b603b
cmp dword [ecx + 0x74], 0xe
jbe 0x4b603b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x4ba32113
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x4e8f43a0
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x7af31ab6
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x48dd3413
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x404080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4040dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4040dc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4040c8
cmp esi, edx
jae 0x4040dc
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4040b6
cmp esi, edx
jae 0x4040dc
cmp word [esi], 0
je 0x4040dc
pop edi
mov eax, esi
pop esi
lfence
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x406b50
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x46f7e8
push 0x431cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x474054]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x406cee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x406cb2
mov esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x406cb2
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x406c9f
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x24]
jae 0x406ce2
lea eax, [edi + edi*8]
movups xmm1, xmmword [esi + eax*4]
movups xmm0, xmmword [esi + eax*4 + 0x10]
movups xmmword [ebp - 0x78], xmm0
mov eax, dword [esi + eax*4 + 0x20]
mov dword [ebp - 0x68], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x406c9f
mov dword [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x406c9f
cmp dword [ebp - 0x44], 1
je 0x406cb6
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x48]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x406c9f
cmp dword [ebp - 0x44], 1
je 0x406cb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x406c65
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x474054
call fcn.004348a0
add esp, 0xc
xor eax, eax
jmp 0x406cf3
mov dword [ebp - 4], 0
call fcn.00406cda
inc edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x54]
jmp 0x406c14
mov dword [ebp - 4], 0xfffffffe
call fcn.00406d12
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00430771
mov esp, ebp
pop ebp
ret
Function at 0x406d30
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b2cd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x474054]
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 ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push 4
mov dword [ebp - 0x40], eax
call fcn.00430b8a
mov dword [ebp - 0x14], eax
push 4
mov dword [ebp - 4], 0
call fcn.00430b8a
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x14]
push 0xf003f
push 0
mov dword [eax], 0
push 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
cmp dword [edi + 0x14], 8
jb 0x406db0
mov edi, dword [edi]
push 0x2c
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea ecx, [ebp - 0x18]
mov dword [esi], eax
push ecx
push 0x24
lea ecx, [ebp - 0x3c]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x406eae
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x406eae
mov edi, dword [ebp - 0x40]
cmp eax, 3
jne 0x406e52
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [ebp - 0x24]
shr edx, 3
cmp edx, 0x3e8
jae 0x406e0a
mov edx, 0x3e8
jmp 0x406e13
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x406eae
cmp dword [ebp - 0x38], 1
je 0x406eae
call ebx
sub eax, edi
cmp eax, 0x7530
ja 0x406eae
cmp dword [ebp - 0x38], 3
mov ecx, 0x2710
je 0x406df0
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
mov ecx, dword [eax]
call fcn.00406b50
lea eax, [ebp - 0x3c]
push eax
push 1
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x406eae
cmp dword [ebp - 0x38], 1
je 0x406eae
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x406eae
cmp dword [ebp - 0x38], 1
je 0x406eae
call ebx
sub eax, edi
cmp eax, 0x7530
ja 0x406eae
cmp dword [ebp - 0x38], 1
jne 0x406e76
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x406ebd
push eax
call edi
push 4
push esi
call fcn.00430f20
mov ebx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x406ed4
push eax
call edi
push 4
push ebx
call fcn.00430f20
add esp, 8
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.00430771
mov esp, ebp
pop ebp
ret
Function at 0x406f00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b30d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x474054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 5
push str.start
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00414e90
push 1
push 0x46ba28
lea ecx, [ebp - 0x28]
call fcn.00412960
cmp dword [esi + 0x14], 8
jb 0x406f6f
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f74
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00412960
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], 0x3c
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x60], 0x2000140
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0x46ba2c
mov dword [ebp - 0x54], str.C:WindowsSystem32_sc.exe
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x2710
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x407021
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407017
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40703b
push edx
push ecx
call fcn.00430f20
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430771
mov esp, ebp
pop ebp
ret
call fcn.0043f373
int3
Function at 0x40ff70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40ffa2
jl 0x40ff95
test ecx, ecx
jne 0x40ffa2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x410062
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00414430
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41000e
jg 0x40ffcd
test esi, esi
je 0x41000e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40ffe5
mov eax, dword [esp + 0x10]
jl 0x40ffdf
cmp eax, esi
jae 0x40ffe5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00432100
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41002f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41004b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40ffb4
jl 0x41004b
test ecx, ecx
jne 0x40ffb4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4100a1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4100a1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00432100
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x410110
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x4100c7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4100f9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00440427
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x410124
cmp edi, eax
ja 0x4100d5
test ecx, ecx
je 0x410110
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00440427
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c7d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x474054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00430b8a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041cca7
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ac3e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044aaaf

Function at 0x44bab3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x463fc0
push 0x463fb8
push str.FlsAlloc
push 0x1e
call fcn.0044b920
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44bae7
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f224]
call esi
jmp 0x44baed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44bb31
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x463fd0
push 0x463fc8
push str.FlsGetValue
push 0x20
call fcn.0044b920
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44bb68
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44c5c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004318a0
mov eax, dword [0x474054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00447d52
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44c603
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44c75f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045a790
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4768f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0044de85
mov ecx, dword [esi*4 + 0x4768f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x44c758
cmp eax, dword [edi + ecx + 0x24]
jne 0x44c758
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c758
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044de85
add esp, 0x14
test edx, edx
jl 0x44c758
jg 0x44c6ce
test eax, eax
jb 0x44c758
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44c758
jl 0x44c6e8
cmp dword [ebp - 0x1008], eax
ja 0x44c758
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44c706
test ebx, ebx
je 0x44c73f
cmp ecx, edi
jae 0x44c73f
mov al, byte [ecx]
cmp al, 0xd
jne 0x44c720
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44c72c
cmp byte [ecx + 1], 0xa
jne 0x44c72c
inc ecx
jmp 0x44c72c
movzx eax, al
movsx eax, byte [eax + 0x4742c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44c706
cmp edx, ebx
jne 0x44c706
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44c75d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00430771
leave
ret