Function at 0x44646b
Capabilities:
Delete file
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba87a
mov eax, dword fs:[0]
push eax
mov eax, 0x30c0
call fcn.004a3980
mov eax, dword [0x4e8070]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x3078], eax
lea eax, [ebp - 0x3098]
push eax
mov esi, edx
call fcn.0044861f
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x3088]
sub eax, dword [ebp - 0x308c]
test eax, 0xffffffe0
jg 0x4464f3
lea esi, [ebp - 0x3098]
call fcn.004485c4
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.0049795f
leave
ret
push ebx
push 0x8000000
push 3
push ebx
push 7
push SysReAllocString
push esi
call dword [0x4ef7b4]
mov edi, eax
mov dword [ebp - 0x3074], edi
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x44651f
cmp edi, 0xffffffff
jne 0x44652c
lea eax, [ebp - 0x3074]
call fcn.0040681e
jmp 0x4464cc
lea eax, [ebp - 0x3080]
push eax
push edi
mov dword [ebp - 0x3080], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jne 0x446612
cmp dword [ebp - 0x3080], ebx
je 0x44651f
mov esi, 0x1000
cmp dword [ebp - 0x3080], ebx
jbe 0x4465d1
push 0xfff
lea eax, [ebp - 0x2013]
push ebx
push eax
mov byte [ebp - 0x2014], bl
call fcn.00499dd0
add esp, 0xc
push ebx
lea eax, [ebp - 0x3068]
push eax
push esi
lea eax, [ebp - 0x2014]
push eax
push edi
mov dword [ebp - 0x3068], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44651f
cmp dword [ebp - 0x2014], 0x70bfbbef
jne 0x4465c7
cmp dword [ebp - 0x2010], 0x706c646f
jne 0x4465c7
cmp dword [ebp - 0x200c], 2
jl 0x4465c7
cmp dword [ebp - 0x200c], 0xa
jle 0x44651f
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x3078]
call dword [0x4ef7b4]
mov edi, eax
mov dword [ebp - 0x3068], edi
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x446602
cmp edi, 0xffffffff
jne 0x446624
lea eax, [ebp - 0x3068]
call fcn.0040681e
jmp 0x44651f
mov esi, 0x1000
cmp eax, esi
jae 0x44655d
jmp 0x446555
push ebx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.kp_key
lea ecx, [ebp - 0x30cc]
call fcn.00403461
lea eax, [ebp - 0x304c]
push eax
push ebx
lea esi, [ebp - 0x3098]
mov byte [ebp - 4], 3
call fcn.004486d5
lea ecx, [ebp - 0x30cc]
mov edi, eax
call fcn.004589eb
push ebx
push 1
lea ecx, [ebp - 0x30cc]
mov byte [ebp - 4], 5
call fcn.00403db0
cmp dword [ebp - 0x3034], 0x10
mov eax, dword [ebp - 0x3048]
jae 0x446690
lea eax, [ebp - 0x3048]
push dword [ebp - 0x3038]
push eax
lea eax, [ebp - 0x3064]
push eax
call fcn.0044615f
push ebx
lea ecx, [ebp - 0x3030]
mov dword [ebp - 0x3018], 0xf
call fcn.0040492f
push 0xfff
lea eax, [ebp - 0x1013]
push ebx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 0x1014], bl
call fcn.00499dd0
add esp, 0xc
push ebx
lea eax, [ebp - 0x306c]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3074]
mov dword [ebp - 0x306c], ebx
mov byte [ebp - 0x306d], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446833
cmp dword [ebp - 0x306c], ebx
jbe 0x446827
cmp dword [ebp - 0x301c], ebx
jne 0x446755
push 0x10
lea eax, [ebp - 0x1014]
push eax
lea esi, [ebp - 0x30cc]
call fcn.00430ba3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3030]
mov byte [ebp - 4], 7
call fcn.00403caa
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00403db0
mov eax, dword [ebp - 0x306c]
and eax, 0xf
je 0x44678a
push 0x10
pop esi
sub esi, eax
mov eax, dword [ebp - 0x306c]
push esi
lea eax, [ebp + eax - 0x1014]
push esi
push eax
call fcn.00499dd0
add esp, 0xc
add dword [ebp - 0x306c], esi
mov byte [ebp - 0x306d], 1
xor edi, edi
test dword [ebp - 0x306c], 0xfffffff0
jbe 0x4467d0
lea esi, [ebp - 0x1014]
lea eax, [ebp - 0x3064]
call fcn.004461b7
mov ecx, dword [eax]
xor dword [esi], ecx
mov ecx, dword [eax + 4]
xor dword [esi + 4], ecx
mov ecx, dword [eax + 8]
xor dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ebp - 0x306c]
inc edi
shr eax, 4
add esi, 0x10
cmp edi, eax
jb 0x44679e
push ebx
lea eax, [ebp - 0x307c]
push eax
push dword [ebp - 0x306c]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3068]
mov dword [ebp - 0x307c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x446918
push ebx
lea eax, [ebp - 0x306c]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3074]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44670c
cmp byte [ebp - 0x306d], bl
jne 0x446962
mov eax, 0x10101010
lea edi, [ebp - 0x1014]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3064]
mov dword [ebp - 0x306c], 0x10
call fcn.004461b7
mov ecx, dword [eax]
xor dword [ebp - 0x1014], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x1010], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x100c], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x1008], eax
push ebx
lea eax, [ebp - 0x307c]
push eax
push dword [ebp - 0x306c]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3068]
mov dword [ebp - 0x307c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446962
mov eax, dword [ebp - 0x3068]
or dword [ebp - 0x3068], 0xffffffff
cmp eax, 0xffffffff
je 0x4468c6
cmp eax, ebx
je 0x4468c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3078]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push ebx
push 1
lea ecx, [ebp - 0x3030]
call fcn.00403db0
push ebx
push 1
lea ecx, [ebp - 0x304c]
call fcn.00403db0
lea eax, [ebp - 0x3068]
call fcn.0040681e
lea eax, [ebp - 0x3074]
call fcn.0040681e
lea esi, [ebp - 0x3098]
call fcn.004485c4
mov eax, edi
jmp 0x4464d9
mov eax, dword [ebp - 0x3068]
or dword [ebp - 0x3068], 0xffffffff
cmp eax, 0xffffffff
je 0x446935
cmp eax, ebx
je 0x446935
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3078]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x3030]
call fcn.00403db0
push ebx
push 1
lea ecx, [ebp - 0x304c]
call fcn.00403db0
jmp 0x446602
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [ebp - 0x30a8]
push eax
push dword [ebp - 0x3074]
mov dword [ebp - 0x30b0], ebx
call esi
mov dword [ebp - 0x30ac], eax
lea eax, [ebp - 0x30a0]
push eax
push dword [ebp - 0x3068]
call esi
sub esp, 0x1c
mov dword [ebp - 0x30a4], eax
lea eax, [ebp - 0x3030]
mov ecx, esp
mov dword [ebp - 0x3078], esp
push eax
call fcn.00403483
push dword [ebp - 0x30a0]
lea eax, [ebp - 0x3014]
push dword [ebp - 0x30a4]
lea ecx, [ebp - 0x3098]
push dword [ebp - 0x30a8]
push dword [ebp - 0x30ac]
push eax
call fcn.004461f6
add esp, 0x30
push ebx
push ebx
push ebx
push dword [ebp - 0x3068]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x30b0]
push eax
push 0x1000
lea eax, [ebp - 0x3014]
push eax
push dword [ebp - 0x3068]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x4468d4