joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x20]
push 0x17
push eax
call fcn.00441178
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
jae 0x4adecf
lea eax, [ebp - 0x20]
push eax
call fcn.0044ff30
mov ecx, eax
call fcn.0044f1e4
call fcn.0045f507
mov ecx, eax
call fcn.0045fc13
xor edi, edi
mov dword [ebp - 0x50], edi
call fcn.004ade15
call fcn.004ada1b
call fcn.004096cd
mov ecx, eax
call fcn.004058cf
push edi
lea eax, [ebp - 0x64]
push eax
xor esi, esi
lea eax, [ebp - 0x4c]
inc esi
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
call sub.gdiplus.dll_GdiplusStartup
push esi
push 2
push 0x15
call sub.urlmon.dll_CoInternetSetFeatureEnabled
test eax, eax
js 0x4adf3a
push 2
push 0x15
call sub.urlmon.dll_CoInternetIsFeatureEnabled
push ebx
call fcn.00409c80
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
push eax
mov dword [ebp - 0x54], eax
call fcn.00408749
mov ecx, eax
call fcn.00410b56
mov ebx, str.wWinMain
mov edi, str.D:_fun_pow_4_20190808Coding_supportminisitewpsnotify.cpp
test eax, eax
js 0x4adf85
lea ecx, [ebp - 0x48]
call fcn.00448006
lea eax, [ebp - 0x48]
push eax
call fcn.0040bb03
pop ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.00447f0b
jmp 0x4adfc2
push dword [ebp - 0x54]
push str.Faild_parse_command_line:__s.
push ebx
push 0x4e
push edi
push 0
call fcn.004081cf
add esp, 0x18
push dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
call fcn.00406d28
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.0041685d
mov ecx, eax
call fcn.00407ce4
push 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406991
call fcn.0040bbb6
cmp dword [ebp - 0x4c], 0
je 0x4adfd5
push dword [ebp - 0x4c]
call sub.gdiplus.dll_GdiplusShutdown
call fcn.004096cd
mov ecx, eax
call fcn.004058f8
push str.Update_Exit.
push ebx
push 0x57
push edi
push 4
call fcn.004081cf
add esp, 0x14
call fcn.0045f507
mov ecx, eax
call fcn.0045fc8d
push 0
push esi
lea ecx, [ebp - 0x20]
call fcn.00406991
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x50]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret 0x10
Function at 0x4b08f9
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5088a1
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.004e07c0
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1054], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x1050]
push eax
xor edi, edi
lea eax, [ebp - 0x104c]
inc edi
push eax
mov dword [ebp - 0x1060], 0xc
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x105c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4b0afc
push 0x44
pop esi
push esi
lea eax, [ebp - 0x10b8]
push ebx
push eax
call fcn.004de430
add esp, 0xc
lea eax, [ebp - 0x10b8]
push eax
mov dword [ebp - 0x10b8], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x107c], eax
xor eax, eax
push 0x10
mov word [ebp - 0x1088], ax
lea eax, [ebp - 0x1070]
push ebx
push eax
mov dword [ebp - 0x108c], 0x101
call fcn.004de430
add esp, 0xc
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x10b8]
push eax
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
push str.ipconfig__all
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b0aec
push 0xffffffffffffffff
push dword [ebp - 0x1070]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1070]
call edi
push dword [ebp - 0x106c]
call edi
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.004de430
add esp, 0xc
push ebx
lea eax, [ebp - 0x1074]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x104c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0aec
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x102c]
call fcn.00402650
mov dword [ebp - 4], ebx
push ebx
jmp 0x4b0ac9
mov ecx, dword [ebp - 0x1054]
cmp dword [ecx + 0x10], ebx
je 0x4b0a8c
push 0x2b
push 1
call fcn.00402368
push 0x11
push esi
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x102c]
call fcn.0040cc5b
mov ecx, dword [ebp - 0x1054]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.00401ecc
push ebx
push 1
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], bl
call fcn.0040172d
add esi, 0xf
push esi
lea eax, [ebp - 0x102c]
push eax
call fcn.0040c7b9
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x4b0a78
push ebx
push 1
lea ecx, [ebp - 0x102c]
call fcn.0040172d
push dword [ebp - 0x1050]
call edi
push dword [ebp - 0x104c]
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dea60
leave
ret
Function at 0x4b0f32
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4b1587
Capabilities:
Encode data using xor

Disassembly:
push 0x24
mov eax, 0x508b76
call fcn.004dea6f
mov edi, ecx
mov dword [ebp - 0x10], edi
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
call fcn.004dbd14
mov edx, dword [ebp + 0xc]
push esi
push edx
mov ecx, edi
call fcn.004dba9a
push 2
push edx
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.004dba9a
push 4
push edx
mov ecx, edi
mov ebx, eax
call fcn.004dba9a
push 6
push edx
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.004dba9a
mov edi, dword [ebp - 0x30]
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x18], 8
push dword [edi + esi*4]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004dbacd
push dword [edi + esi*4 + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [edi + esi*4 + 4]
push dword [ebp + 0x14]
add eax, ebx
mov ebx, dword [edi + esi*4 + 8]
add ebx, dword [ebp + 0xc]
mov ecx, 0xffff
and eax, ecx
and ebx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004dbacd
push dword [edi + esi*4 + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
xor ebx, dword [ebp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x20], eax
call fcn.004dbacd
mov ecx, dword [ebp + 0x14]
xor ecx, dword [ebp - 0x14]
push dword [edi + esi*4 + 0x14]
add ecx, eax
and ecx, 0xffff
push ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
call fcn.004dbacd
mov ebx, eax
mov eax, dword [ebp + 0xc]
xor dword [ebp + 8], ebx
add eax, ebx
xor ebx, dword [ebp - 0x1c]
and eax, 0xffff
xor dword [ebp + 0x14], eax
xor eax, dword [ebp - 0x20]
add esi, 6
dec dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
jne 0x4b15f4
push dword [edi + esi*4]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004dbacd
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push eax
call fcn.004dbab3
mov eax, dword [edi + esi*4 + 4]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 2
push dword [ebp + 0x10]
push eax
call fcn.004dbab3
mov ecx, dword [ebp - 0x10]
push 4
push dword [ebp + 0x10]
lea esi, [edi + esi*4 + 8]
mov eax, dword [esi]
add eax, ebx
push eax
call fcn.004dbab3
mov ecx, dword [ebp - 0x10]
push 6
push dword [ebp + 0x10]
push dword [esi + 4]
push dword [ebp + 0x14]
call fcn.004dbacd
mov ecx, dword [ebp - 0x10]
push eax
call fcn.004dbab3
lea ecx, [ebp - 0x30]
call fcn.0042245e
mov al, 1
call fcn.004deb47
ret 0x10
Function at 0x4b1967
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b19b0
cmp byte [ebp - 0x194], 2
jne 0x4b19aa
mov eax, dword [ebp - 0x194]
shr eax, 8
cmp al, 2
jne 0x4b19aa
xor eax, eax
jmp 0x4b19b3
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dea60
leave
ret
Function at 0x4ba40c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4ba43c
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 + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x4ba54c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4ba56e
push dword [esi + 0x134]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x4ba5a5
cmp eax, 2
jg 0x4ba5a5
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x525f18
push 2
push eax
call fcn.004e4aa7
push dword [esi + 0x130]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e4aa7
add esp, 0x20
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4ba873
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4ba84d
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4ba872
push ebx
push esi
call fcn.004bef9f
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004ba6cb
mov eax, dword [esi]
mov dword [eax + 0x85f4], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x4bc21c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
xor edi, edi
cmp dword [esi + 0x45c], edi
push 4
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4bc266
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004ba661
add esp, 0xc
jmp 0x4bc2d1
push dword [esi + 0x460]
mov dword [ebp - 0x10], 1
call fcn.004d2673
imul eax, eax, 0x3e8
push dword [esi + 0x464]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004d2673
imul eax, eax, 0x3e8
pop ecx
pop ecx
push edi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4bc2d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004ba661
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004dea60
leave
ret
Function at 0x4bc815
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x4bc972
cmp dword [esi + 0x1d0], 0
push edi
jne 0x4bc96a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
mov edi, 0x80
mov dword [ebp - 0x10c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4bc894
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004bef9f
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4bc8cb
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4bc8d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004bef9f
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x4bc95a
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x104]
call fcn.004bc7dc
test eax, eax
jne 0x4bc909
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x108]
call fcn.004bef9f
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4bc954
mov esi, dword [ebp - 0x108]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.004ddd50
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp - 0x84]
call fcn.004bc7dc
test eax, eax
jne 0x4bc964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x108]
call fcn.004bef9f
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x110]
call fcn.004ba6cb
add esp, 0x18
jmp 0x4bc971
mov esi, dword [ebp - 0x108]
push esi
call fcn.004bc787
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret

Function at 0x4bc980
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x35c]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4bc9c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004bef9f
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004ba661
add esp, 0x14
jmp 0x4bc9d2
push str.TCP_NODELAY_set_n
push esi
call fcn.004ba661
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4bc9d5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 2
mov dword [ebp - 0x124], 0x4020
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x12c], 4
pop ebx
cmp dword [0x54becc], edi
jne 0x4bca69
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.004de430
add esp, 0xc
push 3
push ebx
push edi
push edi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4bca5f
mov dword [0x54becc], ebx
jmp 0x4bcaba
mov dword [0x54becc], 1
cmp dword [0x54becc], ebx
je 0x4bcaba
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
mov edi, 0x1001
push edi
mov esi, 0xffff
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4bcaa6
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x124]
jg 0x4bcaba
push 4
lea eax, [ebp - 0x124]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5b8]
test esi, esi
je 0x4bcb25
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4bcb25
and dword [ebp - 4], 0
push 0x4bcac9
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
push dword [eax + 0x34]
call fcn.004d0c41
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4bcb2c
and dword [edi + 0x5b8], 0
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4bcb35
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x4bcb25
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4bcb25
mov eax, edi
jmp 0x4bcb28
Function at 0x4bcc66
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0xd4], 0
push esi
mov esi, dword [eax]
or dword [edx], 0xffffffff
mov dword [ebp - 0xd8], edx
lea edx, [ebp - 0xc8]
push edx
lea edx, [ebp - 0xc4]
push edx
push ecx
push eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], esi
call fcn.004bcbad
add esp, 0x10
test eax, eax
je 0x4bccbe
xor eax, eax
jmp 0x4bcec8
push ebx
push edi
lea edi, [ebp - 0xdc]
lea ebx, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.004bc7dc
test eax, eax
jne 0x4bcd1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0xcc]
call fcn.004bef9f
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xd0]
call fcn.004ba6cb
add esp, 0x18
xor esi, esi
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
call fcn.004bcb5b
pop ecx
pop ecx
mov eax, esi
jmp 0x4bcec6
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push esi
call fcn.004ba661
mov ebx, dword [ebp - 0xcc]
add esp, 0xc
cmp dword [esi + 0x35c], 0
je 0x4bcd52
push dword [ebp - 0xc8]
mov edi, ebx
call fcn.004bc980
pop ecx
push dword [ebp - 0xc8]
call fcn.004bc9d5
cmp dword [esi + 0x45c], 0
pop ecx
je 0x4bcd78
mov ebx, dword [ebp - 0xc8]
call fcn.004bc21c
mov ebx, dword [ebp - 0xcc]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4bcda4
push 0
push dword [ebp - 0xc8]
push dword [esi + 0x1b4]
call eax
add esp, 0xc
cmp eax, 2
jne 0x4bcdd9
mov dword [ebp - 0xd4], 1
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
call fcn.004bc38c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4bcde5
push dword [ebp - 0xc8]
push ebx
call fcn.004bcb5b
lea eax, [edi - 1]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, edi
jmp 0x4bcec6
test eax, eax
je 0x4bcda4
push 0x2a
pop esi
jmp 0x4bcd03
push 1
push dword [ebp - 0xc8]
call fcn.004d6815
pop ecx
pop ecx
call fcn.004ba2f8
cmp dword [ebx + 0x238], 1
mov dword [ebx + 0x230], eax
mov dword [ebx + 0x234], edx
jle 0x4bce1c
push dword [ebx + 0x23c]
push esi
call fcn.004b8e24
pop ecx
pop ecx
cmp dword [ebp - 0xd4], 0
jne 0x4bceb6
cmp dword [ebx + 0x8c], 1
jne 0x4bceb6
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xc8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4bcea4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x4bcea2
cmp edi, 0x2732
jle 0x4bce71
cmp edi, 0x2734
jle 0x4bcea2
push edi
push ebx
call fcn.004bef9f
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.004ba661
push dword [ebp - 0xc8]
mov dword [esi + 0x85f4], edi
push ebx
call fcn.004bcb5b
add esp, 0x20
push 7
pop edi
jmp 0x4bceb2
xor edi, edi
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
mov eax, edi
jmp 0x4bcec6
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004dea60
leave
ret
Function at 0x4bd341
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4bd4a0
push edi
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x4bd485
push esi
cmp dword [edi + 4], 2
jne 0x4bd41f
cmp dword [edi + 0x18], ebx
je 0x4bd41f
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x4bd41f
cmp eax, 0x10
jb 0x4bd41f
push 0x20
call dword [0x547048]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4bd42c
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 0x10
mov dword [esi + 0xc], eax
pop eax
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x547048]
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4bd435
push 0x10
push dword [edi + 0x18]
push eax
call fcn.004ddd50
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x4bd40a
push eax
call dword [0x547054]
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4bd445
cmp dword [ebp - 4], ebx
jne 0x4bd412
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4bd41c
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4bd380
jmp 0x4bd45e
mov dword [ebp - 8], 8
jmp 0x4bd45e
push esi
mov dword [ebp - 8], 8
call dword [0x54704c]
jmp 0x4bd45d
push dword [esi + 0x18]
mov dword [ebp - 8], 8
call dword [0x54704c]
push esi
call dword [0x54704c]
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0xc], ebx
je 0x4bd46d
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x4bd480
push dword [ebp - 4]
call fcn.004bd302
pop ecx
mov dword [ebp - 4], ebx
jmp 0x4bd494
cmp dword [ebp - 4], ebx
jne 0x4bd494
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x4be82d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004e4be6
add esp, 0x18
test eax, eax
je 0x4be84f
cmp eax, 0xffffffff
jne 0x4be851
xor eax, eax
pop ebp
ret