Function at 0x10003a90
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10024014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x68], esi
xorps xmm0, xmm0
lea ecx, [ebp - 0x54]
push 0x1002e958
movups xmmword [esi], xmm0
call fcn.10003fe0
add esp, 4
push 0
push 0x80
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
push 1
cmovae eax, dword [ebp - 0x54]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp edi, 0xffffffff
je 0x10003c86
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x34]
push eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003c7f
cmp dword [ebp - 0x34], 0x1c
jne 0x10003c7f
mov eax, 0x4856
cmp word [ebp - 0x30], ax
jne 0x10003c7f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor eax, ecx
movzx eax, al
xor eax, ecx
mov dword [ebp - 0x34], eax
test esi, esi
je 0x10003c7f
xorps xmm0, xmm0
push 0x10
movups xmmword [esi], xmm0
call fcn.10006924
add esp, 4
mov esi, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x64], esi
xorps xmm0, xmm0
push 0
push eax
push 0x10
push esi
push edi
movups xmmword [esi], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003c76
cmp dword [ebp - 0x3c], 0x10
jne 0x10003c76
mov eax, dword [ebp - 0x34]
lea edx, [esi + 2]
mov dword [ebp - 0x38], eax
mov edi, 0xfffffffe
or eax, 0xffffffff
mov dword [ebp - 0x34], 2
sub eax, esi
mov ch, 0x10
mov dword [ebp - 0x5c], eax
mov eax, 1
sub eax, esi
sub edi, esi
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov cl, byte [edx - 2]
lea eax, [edi + edx]
and eax, 3
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov cl, byte [edx - 1]
mov byte [edx - 2], al
lea eax, [esi + edx]
and eax, 3
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov cl, byte [edx]
mov byte [edx - 1], al
mov eax, dword [ebp - 0x34]
and eax, 3
add dword [ebp - 0x34], 4
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov cl, byte [edx + 1]
mov byte [edx], al
mov eax, dword [ebp - 0x60]
add eax, edx
and eax, 3
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov byte [edx + 1], al
add edx, 4
lea eax, [edi + edx]
cmp eax, 0x10
jb 0x10003be6
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
push esi
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
call fcn.1000691f
mov edi, dword [ebp - 0x6c]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x55], 1
jmp 0x10003c8a
push esi
call fcn.1000691f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x55], 0
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x10003cba
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003cb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003cdb
push edx
push ecx
call fcn.100068ee
add esp, 8
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100068b0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10009ded
int3