joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406078]
test esi, esi
jle 0x4019d0
mov eax, dword [0x40607c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4018e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401967
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4018d0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4019f7
mov eax, dword [0x40607c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40607c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4019d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401960
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401970
add dword [0x406078], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40607c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401960
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4018ee
mov eax, dword [0x40607c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x401eb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40608c]
sub esp, 4
test ebx, ebx
je 0x401f05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401efe
test esi, esi
je 0x401efe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ee0
mov dword [esp], 0x406094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402255
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402260
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402255
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4022a8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40229e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402290
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x470
mov eax, dword [0x40a040]
xor eax, esp
mov dword [esp + 0x46c], eax
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0x4076d0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xor eax, eax
push 0x208
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0x260]
push dword [esp + 0xc]
call fcn.00401790
push 0x407588
lea ecx, [esp + 0x264]
call fcn.00401790
lea eax, [esp + 0x10]
xor esi, esi
push eax
lea eax, [esp + 0x264]
push eax
call dword [0x40a64c]
mov edi, eax
cmp edi, 0xffffffff
je 0x4019e6
lea eax, [esp + 0x10]
inc esi
push eax
push edi
call dword [0x40a658]
test eax, eax
jne 0x4019d5
mov ecx, dword [esp + 0x474]
lea eax, [esi - 2]
cmp esi, 2
pop edi
cmovl eax, esi
pop esi
xor ecx, esp
call fcn.0040542a
mov esp, ebp
pop ebp
ret
Function at 0x401a10
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
mov esi, ecx
push eax
push 0x20019
push 0
mov dword [ebp - 0x10c], esi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov dword [ebp - 0x10c], esi
push closesocket
mov dword [ebp - 0x108], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401b2e
mov dword [ebp - 0x124], 0x44
xor edx, edx
mov byte [ebp - 0x120], 0x11
mov byte [ebp - 0x11f], 0x2a
mov byte [ebp - 0x11e], 0x2f
mov byte [ebp - 0x11d], 0x2a
mov byte [ebp - 0x11c], 0x2b
mov byte [ebp - 0x11b], 0x33
mov byte [ebp - 0x11a], 0x2a
mov byte [ebp - 0x119], 0x64
mov byte [ebp - 0x118], 0x14
mov byte [ebp - 0x117], 0x36
mov byte [ebp - 0x116], 0x2b
mov byte [ebp - 0x115], 0x27
mov byte [ebp - 0x114], 0x21
mov byte [ebp - 0x113], 0x37
mov byte [ebp - 0x112], 0x37
mov byte [ebp - 0x111], 0x2b
mov byte [ebp - 0x110], 0x36
mov al, byte [ebp - 0x120]
mov byte [ebp - 0x10f], 0
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + edx - 0x120]
mov ecx, dword [ebp - 0x124]
xor cl, al
mov byte [ebp + edx - 0x120], cl
inc edx
cmp edx, 0x11
jb 0x401b00
mov byte [ebp - 0x10f], 0
lea eax, [ebp - 0x120]
jmp 0x401c21
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.ProcessorNameString
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401c1b
mov dword [ebp - 0x124], 0x78
xor edx, edx
mov byte [ebp - 0x120], 0x2d
mov byte [ebp - 0x11f], 0x16
mov byte [ebp - 0x11e], 0x13
mov byte [ebp - 0x11d], 0x16
mov byte [ebp - 0x11c], 0x17
mov byte [ebp - 0x11b], 0xf
mov byte [ebp - 0x11a], 0x16
mov byte [ebp - 0x119], 0x58
mov byte [ebp - 0x118], 0x28
mov byte [ebp - 0x117], 0xa
mov byte [ebp - 0x116], 0x17
mov byte [ebp - 0x115], 0x1b
mov byte [ebp - 0x114], 0x1d
mov byte [ebp - 0x113], 0xb
mov byte [ebp - 0x112], 0xb
mov byte [ebp - 0x111], 0x17
mov byte [ebp - 0x110], 0xa
mov al, byte [ebp - 0x120]
mov byte [ebp - 0x10f], 0
nop dword [eax]
mov al, byte [ebp + edx - 0x120]
mov ecx, dword [ebp - 0x124]
xor cl, al
mov byte [ebp + edx - 0x120], cl
inc edx
cmp edx, 0x11
jb 0x401bf0
mov byte [ebp - 0x10f], 0
lea eax, [ebp - 0x120]
jmp 0x401c21
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.00403ad0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040542a
mov esp, ebp
pop ebp
ret
Function at 0x401d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x40a040]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push edi
mov edi, dword [ebp + 8]
push 0x404
push 0
push eax
mov dword [esp + 0x38], ecx
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
cmp dword [0x40a674], 0xf
mov eax, 0x40a660
cmova eax, dword [0x40a660]
push 0xc
push eax
lea eax, [esp + 0x38]
push eax
call ebx
add esp, 0xc
mov dword [esp + 0x3c], 1
cmp dword [edi + 0x14], 0xf
jbe 0x401db1
mov edi, dword [edi]
push 0xc
lea eax, [esp + 0x44]
push edi
push eax
call ebx
add esp, 0xc
cmp dword [esi + 0x14], 0xf
jbe 0x401dc6
mov esi, dword [esi]
push 0x3e8
lea eax, [esp + 0x50]
push esi
push eax
call ebx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x3c]
add esp, 0xc
push 0x404
push eax
call fcn.00404e80
test eax, eax
je 0x401ed2
mov byte [esp + 0xc], 0x49
mov byte [esp + 0xd], 0x64
mov byte [esp + 0xe], 0x6c
mov byte [esp + 0xf], 0x6f
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x11], 0x67
mov byte [esp + 0x12], 0x23
mov byte [esp + 0x13], 0x77
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x23
mov byte [esp + 0x16], 0x76
mov byte [esp + 0x17], 0x68
mov byte [esp + 0x18], 0x71
mov byte [esp + 0x19], 0x67
mov byte [esp + 0x1a], 0x23
mov byte [esp + 0x1b], 0x73
mov byte [esp + 0x1c], 0x64
mov byte [esp + 0x1d], 0x66
mov byte [esp + 0x1e], 0x6e
mov byte [esp + 0x1f], 0x68
mov byte [esp + 0x20], 0x77
mov byte [esp + 0x21], 0x23
mov byte [esp + 0x22], 0x77
mov byte [esp + 0x23], 0x72
mov byte [esp + 0x24], 0x23
mov byte [esp + 0x25], 0x56
mov byte [esp + 0x26], 0x68
mov byte [esp + 0x27], 0x75
mov byte [esp + 0x28], 0x79
mov byte [esp + 0x29], 0x68
mov byte [esp + 0x2a], 0x75
mov byte [esp + 0x2b], 0
mov al, byte [esp + 0xc]
xor eax, eax
nop word [eax + eax]
mov cl, byte [esp + eax + 0xc]
sub cl, 3
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 0x1f
jb 0x401ea0
push 0x403f20
push ecx
lea eax, [esp + 0x14]
push eax
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403cf0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040542a
mov esp, ebp
pop ebp
ret
Function at 0x4046f0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00405030
cmp dword [esi + 8], eax
jne 0x4047de
xor eax, eax
cmp dword [esi + 4], eax
push edi
setne al
push 0
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
call fcn.00405030
cmp edi, eax
jne 0x404734
push 0x403f20
push str.Failed_to_create_socket
jmp 0x4047c7
call fcn.00405030
cmp dword [esi + 8], eax
jne 0x4047dd
push ebx
mov bl, byte [esi + 0xc]
mov dword [esi + 8], edi
mov byte [ebp - 4], bl
call fcn.00405030
cmp edi, eax
je 0x404761
push dword [ebp - 4]
push edi
call fcn.00405040
add esp, 8
cmp dword [esi + 4], 0
lea ecx, [ebp - 4]
mov eax, dword [esi + 8]
mov byte [esi + 0xc], bl
pop ebx
push 4
mov dword [ebp - 4], 1
push ecx
jne 0x4047aa
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4047dd
push 0x403f20
push str.all_your_TCP_packets_will_be_buffered
push str.Failed_to_set_socket_option__TCP_NODELAY___
call fcn.00405160
push eax
call fcn.00403cf0
add esp, 8
jmp 0x4047cc
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4047dd
push 0x403f20
push str.Failed_to_enable_broadcast_on_UDP_socket
call fcn.00405160
push eax
call fcn.00403cf0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4049e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push str.255.255.255.255
push esi
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.00404850
add esp, 8
test al, al
je 0x404a1b
mov dword [edi], 0xffffffff
mov byte [edi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.0.0.0.0
push esi
call fcn.00404850
add esp, 8
test al, al
jne 0x404a9d
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x404a37
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x404a51
mov dword [edi], eax
mov byte [edi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 0xf
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x1c], 2
movups xmmword [ebp - 0x10], xmm0
mov dword [ebp + 8], 0
jbe 0x404a72
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x404aa1
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x404aa1
mov eax, dword [ecx + 0x18]
push ecx
mov esi, dword [eax + 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
mov byte [edi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404b90
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x12c], eax
call fcn.004046c0
lea esi, [edi + 0x18]
mov dword [edi + 0x10], 0
lea eax, [ebp - 0x148]
mov dword [edi + 0x14], 0
cmp esi, eax
je 0x404bf0
mov ecx, esi
call fcn.00403c50
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, edi
call fcn.004046f0
push dword [ebp - 0x12c]
mov ecx, ebx
call fcn.00404ab0
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404f90
push dword [0x40a234]
push dword [0x40a230]
movups xmm0, xmmword [eax]
push dword [ebp + 0x14]
movups xmmword [ebp - 0x14], xmm0
push dword [ebp + 0x10]
call fcn.00405070
add esp, 0x1c
mov ecx, edi
test al, al
je 0x404c64
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.004047f0
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404ca3
call fcn.00404fd0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040542a
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404800
mov bl, al
mov byte [ebp - 0x12c], bl
test bl, bl
je 0x404c7e
push 0
mov ecx, edi
call fcn.00404810
push 0x10
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.004047f0
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x404cb8
push dword [ebp - 0x12c]
mov ecx, edi
call fcn.00404810
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040542a
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404fd0
mov esi, eax
test bl, bl
je 0x404de2
cmp esi, 1
jne 0x404dd9
mov ecx, edi
mov dword [ebp - 0x128], 0
call fcn.004047f0
inc dword [ebp - 0x128]
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x124], eax
call fcn.00405090
push 0
push 0xf4240
push edx
push eax
call fcn.00405940
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x13c], eax
call fcn.00405090
push 0
push 0xf4240
push edx
push eax
call fcn.004059f0
mov dword [ebp - 0x138], eax
mov ecx, edi
lea eax, [ebp - 0x13c]
push eax
push 0
lea eax, [ebp - 0x128]
push eax
push 0
call fcn.004047f0
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x404dd2
mov ecx, edi
call fcn.004047f0
mov esi, eax
call fcn.00405030
cmp esi, eax
je 0x404d9f
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x10
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004047f0
push eax
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x404d9f
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea ecx, [ebp - 0x134]
call fcn.004048e0
jmp 0x404db6
mov eax, dword [0x40a210]
mov ecx, dword [0x40a214]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], ecx
lea eax, [ebp - 0x134]
push 0x40a210
push eax
call fcn.004049b0
add esp, 8
test al, al
je 0x404dd2
xor esi, esi
jmp 0x404dd9
call fcn.00404fd0
mov esi, eax
push 1
mov ecx, edi
call fcn.00404810
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040542a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404e00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esi], 0
test eax, eax
jne 0x404e3e
push 0x403f20
push str.Cannot_receive_data_from_the_network__the_destination_buffer_is_invalid_
call fcn.00405160
push eax
call fcn.00403cf0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, 4
pop esi
pop ebp
ret 0xc
push 0
push dword [ebp + 0xc]
push eax
call fcn.004047f0
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x404e5d
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0xc
jne 0x404e69
mov eax, 3
pop esi
pop ebp
ret 0xc
call fcn.00404fd0
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov edx, ecx
mov dword [ebp - 4], edx
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x404f48
test esi, esi
je 0x404f48
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edi], 0
push 0
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
mov ecx, edx
push eax
call fcn.004047f0
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x404f2a
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
add ecx, eax
mov dword [edi], ecx
cmp ecx, esi
jb 0x404ef5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00404fd0
cmp eax, 1
jne 0x404f21
cmp dword [edi], 0
mov ecx, 2
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x403f20
push str.Cannot_send_data_over_the_network__no_data_to_send_
call fcn.00405160
push eax
call fcn.00403cf0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4050a0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov dword [edi], vtable.DefaultErrStreamBuf.0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
cmp eax, esi
je 0x40510d
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push 2
sub esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, edi
push eax
push esi
push 1
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char___char__]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
call fcn.00405bd9
add esp, 4
mov ecx, edi
pop edi
pop esi
jmp dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
Function at 0x4052f0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
cmp eax, esi
je 0x405357
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push 2
sub esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, edi
push eax
push esi
push 1
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char___char__]
pop edi
xor eax, eax
pop esi
ret

Function at 0x405468
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x40549d
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40549a
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4054a6
add edx, 0x28
cmp edx, esi
jne 0x405488
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4054a3

Function at 0x406190
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4061cf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4061cf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4061cf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4061cf
cmp dword [ecx + 0x74], 0xe
jbe 0x4061cf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret