Function at 0x435030
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x601860
xor esi, esi
call fcn.00429170
mov ebx, dword [ebp + 8]
mov eax, dword [0x60188c]
push 0x601860
lea ecx, [ebx*4]
mov edi, dword [ecx + eax]
mov dword [ebp - 8], ecx
call fcn.00429180
mov eax, dword [edi + 0x58]
add esp, 8
test al, 0x28
je 0x4352b5
test eax, 0x10000
jne 0x4352c4
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4351de
test al, 8
je 0x4350c8
test al, al
js 0x4352da
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x60]
call fcn.005494b7
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp - 4]
push ecx
call fcn.0053b370
add esp, 4
mov esi, eax
jmp 0x43529b
test al, 1
je 0x435199
cmp dword [edi + 0x3c], esi
je 0x435130
cmp dword [edi + 0x2c], esi
jne 0x435130
push 0x601860
call fcn.00429170
mov eax, dword [0x60188c]
mov esi, dword [ebp - 8]
push 0x601860
mov esi, dword [esi + eax]
call fcn.00429180
add esp, 8
cmp dword [esi + 0x2c], 0
jne 0x435130
cmp dword [0x60184c], 0
jne 0x435130
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
call fcn.00437370
add esp, 8
test eax, eax
jne 0x435130
cmp dword [esi + 0x2c], eax
jne 0x435130
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x2c], 1
mov dword [esi + 0x28], eax
push 0
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x60]
call dword [sym.imp.WS2_32.dll_send]
push eax
call fcn.0053b370
mov esi, eax
add esp, 4
test esi, esi
jns 0x43529d
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x435169
call fcn.005414b2
cmp dword [eax], 0x2747
jne 0x43529b
cmp ebx, 0x400
jbe 0x43529b
shr ebx, 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00435030
add esp, 0xc
mov esi, eax
jmp 0x43529b
test al, 4
je 0x4352e6
test al, al
js 0x4351b7
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x60]
jmp 0x4350a9
test eax, 0x4000000
je 0x4351e7
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x4351d5
call fcn.005414b2
mov dword [eax], 0x20
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x70]
call fcn.00448230
add esp, 4
mov esi, ebx
cmp eax, ebx
cmovb esi, eax
test esi, esi
jne 0x435226
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x435214
call fcn.005414b2
or esi, 0xffffffff
mov dword [eax], 0x2733
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push dword [edi + 0x70]
call fcn.00448400
push dword [edi + 0x70]
call fcn.00448230
mov ecx, dword [edi + 0x58]
add esp, 0x10
mov edx, eax
neg edx
sbb edx, edx
and ecx, 0xffff7fff
and edx, 0x8000
or edx, ecx
mov dword [edi + 0x58], edx
test eax, eax
je 0x435264
push edi
call fcn.0043b210
add esp, 4
cmp esi, ebx
je 0x435285
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43527f
call fcn.005414b2
mov dword [eax], 0x2733
push edi
call fcn.00437700
add esp, 4
test dword [edi + 0x58], 0x4000000
jne 0x4351db
test esi, esi
jle 0x4351de
mov eax, esi
cdq
add dword [edi + 0x18], eax
mov eax, esi
adc dword [edi + 0x1c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.write_to_non_streamfile_socket
push 0x360000
call fcn.00424700
push dword [edi + 0x114]
push ebx
push str.sock_write_fd_d_with_ASSERT_CLOSE:__x
push 0x360000
call fcn.00424700
push str.vsock_type_file_does_not_support_non_blocking_mode
push 0x36
call fcn.00420560
push eax
push str.invalid_fd_type_0x_x
push 0x360000
call fcn.00424700
int3