joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ef7e
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
call fcn.1002eee4
mov eax, dword [0x10089344]
cmp eax, 0xffffffff
jne 0x1002efa0
xor eax, eax
inc eax
jmp 0x1002f072
test eax, eax
je 0x1002f070
push eax
push str.___Try_to_disable__d_raw_input_devices
call fcn.1002f4b9
xor esi, esi
pop ecx
pop ecx
cmp dword [0x10089344], esi
jbe 0x1002f02f
xor edi, edi
mov eax, dword [0x1008a16c]
add eax, edi
push 0xc
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
and dword [esp + 0x20], 0
add esp, 0xc
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
push 0xc
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1002f023
push esi
push str.____Unregister_index__d_raw_input_device_fail
call fcn.1002f4b9
movzx eax, word [esp + 0x14]
push eax
movzx eax, word [esp + 0x1a]
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
push str.___info:__p___p___p___p
call fcn.1002f4b9
add esp, 0x1c
inc esi
add edi, 0xc
cmp esi, dword [0x10089344]
jb 0x1002efc1
or dword [esp + 8], 0xffffffff
lea eax, [esp + 8]
push 0xc
push eax
push 0
call dword [sym.imp.USER32.dll_GetRegisteredRawInputDevices]
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
jne 0x1002f05b
mov ecx, str.____Cant_get_registered_raw_input_devices
call fcn.10027c8a
push 2
pop eax
jmp 0x1002f072
test eax, eax
je 0x1002f070
push eax
push str.___now_has__d_raw_input
call fcn.1002f4b9
pop ecx
pop ecx
push 3
jmp 0x1002f058
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002f078
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov eax, dword [0x10089344]
cmp eax, 0xffffffff
jne 0x1002f08f
xor eax, eax
inc eax
jmp 0x1002f10d
test eax, eax
je 0x1002f10b
push eax
push str.___Try_to_enable__d_raw_input_devices
call fcn.1002f4b9
pop ecx
pop ecx
push 0xc
push dword [0x10089344]
push dword [0x1008a16c]
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1002f0ca
push dword [0x10089344]
push str.____Restore__d_raw_input_device_fail
call fcn.1002f4b9
pop ecx
pop ecx
or dword [esp + 4], 0xffffffff
lea eax, [esp + 4]
push 0xc
push eax
push 0
call dword [sym.imp.USER32.dll_GetRegisteredRawInputDevices]
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jne 0x1002f0f6
mov ecx, str.____Cant_get_registered_raw_input_devices
call fcn.10027c8a
push 2
pop eax
jmp 0x1002f10d
test eax, eax
je 0x1002f10b
push eax
push str.___now_has__d_raw_input
call fcn.1002f4b9
pop ecx
pop ecx
push 3
jmp 0x1002f0f3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10030edd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
imul ebx, dword [ebp + 8], 0x2c
push esi
push edi
add ebx, dword [0x1008a2f0]
mov al, byte [ebx + 0x14]
mov edi, dword [ebx]
mov dword [ebp + 8], edi
and al, 1
je 0x10030f01
sub edi, 5
mov dword [ebp + 8], edi
movzx eax, al
lea esi, [eax*2 + 5]
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10030f25
push 0xa
pop eax
jmp 0x10030fa4
cmp dword [ebp + 0xc], 0
je 0x10030f48
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10030f68
mov eax, dword [ebx]
mov word [eax], 0xf9eb
jmp 0x10030f68
test byte [ebx + 0x14], 1
je 0x10030f5d
lea esi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 8]
jmp 0x10030f68
mov eax, dword [ebx + 0xc]
mov dword [edi], eax
mov al, byte [ebx + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp + 0xc]
mov al, byte [ebx + 0x14]
and dl, 1
mov cl, dl
and al, 0xfd
add cl, cl
shl dl, 2
or cl, al
and cl, 0xfb
or cl, dl
xor eax, eax
mov byte [ebx + 0x14], cl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10030fd6
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100892c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x100310ac
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
jmp 0x1003109d
cmp dword [ebp - 0x20], 0x10
jb 0x1003108c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1003108c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1003108c
mov edx, dword [esi]
test edx, edx
jne 0x1003105a
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x10089974]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100310a5
jmp 0x10031080
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10031080
shl eax, 3
push eax
push edx
push 0
push dword [0x10089974]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100310a5
shl dword [esi + 4], 1
mov dword [esi], edx
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 sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10031015
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10067186
leave
ret
Function at 0x10031126
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10030fd6
pop ecx
cmp dword [esi], ebx
je 0x10031186
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x10031185
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1003117c
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10031458
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x1003114b
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10031569
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x100315bb
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100315ab
push ebx
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 0x100315a2
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1003157f
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x10089974]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
ret

Function at 0x100315be
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1008a2e0]
push esi
xor esi, esi
jmp 0x100315d0
cmp dword [edx + 4], esi
jne 0x1003161c
mov edx, dword [edx]
test edx, edx
jne 0x100315c9
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1003162d
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x100315f9
mov eax, dword [0x1008a2e0]
mov dword [edx], eax
mov dword [0x1008a2e0], edx
test edx, edx
je 0x1003162d
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret
Function at 0x1003aa70
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x100892c0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1003ab3b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.10054c60
add esp, 0xc
test eax, eax
jne 0x1003ab3b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.10054c60
add esp, 0xc
test eax, eax
jne 0x1003ab3b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1003aac4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.10054c30
add esp, 0xc
test eax, eax
je 0x1003aaf8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.10054c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1003aafa
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x1003ab26
mov al, byte [esi]
push eax
call fcn.10049000
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x1003ab08
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10067186
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10067186
add esp, 0x18
ret

Function at 0x1003b6a0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x10089218]
cmp eax, 0xffffffff
jne 0x1003b6e2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1003b6c8
xor eax, eax
test eax, eax
mov dword [0x10089218], eax
setg al
ret
push eax
push 0
mov dword [0x10089218], 1
call fcn.10045170
mov eax, dword [0x10089218]
add esp, 8
test eax, eax
setg al
ret

Function at 0x1003b6f0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
jne 0x1003b745
mov eax, dword [0x10089218]
cmp eax, 0xffffffff
jne 0x1003b73f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1003b725
xor eax, eax
test eax, eax
mov dword [0x10089218], eax
setg al
ret
push eax
push 0
mov dword [0x10089218], 1
call fcn.10045170
mov eax, dword [0x10089218]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x10044620
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x600], 0
je 0x10044664
push esi
push 1
push edi
call fcn.10036a00
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10036a00
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1004469d
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x1006d210
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x10044ca0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x100892c0]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push esi
sete al
mov esi, 0x1e4
push edi
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2c0]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10044dae
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x10044970
jne 0x10044dae
cmp dword [esi], 0
je 0x10044d38
test edi, edi
je 0x10044dae
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.10047750
add esp, 0x14
cmp eax, 0xffffffff
je 0x10044dae
test al, 1
je 0x10044dae
mov ecx, dword [esi]
test ecx, ecx
jne 0x10044d8b
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x10089204]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x10044da7
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10044dae
add dword [esi + 8], eax
jmp 0x10044dae
mov dword [esi + 4], 0
push 0
push dword [esp + 0xb0]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10044e17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10044de8
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x10044e1c
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.10032900
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.100446b0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xca4], esi
mov eax, 0x37
jmp 0x10044e19
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10067186
add esp, 0x8c
ret
Function at 0x10046d40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10046d5a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x1006d698
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x10046da2
test ebp, ebp
je 0x10046d93
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10046dc8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10046dc8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x10046e7f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046de5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x10089204]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10046e75
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10046e75
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046e17
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046e30
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10046e40
test ebp, ebp
je 0x10046e6c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x10089208]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x10089208]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10054f90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10055122
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1005510c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x10054fdf
lea ebp, [eax + 0xe]
jmp 0x10054feb
cmp eax, 0x17
jne 0x10055099
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x10055099
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10055099
cmp eax, ebp
jb 0x10055099
push 0x20
call dword [0x10089204]
mov esi, eax
add esp, 4
test esi, esi
je 0x10055101
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x10089204]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100550f0
push ebp
push dword [edi + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x10055085
push eax
call dword [0x10089210]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100550d6
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10055095
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10054fd2
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x100550b8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x10055108
push ebx
call fcn.10054f50
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x10089208]
push esi
call dword [0x10089208]
add esp, 8
jmp 0x100550a8
push esi
mov ebp, 8
call dword [0x10089208]
add esp, 4
jmp 0x100550a8
mov ebp, 8
jmp 0x100550a8
test ebx, ebx
jne 0x10055118
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10058d50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.10067cf0
mov eax, dword [0x100892c0]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push eax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10058db9
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10058db9
lea eax, [esp]
push eax
call dword [0x10089210]
add esp, 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.10067186
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1000]
xor eax, eax
xor ecx, esp
call fcn.10067186
add esp, 0x1004
ret
Function at 0x101659c2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.10166ec3
mov ecx, eax
mov edx, dword [0x1017db18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffffdddf
mov edx, dword [ebp - 0x1c]
add edx, 0xffffe7e0
mov dword [0x1017db14], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0x3c]
mov dword [0x1017db18], 0x1178
mov dword [0x1017db14], ecx
mov dword [0x1017db18], 0x83d
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + esi + 0x78]
mov dword [0x1017db14], 0x2076
add ecx, dword [ecx + esi + 0x20]
mov edi, dword [ebp - 0x18]
mov ebx, dword [edi + esi + 0x18]
cmp ebx, 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jne 0x10165acc
mov eax, dword [ebp - 0x2c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x39], dl
mov al, byte [ebp - 0x3a]
mov cl, byte [ebp - 0x39]
and al, cl
mov edx, dword [ebp - 0x38]
cmp edx, 0x20
setb ah
and al, ah
test al, 1
mov dword [ebp - 0x40], edx
jne 0x10165af8
jmp 0x10165b25
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov dword [0x1017db14], 0x2157
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1017db18], 0xd6c
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
jmp 0x10165a51
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x58]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x3a], cl
jne 0x10165a5c
mov al, byte [ebp - 0x3a]
test al, 1
jne 0x10165a95
jmp 0x10165b32
mov eax, dword [ebp - 0x44]
add eax, 2
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
xor eax, eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x20]
cmp ecx, edx
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], esi
jb 0x10165ade
jmp 0x10165a51
Function at 0x10165b6a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x1017db14], 0x1b77
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x1017db18], 0x68b
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1017db14], 0x1049
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x10165bd6
mov eax, dword [ebp - 0x18]
mov dword [0x1017db14], 0x162a
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x10165c05
jmp 0x10165cb3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
je 0x10165bb5
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jl 0x10165bd6
jmp 0x10165bb5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10165cb3
mov dword [0x1017db18], 0xcc3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff5
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x61
jne 0x10165cb3
mov dword [0x1017db14], 0x15d5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10165cb3
mov dword [0x1017db14], 0x3b73
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10165cb3
mov dword [0x1017db14], 0x1718
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10165cb3
mov eax, 1
mov ecx, 0x2d23
mov dword [0x1017db18], 0xfd3
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
je 0x10165cc2
xor eax, eax
mov ecx, 0x24e8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x10165cc2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [0x1017db14], eax
mov eax, ecx
add esp, 0x28
pop esi
pop ebp
ret