Function at 0x41c740
Capabilities:
Access peb ldr_data
Get ntdll base address
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x44ee16
mov eax, dword fs:[0]
push eax
mov eax, 0x7d040
call fcn.00435740
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x7d038], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x7d054]
mov dword fs:[0], eax
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x46ecec
mov dword [esp + 0x30], esi
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7d064]
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov dword [esp + 0x7d064], ebx
call fcn.0041c6b0
lea edi, [esp + 0x20]
mov byte [esp + 0x7d05c], 1
call fcn.004050a0
mov byte [esp + 0x7d05c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c7ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x41c96c
cmp edi, ebx
je 0x41c96c
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edi
xor esi, esi
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0x3e9
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x2c], eax
push 0x7d000
lea eax, [esp + 0x54]
push eax
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x41c90c
jmp 0x41c874
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41c90c
lea ebp, [eax + 0x14]
mov dword [esp + 0x44], eax
xor edi, edi
xor eax, eax
cmp ebp, ebx
mov dword [esp + 0x40], esi
jle 0x41c8b6
mov eax, dword [esp + 0x30]
push ebx
mov ecx, ebp
sub ecx, edi
push ecx
mov ecx, dword [eax]
lea edx, [esp + edi + 0x3c]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x41c8b6
add edi, eax
cmp edi, ebp
jl 0x41c893
cmp edi, ebp
jne 0x41c8bc
mov eax, ebp
cmp eax, 0xffffffff
je 0x41c908
mov edi, dword [esp + 0x18]
push ebx
lea esi, [esi + eax - 0x14]
lea edx, [esp + 0x2c]
mov eax, esi
push edx
push eax
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0x7d000
lea ecx, [esp + 0x54]
push ecx
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x41c870
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [ebp]
push ebx
mov edx, 0x14
sub edx, esi
push edx
lea eax, [esp + esi + 0x3c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x41c944
add esi, eax
cmp esi, 0x14
jl 0x41c920
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x7d05c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41c987
lea eax, [esi - 0x10]
mov dword [esp + 0x7d05c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7d054]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7d038]
xor ecx, esp
call fcn.0042404d
add esp, 0x7d04c
ret 4