Function at 0x436670
Capabilities:
Delete file
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593304
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x611e60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor bl, bl
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x168], edi
mov byte [ebp - 0x145], bl
mov byte [ebp - 0x146], bl
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], ax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x154], 0x50
push eax
lea edx, [ebp - 0xd4]
call fcn.004381c0
mov edi, dword [ebp - 0x154]
mov eax, 0x1bb
add esp, 8
cmp di, ax
jne 0x436789
cmp dword [ebp - 0x30], 8
jb 0x436757
push dword [ebp - 0x44]
call fcn.00556a60
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x436782
push dword [ebp - 0xd4]
call fcn.00556a60
add esp, 4
xor al, al
jmp 0x4371ed
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xec]
call fcn.00437f20
push edi
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00436430
test al, al
jne 0x4367cc
push 0x6063c8
lea eax, [ebp - 0x174]
mov dword [ebp - 0x174], 0x5f2ad0
push eax
call fcn.00557203
lea eax, [ebp - 0xec]
push eax
lea ecx, [esi + 0x24]
call fcn.0043b450
jmp 0x4367e0
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xbc]
call fcn.00437f20
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x436803
push 0xffffffffffffffff
push 0
push eax
call fcn.00422850
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], 0x10
jb 0x43681e
push dword [ebp - 0xbc]
call fcn.00556a60
add esp, 4
push ecx
lea eax, [ebp - 0x74]
push eax
lea ecx, [esi + 0x24]
call fcn.0043b4e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
push 0
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x436869
push 0x6063fc
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 3
push eax
call fcn.00557203
mov ebx, dword [ebp - 0x164]
xorps xmm0, xmm0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
movsd qword [ebp - 0x160], xmm0
movsd qword [ebp - 0x158], xmm0
mov byte [ebp - 0x147], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4368b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5f2aa4
lea eax, [ebp - 0x150]
push ebx
push eax
call fcn.00558802
add esp, 0xc
cmp dword [ebp - 0x150], 0
jne 0x4368ee
push 0x6063fc
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], 7
push eax
call fcn.00557203
push 0x1001
call fcn.00558db8
mov edi, eax
mov dword [ebp - 0x14c], edi
add esp, 4
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x436933
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x436933
push 0x6063fc
lea eax, [ebp - 0x184]
mov dword [ebp - 0x184], 0xb
push eax
call fcn.00557203
push 0
push 0x1000
push edi
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x436966
push 0x6063fc
lea eax, [ebp - 0x180]
mov dword [ebp - 0x180], 0xa
push eax
call fcn.00557203
test ebx, ebx
jle 0x436fbb
cmp byte [ebp - 0x147], 0
mov byte [ebx + edi], 0
jne 0x4370d0
cmp byte [edi], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jne 0x43699a
xor ecx, ecx
jmp 0x4369a9
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4369a0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00422c20
push 4
push 0
push str._r_n_r_n
lea ecx, [ebp - 0x5c]
call fcn.00437e80
mov edi, eax
cmp edi, 0xffffffff
jne 0x4369ec
mov edi, dword [ebp - 0x14c]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x48], 0x10
jb 0x436903
push dword [ebp - 0x5c]
call fcn.00556a60
jmp 0x436900
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push edi
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00429060
mov dword [ebp - method.CHttpHeader.virtual_0], vtable.CHttpHeader.0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], 0
mov byte [ebp - 0x13c], 0
mov dword [ebp - 0x110], 0xf
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x124], 0
mov dword [ebp - 0xf8], 0xf
mov dword [ebp - 0xfc], 0
mov byte [ebp - 0x10c], 0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
call fcn.0043cac0
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x144]
call fcn.0043bdc0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x140]
mov dword [esi + 4], eax
cmp eax, 0x190
jne 0x436adb
push 0x6063fc
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 5
push eax
call fcn.00557203
cmp eax, 0x12c
jle 0x436e0e
cmp eax, 0x190
jge 0x436e0e
push 8
push str.Location
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.00422c20
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x144]
call fcn.0043b300
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa4]
call fcn.004386f0
cmp dword [ebp - 0xa8], 0x10
jb 0x436b5d
push dword [ebp - 0xbc]
call fcn.00556a60
add esp, 4
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x78], 0x10
jb 0x436b90
push dword [ebp - 0x8c]
call fcn.00556a60
add esp, 4
push 7
push 0
push 0x5f2ad4
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.004238e0
test eax, eax
je 0x436c85
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x44]
call fcn.004220c0
cmp dword [ebp - 0x90], 8
jb 0x436beb
push dword [ebp - 0xa4]
call fcn.00556a60
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], 7
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
call fcn.0043b260
cmp dword [ebp - 0x18], 0x10
jb 0x436c24
push dword [ebp - 0x2c]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x436c47
push dword [ebp - 0x5c]
call fcn.00556a60
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x436c6e
push dword [ebp - 0x74]
call fcn.00556a60
add esp, 4
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jmp 0x4367e0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x436c9b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0xffffffff
push dword [ebp - 0x14c]
call fcn.00558d80
push dword [ebp - 0x150]
mov dword [ebp - 0x14c], 0
call fcn.00558982
mov eax, dword [esi]
lea edx, [ebp - 0xa4]
mov edi, dword [ebp - 0x164]
add esp, 8
cmp dword [ebp - 0x90], 8
mov ecx, esi
mov dword [ebp - 0x150], 0
cmovae edx, dword [ebp - 0xa4]
mov eax, dword [eax + 4]
push edi
push edx
call eax
cmp dword [ebp - 0x90], 8
mov bl, al
jb 0x436d06
push dword [ebp - 0xa4]
call fcn.00556a60
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], 7
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
call fcn.0043b260
cmp dword [ebp - 0x18], 0x10
jb 0x436d3f
push dword [ebp - 0x2c]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x436d62
push dword [ebp - 0x5c]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x436d85
push dword [ebp - 0x74]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0xd8], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x436dae
push dword [ebp - 0xec]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0xd8], 0xf
mov dword [ebp - 0xdc], 0
mov byte [ebp - 0xec], 0
jb 0x436dda
push dword [ebp - 0x44]
call fcn.00556a60
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x4371eb
push dword [ebp - 0xd4]
call fcn.00556a60
add esp, 4
jmp 0x4371eb
push 0xe
push str.Content_Length
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.00422c20
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x144]
call fcn.0043b300
cmp dword [eax + 0x14], 0x10
jb 0x436e5a
mov eax, dword [eax]
push eax
call fcn.0055e74b
add esp, 4
cmp dword [ebp - 0xa8], 0x10
fstp qword [ebp - 0x160]
jb 0x436e80
push dword [ebp - 0xbc]
call fcn.00556a60
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
jb 0x436eb3
push dword [ebp - 0x8c]
call fcn.00556a60
add esp, 4
mov eax, ebx
sub eax, edi
sub eax, 4
test eax, eax
jle 0x436f2e
push dword [ebp - 0x150]
push 1
push eax
mov eax, dword [ebp - 0x14c]
add eax, 4
add eax, edi
push eax
call fcn.00559b26
mov ecx, dword [esi + 0x80]
add esp, 0x10
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ebp - 0x158]
movsd qword [ebp - 0x158], xmm0
test ecx, ecx
je 0x436f2e
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x160]
movsd qword [esp], xmm0
push 0
push dword [esi + 0x7c]
movsd qword [ebp - 0x160], xmm0
call dword [eax]
movsd xmm0, qword [ebp - 0x160]
jmp 0x436f3e
movsd xmm0, qword [ebp - 0x160]
movsd qword [ebp - 0x160], xmm0
movsd xmm1, qword [ebp - 0x158]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x43707a
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x436f75
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 2
push dword [esi + 0x7c]
call dword [eax]
lea ecx, [ebp - 0x144]
mov byte [ebp - 0x145], 1
call fcn.0043b260
cmp dword [ebp - 0x18], 0x10
jb 0x436f98
push dword [ebp - 0x2c]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x436fbb
push dword [ebp - 0x5c]
call fcn.00556a60
add esp, 4
mov bl, byte [ebp - 0x145]
cmp dword [ebp - 0x60], 0x10
jb 0x436fd2
push dword [ebp - 0x74]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0xd8], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x436ffb
push dword [ebp - 0xec]
call fcn.00556a60
add esp, 4
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0xd8], 0xf
mov dword [ebp - 0xdc], 0
mov byte [ebp - 0xec], 0
jb 0x437027
push dword [ebp - 0x44]
call fcn.00556a60
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x437052
push dword [ebp - 0xd4]
call fcn.00556a60
add esp, 4
mov edi, dword [ebp - 0x164]
xor eax, eax
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], ax
jmp 0x4371b0
lea ecx, [ebp - 0x144]
mov byte [ebp - 0x147], 1
call fcn.0043b260
cmp dword [ebp - 0x18], 0x10
jb 0x43709d
push dword [ebp - 0x2c]
call fcn.00556a60
add esp, 4
mov edi, dword [ebp - 0x14c]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x436903
push dword [ebp - 0x5c]
call fcn.00556a60
jmp 0x436900
push dword [ebp - 0x150]
push 1
push ebx
push edi
call fcn.00559b26
mov ecx, dword [esi + 0x80]
add esp, 0x10
movd xmm0, ebx
cvtdq2pd xmm1, xmm0
addsd xmm1, qword [ebp - 0x158]
movsd qword [ebp - 0x158], xmm1
test ecx, ecx
je 0x43712b
movsd xmm0, qword [ebp - 0x160]
sub esp, 0x10
mov eax, dword [ecx]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 0
push dword [esi + 0x7c]
call dword [eax]
movsd xmm1, qword [ebp - 0x158]
movsd xmm0, qword [ebp - 0x160]
comisd xmm1, xmm0
jb 0x436903
mov ecx, dword [esi + 0x80]
mov bl, 1
mov byte [ebp - 0x146], bl
test ecx, ecx
je 0x436fc1
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 2
push dword [esi + 0x7c]
call dword [eax]
jmp 0x436fc1
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x4371c3
push eax
call fcn.00558d80
add esp, 4
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x4371e0
push eax
call fcn.00558982
add esp, 4
mov dword [ebp - 0x150], 0
test bl, bl
jne 0x4371eb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005571f4
mov esp, ebp
pop ebp
ret 8