Function at 0x1001e393
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 0x1003de84
mov eax, dword fs:[0]
push eax
mov eax, 0x20c8
call fcn.100371b0
mov eax, dword [0x1004c300]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x20b4]
push eax
mov esi, edx
mov dword [ebp - 0x2078], edi
call fcn.1001fe91
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x20a4]
sub eax, dword [ebp - 0x20a8]
test eax, 0xffffffe0
jg 0x1001e41b
lea esi, [ebp - 0x20b4]
call fcn.1001fe36
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.10024522
leave
ret
push ebx
push 0x8000000
push 3
push ebx
push 3
push 0x80000000
push esi
call dword [0x1004fca8]
mov dword [ebp - 0x2074], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x1001e445
cmp eax, 0xffffffff
jne 0x1001e452
lea eax, [ebp - 0x2074]
call fcn.10005ce9
jmp 0x1001e3f4
lea ecx, [ebp - 0x2084]
push ecx
push eax
mov dword [ebp - 0x2084], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1001e472
cmp dword [ebp - 0x2084], ebx
je 0x1001e445
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [0x1004fca8]
mov esi, eax
mov dword [ebp - 0x2068], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x1001e49e
cmp esi, 0xffffffff
jne 0x1001e4ab
lea eax, [ebp - 0x2068]
call fcn.10005ce9
jmp 0x1001e445
push ebx
push ebx
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.kp_key
lea ecx, [ebp - 0x20d0]
call fcn.100017e1
lea eax, [ebp - 0x204c]
push eax
push ebx
lea esi, [ebp - 0x20b4]
mov byte [ebp - 4], 3
call fcn.1001ff47
lea ecx, [ebp - 0x20d0]
mov edi, eax
call fcn.100218e7
push ebx
push 1
lea ecx, [ebp - 0x20d0]
mov byte [ebp - 4], 5
call fcn.10001a99
cmp dword [ebp - 0x2034], 0x10
mov eax, dword [ebp - 0x2048]
jae 0x1001e51b
lea eax, [ebp - 0x2048]
push dword [ebp - 0x2038]
lea ebx, [ebp - 0x2064]
push eax
call fcn.1001e08d
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2030]
mov dword [ebp - 0x2018], 0xf
call fcn.10001d50
push 0xfff
lea eax, [ebp - 0x1013]
push ebx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 0x1014], bl
call fcn.10026b90
add esp, 0xc
push ebx
lea eax, [ebp - 0x2070]
push eax
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x2074]
mov dword [ebp - 0x2070], ebx
mov byte [ebp - 0x2069], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e6ca
cmp dword [ebp - 0x2070], ebx
jbe 0x1001e6be
cmp dword [ebp - 0x201c], ebx
jne 0x1001e5e7
push 0x10
lea eax, [ebp - 0x1014]
push eax
lea esi, [ebp - 0x20d0]
call fcn.1000d537
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 7
call fcn.10001999
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.10001a99
mov esi, 0x1000
mov ecx, dword [ebp - 0x2070]
mov eax, ecx
and eax, 0xf
je 0x1001e618
push 0x10
pop edi
sub edi, eax
push edi
lea eax, [ebp + ecx - 0x1014]
push edi
push eax
call fcn.10026b90
add esp, 0xc
add dword [ebp - 0x2070], edi
mov byte [ebp - 0x2069], 1
test dword [ebp - 0x2070], 0xfffffff0
mov dword [ebp - 0x207c], ebx
jbe 0x1001e66b
lea edi, [ebp - 0x1014]
lea eax, [ebp - 0x2064]
call fcn.1001e0e0
mov ecx, dword [eax]
xor dword [edi], ecx
mov ecx, dword [eax + 4]
xor dword [edi + 4], ecx
mov ecx, dword [eax + 8]
xor dword [edi + 8], ecx
mov eax, dword [eax + 0xc]
xor dword [edi + 0xc], eax
mov eax, dword [ebp - 0x2070]
inc dword [ebp - 0x207c]
shr eax, 4
add edi, 0x10
cmp dword [ebp - 0x207c], eax
jb 0x1001e630
push ebx
lea eax, [ebp - 0x2080]
push eax
push dword [ebp - 0x2070]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x2068]
mov dword [ebp - 0x2080], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001e7af
push ebx
lea eax, [ebp - 0x2070]
push eax
push esi
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x2074]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e599
cmp byte [ebp - 0x2069], bl
jne 0x1001e7f9
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 - 0x2064]
mov dword [ebp - 0x2070], 0x10
call fcn.1001e0e0
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 - 0x2080]
push eax
push dword [ebp - 0x2070]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x2068]
mov dword [ebp - 0x2080], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001e7f9
mov eax, dword [ebp - 0x2068]
or dword [ebp - 0x2068], 0xffffffff
cmp eax, 0xffffffff
je 0x1001e75d
cmp eax, ebx
je 0x1001e75d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2078]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push ebx
push 1
lea ecx, [ebp - 0x2030]
call fcn.10001a99
push ebx
push 1
lea ecx, [ebp - 0x204c]
call fcn.10001a99
lea eax, [ebp - 0x2068]
call fcn.10005ce9
lea eax, [ebp - 0x2074]
call fcn.10005ce9
lea esi, [ebp - 0x20b4]
call fcn.1001fe36
mov eax, edi
jmp 0x1001e401
mov eax, dword [ebp - 0x2068]
or dword [ebp - 0x2068], 0xffffffff
cmp eax, 0xffffffff
je 0x1001e7cc
cmp eax, ebx
je 0x1001e7cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2078]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea ecx, [ebp - 0x2030]
call fcn.10001a99
push ebx
push 1
lea ecx, [ebp - 0x204c]
call fcn.10001a99
jmp 0x1001e49e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [ebp - 0x2098]
push eax
push dword [ebp - 0x2074]
mov dword [ebp - 0x2088], ebx
call edi
mov dword [ebp - 0x209c], eax
lea eax, [ebp - 0x2090]
push eax
push dword [ebp - 0x2068]
call edi
sub esp, 0x1c
mov dword [ebp - 0x2094], eax
lea eax, [ebp - 0x2030]
mov ecx, esp
mov dword [ebp - 0x2078], esp
push eax
call fcn.10001803
push dword [ebp - 0x2090]
lea edx, [ebp - 0x20b4]
push dword [ebp - 0x2094]
lea ecx, [ebp - 0x2014]
push dword [ebp - 0x2098]
push dword [ebp - 0x209c]
call fcn.1001e11f
add esp, 0x2c
push ebx
push ebx
push ebx
push dword [ebp - 0x2068]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x2088]
push eax
push esi
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2068]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x1001e76b