Function at 0x404930
Capabilities:
Read and send data from client to server
Read file on windows
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x10038
call fcn.00406830
mov eax, dword [0x40b100]
xor eax, esp
mov dword [esp + 0x10034], eax
push ebx
push ebp
xor ebp, ebp
push esi
lea eax, [edi + 0x28]
push 0x28
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], eax
call dword [sym.imp.php5ts.dll__emalloc]
push ebp
push 0x404920
push ebp
push ebp
push eax
mov dword [edi + 0x2038], eax
call dword [sym.imp.php5ts.dll__zend_hash_init]
mov ebx, dword [sym.imp.MSVCR90.dll__errno]
add esp, 0x18
xor esi, esi
call ebx
mov ecx, 8
mov dword [eax], ebp
mov eax, dword [edi + 8]
sub ecx, esi
lea edx, [esp + esi + 0x14]
cmp dword [edi + 4], ebp
jne 0x4049ae
push ecx
push edx
push eax
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov ebp, eax
jmp 0x4049d1
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x4049d5
call ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test ebp, ebp
jle 0x4049d9
add esi, ebp
jmp 0x4049f0
jne 0x4049e2
call ebx
cmp dword [eax], 0
je 0x4049fb
call ebx
cmp dword [eax], 0
je 0x4049f0
call ebx
cmp dword [eax], 4
jne 0x4049f9
cmp esi, 8
je 0x404a04
xor ebp, ebp
jmp 0x404987
mov esi, ebp
cmp esi, 8
jne 0x404e9d
cmp byte [esp + 0x14], 1
jb 0x404e9d
movzx eax, byte [esp + 0x18]
movzx edx, byte [esp + 0x19]
mov cl, byte [esp + 0x15]
movzx esi, byte [esp + 0x1a]
shl eax, 8
or eax, edx
mov dword [esp + 0x1c], eax
cmp cl, 5
jne 0x404af0
test eax, eax
jne 0x404af0
xor esi, esi
mov edi, edi
call ebx
mov dword [eax], 0
mov edx, dword [edi + 8]
mov eax, 8
sub eax, esi
cmp dword [edi + 4], 0
lea ecx, [esp + esi + 0x14]
jne 0x404a6c
push eax
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov ebp, eax
jmp 0x404a8f
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x404a93
call ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test ebp, ebp
jle 0x404a97
add esi, ebp
jmp 0x404aae
jne 0x404aa0
call ebx
cmp dword [eax], 0
je 0x404ab7
call ebx
cmp dword [eax], 0
je 0x404aae
call ebx
cmp dword [eax], 4
jne 0x404ab5
cmp esi, 8
jne 0x404a40
jmp 0x404ac0
mov esi, ebp
cmp esi, 8
jne 0x404e9d
cmp byte [esp + 0x14], 1
jb 0x404e9d
movzx eax, byte [esp + 0x18]
movzx edx, byte [esp + 0x19]
mov cl, byte [esp + 0x15]
movzx esi, byte [esp + 0x1a]
shl eax, 8
or eax, edx
mov dword [esp + 0x1c], eax
cmp cl, 5
je 0x404a34
lea edx, [esi + eax]
cmp edx, 0xffff
mov dword [esp + 0x20], edx
jg 0x404e9d
movzx edx, byte [esp + 0x16]
movzx ebp, byte [esp + 0x17]
shl edx, 8
add edx, ebp
mov dword [edi + 0xc], edx
cmp cl, 1
jne 0x404eb7
cmp eax, 8
jne 0x404e9d
add esi, eax
mov dword [esp + 0x1c], esi
xor esi, esi
nop
call ebx
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 8]
sub eax, esi
cmp dword [edi + 4], 0
lea ecx, [esp + esi + 0x38]
jne 0x404b5b
push eax
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov ebp, eax
jmp 0x404b7e
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x404b82
call ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test ebp, ebp
jle 0x404b86
add esi, ebp
jmp 0x404b9d
jne 0x404b8f
call ebx
cmp dword [eax], 0
je 0x404ba7
call ebx
cmp dword [eax], 0
je 0x404b9d
call ebx
cmp dword [eax], 4
jne 0x404ba5
cmp esi, dword [esp + 0x1c]
jne 0x404b30
jmp 0x404ba7
mov esi, ebp
cmp esi, dword [esp + 0x1c]
jne 0x404e9d
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x39]
movzx edx, byte [esp + 0x3a]
shl eax, 8
and edx, 1
add eax, ecx
sub eax, 1
mov dword [edi + 0x10], edx
je 0x404c32
sub eax, 1
je 0x404c08
sub eax, 1
jne 0x404e9d
push str.FILTER
call dword [sym.imp.php5ts.dll__estrdup]
push 1
push 0
push 4
lea edx, [esp + 0x1c]
push edx
push 0xa
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x2038]
push str.FCGI_ROLE
push eax
jmp 0x404c5a
push str.AUTHORIZER
call dword [sym.imp.php5ts.dll__estrdup]
mov edx, dword [edi + 0x2038]
push 1
push 0
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0xa
push str.FCGI_ROLE
mov dword [esp + 0x28], eax
push edx
jmp 0x404c5a
push str.RESPONDER
call dword [sym.imp.php5ts.dll__estrdup]
mov ecx, dword [edi + 0x2038]
push 1
push 0
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0xa
push str.FCGI_ROLE
push ecx
call dword [sym.imp.php5ts.dll__zend_hash_add_or_update]
add esp, 0x20
xor esi, esi
call ebx
mov dword [eax], 0
mov ecx, dword [edi + 8]
mov edx, 8
sub edx, esi
cmp dword [edi + 4], 0
lea eax, [esp + esi + 0x14]
jne 0x404c91
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov ebp, eax
jmp 0x404cb4
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x404cb8
call ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
mov dword [edx], eax
test ebp, ebp
jle 0x404cbc
add esi, ebp
jmp 0x404cd3
jne 0x404cc5
call ebx
cmp dword [eax], 0
je 0x404cdc
call ebx
cmp dword [eax], 0
je 0x404cd3
call ebx
cmp dword [eax], 4
jne 0x404cda
cmp esi, 8
jne 0x404c65
jmp 0x404ce5
mov esi, ebp
cmp esi, 8
jne 0x404e9d
cmp byte [esp + 0x14], 1
jb 0x404e9d
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x19]
shl eax, 8
or eax, ecx
cmp byte [esp + 0x15], 4
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x1a]
jne 0x404e79
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x404e79
add eax, ecx
cmp eax, 0xffff
mov dword [esp + 0x20], eax
jg 0x404e9d
xor esi, esi
call ebx
mov edx, dword [esp + 0x20]
mov dword [eax], 0
mov ecx, dword [edi + 8]
sub edx, esi
cmp dword [edi + 4], 0
lea eax, [esp + esi + 0x38]
jne 0x404d5d
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov ebp, eax
jmp 0x404d80
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x404d84
call ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
mov dword [edx], eax
test ebp, ebp
jle 0x404d88
add esi, ebp
jmp 0x404d9f
jne 0x404d91
call ebx
cmp dword [eax], 0
je 0x404da9
call ebx
cmp dword [eax], 0
je 0x404d9f
call ebx
cmp dword [eax], 4
jne 0x404da7
cmp esi, dword [esp + 0x20]
jne 0x404d32
jmp 0x404da9
mov esi, ebp
cmp esi, dword [esp + 0x20]
jne 0x404e96
mov eax, dword [esp + 0x1c]
lea ecx, [esp + eax + 0x38]
push ecx
push edi
lea ecx, [esp + 0x40]
call fcn.00404780
add esp, 8
test eax, eax
je 0x404e96
xor esi, esi
call ebx
mov dword [eax], 0
mov ecx, dword [edi + 8]
mov edx, 8
sub edx, esi
cmp dword [edi + 4], 0
lea eax, [esp + esi + 0x14]
jne 0x404dff
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov ebp, eax
jmp 0x404e22
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x404e26
call ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
mov dword [edx], eax
test ebp, ebp
jle 0x404e2a
add esi, ebp
jmp 0x404e41
jne 0x404e33
call ebx
cmp dword [eax], 0
je 0x404e4a
call ebx
cmp dword [eax], 0
je 0x404e41
call ebx
cmp dword [eax], 4
jne 0x404e48
cmp esi, 8
jne 0x404dd3
jmp 0x404e4f
mov esi, ebp
cmp esi, 8
jne 0x404e96
cmp byte [esp + 0x14], 1
jb 0x404e96
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x19]
shl eax, 8
or eax, ecx
cmp byte [esp + 0x15], 4
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x1a]
je 0x404d13
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10034]
xor ecx, esp
call fcn.00406814
add esp, 0x10038
ret
mov dword [edi + 0x10], 0
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10034]
xor ecx, esp
call fcn.00406814
add esp, 0x10038
ret
cmp cl, 9
jne 0x404e9d
lea esi, [esp + 0x40]
xor ebp, ebp
call ebx
mov edx, dword [esp + 0x20]
mov dword [eax], 0
mov ecx, dword [edi + 8]
sub edx, ebp
cmp dword [edi + 4], 0
lea eax, [esp + ebp + 0x38]
jne 0x404eef
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__read]
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x404f14
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x24], eax
test eax, eax
jg 0x404f3b
call ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x30]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x404f3f
jne 0x404f25
call ebx
cmp dword [eax], 0
je 0x404f47
call ebx
cmp dword [eax], 0
je 0x404f33
call ebx
cmp dword [eax], 4
jne 0x404f43
cmp ebp, dword [esp + 0x20]
jne 0x404ec2
jmp 0x404f47
mov eax, dword [esp + 0x24]
add ebp, eax
jmp 0x404f33
mov ebp, dword [esp + 0x24]
cmp ebp, dword [esp + 0x20]
jne 0x404e96
mov eax, dword [esp + 0x1c]
lea ecx, [esp + eax + 0x38]
push ecx
push edi
lea ecx, [esp + 0x40]
call fcn.00404780
add esp, 8
test eax, eax
je 0x404e96
mov eax, dword [edi + 0x2038]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.php5ts.dll_zend_hash_internal_pointer_reset_ex]
mov ebp, dword [sym.imp.php5ts.dll_zend_hash_get_current_key_ex]
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x44]
push edx
mov edx, dword [edi + 0x2038]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
call ebp
mov ebx, eax
add esp, 0x20
cmp ebx, 3
je 0x4050c8
mov ecx, dword [edi + 0x2038]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.php5ts.dll_zend_hash_move_forward_ex]
add esp, 8
cmp ebx, 1
jne 0x40509b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push 0x40b12c
call dword [sym.imp.php5ts.dll_zend_hash_find]
add esp, 0x10
test eax, eax
jne 0x40509b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
dec eax
mov dword [esp + 0xc], eax
mov ecx, dword [edx]
mov ebx, dword [ecx + 4]
lea edx, [ebx + eax]
lea ecx, [edx + esi + 8]
lea edx, [esp + 0x1003f]
cmp ecx, edx
jae 0x4050c8
cmp eax, 0x80
jae 0x40502a
mov byte [esi], al
jmp 0x40504c
shr eax, 0x18
or al, 0x80
mov byte [esi], al
mov eax, dword [esp + 0xc]
inc esi
shr eax, 0x10
mov byte [esi], al
mov ecx, dword [esp + 0xc]
inc esi
shr ecx, 8
mov byte [esi], cl
mov dl, byte [esp + 0xc]
inc esi
mov byte [esi], dl
inc esi
cmp ebx, 0x80
jl 0x40506f
mov eax, ebx
sar eax, 0x18
or al, 0x80
mov byte [esi], al
inc esi
mov ecx, ebx
sar ecx, 0x10
mov byte [esi], cl
mov edx, ebx
inc esi
sar edx, 8
mov byte [esi], dl
inc esi
mov byte [esi], bl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
push eax
push ecx
inc esi
push esi
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [eax]
add esi, dword [esp + 0x18]
push ebx
push ecx
push esi
call sub.MSVCR90.dll_memcpy
add esp, 0x18
add esi, ebx
lea edx, [esp + 0x2c]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edi + 0x2038]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call ebp
mov ebx, eax
add esp, 0x18
cmp ebx, 3
jne 0x404fb4
lea ecx, [esp + 0x38]
sub esi, ecx
sub esi, 8
mov eax, esi
lea ebx, [eax + 7]
and ebx, 0xfffffff8
sub ebx, eax
mov edx, eax
sar edx, 8
mov dword [esp + 0x1c], eax
mov byte [esp + 0x3d], al
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3b], 0
mov byte [esp + 0x3a], 0
mov byte [esp + 0x3f], 0
mov byte [esp + 0x39], 0xa
mov byte [esp + 0x38], 1
test ebx, ebx
je 0x40511f
push ebx
lea eax, [esp + eax + 0x44]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, esi
add eax, ebx
lea ebp, [eax + 8]
xor esi, esi
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, ebp
mov dword [eax], 0
mov eax, dword [edi + 8]
sub ecx, esi
cmp dword [edi + 4], 0
lea edx, [esp + esi + 0x38]
jne 0x405153
push ecx
push edx
push eax
call dword [sym.imp.MSVCR90.dll__write]
add esp, 0xc
mov ebx, eax
jmp 0x40517a
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test ebx, ebx
jg 0x40517e
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
test ebx, ebx
jle 0x405182
add esi, ebx
jmp 0x405198
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0
je 0x405198
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
jne 0x40519e
cmp esi, ebp
jne 0x405126
jmp 0x4051a0
mov esi, ebx
xor eax, eax
cmp esi, ebp
je 0x404e9f
mov ecx, dword [esp + 0x10040]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [edi + 0x10], eax
call fcn.00406814
add esp, 0x10038
ret