joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408cc3
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468b95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
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 0x2712
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00412a00
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
push str.Mozilla_5.0__iPhone__CPU_iPhone_OS_14_0_1_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Mobile_15E148_MicroMessenger_8.0.27_0x18001b34__NetType_4G_Language_zh_CN
lea ecx, [ebp - 0x1c]
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 dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
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 0x2722
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00412a00
add esp, 0xc
push 5
push 0x44
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call fcn.00412a00
add esp, 0xc
push 1
push 0x34
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call fcn.00412a00
add esp, 0xc
push 1
push 0x63
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00412a00
add esp, 0xc
push 0
push 0x2f
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call fcn.00412a00
add esp, 0xc
push 0x408ecc
push 0x4e2b
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call fcn.00412a00
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
push 0x2711
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call fcn.00412a00
add esp, 0xc
push 0
push 0x40
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00412a00
add esp, 0xc
push 0
push 0x51
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call fcn.00412a00
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x408ef8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409a68
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x40]
push ecx
push str.SoftwareSysinternalsAccessEnum
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x18], 4
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push 0
push str.xywh
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push 0
push 0x478880
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x478884
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push 0x478888
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x14], 0xffffffff
je 0x409b45
cmp dword [ebp - 0x10], 0xffffffff
je 0x409b45
push 4
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x1c], 0
jmp 0x409b57
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 8
jge 0x409ba5
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x47888c
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x101d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x409b4e
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40dd13
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40dd23
xor eax, eax
jmp 0x40deec
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40dea4
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46b0cc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x40dd2c
cmp dword [ebp + 0x10], 0
je 0x40dee6
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x46b0cc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x40deaa
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40deee
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
xor edx, eax
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
shr ecx, 8
mov edx, dword [edx*4 + 0x46b0cc]
xor edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
imul ecx, ecx, 0x8088405
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shr ecx, 0x18
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
shr edx, 8
mov eax, dword [eax*4 + 0x46b0cc]
xor eax, edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x40eea2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x40eef2
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40eee8
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x40ef4c
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x40ef12
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x410926
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x410940
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x41094a
mov eax, 0x1000000
jmp 0x410a27
mov edx, dword [ebp - 0x18]
add edx, 0x140
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
add eax, 0x140
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + eax + 0x13f]
mov byte [ebp - 0xc], dl
movsx eax, byte [ebp - 0xc]
cmp eax, 0x5c
je 0x4109a6
movsx ecx, byte [ebp - 0xc]
cmp ecx, 0x2f
je 0x4109a6
push 0x478bfc
mov edx, dword [ebp - 0x18]
add edx, 0x140
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x4109df
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
xor ecx, ecx
cmp dword [ebp - 0x14], 0xffffffff
setne cl
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x10]
and edx, 0xff
test edx, edx
jne 0x4109df
mov eax, 0x2000000
jmp 0x410a27
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040eba1
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410a05
mov eax, dword [ebp - 4]
jmp 0x410a27
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040f326
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x410a25
mov eax, 0x200
jmp 0x410a27
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4114a7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [ebp + 8], 0
je 0x4114d1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4114d1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x4114e0
jmp 0x4115e1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x411526
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x411512
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x41151b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4114f2
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp + 0xc]
je 0x41158d
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp + 0xc]
mov byte [ebp + ecx - 0x214], 0
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004114a7
add esp, 8
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x108], 0
cmp dword [ebp + 8], 0
je 0x4115ad
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4115e1
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x412830
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
push ebx
push esi
push edi
mov word [ebp - 4], 0x202
lea eax, [ebp - 0x194]
push eax
mov cx, word [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x41286d
mov eax, 2
jmp 0x4128f1
mov edx, dword [ebp - 0x194]
and edx, 0xffff
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 0xff
and eax, 0xff
cmp edx, eax
jne 0x4128c6
mov ecx, dword [ebp - 0x194]
and ecx, 0xffff
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 4]
and edx, 0xffff
shr edx, 8
and edx, 0xff
cmp ecx, edx
je 0x4128d3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x4128f1
call fcn.004156d0
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x4128ef
mov eax, dword [ebp - 0x19c]
jmp 0x4128f1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425170
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425230
add esp, 8
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x42521e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
jne 0x4251e3
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x51
jmp 0x42521e
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042c9d0
add esp, 8
push eax
push str.Send_failure:__s
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00424ef0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x472c], ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], 0x37
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1b8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x438]
mov edx, dword [ecx + 0x3c]
and edx, 3
test edx, edx
je 0x42536a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x1a8], 0x4253d0
jne 0x42536a
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x4252ab
cmp dword [ebp - 0xc], 0
je 0x42536a
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.00412f20
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x42536a
mov ecx, dword [ebp - 0x10]
and ecx, 1
test ecx, ecx
je 0x42536a
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x42531c
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0x8000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [0x478f9c]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x425360
xor ecx, ecx
test ecx, ecx
jne 0x425324
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
push ecx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x42535e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [eax + 8], edx
jmp 0x42536a
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x425a72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0x2733
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x425a6b
mov eax, 0x51
jmp 0x425a7c
mov eax, 0x38
jmp 0x425a7c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1a0], 0
je 0x425e5d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
mov eax, dword [ebp + 0x14]
push eax
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 + 8]
call dword [ecx + 0x1a0]
add esp, 0x14
jmp 0x425eb4
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jl 0x425eb2
cmp dword [ebp - 4], 2
jle 0x425e71
jmp 0x425eb2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
push ecx
push 1
push 2
mov edx, dword [ebp + 0xc]
imul edx, edx, 3
add edx, 0x46c558
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
push ecx
push 1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x8c], 2
jne 0x429438
jmp 0x42961d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3a0], 0
jne 0x429611
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x410], 0
jne 0x429611
mov dword [ebp - 4], 0x80
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4294b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042c9d0
add esp, 8
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push str.getpeername___failed_with_errno__d:__s
mov edx, dword [ebp - 0x108]
push edx
call fcn.00424ef0
add esp, 0x10
jmp 0x42961d
mov dword [ebp - 4], 0x80
push 0x80
push 0
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42952e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042c9d0
add esp, 8
push eax
mov eax, dword [ebp - 0x10c]
push eax
push str.getsockname___failed_with_errno__d:__s
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.00424ef0
add esp, 0x10
jmp 0x42961d
mov edx, dword [ebp + 8]
add edx, 0x130
push edx
mov eax, dword [ebp + 8]
add eax, 0x102
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.00429630
add esp, 0xc
test eax, eax
jne 0x429594
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042c9d0
add esp, 8
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
mov edx, dword [ebp - 0x108]
push edx
call fcn.00424ef0
add esp, 0x10
jmp 0x42961d
push 0x2e
mov eax, dword [ebp + 8]
add eax, 0x102
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x164
push edx
mov eax, dword [ebp + 8]
add eax, 0x134
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00429630
add esp, 0xc
test eax, eax
jne 0x429611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042c9d0
add esp, 8
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
mov edx, dword [ebp - 0x108]
push edx
call fcn.00424ef0
add esp, 0x10
jmp 0x42961d
mov eax, dword [ebp + 8]
push eax
call fcn.00429360
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret