Function at 0x10043043
Capabilities:
Delete file
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ab49
mov eax, dword fs:[0]
push eax
mov eax, 0x2090
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 dword [ebp - 0x2088], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x209c]
push eax
call fcn.100447e5
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x2098]
sub eax, dword [ebp - 0x209c]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jg 0x100430ad
xor esi, esi
jmp 0x10043227
or dword [ebp - 0x2084], 0xffffffff
mov dword [ebp - 0x2024], 1
mov dword [ebp - 0x2020], 5
mov dword [ebp - 0x201c], 3
mov dword [ebp - 0x2018], 7
mov byte [ebp - 4], 1
xor esi, esi
push 0
push 0x8000000
push 3
push 0
push dword [ebp + esi*4 - 0x2024]
push 0x80000000
push ebx
call dword [0x100a3d50]
lea ecx, [ebp - 0x2084]
mov edi, eax
call fcn.1000391f
mov dword [ebp - 0x2084], edi
test edi, edi
je 0x1004311c
cmp edi, 0xffffffff
jne 0x10043122
inc esi
cmp esi, 4
jb 0x100430e2
test edi, edi
je 0x1004321a
cmp edi, 0xffffffff
je 0x1004321a
push 0x1000
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.10050900
add esp, 0xc
lea ecx, [ebp - 0x1014]
mov edx, edi
push 0
call fcn.100426c7
pop ecx
test eax, eax
je 0x1004321a
cmp dword [ebp - 0x100c], 2
jne 0x1004321a
xor esi, esi
cmp dword [ebp - 0xe74], esi
jbe 0x1004321a
lea eax, [ebp - 0xe70]
mov dword [ebp - 0x207c], eax
and dword [ebp - 0x201c], 0
lea ecx, [ebp - 0x202c]
push 0xa
push eax
mov dword [ebp - 0x2018], 0xf
mov byte [ebp - 0x202c], 0
call fcn.100018ee
push 0
lea eax, [ebp - 0x202c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2078]
call fcn.1004061b
push eax
lea ecx, [ebp - 0x209c]
mov byte [ebp - 4], 3
call fcn.1004476a
push 0
push 1
lea ecx, [ebp - 0x2078]
mov bl, al
call fcn.10001805
push 0
push 1
lea ecx, [ebp - 0x202c]
mov byte [ebp - 4], 1
call fcn.10001805
test bl, bl
jne 0x10043250
mov eax, dword [ebp - 0x207c]
inc esi
add eax, 0xa
mov dword [ebp - 0x207c], eax
cmp esi, dword [ebp - 0xe74]
jb 0x10043188
xor esi, esi
lea ecx, [ebp - 0x2084]
call fcn.1000391f
lea ecx, [ebp - 0x209c]
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
lea eax, [ebp - 0xbf0]
push eax
lea ecx, [ebp - 0x202c]
call fcn.100017d6
lea edx, [ebp - 0x202c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2044]
call fcn.10042697
xor ebx, ebx
mov byte [ebp - 4], 6
push ebx
push 1
lea ecx, [ebp - 0x202c]
call fcn.10001805
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x2088]
call dword [0x100a3d50]
mov esi, eax
mov dword [ebp - 0x207c], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x1004341b
cmp esi, 0xffffffff
je 0x1004341b
push ebx
push ebx
push 0x1000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x2030], 0x10
lea eax, [ebp - 0x2044]
push dword [ebp - 0x2034]
cmovae eax, dword [ebp - 0x2044]
lea ecx, [ebp - 0x205c]
push eax
call fcn.100427f6
push 0x1000
lea eax, [ebp - 0x2014]
push ebx
push eax
call fcn.10050900
mov dword [ebp - 0x2080], ebx
jmp 0x100433bd
mov ecx, dword [ebp - 0x2080]
test ecx, ecx
je 0x100433e3
test cl, 0xf
je 0x10043334
inc ecx
test cl, 0xf
jne 0x10043328
mov dword [ebp - 0x2080], ecx
mov dword [ebp - 0x208c], ebx
test ecx, 0xfffffff0
jbe 0x1004338a
mov esi, dword [ebp - 0x208c]
lea ebx, [ebp - 0x2014]
lea ecx, [ebp - 0x205c]
call fcn.1004285c
mov ecx, dword [eax]
xor dword [ebx], ecx
lea ebx, [ebx + 0x10]
mov ecx, dword [eax + 4]
xor dword [ebx - 0xc], ecx
mov ecx, dword [eax + 8]
xor dword [ebx - 8], ecx
mov eax, dword [eax + 0xc]
xor dword [ebx - 4], eax
inc esi
mov ecx, dword [ebp - 0x2080]
mov eax, ecx
shr eax, 4
cmp esi, eax
jb 0x1004334e
mov esi, dword [ebp - 0x207c]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x2090]
mov dword [ebp - 0x2090], ebx
push eax
push ecx
lea eax, [ebp - 0x2014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10043404
push 0x1000
lea eax, [ebp - 0x2014]
push ebx
push eax
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x2080]
push ebx
push eax
push 0x1000
lea eax, [ebp - 0x2014]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10043315
push ebx
lea eax, [ebp - 0xb68]
push eax
push dword [ebp - 0xb6c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor esi, esi
inc esi
jmp 0x1004341d
lea ecx, [ebp - 0x207c]
call fcn.1000391f
push dword [ebp - 0x2088]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ebx
lea ecx, [ebp - 0x207c]
call fcn.1000391f
push ebx
push 1
lea ecx, [ebp - 0x2044]
call fcn.10001805
jmp 0x1004321c