joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4f7040]
xor eax, esp
mov dword [esp + 0x38], eax
cmp dword [0x536970], 3
push ebx
push esi
push edi
jb 0x43968f
cmp dword [0x53698c], 0xf
mov ecx, 0x536978
mov edx, dword [0x536988]
cmova ecx, dword [0x536978]
test edx, edx
jne 0x439504
mov esi, 0x4e72be
sub edx, 4
jb 0x4394c1
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4394c6
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4394b0
cmp edx, 0xfffffffc
je 0x4394fa
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x4394f3
cmp edx, 0xfffffffd
je 0x4394fa
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x4394f3
cmp edx, 0xfffffffe
je 0x4394fa
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x4394f3
cmp edx, 0xffffffff
je 0x4394fa
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x4394fa
sbb eax, eax
or eax, 1
jmp 0x4394fc
xor eax, eax
test eax, eax
je 0x43968f
call fcn.00452310
mov esi, eax
test esi, esi
je 0x439686
mov edx, 0x536a84
lea ecx, [esp + 0x28]
call fcn.00450500
cmp dword [eax + 0x14], 0xf
jbe 0x439529
mov eax, dword [eax]
push eax
push 0x2712
push esi
call fcn.00456c20
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp ecx, 0xf
jbe 0x43956e
mov edx, dword [esp + 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x439564
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4396b4
push ecx
push edx
call fcn.004a3a80
add esp, 8
push 1
push 0x2c
push esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
call fcn.00456c20
add esp, 0xc
push esi
call fcn.00452370
add esp, 4
test eax, eax
jne 0x439686
lea eax, [esp + 0x40]
push eax
push 0x200002
push esi
call fcn.004522f0
add esp, 0xc
cmp dword [esp + 0x40], 0xc8
jne 0x439686
movaps xmm0, xmmword [str.________:__]
xor ebx, ebx
mov ecx, dword [0x536970]
xor edi, edi
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0x2b3d5f2d
mov dword [esp + 0x20], 0x5e252423
mov word [esp + 0x24], 0x2826
mov byte [esp + 0x26], 0x29
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x536974], 0xf
mov esi, 0x536960
mov al, byte [esp + edi + 0xc]
cmova esi, dword [0x536960]
test ecx, ecx
je 0x439633
push ecx
movsx eax, al
push eax
push esi
call fcn.004a6f30
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x439633
sub ecx, esi
jmp 0x439636
or ecx, 0xffffffff
cmp ecx, 0xffffffff
lea eax, [ebx + 1]
mov ecx, dword [0x536970]
cmove eax, ebx
inc edi
mov ebx, eax
cmp edi, 0x1b
jl 0x439600
test ebx, ebx
je 0x43965a
push 0xc
push str.bad_username
jmp 0x439696
mov ecx, 0x5368fd
call fcn.004373a0
test al, al
je 0x4396a0
mov dword [0x536910], 1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004a3760
mov esp, ebp
pop ebp
ret
push 0xd
push str.not_connected
jmp 0x439696
push 0x15
push str.bad_username_password
mov ecx, 0x5369b8
call fcn.0043d2f0
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a3760
mov esp, ebp
pop ebp
ret
call fcn.004b359d
int3
Function at 0x43aa10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x43aa42
jl 0x43aa35
test ecx, ecx
jne 0x43aa42
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43ab02
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0043d170
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x43aaae
jg 0x43aa6d
test esi, esi
je 0x43aaae
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x43aa85
mov eax, dword [esp + 0x10]
jl 0x43aa7f
cmp eax, esi
jae 0x43aa85
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004a69b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x43aacf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x43aaeb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x43aa54
jl 0x43aaeb
test ecx, ecx
jne 0x43aa54
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x43ab40
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x43ab40
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.004a69b0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x43aba9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43ab66
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x43ab94
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004ae65d
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x43aba9
cmp edi, eax
ja 0x43ab72
test edi, edi
je 0x43aba9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004ae65d
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf940
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4f7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004a3d53
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004a4e24
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0043d900
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43ff90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfd6c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x440044
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 5
push 9
mov byte [edi + 0x60], al
call fcn.00440a50
mov byte [ebp - 4], 6
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x44008b
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x44008b
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x440095
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.004429a0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4400c3
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x44f7d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4f7040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x44f85d
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x44f85d
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.004b57da
add esp, 8
test eax, eax
jne 0x44f85b
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x44f86c
jmp 0x44f816
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a3760
mov esp, ebp
pop ebp
ret
Function at 0x45c3b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x45c43c
push esi
call fcn.00470220
add esp, 4
test al, al
jne 0x45c43c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x45c3d3
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00478890
add esp, 0xc
test eax, eax
je 0x45c407
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00478890
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x45c409
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x45c435
mov al, byte [esi]
push eax
call fcn.0046cfe0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x45c417
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x460b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, 0x1b8
mov edx, 0x178
push esi
push edi
cmp dword [ebp], 0x4d4e08
mov ecx, dword [ebp + 8]
cmovne eax, edx
mov dword [esp + 0x20], ecx
add eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x460b48
mov byte [eax], 0
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0x8f0]
test esi, esi
je 0x460cfc
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x4f700c]
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x460ba1
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x201], 0
je 0x460bae
push dword [eax + 0x6c]
call dword [0x4f700c]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x460bb6
mov edi, dword [esp + 0x30]
push edi
call dword [0x4f7004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x202], 0
je 0x460bce
mov ecx, dword [eax + 0x4a8]
mov dword [esp + 0x14], ecx
jmp 0x460bd6
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x460bec
test byte [eax + 4], 0x10
je 0x460bec
lea edx, [eax + 0x74]
mov dword [esp + 0x2c], edx
jmp 0x460bf6
lea eax, [ebx + 0x8f4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x4b4]
mov ecx, 1
cmp eax, ecx
jbe 0x460c43
mov eax, dword [ebx + 0x8f0]
add eax, 0x74
nop
cmp dword [eax - 8], 0
mov edx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
je 0x460c3d
mov edi, dword [eax]
lea esi, [eax - 0x14]
cmp edi, edx
cmovge esi, dword [esp + 0x1c]
inc ecx
add eax, 0x60
cmp edi, edx
cmovge edi, edx
cmp ecx, dword [ebx + 0x4b4]
jb 0x460c10
mov eax, dword [ebx + 0x4b4]
cmp ecx, eax
jne 0x460c52
push esi
call fcn.00461750
add esp, 4
jmp 0x460c5e
lea esi, [ecx + ecx*2]
shl esi, 5
add esi, dword [ebx + 0x8f0]
mov eax, dword [esp + 0x34]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x4f7004]
push dword [esi + 4]
call dword [0x4f7004]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
lea ebp, [esi + 0x20]
push ebp
push dword [esp + 0x30]
mov eax, dword [eax + 0x238]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.00460350
add esp, 0x10
test al, al
jne 0x460cf1
push ebp
call fcn.004605d0
push edi
mov dword [esi + 0xc], 0
call dword [0x4f7004]
push ebx
call dword [0x4f7004]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x460cfc
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x466e40
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x4f7040]
xor eax, esp
mov dword [esp + 0x10c], eax
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 0xc]
cmp edx, dword [edi + 0x128]
je 0x466ea7
cmp edx, dword [edi + 0x12c]
je 0x466ea7
pop edi
pop ebp
mov eax, 0x2b
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004a3760
add esp, 0x110
ret
mov ecx, dword [esp + 0x12c]
xor eax, eax
cmp edx, dword [edi + 0x12c]
push esi
sete al
mov dword [esp + 0x14], 0x168
mov esi, 0x158
cmove esi, dword [esp + 0x14]
add esi, edi
lea eax, [eax*4 + 0x128]
mov eax, dword [eax + edi]
mov dword [esp + 0x18], eax
mov edx, dword [esi]
test edx, edx
je 0x466f4d
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp edi, eax
jbe 0x466f0b
sub edi, eax
cmp ecx, edi
cmovb edi, ecx
add eax, edx
push edi
push eax
push dword [esp + 0x18]
call fcn.004a69b0
add esp, 0xc
add dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
jmp 0x466f0d
xor edi, edi
cmp eax, dword [esi + 8]
jne 0x466f38
push dword [esi]
call dword [0x4f7004]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test edi, edi
jle 0x466f42
xor eax, eax
mov dword [ebx], edi
jmp 0x466fb0
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x18]
push 0
push ecx
push dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x466fa3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x466f79
lea eax, [edi + 0x52]
jmp 0x466fa3
push 0x100
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00452cb0
push eax
push str.Recv_failure:__s
push ebp
call fcn.00466c70
add esp, 0x18
mov dword [ebp + 0x938], esi
mov eax, 0x38
mov dword [ebx], edi
cmp edi, 0xffffffff
jne 0x466fb0
mov dword [ebx], 0
mov ecx, dword [esp + 0x11c]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3760
add esp, 0x110
ret
Function at 0x467010
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4f7040]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 8], eax
push esi
push edi
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + ecx*4 + 0x128]
shl ecx, 4
mov dword [esp + 0x14], edx
lea esi, [ecx + 0x158]
mov ecx, dword [esp + 0x12c]
add esi, eax
mov edx, dword [esi]
test edx, edx
je 0x4670d7
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp edi, eax
jbe 0x467097
sub edi, eax
cmp ecx, edi
cmovb edi, ecx
add eax, edx
push edi
push eax
push dword [esp + 0x18]
call fcn.004a69b0
add esp, 0xc
add dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
jmp 0x467099
xor edi, edi
cmp eax, dword [esi + 8]
jne 0x4670c4
push dword [esi]
call dword [0x4f7004]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test edi, edi
jle 0x4670d0
mov dword [ebx], 0
jmp 0x467138
mov ecx, dword [esp + 0x12c]
push 0
push ecx
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x467138
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46710d
mov dword [ebx], 0x51
jmp 0x467138
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00452cb0
push eax
push str.Recv_failure:__s
push ebp
call fcn.00466c70
mov dword [ebp + 0x938], esi
add esp, 0x18
mov dword [ebx], 0x38
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3760
add esp, 0x10c
ret
Function at 0x467160
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4f7040]
xor eax, esp
mov dword [esp + 0x108], eax
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 0xc], eax
push esi
push edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x130]
mov eax, dword [ecx + edx*4 + 0x128]
lea esi, [ecx + 0x158]
mov dword [esp + 0x10], eax
mov eax, edx
shl eax, 4
add esi, eax
mov eax, dword [ecx + 0x238]
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x46724a
cmp dword [ecx + edx*4 + 0x140], 0x476a00
jne 0x46724a
cmp dword [esi], 0
je 0x4671df
test ebx, ebx
je 0x46724a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00478300
add esp, 0x14
cmp eax, 0xffffffff
je 0x46724a
test al, 1
je 0x46724a
mov ecx, dword [esi]
test ecx, ecx
jne 0x467230
mov eax, dword [ebp + 0x4c0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x467286
mov ebx, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x46724a
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x4672bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x467291
mov dword [edi], 0x51
jmp 0x4672bc
mov dword [edi], 0x1b
or eax, 0xffffffff
jmp 0x4672be
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00452cb0
push eax
push str.Send_failure:__s
push ebp
call fcn.00466c70
mov dword [ebp + 0x938], esi
add esp, 0x18
mov dword [edi], 0x37
mov eax, ebx
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3760
add esp, 0x10c
ret
Function at 0x467350
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x4f7040]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x118]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 4], eax
mov ecx, dword [ebx + 0xc]
cmp edx, dword [ecx + 0x128]
je 0x4673b7
cmp edx, dword [ecx + 0x12c]
je 0x4673b7
mov eax, 0x2b
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004a3760
add esp, 0x110
ret
push ebp
push esi
xor eax, eax
mov esi, 0x158
push edi
mov edi, dword [ecx + 0x12c]
cmp edx, edi
mov dword [esp + 0x18], edi
sete al
lea eax, [eax*4 + 0x128]
mov ebp, dword [eax + ecx]
mov eax, 0x168
cmove esi, eax
mov eax, dword [ecx + 0x238]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x467481
xor eax, eax
cmp edx, dword [esp + 0x18]
sete al
lea eax, [eax*4 + 0x140]
cmp dword [eax + ecx], 0x476a00
jne 0x467481
cmp dword [esi], 0
je 0x46741c
test edi, edi
je 0x467481
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00478300
add esp, 0x14
cmp eax, 0xffffffff
je 0x467481
test al, 1
je 0x467481
mov ecx, dword [esi]
test ecx, ecx
jne 0x46746a
mov eax, dword [ebx + 0x4c0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x4674b3
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x467481
add dword [esi + 8], eax
push 0
push dword [esp + 0x134]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x4674e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4674be
lea eax, [edi + 0x52]
jmp 0x4674e8
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
jmp 0x4674f3
push 0x100
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00452cb0
push eax
push str.Send_failure:__s
push ebx
call fcn.00466c70
add esp, 0x18
mov dword [ebx + 0x938], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
cmp edi, 0xffffffff
jne 0x4674f9
mov dword [ecx], 0
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3760
add esp, 0x110
ret

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

Disassembly:
push ecx
push 0
push dword [esp + 0xc]
call fcn.004769c0
add esp, 8
test al, al
je 0x46801b
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00460f40
add esp, 8
test eax, eax
je 0x468041
mov al, 1
pop ecx
ret
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x128]
cmp eax, 0xffffffff
je 0x468041
push 2
push 1
lea ecx, [esp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ecx
ret
xor al, al
pop ecx
ret