Function at 0x10042b1a
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 0x1007aad4
mov eax, dword fs:[0]
push eax
mov eax, 0x30b0
call fcn.1004e980
mov eax, dword [0x100a0070]
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 ebx, edx
mov dword [ebp - 0x308c], ebx
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30b8]
push eax
call fcn.100447e5
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x30b4]
sub eax, dword [ebp - 0x30b8]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jg 0x10042b83
xor esi, esi
jmp 0x10042bec
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
push esi
call dword [0x100a3d50]
mov esi, eax
mov dword [ebp - 0x3098], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x10042bdf
cmp esi, 0xffffffff
je 0x10042bdf
and dword [ebp - 0x3088], 0
lea eax, [ebp - 0x3088]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, 0x1000
mov ecx, dword [ebp - 0x3088]
test eax, eax
jne 0x10042c15
test ecx, ecx
jne 0x10042c1d
xor esi, esi
lea ecx, [ebp - 0x3098]
call fcn.1000391f
lea ecx, [ebp - 0x30b8]
call fcn.1004055e
mov eax, esi
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.1004d78e
mov esp, ebp
pop ebp
ret
cmp eax, edx
jae 0x10042c1d
test ecx, ecx
je 0x10042c8c
push edx
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.10050900
and dword [ebp - 0x3080], 0
lea eax, [ebp - 0x3080]
add esp, 0xc
push 0
push eax
push 0x1000
lea eax, [ebp - 0x2014]
push eax
push esi
call edi
test eax, eax
je 0x10042bdf
cmp dword [ebp - 0x2014], 0x70bfbbef
jne 0x10042c80
cmp dword [ebp - 0x2010], 0x706c646f
jne 0x10042c80
cmp dword [ebp - 0x200c], 2
jl 0x10042c80
cmp dword [ebp - 0x200c], 0xa
jle 0x10042bdf
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [0x100a3d50]
mov ebx, eax
mov dword [ebp - 0x3080], ebx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x1004302c
cmp ebx, 0xffffffff
je 0x1004302c
push 0
push 0
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.kp_key
lea ecx, [ebp - 0x302c]
call fcn.100017d6
lea eax, [ebp - 0x302c]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30b8]
push eax
lea eax, [ebp - 0x305c]
push eax
call fcn.10049228
push 0
push 1
lea ecx, [ebp - 0x302c]
mov byte [ebp - 4], 5
call fcn.10001805
cmp dword [ebp - 0x3048], 0x10
lea eax, [ebp - 0x305c]
push dword [ebp - 0x304c]
cmovae eax, dword [ebp - 0x305c]
lea ecx, [ebp - 0x3074]
push eax
call fcn.100427f6
xor eax, eax
mov dword [ebp - 0x3030], 0xf
mov dword [ebp - 0x3034], eax
mov byte [ebp - 0x3044], al
push 0x1000
push eax
lea eax, [ebp - 0x1014]
mov byte [ebp - 4], 6
push eax
call fcn.10050900
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x307c], eax
mov byte [ebp - 0x3075], al
push eax
lea eax, [ebp - 0x307c]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push esi
call edi
test eax, eax
je 0x10042eeb
mov eax, dword [ebp - 0x307c]
test eax, eax
je 0x10042ede
cmp dword [ebp - 0x3034], 0
jne 0x10042e07
and dword [ebp - 0x301c], 0
lea eax, [ebp - 0x1014]
push 0x10
push eax
lea ecx, [ebp - 0x302c]
mov dword [ebp - 0x3018], 0xf
mov byte [ebp - 0x302c], 0
call fcn.100018ee
lea eax, [ebp - 0x302c]
push eax
lea ecx, [ebp - 0x3044]
call fcn.10001785
push 0
push 1
lea ecx, [ebp - 0x302c]
call fcn.10001805
mov eax, dword [ebp - 0x307c]
mov ecx, eax
and ecx, 0xf
je 0x10042e3b
push 0x10
pop edi
sub edi, ecx
lea ecx, [ebp - 0x1014]
push edi
add eax, ecx
push edi
push eax
call fcn.10050900
mov eax, dword [ebp - 0x307c]
add esp, 0xc
add eax, edi
mov byte [ebp - 0x3075], 1
mov dword [ebp - 0x307c], eax
and dword [ebp - 0x3090], 0
test eax, 0xfffffff0
jbe 0x10042e93
mov ebx, dword [ebp - 0x3090]
lea edi, [ebp - 0x1014]
lea ecx, [ebp - 0x3074]
call fcn.1004285c
mov ecx, dword [eax]
xor dword [edi], ecx
lea edi, [edi + 0x10]
mov ecx, dword [eax + 4]
xor dword [edi - 0xc], ecx
mov ecx, dword [eax + 8]
xor dword [edi - 8], ecx
mov eax, dword [eax + 0xc]
xor dword [edi - 4], eax
inc ebx
mov eax, dword [ebp - 0x307c]
shr eax, 4
cmp ebx, eax
jb 0x10042e55
mov ebx, dword [ebp - 0x3080]
mov eax, dword [ebp - 0x307c]
and dword [ebp - 0x3084], 0
lea ecx, [ebp - 0x3084]
push 0
push ecx
push eax
lea eax, [ebp - 0x1014]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10042f5a
push 0
lea eax, [ebp - 0x307c]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10042d9d
cmp byte [ebp - 0x3075], 0
jne 0x10042f78
mov eax, 0x10101010
mov dword [ebp - 0x307c], 0x10
lea edi, [ebp - 0x1014]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x3074]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004285c
push 0
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
lea eax, [ebp - 0x3084]
and dword [ebp - 0x3084], 0
push eax
push dword [ebp - 0x307c]
lea eax, [ebp - 0x1014]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10042f78
lea ecx, [ebp - 0x3080]
call fcn.1000391f
push dword [ebp - 0x308c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x1004300c
and dword [ebp - 0x3094], 0
lea eax, [ebp - 0x30a8]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
call esi
mov dword [ebp - 0x30ac], eax
lea eax, [ebp - 0x30a0]
push eax
push ebx
call esi
sub esp, 0x18
mov dword [ebp - 0x30a4], eax
lea eax, [ebp - 0x3044]
mov ecx, esp
push eax
call fcn.10005946
push dword [ebp - 0x30a0]
lea edx, [ebp - 0x30b8]
push dword [ebp - 0x30a4]
lea ecx, [ebp - 0x3014]
push dword [ebp - 0x30a8]
push dword [ebp - 0x30ac]
call fcn.10042897
add esp, 0x28
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x3094]
push eax
push 0x1000
lea eax, [ebp - 0x3014]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push 0
push 1
lea ecx, [ebp - 0x3044]
call fcn.10001805
push 0
push 1
lea ecx, [ebp - 0x305c]
call fcn.10001805
jmp 0x1004302e
xor esi, esi
lea ecx, [ebp - 0x3080]
call fcn.1000391f
jmp 0x10042be1