joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4127de
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412809
xor al, al
jmp 0x412849
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int__char_]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push ebx
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x412840
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
pop ebp
ret

Function at 0x412882
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4128ad
xor eax, eax
jmp 0x4128c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4128c4
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41296d
push edi
lea eax, [ebp + 8]
push edi
push eax
push dword [ebp + 8]
push edi
call sub.urlmon.dll_URLOpenBlockingStreamW
test eax, eax
jl 0x41296d
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x412962
inc dword [ebp - 0x48]
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, dword [ebp + 0xc]
mov edx, eax
cmp edx, edi
pop ecx
mov dword [ebx], edx
je 0x412962
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
lea eax, [esi - 1]
mov esi, dword [ebp + 0x10]
push edi
push edi
push dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
push edi
push dword [esi]
mov ecx, dword [eax]
push dword [ebx]
push eax
call dword [ecx + 0xc]
push 1
pop edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret
Function at 0x412dfd
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
sub eax, 0
push edi
je 0x412f25
dec eax
je 0x412ee4
dec eax
je 0x412ea9
dec eax
je 0x412e6e
dec eax
jne 0x412f76
push 1
lea eax, [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
push eax
push 0x414a8c
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.0040b598
add esp, 0x20
lea eax, [ebp - 1]
push 1
sub esp, 0x10
mov ecx, esp
push eax
push 0x4148a8
jmp 0x412f61
push 1
lea eax, [ebp - 2]
sub esp, 0x10
mov ecx, esp
push eax
push 0x414a88
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.0040b598
add esp, 0x20
lea eax, [ebp - 3]
push 1
sub esp, 0x10
mov ecx, esp
jmp 0x412f1d
push 1
lea eax, [ebp - 4]
sub esp, 0x10
mov ecx, esp
push eax
push 0x415df0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.0040b598
add esp, 0x20
lea eax, [ebp - 5]
push 1
sub esp, 0x10
mov ecx, esp
jmp 0x412f1d
push 1
lea eax, [ebp - 6]
sub esp, 0x10
mov ecx, esp
push eax
push 0x414a90
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.0040b598
add esp, 0x20
lea eax, [ebp - 7]
push 1
sub esp, 0x10
mov ecx, esp
push eax
push 0x414a8c
jmp 0x412f61
push 1
lea eax, [ebp - 8]
sub esp, 0x10
mov ebx, 0x414a8c
mov ecx, esp
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov edi, str.Control_PanelDesktop
push str.WallpaperStyle
mov esi, 0x80000001
push edi
push esi
call fcn.0040b598
add esp, 0x20
lea eax, [ebp - 9]
push 1
sub esp, 0x10
mov ecx, esp
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
push str.TileWallpaper
push edi
push esi
call fcn.0040b598
add esp, 0x20
push 3
push dword [ebp + 0xc]
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x360
mov eax, dword [0x444e60]
xor eax, esp
push esi
push edi
mov edi, dword [esp + 0x36c]
mov dword [esp + 0x364], eax
lea eax, [esp + 0x15c]
push 0x104
push eax
mov esi, ecx
call fcn.00402760
add esp, 8
lea ecx, [esp + 0x58]
push ecx
push 0
push 0x43895c
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x58]
push eax
push edi
push 0x438954
push edi
call fcn.0041ed40
lea ecx, [esp + 0x270]
push ecx
lea edx, [esi + 0xba0]
push edx
call fcn.00402670
mov eax, dword [esi + 0x11a4]
push eax
lea ecx, [esp + 0x54]
push 0x438950
push ecx
call fcn.0041ed40
mov edx, dword [esi + 0x11a8]
push edx
lea eax, [esp + 0x50]
push 0x438950
push eax
call fcn.0041ed40
mov ecx, dword [esi + 0x11ac]
push ecx
lea edx, [esp + 0x7c]
push 0x438950
push edx
call fcn.0041ed40
mov edx, dword [esi + 0x11b0]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 0x44]
push eax
push 0x438950
push ecx
call fcn.0041ed40
mov eax, dword [esi + 0x11b4]
add esp, 0x48
xor edx, edx
test eax, eax
setne dl
lea eax, [esp + 0x18]
push edx
push 0x438950
push eax
call fcn.0041ed40
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0xa0]
push edx
push str.PROTOCOL
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x1a0]
push ecx
push str.BROKER
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esi + 0x2a0]
push eax
push str.PROVIDER
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0x3a0]
push edx
push str.SKINURL
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x4a0]
push ecx
push str.SKINPATH
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esi + 0x5a0]
push eax
push str.SKINVERSION
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x3c]
push edx
push str.MAXSPEED
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.LIMITSENDBPS
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x4c]
push eax
push str.MINRECVBPS
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0x9a0]
push edx
push str.HASH
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0xaa0]
push ecx
push str.TITLE
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x264]
push eax
push str.DEFAULTDIR
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0xc]
push edx
push str.AUTOSTART
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.AUTOCLOSE
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
add esi, 0xfa0
push esi
push str.SUPERPEER
push str.neffymansp
call edi
mov ecx, dword [esp + 0x364]
pop edi
pop esi
xor ecx, esp
call fcn.0041f1a4
add esp, 0x360
ret 4
Function at 0x401a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401a6d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a8e
cmp esi, eax
jae 0x401a67
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a80
cmp esi, eax
jae 0x401a67
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401c10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x444e60]
xor eax, esp
push esi
push edi
mov dword [esp + 0x270], eax
lea eax, [esp + 8]
push eax
mov esi, ecx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x28]
push edx
push str.EXEPATH
push str.SoftwareCDNetworksNeffyManSp
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], 0x104
mov byte [esp + 0x80], 0
call fcn.00402310
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x188]
push 0x438960
push ecx
call fcn.0041ed40
add esp, 0x24
lea edx, [esp + 0x16c]
push edx
mov ecx, esi
call fcn.004016a0
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x28]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18c]
push eax
push 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
mov word [esp + 0x7c], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
pop esi
jne 0x401d26
push eax
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 4]
push 0
push 0
push edx
call fcn.0043442a
xor eax, eax
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0041f1a4
add esp, 0x26c
ret
mov ecx, dword [esp + 0x268]
xor ecx, esp
mov eax, 1
call fcn.0041f1a4
add esp, 0x26c
ret
Function at 0x402310
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
lea eax, [esp + 8]
push eax
push 1
xor esi, esi
push esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40236c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402368
mov ecx, dword [esp + 0xc]
push ecx
mov esi, 1
call edi
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x402380
Capabilities:
Get file version info

Disassembly:
sub esp, 0x40
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x50]
lea eax, [esp + 0xc]
push eax
push edi
xor ebp, ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x402444
push ebx
push esi
call fcn.00432113
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40242d
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x4389ac
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40242d
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x2c]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x68]
push str._d__d__d__d
push eax
call fcn.0041ed40
add esp, 0x18
mov ebp, 1
test ebx, ebx
je 0x40243a
push ebx
call fcn.0043210e
add esp, 4
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x40
ret
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x40
ret

Function at 0x402550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x444e60]
xor eax, esp
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0x10c], eax
lea eax, [esp + 4]
push eax
push 0
push 0
mov byte [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
pop esi
jmp 0x4025a0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4025a0
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041f1a4
add esp, 0x10c
ret
Function at 0x4025c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x114
mov eax, dword [0x444e60]
xor eax, esp
push esi
mov esi, dword [esp + 0x11c]
mov dword [esp + 0x114], eax
lea eax, [esp + 8]
push eax
push 0x26
push 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402607
sub eax, edx
mov dword [esp + 4], eax
jne 0x402644
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0x104
call fcn.00402310
add esp, 0x18
lea eax, [esp + 0x10]
mov edx, esi
mov ecx, eax
sub edx, ecx
pop esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402650
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041f1a4
add esp, 0x114
ret

Function at 0x4028c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4028fa
mov ax, word [esp]
cmp al, 1
jne 0x4028f4
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x4028f4
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x409b30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [ecx + eax]
mov eax, 0x1505
cmp ecx, edx
jae 0x409b57
push esi
mov esi, eax
shl esi, 5
add eax, esi
movsx esi, byte [ecx]
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x409b45
pop esi
ret

Function at 0x40cad0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [edi + 0x334]
mov dword [esp + 0x14], eax
mov ebp, dword [eax + 0x9c]
test ebp, ebp
jne 0x40caff
mov eax, dword [eax + 0x98]
test eax, eax
mov ebp, eax
jne 0x40caff
mov ebp, 0x12c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp + ebp*4]
mov ecx, dword [esi + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x14]
mov ebp, eax
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x14], 0
push ecx
call ebx
test ebp, ebp
mov dword [esi + 0x18], 0
mov bl, 1
jne 0x40cb6e
mov edx, dword [esi]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40cbc6
mov eax, dword [esi]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x32c], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cb8e
mov ecx, dword [edi + 0x328]
mov dword [eax], ecx
mov eax, dword [edi + 0x328]
xor esi, esi
test eax, eax
jne 0x40cc70
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x40cbe2
push ebp
mov esi, ebp
call sym.SportLauncher.exe_curl_easy_strerror
mov edx, dword [esp + 0x18]
push eax
push str.Could_not_resolve_host:__s
push edx
call fcn.0040dc60
add esp, 0x10
jmp 0x40cc70
mov ecx, dword [edi + 0x330]
push ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esi]
lea ebp, [esi + 8]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x40cb7e
mov al, byte [edi + 0x32c]
test al, al
je 0x40cc44
mov al, byte [edi + 0xe7]
test al, al
mov eax, dword [edi + 0x330]
push eax
push edi
je 0x40cc21
call fcn.0041b260
mov ecx, dword [edi + 0x48]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.Could_not_resolve_proxy:__s___s
push edx
call fcn.0040dc60
add esp, 0x18
mov esi, 5
jmp 0x40cc70
call fcn.0041b260
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.Could_not_resolve_host:__s___s
push edx
call fcn.0040dc60
add esp, 0x18
mov esi, 6
jmp 0x40cc70
cmp ebp, 0xffffffff
je 0x40cc55
cmp dword [edi + 0x330], 0x2afc
jne 0x40cc6b
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x14]
push eax
push 0x441158
push ecx
call fcn.0040dc60
add esp, 0xc
mov esi, 0x1c
lea edx, [edi + 0x320]
push edx
call fcn.0040c9f0
mov eax, dword [edi + 0x328]
add esp, 4
test eax, eax
jne 0x40cc8f
mov byte [edi + 0xe4], bl
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40cd50
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push esi
mov ebx, dword [edi]
mov dword [eax], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x40cd88
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
call fcn.0040c8d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x1c]
push 0
push ebp
push esi
push edi
call fcn.0040ce10
add esp, 0x10
test al, al
je 0x40cdae
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0041b260
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0040dbf0
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40cdfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0041b260
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0040dbf0
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push eax
call fcn.0040c940
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
xor eax, eax
cmp ecx, dword [esi + 0xa4]
sete al
mov dl, byte [eax + esi + 0xb0]
test dl, dl
je 0x40dde8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
push esi
call fcn.00402ff0
add esp, 0x10
mov edi, eax
jmp 0x40de39
mov eax, dword [esi + 0x168]
test eax, eax
je 0x40ddf7
or edi, 0xffffffff
jmp 0x40de11
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40de39
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2733
jne 0x40de21
xor edi, edi
jmp 0x40de39
push eax
push esi
call fcn.0041b260
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0040dc60
add esp, 0x14
mov ecx, dword [esp + 0x1c]
mov eax, edi
inc eax
neg eax
sbb eax, eax
mov dword [ecx], edi
and al, 0xc9
pop edi
add eax, 0x37
pop esi
ret
Function at 0x40def0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [eax + 0xa4]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x20]
cmp edx, esi
sete cl
mov dword [edi], 0
mov bl, byte [ecx + eax + 0xb0]
test bl, bl
je 0x40df3e
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00402ff0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x40df80
pop edi
pop esi
or eax, eax
pop ebx
ret
mov dword [edi], 0
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x40df53
or esi, 0xffffffff
jmp 0x40df6d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40df80
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2733
jne 0x40df80
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov dword [edi], esi
pop edi
pop esi
xor eax, eax
pop ebx
ret