joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417e20
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x48]
add ecx, 4
call fcn.0041f8a4
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x48]
add ecx, 0x20
call fcn.00421e10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov dword [eax], vtable.ToolTableParameterClient.0
push 0x455d88
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push 0x455de8
push str.ETTProtOldMode
push 0x455d6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xa
push 0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.MSVCRT.dll_strtol]
add esp, 0xc
mov dword [ebp - 0x10], eax
push str.WS5_ADDRESS
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x10], 0
jne 0x417ef1
cmp dword [ebp - 0x34], 0
je 0x417ef1
mov eax, dword [ebp - 0x48]
add eax, 4
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x34]
push eax
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 - 0x4c], eax
push 0x803
mov ecx, dword [ebp - 0x48]
add ecx, 0x20
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x20]
call dword [eax + 0x68]
jmp 0x417f26
mov ecx, dword [ebp - 0x48]
add ecx, 4
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp - 0x44]
push edx
push str.localhost
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 - 0x50], eax
push 0x802
mov ecx, dword [ebp - 0x48]
add ecx, 0x20
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 0x20]
call dword [edx + 0x68]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41be57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.00404970
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
jne 0x41be86
xor eax, eax
jmp 0x41bf29
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.00404970
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x41beab
xor eax, eax
jmp 0x41bf29
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41bec5
xor eax, eax
jmp 0x41bf29
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
lea ecx, [ecx + eax + 0x400]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [ecx]
lea edx, [eax + ecx + 0x400]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x41e013
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x41e079
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x41e06f
cmp dword [ebp - 0x1c], 0x12
jne 0x41e059
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x41e079
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x41e077
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e025
mov esp, ebp
pop ebp
ret 4

Function at 0x41e1d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x41e1f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret
Function at 0x41fa9d
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442122
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
mov dword [ebp - 0x1b0], ecx
lea eax, [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x1b0]
add ecx, 8
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1b0]
mov dword [ecx], vtable.SWBaseSocket.0
mov edx, dword [ebp - 0x1b0]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x1b0]
mov byte [eax + 0x30], 0
push 0x45bc68
mov ecx, dword [ebp - 0x1b0]
add ecx, 8
call dword [0x4458a8]
mov ecx, dword [ebp - 0x1b0]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x1b0]
mov byte [edx + 0x18], 1
mov eax, dword [ebp - 0x1b0]
mov byte [eax + 0x24], 1
mov ecx, dword [ebp - 0x1b0]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x1b0]
mov dword [edx + 0x3c], 0
xor eax, eax
mov al, byte [0x456ce5]
cmp eax, 1
jne 0x41fbc9
lea ecx, [ebp - 0x19c]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x41fbb5
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1a8], esp
lea edx, [ebp - 0x1ac]
push edx
push str.SWBaseSocket___WSAStartup___failed:
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 - 0x1b4], eax
push 0
mov ecx, dword [ebp - 0x1b0]
call fcn.00421287
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
push 0x41f86b
call fcn.00440234
add esp, 4
mov byte [0x456ce5], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41fc49
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
call dword [edx + 0x44]
mov byte [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41fcbe
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 8], esp
lea eax, [ebp - 0xc]
push eax
push str.SWBaseSocket::listen___error:
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 - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
call dword [eax + 0x54]
xor al, al
jmp 0x41fccf
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
call dword [eax + 0x58]
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4201cd
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44219b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
jge 0x420248
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x18]
push edx
push str.SWBaseSocket::send_____No_connection
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 - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 4
call fcn.0041f91f
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x5c]
or eax, 0xffffffff
jmp 0x4202bf
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.0042121f
and eax, 0xff
test eax, eax
jne 0x420262
or eax, 0xffffffff
jmp 0x4202bf
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4202ad
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x24]
push eax
push str.SWBaseSocket::send___error:
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 - 0x38], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
call dword [eax + 0x54]
jmp 0x4202bc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
call dword [eax + 0x58]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42050c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4421f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
jge 0x42058a
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x18]
push edx
push str.SWBaseSocket::recv_____No_connection
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 - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 4
call fcn.0041f91f
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x5c]
or eax, 0xffffffff
jmp 0x420662
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.004211f6
and eax, 0xff
test eax, eax
jne 0x4205a7
or eax, 0xffffffff
jmp 0x420662
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4205f2
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x24]
push eax
push str.SWBaseSocket::recv___error:
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 - 0x44], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
call dword [eax + 0x54]
jmp 0x42065f
cmp dword [ebp - 0x10], 0
jne 0x420650
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 0x30], 1
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], esp
lea edx, [ebp - 0x2c]
push edx
push str.SWBaseSocket::recv_____Connection_terminated_by_peer
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 - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push 6
call fcn.0041f91f
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x5c]
jmp 0x42065f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
call dword [eax + 0x58]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4209c6
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44227a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 8], 0
jne 0x420a40
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0x18]
push eax
push str.SWBaseSocket::get_host_____Got_NULL_pointer
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 - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 1
call fcn.0041f91f
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call dword [edx + 0x5c]
xor al, al
jmp 0x420afa
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
jge 0x420a9c
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
lea edx, [ebp - 0x24]
push edx
push str.SWBaseSocket::get_host_____No_socket
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 - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 4
call fcn.0041f91f
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x5c]
xor al, al
jmp 0x420afa
mov dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x420ae9
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x30]
push edx
push str.SWBaseSocket::get_host___error:
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 - 0x50], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
call dword [edx + 0x54]
xor al, al
jmp 0x420afa
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
call dword [edx + 0x58]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x421c12
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442382
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 0x28]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 8
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp dword [ebp + 8], 0
je 0x421c74
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00421d90
lea edx, [ebp + 0x28]
push edx
mov ecx, dword [ebp + 8]
add ecx, 8
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x18], ecx
jmp 0x421ce3
xor edx, edx
mov dl, byte [0x456ce4]
test edx, edx
je 0x421c8b
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x48]
call dword [edx + 0x3c]
xor eax, eax
mov al, byte [0x45bc5c]
test eax, eax
je 0x421cdb
lea ecx, [ebp - 0x28]
call fcn.0041f8a4
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00421d90
lea edx, [ebp + 0x28]
push edx
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00421d40
push 0x44d5a8
lea edx, [ebp - 0x44]
push edx
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00417f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
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 0x30
Function at 0x421e56
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jge 0x421ea2
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x34], 2
jne 0x421e97
push 1
push 0x8004667e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call fcn.0041f83f
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
call dword [eax + 0x4c]
mov esp, ebp
pop ebp
ret
Function at 0x425d80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xff
cmp edx, 1
jne 0x425dc9
push 0x455d88
push 0
push str.LINUXPORT
push 0x455d6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x425dc9
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 0x3e8
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x426010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44285e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov dword [ebp - 0x84], ecx
push 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.004251b3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x84]
mov dword [eax], vtable.F2Conversation.0
cmp dword [0x45bcf8], 0
jne 0x426080
mov dword [0x45bcf8], 1
mov ecx, dword [ebp - 0x84]
mov dword [ecx + 0x1a20], 0xffffffff
mov edx, dword [ebp - 0x84]
mov dword [edx + 0x4c], 1
push 0
push 0
call fcn.00403be0
mov eax, dword [eax + 0x20]
push eax
mov ecx, dword [sym.imp.MFC42.DLL_CRectconstCFrameWnd::rectDefault]
push ecx
push 0x40000000
mov edx, dword [ebp + 0x10]
push edx
push str.F2_Conversation:
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x80]
push edx
call sub.MFC42.DLL_operator_3
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
call fcn.00402550
push eax
push 0
mov ecx, dword [ebp - 0x84]
call sub.MFC42.DLL_CWnd::Create
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 0x14]
call fcn.00402740
mov esi, eax
mov ecx, 0x45bce4
call fcn.00402740
cmp esi, eax
jne 0x4261e0
push 0x457e44
push 0
push str.Delay1
push 0x457e58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
push 0x457e60
push 0
push str.Delay2
push 0x457e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x42619e
cmp dword [ebp - 0x14], 0
je 0x4261e0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push str.Waiting_for_C1Test_Delay1__d_Msec.__Delay2__d_Msec
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0x457eb0
push 0
push str.verbose
push str.C1test
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4261e0
push 0
push 0
lea ecx, [ebp - 0x78]
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.004265da
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18