Function at 0x4022a9
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41aa24
call fcn.00411544
mov eax, 0x1888
call fcn.00411720
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4022d2
mov eax, 0x8000ffff
jmp 0x402666
or dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00402b44
mov dword [ebp - 0x48], 0x41b484
mov ecx, 0x208
xor eax, eax
lea edi, [ebp - 0x893]
mov byte [ebp - 0x894], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea edi, [esi + 8]
push str.http:__
push 7
push ebx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00402bf1
test eax, eax
je 0x402344
push ebx
push str.ftp:__
push 6
push ebx
mov ecx, edi
call fcn.00402bf1
test eax, eax
jne 0x402363
mov ecx, edi
call fcn.00402c7f
push dword [edi + 4]
lea eax, [ebp - 0x894]
push str.Referer:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push str.ftp:__
push 6
push ebx
mov ecx, edi
call fcn.00402bf1
neg eax
sbb al, al
push 0xa8
inc al
mov byte [ebp - 0xd], al
je 0x4023b4
call fcn.004110c7
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x4023e5
push ebx
push ebx
push ebx
push ebx
push 0x7530
push str.dwplayer
call fcn.004026c5
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x41b4b4
jmp 0x4023e7
call fcn.004110c7
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x4023e5
push ebx
push ebx
push ebx
push ebx
push 0x7530
push str.dwplayer
call fcn.004026c5
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x41b488
jmp 0x4023e7
xor eax, eax
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
call fcn.00402c7f
mov edi, dword [edi + 4]
lea eax, [ebp - 0x894]
push 0x80400100
push eax
push edi
mov edi, dword [ebp - 0x14]
mov ecx, edi
call fcn.0040e17a
test al, al
jne 0x402445
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x40242f
call edi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
jmp 0x4024f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], eax
mov edi, eax
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
push edx
call dword [eax]
cmp byte [ebp - 0xd], bl
jne 0x402484
cmp edi, ebx
jbe 0x40246a
cmp edi, 0xffffffff
jne 0x402484
mov esi, dword [esi + 4]
mov edi, 0x8004d554
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov ebx, edi
jmp 0x4024f3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push dword [eax]
call fcn.00402172
sub esp, 0x10
lea eax, [ebp - 0x5c]
mov edi, esp
mov dword [ebp + 8], esp
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00402b58
lea ecx, [ebp - 0x4c]
mov dword [edi], 0x41b484
call fcn.004029e2
cmp eax, ebx
jne 0x402506
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4024d6
call edi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402077
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402ac4
mov eax, ebx
jmp 0x402666
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00402a8a
mov byte [ebp - 4], 5
mov byte [ebp - 0xe], bl
mov byte [ebp + 0xb], bl
mov byte [ebp - 0xd], bl
mov edi, 0x1000
cmp byte [ebp + 0xb], bl
jne 0x402604
cmp byte [ebp - 0xd], bl
jne 0x402604
push edi
lea eax, [ebp - 0x1894]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00410ec0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1894]
push edi
push eax
call fcn.0040e2c5
cmp dword [ebp - 0x18], 0xffffffff
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x4025c1
cmp dword [ebp - 0x18], ebx
jbe 0x40259a
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x1894]
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402591
mov eax, dword [ebp - 0x38]
jmp 0x402594
or eax, 0xffffffff
cmp eax, ebx
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x4025c1
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
add dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp eax, 1
setne byte [ebp - 0xe]
cmp dword [ebp - 0x18], ebx
sete byte [ebp - 0xd]
jmp 0x4025fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4025e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jmp 0x4025e5
mov dword [ebp - 0x1c], ebx
mov eax, ebx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp eax, 1
setne byte [ebp + 0xb]
cmp byte [ebp - 0xe], bl
je 0x402524
cmp dword [ebp - 0x4c], 0xffffffff
je 0x402617
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x4c], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], bl
jne 0x402631
cmp byte [ebp + 0xb], bl
jne 0x402631
lea ecx, [ebp - 0x70]
call fcn.00402aa6
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00402aab
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402077
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402ac4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4