Function at 0x465140
Capabilities:
Create thread
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523ca1
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call esi
mov ecx, dword [ebx + 0x50]
push ecx
call esi
xor esi, esi
mov dword [ebp - 0x4c], esi
cmp dword [edi + 4], esi
jle 0x465ac9
mov eax, dword [ebx + 0x54]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x465ad0
mov edi, vtable.winhttp::receive_buffer.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], esi
lea edx, [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], vtable.winhttp::file_receive_buffer.0
mov dword [ebp - 4], 3
push str..part
lea ecx, [ebp - 0x8c]
call fcn.004095e0
mov byte [ebp - 4], 4
push eax
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0041f010
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
cmp ecx, esi
je 0x465244
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040b3a0
jmp 0x46524e
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x465384
call fcn.0040b2f0
cmp eax, esi
jl 0x4658a6
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, 0xffffffff
jne 0x46528c
call fcn.0040b2f0
cmp eax, esi
jl 0x465910
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
push esi
lea ecx, [ebp - 0x90]
push ecx
push edi
push edx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4652c0
call fcn.0040b2f0
cmp eax, esi
jl 0x46597e
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x4652ee
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.004158a0
mov edx, dword [ebx]
mov dword [ebp - 0x24], eax
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [ebp - 0x24], esi
je 0x4659bb
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
cmp dword [ebx + 0x3c], esi
jne 0x46530d
mov dword [ebx + 0x3c], 0x19000
mov eax, dword [ebp - 0x34]
or edi, eax
je 0x46532c
cmp esi, eax
jb 0x465796
ja 0x46532a
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x24], ecx
jb 0x465796
xor esi, esi
cmp dword [ebp - 0x4c], esi
jne 0x46554e
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x38]
mov eax, 0xcccccccd
mul edx
mov edi, edx
shr edi, 2
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 0x18
push 0xffffffffffffffff
push 5
lea ecx, [ebp - 0x48]
call fcn.00463920
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov byte [ebp - 4], 0x19
push 0xffffffffffffffff
push 5
lea ecx, [ebp - 0x74]
call fcn.004634a0
jmp 0x465393
mov dword [ebp - 0x14], eax
jmp 0x465264
mov edi, dword [ebp - 0x30]
mov eax, esi
imul eax, edi
add eax, dword [ebp - 0x38]
cmp esi, 4
jne 0x4653a9
mov ecx, dword [ebp - 0x24]
dec ecx
mov dword [ebp - 0x28], ecx
jmp 0x4653b0
lea edx, [eax + edi - 1]
mov dword [ebp - 0x28], edx
cmp esi, dword [ebp - 0x44]
jae 0x4659fb
mov edx, dword [ebp - 0x48]
mov ecx, esi
shl ecx, 4
sub ecx, esi
lea edi, [edx + ecx*4]
push ebx
lea ecx, [ebx + 0x30]
push ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
push edx
mov edx, dword [ebp - 0x28]
push ecx
push edx
push eax
lea eax, [ebx + 0x1c]
push eax
mov ecx, edi
call fcn.00464e60
mov edi, dword [edi + 0x18]
cmp esi, dword [ebp - 0x70]
jae 0x4659fb
mov ecx, dword [ebp - 0x74]
mov dword [ecx + esi*4], edi
inc esi
cmp esi, 5
jl 0x465390
push 0xffffffffffffffff
push 1
mov edx, ecx
push edx
push 5
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, dword [ebp - 0x48]
xor edi, edi
add esi, 8
cmp edi, dword [ebp - 0x44]
jae 0x4659fb
cmp byte [esi + 0x30], 0
je 0x4654ab
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x465433
xor eax, eax
jmp 0x465435
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x9c]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x465453
call fcn.0040b2f0
inc edi
add esi, 0x3c
cmp edi, 5
jl 0x465415
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x74], 0
je 0x465472
mov edx, dword [ebp - 0x74]
push edx
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x48], 0
je 0x465796
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x46549a
mov esi, dword [ebp - 0x48]
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
add esi, 0x3c
dec edi
jne 0x46548a
mov eax, dword [ebp - 0x48]
push eax
call fcn.004eaf4a
add esp, 4
jmp 0x465796
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4654ca
push eax
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x48], 0
je 0x4654fc
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x4654f0
mov esi, dword [ebp - 0x48]
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x4654e0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46551f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x1b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46582e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
jmp 0x46582e
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
jae 0x465562
mov edi, 1
mov dword [ebp - 0x28], edi
jmp 0x465589
sub eax, dword [ebp - 0x38]
xor edx, edx
div ecx
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
test eax, eax
jns 0x465579
fadd qword [0x531e20]
fadd qword [0x536230]
call fcn.004ecff0
mov edi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x54], esi
cmp edi, esi
jle 0x465796
mov ebx, dword [ebx + 0x54]
push 0x1f4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x465a05
mov ecx, dword [ebp - 0x20]
mov eax, edi
sub eax, esi
mov esi, dword [ecx + 8]
cmp esi, eax
jge 0x4655be
mov dword [ebp - 0x50], esi
jmp 0x4655c3
mov esi, eax
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 0x22
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x64]
call fcn.00463920
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp - 4], 0x23
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x84]
call fcn.004634a0
cmp esi, ebx
jle 0x4656c9
mov esi, dword [ebp - 0x64]
add esi, 0x20
nop
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ebp - 0x28]
add eax, ebx
mov edi, eax
imul edi, ecx
add edi, dword [ebp - 0x38]
dec edx
cmp eax, edx
jne 0x465634
mov ecx, dword [ebp - 0x24]
dec ecx
mov dword [ebp - 0x30], ecx
jmp 0x46563b
lea edx, [ecx + edi - 1]
mov dword [ebp - 0x30], edx
cmp ebx, dword [ebp - 0x60]
jae 0x4659fb
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0x1c
mov dword [ebp - 0x88], ecx
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 0x2c], edx
call fcn.00411920
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x88]
mov dword [esi], edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x30]
mov dword [esi + 4], ecx
push eax
lea ecx, [esi + 0x10]
mov dword [esi - 4], edx
call fcn.00411920
mov ecx, dword [ebp - 0x2c]
push 0
push 0
lea edx, [esi - 0x20]
push edx
push 0x464e40
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x14], edi
call fcn.004ec6b8
add esp, 0x18
mov dword [esi - 8], eax
cmp ebx, dword [ebp - 0x80]
jae 0x4659fb
mov ecx, dword [ebp - 0x84]
mov dword [ecx + ebx*4], eax
inc ebx
add esi, 0x3c
cmp ebx, dword [ebp - 0x50]
jl 0x465610
mov esi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x50]
push 0xffffffffffffffff
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
test ebx, ebx
jle 0x465736
mov esi, dword [ebp - 0x64]
add esi, 8
cmp edi, dword [ebp - 0x60]
jae 0x4659fb
cmp byte [esi + 0x30], 0
je 0x465856
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x465708
xor eax, eax
jmp 0x46570a
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x98]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x465728
call fcn.0040b2f0
inc edi
add esi, 0x3c
cmp edi, ebx
jl 0x4656ea
mov esi, dword [ebp - 0x84]
mov byte [ebp - 4], 0x22
test esi, esi
je 0x465747
push esi
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x64], 0
je 0x46577c
cmp dword [ebp - 0x60], 0
jbe 0x465770
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x465760
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004eaf4a
add esp, 4
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x20]
add esi, dword [edx + 8]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x54], esi
cmp esi, edi
jl 0x465594
mov ecx, dword [ebx + 0x20]
lea eax, [ebx + 0x20]
xor esi, esi
cmp dword [ecx - 0xc], esi
je 0x465a57
mov ecx, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.00411c50
test al, al
jne 0x465a57
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x40], 0xd
cmp eax, esi
je 0x4657d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46580c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x25
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x46582e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x18], vtable.winhttp::receive_buffer.0
mov dword [ebp - 0x4c], eax
cmp eax, dword [edx + 4]
jge 0x465ac9
xor esi, esi
jmp 0x465193
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x465878
push eax
call fcn.004eaf4a
add esp, 4
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x46577c
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x4658a0
mov esi, ebx
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x465890
push ebx
jmp 0x465774
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4658d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 9
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4658f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46593a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x46595c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], vtable.winhttp::receive_buffer.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4659a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x11
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
jmp 0x46594b
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4659e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x15
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
jmp 0x46594b
push 0x80070057
call fcn.00406170
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465a28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x1f
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46595c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
jmp 0x46595c
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x465a68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov ecx, ebx
call edx
mov dword [ebx + 0x58], 3
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465ab3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x29
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
jmp 0x46594b
mov dword [ebx + 0x58], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4