Function at 0x40613b
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x429337
call fcn.0041e1f0
mov eax, 0x18b0
call fcn.0041e1c0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
cmp dword [esi], ebx
je 0x406167
mov eax, 0x8000ffff
jmp 0x406528
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00406b24
mov ecx, 0x208
xor eax, eax
lea edi, [ebp - 0x8bb]
mov byte [ebp - 0x8bc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
add esi, 8
push str.http:__
push 7
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
call fcn.00406e59
test eax, eax
mov edi, str.ftp:__
je 0x4061c8
push ebx
push edi
push 6
push ebx
mov ecx, esi
call fcn.00406e59
test eax, eax
jne 0x4061e7
mov ecx, esi
call fcn.00406f5c
push dword [esi + 4]
lea eax, [ebp - 0x8bc]
push str.Referer:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push edi
push 6
push ebx
mov ecx, esi
call fcn.00406e59
neg eax
sbb al, al
inc al
mov byte [ebp - 0xd], al
je 0x40623d
push 0x128
call fcn.0041d7f8
mov edi, eax
pop ecx
mov dword [ebp - 0x24], edi
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x406233
push ebx
push ebx
push ebx
push ebx
push 0x7530
push str.dwplayer
mov ecx, edi
call fcn.00406582
mov dword [edi], 0x42b50c
jmp 0x406235
xor edi, edi
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], edi
jmp 0x406272
push 0x130
call fcn.0041d7f8
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x40626a
push ebx
push ebx
push ebx
push ebx
push 0x7530
push str.dwplayer
mov ecx, eax
call fcn.00406869
jmp 0x40626c
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], eax
mov ecx, esi
call fcn.00406f5c
mov esi, dword [esi + 4]
lea eax, [ebp - 0x8bc]
push 0x80400100
push eax
push esi
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041a9f4
test al, al
jne 0x4062d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4062a9
call esi
mov esi, eax
jmp 0x4062b9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], esi
lea edx, [ebp - 0x3c]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x4063ab
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov edi, eax
lea edx, [ebp - 0x3c]
mov ecx, dword [esi + 4]
push edx
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp - 0xd], bl
jne 0x406313
cmp edi, ebx
jbe 0x4062f8
cmp edi, 0xffffffff
jne 0x406313
mov ecx, dword [esi + 4]
mov edi, 0x8004d554
mov dword [ebp - 0x3c], edi
lea edx, [ebp - 0x3c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov esi, edi
jmp 0x4063ab
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x4c], 0x42b4e8
mov eax, dword [eax]
mov dword [ebp - 0x44], 0x42b4e0
push eax
call fcn.00405dd5
mov esi, 0x42b4dc
mov dword [ebp - 0x58], esi
sub esp, 0x1c
lea eax, [ebp - 0x58]
mov dword [ebp + 8], esp
mov edi, esp
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
mov dword [edi + 0xc], 0x42b4e8
mov dword [edi + 0x14], 0x42b4e0
call fcn.00406d5e
lea ecx, [ebp - 0x78]
mov dword [edi], esi
call fcn.00406b6d
cmp eax, ebx
jne 0x4063be
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40637e
call esi
mov esi, eax
jmp 0x40638e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], esi
lea edx, [ebp - 0x3c]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00405e62
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406c5f
mov eax, esi
jmp 0x406528
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x98]
push eax
call fcn.00406c15
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 4
mov byte [ebp - 0xe], bl
mov byte [ebp + 0xb], bl
mov byte [ebp - 0xd], bl
mov esi, 0x1000
cmp byte [ebp + 0xb], bl
jne 0x4064c0
cmp byte [ebp - 0xd], bl
jne 0x4064c0
push esi
lea eax, [ebp - 0x18bc]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0041dd00
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18bc]
push esi
push eax
call fcn.0041ac1b
cmp dword [ebp - 0x14], 0xffffffff
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x406485
cmp dword [ebp - 0x14], ebx
jbe 0x40645b
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x18bc]
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406452
mov eax, dword [ebp - 0x24]
jmp 0x406455
or eax, 0xffffffff
cmp eax, ebx
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x406485
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 1
setne byte [ebp - 0xe]
cmp dword [ebp - 0x14], ebx
sete byte [ebp - 0xd]
jmp 0x4064b7
call edi
test eax, eax
jg 0x40648f
call edi
jmp 0x40649b
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 1
setne byte [ebp + 0xb]
cmp byte [ebp - 0xe], bl
je 0x4063e5
cmp dword [ebp - 0x78], 0xffffffff
je 0x4064d3
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x78], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], bl
jne 0x4064f0
cmp byte [ebp + 0xb], bl
jne 0x4064f0
lea ecx, [ebp - 0x98]
call fcn.00406c41
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.00406c46
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00405e62
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00406c5f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4