joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f470
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4cb928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004be047
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.0048f3b0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004bdf75
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x48f537
cmp dword [esp + 0x40], 1
jne 0x48f535
cmp ecx, eax
jge 0x48f537
mov eax, ecx
cmp eax, 0x12c
jge 0x48f543
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.0048f590
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004be0b9
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4937a0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4cbe16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x51a174]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004b9679
mov edx, dword [0x51a174]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4937fa
mov dword [esp + 0x1c], ebx
jmp 0x493801
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004bb8c7
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004b7347
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x493852
mov dword [esp + 0x14], ebx
jmp 0x493859
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x493874
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x49386e
cmp eax, 2
jne 0x493874
mov dword [esp + 0x18], edi
jmp 0x493878
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x493886
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004b8cae
mov edi, eax
cmp edi, ebx
jne 0x493896
xor eax, eax
jmp 0x493899
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4938c1
mov ecx, esi
call fcn.004bb8c7
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4938dd
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4938fc
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4938fc
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004b725a
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004b725a
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x496d90
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x496e33
test eax, eax
jbe 0x496e33
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x496e33
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x496dde
xor esi, esi
jmp 0x496de4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x496e0f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00474150
add esi, eax
push esi
mov ebx, esi
call fcn.00474150
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x496df0
pop ebp
test edi, edi
pop edi
jne 0x496e33
test ebx, ebx
je 0x496e33
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004a5a80
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x496f75
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49708d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49708d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b8cd5
mov esi, eax
test esi, esi
je 0x49708d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49708d
mov ecx, esi
call fcn.00496ee0
cmp edi, eax
jge 0x49708d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x497013
mov dword [esp + 0x34], 1
jmp 0x49706e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49708d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00495780
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4b9679
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b96b1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b76b5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b768d
jmp 0x4b96bd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4baff6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bb038
call fcn.004c16da
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bb038
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bb02f
xor eax, eax
jmp 0x4bb040
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bb046
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c1c0a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c1c38
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c1c56
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c1b70
jmp 0x4c1c56
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c1c56
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c1b70
test edi, edi
mov eax, edi
jne 0x4c1c40
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4c44b5
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4c44dd
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4c44ee
push 2
call edi
test ax, ax
jge 0x4c44ee
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004b8cae
cmp dword [esi + 0x30], ebx
jne 0x4c45c8
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004b8cae
cmp eax, dword [esp + 0x34]
jne 0x4c45c8
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4c4564
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4c45a9
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4c45c8
cmp eax, 0x205
je 0x4c45c8
cmp eax, 0x201
je 0x4c45c8
cmp eax, 0x204
je 0x4c45c8
cmp eax, ebx
jne 0x4c458f
cmp dword [esp + 0x1c], 0x1b
je 0x4c45c8
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5552a8]
jbe 0x4c45be
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4c4521
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x1002079
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x1010040]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xa8], eax
push 0x27
xor eax, eax
cmp ebx, esi
mov word [ebp - 0xa4], si
pop ecx
lea edi, [ebp - 0xa2]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb0], esi
stosw word es:[edi], ax
je 0x100214b
mov ax, word [edx + 6]
push 0x14
pop ecx
mov word [ebp - 0xaa], ax
mov word [ebp - 0xac], si
push dword [ebp - 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xor eax, eax
lea edi, [ebp - 0xa4]
push ebx
rep stosd dword es:[edi], eax
call esi
push 0
lea eax, [ebp - 0xb0]
push eax
push 0x4f
push 0x4f
push 0x1001280
lea eax, [ebp - 0xa4]
push eax
call fcn.01008cc7
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push eax
push ebx
call edi
push dword [ebp - 0xac]
push ebx
call esi
cmp dword [ebp - 0xa8], 0
je 0x100214b
push 0
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0xa8]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010084db
leave
ret 0xc
Function at 0x100215f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100cd37
call fcn.01008898
sub esp, 0xb8
mov eax, dword [0x1010040]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0xac], esi
lea ecx, [ebp - 0xa4]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x98]
push eax
push 0x80000000
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov dword [ebp - 0xa0], eax
cmp eax, ebx
je 0x10021ec
call fcn.01008fba
mov dword [ebp - 0xc0], ebx
jmp 0x100233a
cmp dword [ebp - 0x98], ebx
jne 0x100220f
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008fba
mov dword [ebp - 0xc4], ebx
jmp 0x100233a
lea eax, [ebp - 0x9c]
push eax
push 1
push ebx
push 0x1001284
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa0], eax
cmp eax, ebx
je 0x1002264
mov ecx, eax
dec ecx
dec ecx
je 0x100223d
push eax
jmp 0x1002242
push 0x3f7
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008fba
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xb4], ebx
jmp 0x100233a
cmp dword [ebp - 0x9c], ebx
jne 0x1002287
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008fba
mov dword [ebp - 0xb8], ebx
jmp 0x100233a
push 4
lea eax, [ebp - 0xb0]
push eax
mov ecx, esi
call sub.framedyn.dll_public:_class_CHString___thiscall_CHString::Right_int_
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa4]
call fcn.0100cc2a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov dword [ebp - 0xa8], 0x40
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa0], eax
push dword [ebp - 0x9c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x98]
call esi
cmp dword [ebp - 0xa0], ebx
je 0x100230e
mov dword [ebp - 0xbc], ebx
jmp 0x100233a
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0xac]
call sub.framedyn.dll_public:_class_CHString_const____thiscall_CHString::operator_unsigned_short_int_const__
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x100233a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.010084db
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1005186
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d115
call fcn.01008898
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 4]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 2
lea ecx, [esi + 0x40]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 3
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x14], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10086fb
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b28
call fcn.01008b94
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1008736
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008736
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100874e
cmp eax, 0x20b
je 0x100873b
mov dword [ebp - 0x1c], edi
jmp 0x1008762
cmp dword [ecx + 0x84], 0xe
jbe 0x1008736
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100875c
cmp dword [ecx + 0x74], 0xe
jbe 0x1008736
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101008c], 0xffffffff
or dword [0x1010090], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1010070]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101006c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1010094], eax
call fcn.01008b8c
cmp dword [0x1010050], edi
jne 0x10087bd
push fcn.01008b8c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01008b75
push 0x1010010
push 0x101000c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1010068]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1010064]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1010008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01004faf
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1008834
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1008869
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01008bcf
ret
Function at 0x1009ebe
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1010040]
and dword [ebp - 0x198], 0
cmp dword [0x1010074], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
jne 0x1009f22
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1009f18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1009fc8
mov dword [0x1010074], 1
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 5]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x1009f53
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008fba
jmp 0x1009f93
push esi
push edi
push ebx
call fcn.0100909a
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x198], eax
jne 0x1009f7c
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x800300fd
jmp 0x1009f46
push 2
push 4
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
jne 0x1009f97
xor eax, eax
jmp 0x1009fc6
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
pop ecx
jne 0x1009fb5
push 0x1001c10
push eax
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
push 0xf
push dword [ebp - 0x19c]
push eax
call fcn.01009145
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010084db
leave
ret 0xc

Function at 0x1009ffe
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1010040]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x3f
xor edx, edx
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
cmp ebx, edx
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], edx
rep stosd dword es:[edi], eax
push 0x3f
pop ecx
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x208], edx
rep stosd dword es:[edi], eax
je 0x100a0ed
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100a0ed
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x80
push 4
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01009730
test eax, eax
je 0x100a0ed
push ebx
call fcn.01009ca1
cmp eax, 1
jne 0x100a0bd
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.01009ebe
test eax, eax
je 0x100a0f0
push 0
push 1
lea eax, [ebp - 0x204]
push eax
jmp 0x100a0da
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push 7
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01009730
neg eax
sbb eax, eax
inc eax
jmp 0x100a0f0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010084db
leave
ret 4
Function at 0x10001000
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0x33
call fcn.1000100d

Function at 0x1000e0f0
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 8]
call fcn.10019180
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10018750
lea ecx, [ebp - 0x18]
call fcn.1001cc50
movzx edx, al
test edx, edx
je 0x1000e168
lea ecx, [ebp - 0x18]
call fcn.1003fff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 0
je 0x1000e168
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x18]
call fcn.1003bfc0
push eax
call fcn.10012030
add esp, 4
cmp eax, 0xfaba0065
jne 0x1000e166
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.1002de90
jmp 0x1000e179
jmp 0x1000e127
lea ecx, [ebp - 8]
call fcn.1003bff0
movzx ecx, al
test ecx, ecx
jne 0x1000e0fe
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ee70
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 8]
call fcn.10019180
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10018750
lea ecx, [ebp - 0x18]
call fcn.1001cc50
movzx edx, al
test edx, edx
je 0x1000eee8
lea ecx, [ebp - 0x18]
call fcn.1003fff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 0
je 0x1000eee8
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x18]
call fcn.1003bfc0
push eax
call fcn.10012030
add esp, 4
cmp eax, 0xf8f45725
jne 0x1000eee6
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.1002de90
jmp 0x1000eef9
jmp 0x1000eea7
lea ecx, [ebp - 8]
call fcn.1003bff0
movzx ecx, al
test ecx, ecx
jne 0x1000ee7e
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000f0b0
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 8]
call fcn.10019180
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10018750
lea ecx, [ebp - 0x18]
call fcn.1001cc50
movzx edx, al
test edx, edx
je 0x1000f128
lea ecx, [ebp - 0x18]
call fcn.1003fff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 0
je 0x1000f128
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x18]
call fcn.1003bfc0
push eax
call fcn.10012030
add esp, 4
cmp eax, 0x53b2070f
jne 0x1000f126
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.1002de90
jmp 0x1000f139
jmp 0x1000f0e7
lea ecx, [ebp - 8]
call fcn.1003bff0
movzx ecx, al
test ecx, ecx
jne 0x1000f0be
xor eax, eax
mov esp, ebp
pop ebp
ret