joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489c00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5196
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp - 0xac]
add ecx, 0x30
call fcn.00463a90
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jge 0x489d18
push 0x80
push 0
lea eax, [ebp - 0x90]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x40
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0xac]
add ecx, 0x30
call fcn.004392b0
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0xa8]
call fcn.00436890
mov dword [ebp - 4], 0
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0048a1f0
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcc], esp
lea edx, [ebp - 0xa8]
push edx
call fcn.00436730
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 1
call fcn.00449340
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.0042df70
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.00449340
mov ecx, eax
call fcn.0042eb70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00438400
jmp 0x489d2b
mov edx, dword [ebp - 0xb0]
push edx
call fcn.00449340
mov ecx, eax
call fcn.0042eb70
call fcn.00449340
mov ecx, eax
call fcn.0042be80
push 4
call fcn.004add38
add esp, 4
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0xb4], 0
je 0x489d6a
mov ecx, dword [ebp - 0xb4]
call fcn.0048a450
mov dword [ebp - 0xb8], eax
jmp 0x489d74
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
push edx
call fcn.00449370
mov ecx, eax
call fcn.004605f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48a390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x48a440
cmp dword [ebp - 0x114], 5
jne 0x48a3dc
cmp dword [ebp - 0x110], 1
jne 0x48a3dc
mov eax, 1
jmp 0x48a442
cmp dword [ebp - 0x114], 5
jne 0x48a3f5
cmp dword [ebp - 0x110], 2
jne 0x48a3f5
mov eax, 1
jmp 0x48a442
cmp dword [ebp - 0x114], 6
jne 0x48a40e
cmp dword [ebp - 0x110], 0
jne 0x48a40e
mov eax, 2
jmp 0x48a442
cmp dword [ebp - 0x114], 6
jne 0x48a427
cmp dword [ebp - 0x110], 1
jne 0x48a427
mov eax, 2
jmp 0x48a442
cmp dword [ebp - 0x114], 6
jb 0x48a440
cmp dword [ebp - 0x110], 2
jb 0x48a440
mov eax, 3
jmp 0x48a442
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x491a50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34c], ecx
cmp dword [ebp + 8], 0
jne 0x491a74
jmp 0x491c61
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x491a81
jmp 0x491c61
mov dword [ebp - 0x350], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x340], eax
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x33c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x33c], pe_nt_image_headers32
lea edx, [ebp - 0x33c]
push edx
mov eax, dword [ebp - 0x340]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x491b89
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x334]
cmp edx, dword [ecx]
jne 0x491b6e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x324]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x318]
push edx
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00438d10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x344], eax
push 0x105
push 0
lea edx, [ebp - 0x10c]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
mov ecx, dword [ebp - 0x344]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00438d10
jmp 0x491b89
lea ecx, [ebp - 0x33c]
push ecx
mov edx, dword [ebp - 0x340]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x491ad5
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x491c54
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.0043f1b0
test eax, eax
jne 0x491c54
lea ecx, [ebp - 0x33c]
push ecx
mov edx, dword [ebp - 0x340]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x491c54
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x334]
cmp ecx, dword [eax + 4]
jne 0x491c39
lea edx, [ebp - 0x318]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.00438d10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x348], eax
push 0x105
lea edx, [ebp - 0x214]
push edx
push 0
mov eax, dword [ebp - 0x348]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ecx, dword [ebp - 0x348]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x214]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x50
call fcn.00438d10
jmp 0x491c54
lea eax, [ebp - 0x33c]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x491bc4
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 4
Function at 0x492400
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1e8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4e9ea8
call fcn.00438860
push 0x4e9ea8
mov ecx, 0x4e9cb8
call fcn.00496cf0
movzx ecx, al
test ecx, ecx
jne 0x492458
push str._Pro5_Proxy.lib:Failed_to_initialize_the_event_handler_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x49258a
push 0x4e9cb8
push 0x4c4a4c
call fcn.004a5160
add esp, 8
test eax, eax
je 0x492481
push str._Pro5_Proxy.lib:Failed_to_Connect_to_Driver___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x49258a
push 0x53
push 0
lea edx, [ebp - 0x58]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 9], 0
mov eax, 2
mov word [ebp - 0x4b], ax
push 0x4c4a94
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x29], eax
push str.255.0.0.0
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x19], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.004a4a00
add esp, 8
push 0x53
push 0
lea edx, [ebp - 0x58]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 9], 0
mov eax, 0x17
mov word [ebp - 0x4b], ax
lea ecx, [ebp - 0x29]
push ecx
push str.0:0:0:0:0:ffff:7f00:001
call fcn.0049e3f0
add esp, 8
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.004a4a00
add esp, 8
push 0x53
push 0
lea eax, [ebp - 0x58]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x11
mov dword [ebp - 9], 2
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.004a4a00
add esp, 8
push 0x53
push 0
lea edx, [ebp - 0x58]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 6
mov byte [ebp - 0x50], 2
mov dword [ebp - 9], 0x10
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.004a4a00
add esp, 8
mov ecx, dword [0x4e9cac]
add ecx, 1
mov dword [0x4e9cac], ecx
push str._Pro5_Proxy.lib:Init____Ok
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00494b30
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x496cf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x1e4], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x10
call fcn.0049d030
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x110
call fcn.0049d050
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.0049d010
cmp dword [ebp - 4], 0
je 0x496d49
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 8], edx
jmp 0x496d50
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x178
call fcn.00496ca0
movzx ecx, al
test ecx, ecx
jne 0x496d74
push str._kkcap__dns_proxy_set_error_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 1
push 0x8ad
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x10
call fcn.00496e40
mov esp, ebp
pop ebp
ret 4

Function at 0x496da0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
je 0x496dbe
xor al, al
jmp 0x496e22
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x496ddd
xor al, al
jmp 0x496e22
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x493bb0
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x496e20
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0043c900
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x497130
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp dword [ebp + 8], 0
jg 0x497176
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x497176
mov dword [ebp + 8], 1
mov dword [ebp - 8], 0
jmp 0x497188
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x4971cb
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x493b90
push 0
push 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4971c9
cmp dword [ebp - 0xc], 0xffffffff
je 0x4971c9
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0049c580
jmp 0x49717f
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x497250
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], 0x25a207b9
mov eax, 0xddf3
mov word [ebp - 0x10], ax
mov ecx, 0x4660
mov word [ebp - 0xe], cx
mov byte [ebp - 0xc], 0x8e
mov byte [ebp - 0xb], 0xe9
mov byte [ebp - 0xa], 0x76
mov byte [ebp - 9], 0xe5
mov byte [ebp - 8], 0x8c
mov byte [ebp - 7], 0x74
mov byte [ebp - 6], 6
mov byte [ebp - 5], 0x3e
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4972b5
xor al, al
jmp 0x4972f1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00495e20
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x28], 0
je 0x4972e7
mov dword [ebp - 0x20], 1
jmp 0x4972ee
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x497300
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], 0xb5367df1
mov eax, 0xcbac
mov word [ebp - 0x10], ax
mov ecx, 0x11cf
mov word [ebp - 0xe], cx
mov byte [ebp - 0xc], 0x95
mov byte [ebp - 0xb], 0xca
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0x80
mov byte [ebp - 8], 0x5f
mov byte [ebp - 7], 0x48
mov byte [ebp - 6], 0xa1
mov byte [ebp - 5], 0x92
mov dword [ebp - 0x24], 0x25a207b9
mov edx, 0xddf3
mov word [ebp - 0x20], dx
mov eax, 0x4660
mov word [ebp - 0x1e], ax
mov byte [ebp - 0x1c], 0x8e
mov byte [ebp - 0x1b], 0xe9
mov byte [ebp - 0x1a], 0x76
mov byte [ebp - 0x19], 0xe5
mov byte [ebp - 0x18], 0x8c
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 6
mov byte [ebp - 0x15], 0x3e
mov dword [ebp - 0x34], 0xb5367df2
mov ecx, 0xcbac
mov word [ebp - 0x30], cx
mov edx, 0x11cf
mov word [ebp - 0x2e], dx
mov byte [ebp - 0x2c], 0x95
mov byte [ebp - 0x2b], 0xca
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 0x80
mov byte [ebp - 0x28], 0x5f
mov byte [ebp - 0x27], 0x48
mov byte [ebp - 0x26], 0xa1
mov byte [ebp - 0x25], 0x92
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x4973d7
xor al, al
jmp 0x497451
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.00495e20
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x2c], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.00495e20
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.00495e20
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x2c], 0
je 0x497447
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x30], 0
je 0x497447
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x34], 0
je 0x497447
mov dword [ebp - 0x40], 1
jmp 0x49744e
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x498160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
mov byte [ebp - 0x111], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0048f960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
test eax, eax
jne 0x4981e2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.00490b00
jmp 0x49839c
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x498226
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
add eax, 8
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
add eax, 0x20
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x112], 0
jmp 0x498255
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
add eax, 0x20
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
add eax, 8
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x112], 1
mov edx, dword [ebp - 0x124]
mov byte [edx + 4], 1
mov eax, dword [ebp - 0x120]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x49833e
mov edx, dword [ebp - 0x120]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x49833e
mov ecx, dword [ebp - 0x120]
cmp dword [ecx], 0xffffffff
je 0x49833e
mov edx, dword [ebp - 0x124]
movzx eax, byte [edx + 8]
test eax, eax
je 0x4982ac
mov dword [ebp - 0x12c], 2
jmp 0x4982b6
mov dword [ebp - 0x12c], 1
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x120]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
test eax, eax
jne 0x4982fc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ecx + 0x28]
push eax
movzx ecx, byte [ebp - 0x112]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x128]
call fcn.0049d760
jmp 0x49833c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
push str._Pro5___TCPProxy::onClose__I64u__shutdown_error_d__closed
lea edx, [ebp - 0x110]
push edx
call fcn.00441870
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x111], 1
jmp 0x498345
mov byte [ebp - 0x111], 1
movzx ecx, byte [ebp - 0x111]
test ecx, ecx
je 0x49838a
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
cmp dword [eax + 0x38], 6
je 0x49838a
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
mov dword [eax + 0x38], 6
lea ecx, [ebp - 0x11c]
call fcn.0043dab0
push eax
mov ecx, dword [ebp - 0x128]
call fcn.0049c620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.00490b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 8
Function at 0x498610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b59f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e5258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x14], 0
je 0x498662
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00494970
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004946f0
jmp 0x4987e7
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
push ecx
lea ecx, [ebp - 0x30]
call fcn.0048f930
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
add edx, 0x18
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.00495470
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.0043e480
push eax
lea ecx, [ebp - 0x18]
call fcn.00439140
movzx edx, al
test edx, edx
je 0x4987cc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x360]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x18]
call fcn.00439290
mov edx, dword [eax + 8]
add edx, 0x60
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x498704
lea ecx, [ebp - 0x18]
call fcn.00439290
mov eax, dword [eax + 8]
add eax, 0x160
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
jne 0x49870d
mov dword [ebp - 0x1c], 0
jmp 0x498714
mov dword [ebp - 0x1c], 2
cmp dword [ebp - 0x24], 0
jne 0x4987cc
mov dword [ebp - 0x20], 1
push 4
lea ecx, [ebp - 0x20]
push ecx
push 1
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x20]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], 1
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp - 0x1c]
mov byte [ebp + eax - 0xe], cl
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
push 3
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x18]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x30]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0049d990
movzx edx, al
test edx, edx
je 0x4987a8
lea ecx, [ebp - 0x18]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 0x38], 1
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
lea ecx, [ebp - 0x18]
call fcn.00439290
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x30]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0049d690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00490ae0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004946f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49c950
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp - 0x114]
add eax, 0xb8
push eax
lea ecx, [ebp - 0x124]
call fcn.0048f930
mov dword [ebp - 0x110], 1
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 0x90]
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], 0x3e8
lea ecx, [ebp - 0x124]
call fcn.00490ae0
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x98000004
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x49ca15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._Pro5_:TCPProxy::setKeepAliveVals_WSAIoctl_err_d
lea eax, [ebp - 0x104]
push eax
call fcn.00441870
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 4

Function at 0x49d1e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x11c]
call fcn.00497820
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
push 0x10
push 0
lea ecx, [ebp - 0x114]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 2
mov word [ebp - 0x114], dx
mov dword [ebp - 0x110], 0
xor eax, eax
mov word [ebp - 0x112], ax
push 0x10
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_bind]
mov eax, dword [ebp - 0x118]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 0x28]
call edx
test eax, eax
jne 0x49d2f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0x3e5
je 0x49d2f4
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push str._Pro5___DNSProxy::startConnect__I64u_failed__err_d
lea eax, [ebp - 0x104]
push eax
call fcn.00441870
add esp, 0x14
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x11c]
call fcn.004946f0
xor al, al
jmp 0x49d2f6
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x14