Function at 0x40aa2d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x464c13
call fcn.0043540c
mov eax, 0x10d8
call fcn.00435c30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
cmp dword [esi], ebx
je 0x40aa59
mov eax, 0x8000ffff
jmp 0x40adf3
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040b3c4
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x10e2]
mov word [ebp - 0x10e4], bx
rep stosd dword es:[edi], eax
push ebx
push str.http:__
push 7
lea ecx, [esi + 8]
push ebx
mov dword [ebp - 4], ebx
stosw word es:[edi], ax
call fcn.0040b832
test eax, eax
mov edi, str.ftp:__
je 0x40aab9
push ebx
push edi
push 6
push ebx
lea ecx, [esi + 8]
call fcn.0040b832
test eax, eax
jne 0x40aad1
push dword [esi + 0x18]
lea eax, [ebp - 0x10e4]
push str.Referer:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push edi
push 6
push ebx
lea ecx, [esi + 8]
call fcn.0040b832
neg eax
sbb al, al
inc al
mov byte [ebp - 0xd], al
je 0x40ab28
push 0xa8
call fcn.00435520
mov edi, eax
pop ecx
mov dword [ebp - 0x28], edi
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x40ab1e
push ebx
push ebx
push ebx
push ebx
push 0x7530
push str.dwplayer
mov ecx, edi
call fcn.0040ae4d
mov dword [edi], method.is::http_file.virtual_0
jmp 0x40ab20
xor edi, edi
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], edi
jmp 0x40ab5d
push 0xb0
call fcn.00435520
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x40ab55
push ebx
push ebx
push ebx
push ebx
push 0x7530
push str.dwplayer
mov ecx, eax
call fcn.0040b119
jmp 0x40ab57
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x18]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10e4]
push 0x80400100
push ecx
push eax
mov ecx, edi
call fcn.004514eb
test al, al
jne 0x40abb1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x40ab8d
call edi
mov edi, eax
jmp 0x40ab9d
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
mov ecx, dword [esi + 4]
mov dword [ebp - 0x40], edi
lea edx, [ebp - 0x40]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
jmp 0x40ac77
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], eax
mov edi, eax
lea edx, [ebp - 0x40]
mov eax, dword [ecx]
push edx
call dword [eax]
cmp byte [ebp - 0xd], bl
jne 0x40abdd
cmp edi, ebx
jbe 0x40abd6
cmp edi, 0xffffffff
jne 0x40abdd
mov edi, 0x8004d554
jmp 0x40ab9d
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x50], 0x46b648
mov eax, dword [eax]
mov dword [ebp - 0x48], 0x46b640
push eax
call fcn.0040a6c7
mov esi, 0x46b63c
mov dword [ebp - 0x5c], esi
sub esp, 0x1c
lea eax, [ebp - 0x5c]
mov dword [ebp + 8], esp
mov edi, esp
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
mov dword [edi + 0xc], 0x46b648
mov dword [edi + 0x14], 0x46b640
call fcn.0040b732
lea ecx, [ebp - 0x7c]
mov dword [edi], esi
call fcn.0040b40d
cmp eax, ebx
jne 0x40ac8a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40ac48
call esi
mov esi, eax
jmp 0x40ac58
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], esi
lea edx, [ebp - 0x40]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0040a754
mov edi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0040b508
mov eax, edi
jmp 0x40adf3
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x9c]
push eax
call fcn.0040b4be
mov esi, 0x10000
mov byte [ebp - 4], 4
push esi
mov byte [ebp - 0xe], bl
mov byte [ebp + 0xb], bl
mov byte [ebp - 0xd], bl
call fcn.00435520
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0xb], bl
jne 0x40ad7d
cmp byte [ebp - 0xd], bl
jne 0x40ad7d
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x24]
call fcn.0045175c
cmp dword [ebp - 0x14], 0xffffffff
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x40ad42
cmp dword [ebp - 0x14], ebx
jbe 0x40ad18
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ad0f
mov eax, dword [ebp - 0x28]
jmp 0x40ad12
or eax, 0xffffffff
cmp eax, ebx
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x40ad42
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x40]
add dword [ebp - 0x30], 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 0x40ad74
call edi
test eax, eax
jg 0x40ad4c
call edi
jmp 0x40ad58
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
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 0x40acbe
push dword [ebp - 0x24]
call fcn.004347fc
cmp dword [ebp - 0x7c], 0xffffffff
pop ecx
je 0x40ad9e
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x40ad9e
push dword [ebp - 0x7c]
call eax
or dword [ebp - 0x7c], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], bl
jne 0x40adbb
cmp byte [ebp + 0xb], bl
jne 0x40adbb
lea ecx, [ebp - 0x9c]
call fcn.0040b4ea
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.0040b4ef
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0040a754
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0040b508
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4