joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449560
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 4
lea ecx, [ebp - 4]
push ecx
mov edi, eax
mov esi, dword [edi]
mov eax, dword [esi + 0x354]
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4495b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.0046a2a0
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0044b0a0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0044b0a0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4495d0
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4de144], 0
mov dword [ebp - 0x9c], 0x4020
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 4
jne 0x449666
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0047f860
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
mov dword [0x4de144], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x449666
cmp dword [ebp - 0x94], 6
jb 0x449666
mov dword [0x4de144], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
cmp dword [0x4de144], 2
je 0x4496ba
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4496a0
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jg 0x4496ba
push 4
lea edx, [ebp - 0x9c]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
Function at 0x449ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebx + 0x5a0]
test edi, edi
je 0x449aee
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x449aee
mov ecx, dword [eax + 0x30]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0
call fcn.004518a0
cmp dword [ebp - 0xc], 0
jne 0x449af7
mov dword [ebx + 0x5a0], 0
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x449b00
mov dword [eax], edi
cmp dword [edi + 0x168], 0
mov esi, dword [edi + 0x140]
jne 0x449aee
push 2
push 1
lea eax, [ebp - 5]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x449aee
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44b2f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x140]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x44b36f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44b344
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], 0x51
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.0046a2a0
mov edx, dword [esi]
add esp, 4
push eax
push str.Send_failure:__s
push edx
call fcn.0044b120
mov eax, dword [esi]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x85dc], edi
add esp, 0xc
mov dword [ecx], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x44b610
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x44b63a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x44b770
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x44b78b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x44b7bf
cmp eax, 2
jg 0x44b7bf
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4bbc14]
push 2
push edx
call fcn.004771f3
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.004771f3
add esp, 0x20
xor eax, eax
ret
Function at 0x451240
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
cmp eax, 0xffffffff
jne 0x451254
or eax, eax
jmp 0x45125b
mov eax, dword [edi + eax*4 + 0x140]
mov dword [edi + 0x238], eax
cmp ecx, 0xffffffff
jne 0x45126a
or eax, ecx
jmp 0x451271
mov eax, dword [edi + ecx*4 + 0x140]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x23c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x58], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esi + 0x120], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x68], ebx
test edx, edx
jne 0x4512b5
mov dword [esi + 0x98], edx
test eax, eax
jl 0x4512b5
jg 0x4512a9
test ecx, ecx
je 0x4512b5
push eax
push ecx
mov eax, esi
call fcn.00455a80
add esp, 8
cmp dword [esi + 0x120], 0
jne 0x4512c7
cmp dword [esi + 0x314], 0
jne 0x451341
or eax, 0xffffffff
mov edx, 1
cmp dword [edi + 0x238], eax
je 0x4512dd
or dword [esi + 0xf8], edx
cmp dword [edi + 0x23c], eax
je 0x451341
mov eax, dword [esi + 0x8694]
mov ecx, 2
test eax, eax
je 0x45133b
mov edi, dword [edi + 0x22c]
test byte [edi + 0x3c], dl
je 0x451331
mov edi, dword [esi + 0x128]
cmp dword [edi + 0x58], ecx
jne 0x451331
mov dword [esi + 0xd4], edx
call fcn.0044b9d0
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], edx
mov eax, 0x410
mov ecx, esi
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.00442980
test eax, eax
je 0x45133b
mov dword [esi + 0xd4], ecx
or dword [esi + 0xf8], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45b6c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x3e0]
push edi
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x45b754
mov edx, dword [ebp - 0x90]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00478c70
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x45b787
push str.Received_too_short_packet
push ebx
call fcn.0044b120
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.0045a6e0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x45b7a4
jmp dword [eax*4 + 0x45b8d4]
cmp edx, 4
jle case.0x45b7a4.4
lea eax, [esi + 0x15c]
call fcn.0045a6f0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x45b7a4.4
mov eax, dword [ebp - 0x94]
lea ecx, [edx - 4]
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
call fcn.0044b4a0
mov edi, eax
add esp, 8
test edi, edi
je 0x45b80f
mov ecx, 5
mov eax, esi
call fcn.0045b410
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
mov ecx, dword [ebx + 0x70]
adc dword [ebx + 0x74], edx
mov eax, dword [ebx + 0x74]
push eax
push ecx
mov eax, ebx
call fcn.00455a40
add esp, 8
jmp case.0x45b7a4.4
lea eax, [esi + 0x15c]
call fcn.0045a6f0
movzx edx, ax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x4c1384
push ebx
mov dword [esi + 8], edx
call fcn.0044b0a0
jmp 0x45b897
mov ecx, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.0045a780
add esp, 0xc
test eax, eax
je case.0x45b7a4.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4c1124
push ebx
call fcn.0044b120
add esp, 0xc
mov edx, dword [ebp - 0x94]
push edx
call fcn.00455b00
add esp, 4
test eax, eax
je 0x45b774
mov ecx, 5
mov eax, esi
call fcn.0045b410
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.004751dc
mov esp, ebp
pop ebp
ret
Function at 0x460840
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi]
push ebx
push esi
mov esi, dword [edi + 0x144]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x460892
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov eax, edi
call fcn.00449b30
cmp ebx, 0xffffffff
jne 0x4608c4
mov edx, dword [ebp - 0x1c]
push str.Error_accept__ing_server_connect
push edx
call fcn.0044b120
add esp, 8
mov eax, 0x1e
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
push str.Connection_accepted_from_server_n
push esi
call fcn.0044b0a0
push 1
mov edx, ebx
mov dword [edi + 0x144], ebx
call fcn.004699e0
mov dword [edi + 0x154], 1
mov eax, dword [esi + 0x1b0]
add esp, 0xc
test eax, eax
je 0x460933
mov ecx, dword [esi + 0x1b4]
push 1
push ebx
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x460933
mov esi, ebx
mov eax, edi
call fcn.00449b30
mov dword [edi + 0x144], 0xffffffff
mov eax, 0x2a
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004751dc
mov esp, ebp
pop ebp
ret
Function at 0x4628f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
mov ebx, dword [edi]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x462926
push str.Couldnt_set_desired_mode
push ebx
call fcn.0044b120
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp ecx, 0xc8
je 0x46293d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.0044b0a0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x462955
push edi
call fcn.00461a50
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x14
jne 0x46296a
push edi
call fcn.00461ab0
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x15
jne 0x46297d
mov eax, edi
call fcn.00461bd0
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x16
jne 0x46298b
mov eax, edi
call fcn.00461be0
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x465260
Capabilities:
Parse pe header

Disassembly:
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x46526b
jmp dword [ecx*4 + 0x4652c0]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x465420
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x465468
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0044b120
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x46548f
shr eax, 8
test al, al
jne 0x46548f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0044b120
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.004751dc
mov esp, ebp
pop ebp
ret

Function at 0x465670
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x140]
push ebx
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [ebp - 4]
mov ebx, eax
mov al, byte [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], al
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4656b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0044b120
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.00465570
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466310
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x46645c
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x466346
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x466351
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x46635c
mov byte [eax], 0x1f
inc dword [esi]
movzx ecx, word [edi + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [edi + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x46638e
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x46639b
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4663a5
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4663af
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4663ba
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4663c5
mov byte [eax], 0xf0
inc dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
mov dword [esi], ebx
mov esi, dword [ebp - 4]
lea eax, [edi + 0x1cb2]
push 0x3e
call fcn.00465a70
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x140]
push edx
call esi
test eax, eax
jns 0x46641b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.0044b120
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push 4
push ecx
call fcn.00466820
mov edx, dword [ebx + 0x140]
add esp, 8
push 0
push 2
add edi, 0x1cb7
push edi
push edx
call esi
test eax, eax
jns 0x46645c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.0044b120
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466e10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0048cbe5
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x466e74
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x466e74
lea edx, [ebp - 0x108]
push edx
call dword [0x4dc054]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004751dc
mov esp, ebp
pop ebp
ret

Function at 0x466e90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00466e10
Function at 0x46a480
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x46a610
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x46a5f2
push esi
nop
cmp dword [edi + 4], 2
jne 0x46a57a
cmp dword [edi + 0x18], ebx
je 0x46a57a
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x46a57a
cmp eax, 0x10
jb 0x46a57a
push 0x20
call dword [0x4dc048]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46a587
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4dc048]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x46a590
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x46a565
push eax
call dword [0x4dc054]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x46a5a3
cmp dword [ebp - 4], ebx
jne 0x46a56d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x46a577
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x46a4c0
jmp 0x46a5be
mov dword [ebp - 8], 8
jmp 0x46a5be
push esi
mov dword [ebp - 8], 8
call dword [0x4dc04c]
add esp, 4
jmp 0x46a5be
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x4dc04c]
push esi
call dword [0x4dc04c]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x46a5cd
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x46a5ed
mov eax, dword [ebp - 4]
call fcn.0046a440
mov ecx, dword [ebp + 0x10]
mov eax, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x46a604
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46a810
Capabilities:
Create thread

Disassembly:
push 0
push 0
push eax
push 0x44a520
push 0
push 0
call fcn.004a44bf
add esp, 0x18
test eax, eax
je 0x46a82f
cmp eax, 0xffffffff
jne 0x46a831
xor eax, eax
ret
Function at 0x48b840
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0047aae8
and dword [ebp - 0x14], 0
cmp dword [0x4ddd44], 0
mov dword [ebp - 0x18], eax
jne 0x48b8f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48b99b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48b99b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4ddd44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ddd48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ddd4c], eax
call edi
push eax
call esi
mov dword [0x4ddd54], eax
test eax, eax
je 0x48b8f3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4ddd50], eax
mov eax, dword [0x4ddd50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x48b94c
cmp dword [0x4ddd54], ecx
je 0x48b94c
push eax
call esi
push dword [0x4ddd54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48b94c
test ebx, ebx
je 0x48b94c
call edi
test eax, eax
je 0x48b943
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48b943
test byte [ebp - 8], 1
jne 0x48b94c
or dword [ebp + 0x10], 0x200000
jmp 0x48b97f
mov eax, dword [0x4ddd48]
cmp eax, dword [ebp - 0x18]
je 0x48b97f
push eax
call esi
test eax, eax
je 0x48b97f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48b97f
mov eax, dword [0x4ddd4c]
cmp eax, dword [ebp - 0x18]
je 0x48b97f
push eax
call esi
test eax, eax
je 0x48b97f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ddd44]
call esi
test eax, eax
je 0x48b99b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48b99d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004751dc
leave
ret
Function at 0x493ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ab549
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d8c20]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00475397
mov dword [esi], vtable.boost::program_options::error_with_option_name.0
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
mov dword [esp + 0x1c], 0
mov dword [esi + 0xc], eax
call fcn.00492d70
lea eax, [edi + 0x20]
lea ecx, [esi + 0x20]
push eax
mov byte [esp + 0x1c], 1
call fcn.00493330
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
push 0
lea edx, [edi + 0x30]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [esp + 0x24], 2
mov byte [ecx], 0
call fcn.00403a8e
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
push 0
add edi, 0x4c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [esp + 0x24], 3
mov byte [ecx], 0
call fcn.00403a8e
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4