joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x734e757c
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7dad030a
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40bcd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push esi
call fcn.0040bbf0
lea ecx, [esp + 0xc]
lea eax, [esi + 0x60]
xor ebx, ebx
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], bl
call fcn.0040e940
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], ebx
lea edi, [esi + 0x48]
push edi
lea ebx, [esp + 0x20]
call fcn.00402420
cmp byte [ebp + 0xc], 0
je 0x40bd7a
mov edx, dword [esi + 0x28]
lea ecx, [esi + 0x28]
neg edx
sbb edx, edx
test edx, fcn.00419db0
je 0x40bd7a
push edi
lea eax, [esi + 0x54]
push eax
call fcn.0041d820
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
call fcn.0040e810
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
mov dword [esp + 0x30], 0xffffffff
cmp byte [esp + 0x10], 0
je 0x40bdcc
mov eax, dword [esp + 0xc]
add dword [eax], 0xffffffff
jne 0x40bdcc
xor edx, edx
lea ecx, [eax + 4]
xchg dword [ecx], edx
add eax, 8
mov ecx, bind
mov edx, eax
lock xadd dword [edx], ecx
test ecx, 0x40000000
jne 0x40bdcc
cmp ecx, 0x80000000
jle 0x40bdcc
mov ecx, eax
lock bts dword [ecx], 0x1e
jb 0x40bdcc
call fcn.0040b4c0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a109
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 0x3c]
mov esi, dword [eax + 0x10]
mov ecx, dword [eax + 0x40]
mov dword [esi], edx
mov esi, dword [eax + 0x20]
sub ecx, edx
mov dword [esi], edx
mov edx, dword [eax + 0x30]
push 1
xor ebx, ebx
push ebx
mov dword [edx], ecx
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
and dword [esp + eax + 0x1c], 0xfffffffe
mov ecx, dword [esp + 0xc]
lea eax, [esp + eax + 0xc]
mov eax, dword [ecx + 4]
lea eax, [esp + eax + 0xc]
push edx
lea ecx, [esp + 0x10]
mov dword [eax + 0x14], 0x11
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___double__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x40f5d1
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
cmp eax, 0xffffffff
jne 0x40f5d1
mov bl, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x48
ret 8

Function at 0x414510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44aa81
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
push 0x457c4c
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x34], 0
call fcn.00401100
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x30]
mov dword [esi], vtable.boost::system::system_error.0
mov dword [esi + 0x2c], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0xc
Function at 0x4145a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44aa81
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x34], 0
call fcn.00401100
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
lea ecx, [esi + 0x30]
mov dword [esi], vtable.boost::system::system_error.0
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0x10

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

Disassembly:
sub esp, 8
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
test byte [0x475920], 1
jne 0x414c75
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push 0
mov eax, 0x475908
push 0
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push eax
push 1
push ecx
push edx
mov dword [esi], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_WSASend]
test byte [0x475920], 1
mov edi, eax
jne 0x414cc9
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x475908
mov dword [esi], eax
mov dword [esi + 4], ecx
test edi, edi
je 0x414ce5
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov eax, dword [esp + 8]
pop edi
add esp, 8
ret

Function at 0x414cf0
Capabilities:
Set socket configuration

Disassembly:
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
test byte [0x475920], 1
jne 0x414d22
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
mov ecx, dword [esp + 8]
mov eax, 0x475908
push 4
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
push eax
push 0x80
push 0xffff
push ecx
mov dword [esi], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test byte [0x475920], 1
mov edi, eax
jne 0x414d71
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x475908
mov dword [esi], eax
mov eax, edi
mov dword [esi + 4], ecx
pop edi
ret
Function at 0x416700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4500df
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 6
mov eax, dword [esi + 8]
lea ecx, [eax + 0x230]
mov eax, dword [ecx]
neg eax
sbb eax, eax
test eax, fcn.00419db0
je 0x416753
push str.terminated
push str.SERVER
call fcn.004044f0
cmp byte [esi + 3], 0
je 0x416774
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x1d0]
lea ecx, [eax + 0x1d0]
neg edx
sbb edx, edx
test edx, fcn.00419db0
jmp 0x41678e
cmp byte [esi + 1], 0
je 0x416795
mov eax, dword [esi + 8]
lea ecx, [eax + 0x1f0]
mov eax, dword [ecx]
neg eax
sbb eax, eax
test eax, fcn.00419db0
je 0x416795
call fcn.0041b460
lea ecx, [esi + 0x1a8]
push ecx
mov byte [esp + 0x18], 5
call fcn.004165e0
lea edx, [esi + 0x118]
push edx
mov byte [esp + 0x18], 4
call fcn.00416580
lea eax, [esi + 0x98]
push eax
mov byte [esp + 0x18], 3
call fcn.00416490
mov byte [esp + 0x14], 2
mov edi, dword [esi + 0x94]
test edi, edi
je 0x416801
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x416801
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x416801
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
lea ecx, [esi + 0x40]
push ecx
mov byte [esp + 0x18], 1
call fcn.00416390
lea edx, [esi + 0x30]
push edx
mov byte [esp + 0x18], 0
call fcn.00415300
lea eax, [esi + 0xc]
call fcn.004158b0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x419bc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x46e02c]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.00449014
mov esp, ebp
pop ebp
ret
Function at 0x419c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi + 0x12dd], 0
mov al, 1
push ebx
mov byte [esi + 0x12dc], al
jne 0x419c8d
mov byte [esi + 0x12dd], al
movzx edx, byte [0x475454]
push edx
movzx edx, byte [0x47544a]
push edx
movzx edx, byte [0x475452]
push edx
xor ecx, ecx
push esi
mov eax, 0x41a4c0
push ecx
push eax
lea eax, [esp + 0x20]
call fcn.0041bcf0
mov edx, dword [eax]
add esp, 8
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
lea ebx, [esi + 0xf8]
mov dword [ecx + 0xc], eax
call fcn.0041bd10
cmp byte [esi + 0x50], 0
lea eax, [esi + 8]
jne 0x419c8d
cmp byte [eax + 0x49], 0
mov byte [eax + 0x48], 1
jne 0x419c8d
cmp dword [eax], 0xffffffff
je 0x419c8d
pop ebx
add esp, 0x18
jmp 0x42cff0
pop ebx
add esp, 0x18
ret
sub esp, 8
cmp dword [eax], 0xffffffff
mov byte [eax + 0x20], 1
je 0x42d055
cmp dword [eax + 0x1c], 0x10
jb 0x42d007
mov eax, dword [eax + 8]
jmp 0x42d00a
add eax, 8
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d054
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x13]
push ecx
push esi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1b], 0xff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret

Function at 0x41bad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
xor esi, esi
mov dword [eax + 8], ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [eax + 0xc], edx
call fcn.0041f4c0
mov dword [esp + 0x38], esi
mov edi, ebx
lea esi, [esp + 0xc]
call fcn.004271e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bb5a
mov eax, dword [eax]
test eax, eax
je 0x41bb5a
lea ecx, [esp + 0x14]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41bbd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
xor esi, esi
mov dword [eax + 8], ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [eax + 0xc], edx
call fcn.0041f530
mov dword [esp + 0x38], esi
mov edi, ebx
lea esi, [esp + 0xc]
call fcn.004271e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bc5a
mov eax, dword [eax]
test eax, eax
je 0x41bc5a
lea ecx, [esp + 0x14]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41bd10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
xor esi, esi
mov dword [eax + 8], ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [eax + 0xc], edx
call fcn.0041f5a0
mov dword [esp + 0x38], esi
mov edi, ebx
lea esi, [esp + 0xc]
call fcn.004271e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bd9a
mov eax, dword [eax]
test eax, eax
je 0x41bd9a
lea ecx, [esp + 0x14]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41c170
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x44ce18
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46e02c]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x475960], eax
cmp eax, 0xffffffff
jne 0x41c209
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 1
test byte [0x475920], al
jne 0x41c1e1
or dword [0x475920], eax
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
push 0x45a95c
mov eax, 0x475908
push eax
push esi
lea eax, [esp + 0x14]
push eax
call fcn.004145a0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x64], 0
call fcn.0041aea0
mov eax, 0x475960
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00449014
add esp, 0x5c
ret
Function at 0x41ecc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a109
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 0x3c]
mov esi, dword [eax + 0x10]
mov ecx, dword [eax + 0x40]
mov dword [esi], edx
mov esi, dword [eax + 0x20]
sub ecx, edx
mov dword [esi], edx
mov edx, dword [eax + 0x30]
push 1
xor ebx, ebx
push ebx
mov dword [edx], ecx
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
and dword [esp + eax + 0x1c], 0xfffffffe
mov ecx, dword [esp + 0xc]
lea eax, [esp + eax + 0xc]
mov eax, dword [ecx + 4]
lea eax, [esp + eax + 0xc]
push edx
lea ecx, [esp + 0x10]
mov dword [eax + 0x14], 6
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___long_int__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x41ed71
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
cmp eax, 0xffffffff
jne 0x41ed71
mov bl, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x48
ret 8
Function at 0x41f300
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x220
mov eax, dword [eax]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x41f361
test byte [0x475920], 1
jne 0x41f33c
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
mov edx, dword [esp + 0x234]
mov eax, 0x2719
mov ecx, 0x475908
mov dword [edx], eax
mov dword [edx + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret 4
mov al, byte [ecx + 0x10]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0x1c]
mov byte [esp + 0x18], al
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x10], edx
cmp eax, 0x10000
jb 0x41f381
mov eax, 0x10000
mov ecx, dword [ecx + 0x14]
xor edi, edi
xor ebp, ebp
xor ebx, ebx
lea ebx, [ebx]
cmp byte [esp + 0x18], 0
jne 0x41f3db
cmp ebp, 0x40
jae 0x41f3db
add ebx, eax
mov dword [esp + ebp*8 + 0x30], eax
mov dword [esp + ebp*8 + 0x34], ecx
cmp esi, dword [esp + 0x10]
je 0x41f3d3
lea edx, [eax + edi]
cmp edx, 0x10000
jae 0x41f3d3
mov edi, edx
mov ecx, esi
mov edx, dword [ecx + 4]
mov eax, 0x10000
sub eax, edi
add esi, 8
cmp edx, eax
jae 0x41f3ce
mov eax, edx
mov ecx, dword [ecx]
inc ebp
jmp 0x41f390
mov byte [esp + 0x18], 1
inc ebp
jmp 0x41f390
xor esi, esi
cmp ebx, esi
je 0x41f423
mov eax, dword [esp + 0x14]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebp
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x41f46a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x40
jne 0x41f416
mov esi, 0x2746
jmp 0x41f423
cmp esi, 0x4d2
jne 0x41f423
mov esi, 0x274d
test byte [0x475920], 1
jne 0x41f44a
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
mov ecx, dword [esp + 0x234]
mov eax, 0x475908
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret 4
test byte [0x475920], 1
jne 0x41f491
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
mov ecx, dword [esp + 0x234]
pop edi
mov dword [ecx], esi
pop esi
mov eax, 0x475908
pop ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 4]
pop ebx
add esp, 0x220
ret 4
Function at 0x41f640
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x210
mov ecx, dword [ecx]
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
jne 0x41f6a2
test byte [0x475920], 1
jne 0x41f683
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
mov eax, 0x2719
mov ecx, 0x475908
mov dword [ebp], eax
mov dword [ebp + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
lea edi, [eax + 8]
xor esi, esi
xor ecx, ecx
xor ebx, ebx
cmp eax, edi
je 0x41f71b
cmp ecx, 0x40
jae 0x41f6cb
mov edx, dword [eax + 4]
mov esi, dword [eax]
mov dword [esp + ecx*8 + 0x20], edx
mov dword [esp + ecx*8 + 0x24], esi
add eax, 8
add ebx, edx
inc ecx
cmp eax, edi
jne 0x41f6af
xor esi, esi
cmp ebx, esi
je 0x41f71b
push esi
push esi
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41f75c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x40
jne 0x41f70e
mov esi, 0x2746
jmp 0x41f71b
cmp esi, 0x4d2
jne 0x41f71b
mov esi, 0x274d
test byte [0x475920], 1
jne 0x41f742
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
mov eax, 0x475908
mov dword [ebp + 4], eax
xor eax, eax
mov dword [ebp], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
cmp dword [esp + 0x14], 0
jne 0x41f7a9
test byte [0x475740], 1
jne 0x41f78a
or dword [0x475740], 1
push 0x454f00
mov dword [0x475790], 0x45aac0
call fcn.004490d5
add esp, 4
mov eax, 2
mov ecx, 0x475790
mov dword [ebp], eax
mov dword [ebp + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
xor esi, esi
test byte [0x475920], 1
jne 0x41f7d2
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
pop edi
mov eax, 0x475908
mov dword [ebp], esi
pop esi
mov dword [ebp + 4], eax
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
add esp, 0x210
ret 4