joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420bd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x234], 0
test edi, edi
jne 0x420c05
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x420c3a
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x420c4c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, edi
lea eax, [ebp - 0x20c]
jmp 0x420c60
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420c86
test dx, dx
je 0x420c82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420c86
add eax, 4
add ecx, 4
test dx, dx
jne 0x420c60
xor eax, eax
jmp 0x420c8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420cbd
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
test eax, eax
jne 0x420c53
mov edi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop esi
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00524074
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x228]
jmp 0x420ca3
Function at 0x4210d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555bb4
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x490], edi
mov dword [ebp - 4], edi
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x421127
lea eax, [ebp + 0xc]
push 0x588b38
push eax
call fcn.0052853f
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x421219
lea ecx, [ebp - 0x46c]
push str.Cannot_read_file__
push ecx
lea ebx, [ebp + 0xc]
call fcn.00421370
push eax
mov edx, 0x588b3c
lea esi, [ebp - 0x48c]
mov byte [ebp - 4], 1
call fcn.0041b0c0
add esp, 0xc
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x48c]
mov byte [ebp - 4], 3
push edx
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x430], 1
call fcn.00406810
cmp dword [ebp - 0x478], 0x10
jb 0x4211bf
mov eax, dword [ebp - 0x48c]
push eax
call fcn.004308fd
add esp, 4
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 0x48c], bl
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x430]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x450], ecx
push edx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
call fcn.00406810
push 0x5a27fc
lea eax, [ebp - 0x450]
push eax
call fcn.00529dcc
push ebx
push 0x400
lea ecx, [ebp - 0x410]
push 1
push ecx
call fcn.005287a0
add esp, 0x10
cmp eax, edi
je 0x421260
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call edx
push ebx
push 0x400
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.005287a0
add esp, 0x10
cmp eax, edi
jne 0x421234
push ebx
call fcn.0052882a
mov edx, dword [esi]
mov edi, dword [ebp - 0x470]
mov eax, dword [edx]
add esp, 4
push edi
mov ecx, esi
call eax
cmp dword [ebp + 0x20], 0x10
jb 0x42128a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004308fd
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret 0x20
Function at 0x425290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5546a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004308c3
add esp, 4
cmp eax, ebx
je 0x425374
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004308c3
add esp, 4
cmp eax, ebx
je 0x425350
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0052414a
push 0x5a255c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00529dcc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.0052414a
push 0x5a255c
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.00529dcc
int3

Function at 0x428990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov eax, 3
mov dword [esi + 0x40], eax
mov edx, 4
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.004308f2
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x38], 0
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x428a20
push 0
push 0
mov dword [eax + 0x10], edi
mov dword [eax + 4], esi
call fcn.005254b8
add esp, 0x18
test eax, eax
je 0x428a11
mov edx, dword [esi + 0x3c]
mov dword [edx + edi*4], eax
inc edi
cmp edi, 3
jl 0x4289d0
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x429bb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556a89
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5ae8e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CIocpService.0
push 0x18
mov dword [esi + 0x10], edi
call fcn.004308c3
add esp, 4
cmp eax, edi
je 0x429d7c
mov dword [esi + 0xc], eax
mov dword [eax], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 8], eax
mov eax, dword [esi + 0xc]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x15], 1
mov byte [ebp - 4], 1
push 0x18
mov dword [esi + 0x20], edi
call fcn.004308c3
add esp, 4
cmp eax, edi
je 0x429d49
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x1c]
mov byte [edx + 0x14], 1
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x15], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x28]
push eax
call ebx
mov dword [esi + 0x40], edi
lea eax, [esi + 0x44]
push eax
call ebx
mov dword [esi + 0x5c], edi
lea eax, [esi + 0x60]
push eax
call ebx
mov dword [esi + 0x78], edi
lea eax, [esi + 0x80]
push eax
call ebx
mov dword [esi + 0x98], edi
push 1
lea ebx, [esi + 0xd4]
push ebx
mov byte [ebp - 4], 6
call fcn.00401ed0
push 0x20
mov byte [ebp - 4], 7
call fcn.004308c3
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 8
cmp eax, edi
je 0x429cc2
push 0xffffffffffffffff
push eax
call fcn.0041e740
jmp 0x429cc4
xor eax, eax
mov dword [ebx + 4], eax
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 8], ecx
lea edx, [ebp - 0x1a0]
push edx
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
push 0x202
mov dword [esi + 0x10c], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 4], edi
mov dword [esi + 0xe4], 0xffffffff
mov dword [esi + 0x9c], 0x2710
mov dword [esi + 0xf4], edi
mov dword [esi + 0xe0], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524074
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1a8], edi
call fcn.0052414a
push 0x5a255c
lea ecx, [ebp - 0x1c4]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00529dcc
lea edx, [ebp - 0x1a4]
push edx
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1a4], edi
call fcn.0052414a
push 0x5a255c
lea eax, [ebp - 0x1b8]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00529dcc
int3
Function at 0x42a220
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x28
push esi
push edi
mov esi, ecx
test eax, eax
jne 0x42a24f
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx + 1]
mov dword [esi + 0xf0], edx
jmp 0x42a255
mov dword [esi + 0xf0], eax
mov eax, dword [esi + 0xf0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004308f2
add esp, 4
mov dword [esi + 0xf8], eax
test eax, eax
jne 0x42a29f
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
push str.WorkThread_Handle_Array_Creation_Fail_n
push esi
call ecx
add esp, 8
mov ecx, esi
call fcn.0042a030
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 4], eax
test eax, eax
jne 0x42a2dc
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateIoCompletionPort_failed_to_create_I_O_completion_port:__d_n
mov edx, dword [edi + 0x20]
push esi
call edx
add esp, 0xc
mov ecx, esi
call fcn.0042a030
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor edi, edi
cmp dword [esi + 0xf0], edi
jle 0x42a315
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x42a5d0
push 0
push 0
call fcn.005254b8
add esp, 0x18
test eax, eax
je 0x42a327
mov ecx, dword [esi + 0xf8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0xf0]
jl 0x42a2e6
call fcn.0042a3a0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed_to_create_worker_thread:__d_n
jmp 0x42a2c2
Function at 0x42c690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555440
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005241cf
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00406810
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x42c722
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42d310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555938
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005241cf
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00406810
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ded0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42deec
test al, 0x10
je 0x42deec
mov al, 1
pop edi
pop ebp
ret
push esi
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42def2
sub esi, ecx
lea eax, [esi - 1]
test eax, eax
js 0x42df0c
cmp byte [eax + edi], 0x5c
je 0x42df0c
dec esi
dec eax
jns 0x42df02
test esi, esi
jg 0x42df16
pop esi
xor al, al
pop edi
pop ebp
ret
push ebx
dec esi
lea ebx, [esi + 1]
push ebx
call fcn.004308f2
push ebx
mov edi, eax
push 0
push edi
call fcn.0052a4d0
push esi
mov esi, dword [ebp + 8]
push esi
push edi
call fcn.0052ce20
push edi
xor bl, bl
call fcn.0042ded0
add esp, 0x20
test al, al
je 0x42df54
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
test edi, edi
je 0x42df61
push edi
call fcn.004308fd
add esp, 4
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42f010
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 1
xor edi, edi
push edi
push edi
push edi
push ebx
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f03a
pop edi
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
call edi
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1002
push 0xffff
push esi
mov dword [ebp - 4], 0
call edi
cmp ebx, 1
jne 0x42f08b
push 4
lea ecx, [ebp - 8]
push ecx
push 0x80
push 0xffff
push esi
mov dword [ebp - 8], ebx
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42f510
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555030
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
cmp dword [edi + 0x10], 0xffffffff
je 0x42f5c0
lea ebx, [edi + 0x34]
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x98]
push eax
mov dword [ebp - 4], 0
call fcn.0052581b
push 0x50
call fcn.0042b310
mov esi, eax
add esp, 8
test esi, esi
je 0x42f5a5
mov dword [esi], 0
cmp dword [edi + 8], 0
je 0x42f5d6
mov dword [esi + 0x14], 0
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x74]
or edx, 0x40001
mov dword [esi + 0x14], edx
jmp 0x42f5dd
cmp dword [edi + 4], 0
je 0x42f5b2
mov eax, edi
call fcn.0042f2f0
push ebx
mov dword [ebx + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0x14], 0x40101
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x1c]
mov dword [ebx], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, word [ebp + 0x10]
push 0
push esi
push 0
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x20]
push eax
push 1
mov word [esi + 0x48], dx
mov ecx, dword [edi + 0x10]
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x42f672
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x42f672
cmp dword [edi + 4], 0
je 0x42f634
mov eax, edi
call fcn.0042f2f0
mov eax, esi
call fcn.0042b3e0
mov eax, dword [ebp - 0x18]
push eax
mov dword [eax + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [edi + 0x34]
push eax
mov dword [eax + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42f6a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555010
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
or edi, 0xffffffff
cmp dword [esi + 0x10], edi
je 0x42f776
mov ecx, dword [esi + 0xb8]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ebx, dword [ebp + 0xc]
test eax, eax
jne 0x42f718
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [ecx + 8]
sub edx, dword [ecx + 0xc]
jns 0x42f707
mov dword [ebp - 0x14], edi
jmp 0x42f71f
mov eax, dword [eax + 4]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x42f71f
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jle 0x42f818
push 0x50
call fcn.0042b310
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
je 0x42f75c
mov dword [edi], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
cmp dword [esi + 8], eax
je 0x42f78c
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x74]
or edx, 0x20001
mov dword [edi + 0x14], edx
jmp 0x42f793
push str.OVERLAPPEDIO_Create_Failed
call fcn.0042efa0
add esp, 4
cmp dword [esi + 4], 0
je 0x42f776
mov eax, esi
call fcn.0042f2f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x20101
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x14]
lea ebx, [edi + 0x1c]
mov dword [ebx], eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push edi
push 0
lea edx, [ebp - 0x14]
push edx
push 1
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x10]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x42f7f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x42f7f3
mov eax, edi
call fcn.0042b3e0
jmp 0x42f769
mov ecx, dword [esi + 0xb8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
test eax, eax
jne 0x42f818
mov esi, dword [esi + 0xb8]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebx]
add dword [eax + 0xc], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42fa50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ae8e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x10], 0xffffffff
jne 0x42faab
push str.CTcpSock::Recv
push str.__s__Invalid_Socket
call fcn.0042efa0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x50
call fcn.0042b310
mov edi, eax
add esp, 4
test edi, edi
je 0x42faed
lea eax, [esi + 0x98]
push eax
mov dword [edi], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
call fcn.0052581b
mov eax, dword [esi + 0xbc]
add esp, 4
test eax, eax
jne 0x42fb06
mov eax, edi
call fcn.0042b3e0
jmp 0x42fa95
cmp dword [esi + 4], 0
je 0x42fafa
mov eax, esi
call fcn.0042f2f0
push str.CTcpSock::Recv
push str.__s__Cant_Creaet_IO
jmp 0x42fa8d
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x10]
sub ebx, dword [ecx + 8]
mov edx, dword [edx + 0x10]
add ebx, dword [ecx]
jns 0x42fb1f
or eax, 0xffffffff
jmp 0x42fb2c
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 8]
add eax, dword [ecx]
cmp edx, eax
jle 0x42fb32
mov edx, eax
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x42fb4c
mov dword [edi + 0x14], ebx
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x74]
or eax, 0x20002
mov dword [edi + 0x14], eax
jmp 0x42fb53
mov dword [edi + 0x14], 0x20102
lea eax, [edi + 0x1c]
mov dword [eax], edx
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
je 0x42fc30
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
push ebx
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [edi + 0x34], ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push 1
mov dword [edi + 0x18], esi
mov edx, dword [esi + 0x10]
push eax
push edx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x42fc11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x3e5
je 0x42fc11
mov eax, edi
call fcn.0042b3e0
cmp ebx, 0x2736
je 0x42fbf5
cmp dword [esi + 4], 0
je 0x42fbc5
mov eax, esi
call fcn.0042f2f0
cmp ebx, 0x2746
je 0x42fa95
cmp ebx, 0x2749
je 0x42fa95
push ebx
push str.CTcpSock::Recv
push str.__s__Sock_Error1___d
call fcn.0042efa0
add esp, 0xc
jmp 0x42fa95
push 0x2736
push str.CTcpSock::Recv
push str.__s__Invalid_Socket2___d
call fcn.0042efa0
add esp, 0xc
jmp 0x42fa95
mov eax, 1
add dword [esi + 0x78], eax
mov dword [esi + 0x74], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
call fcn.0042b3e0
push str.CTcpSock::Recv
push str.__s__Recv_Buff_Is_not_Exist
jmp 0x42fa8d