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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061810
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x10079040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x93c], edx
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x938], eax
mov eax, dword [str.RDFD]
mov dword [ebp - 0x934], eax
mov al, byte [0x10071f28]
mov byte [ebp - 0x930], al
test edx, edx
je 0x10024152
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10024152
cmp byte [0x1007b4de], 0
jne 0x10023f8a
xor eax, eax
mov byte [0x1007b4de], 1
mov word [0x1007b4dc], ax
cmp dword [ebx + 8], 2
mov edx, dword [ebx + 4]
je 0x10023fb0
mov eax, dword [edx + 0x10]
test eax, eax
je 0x10023fa6
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebx + 0x800018]
call eax
mov eax, 0xfffffff3
jmp 0x1002416d
mov eax, dword [edx + 0xc]
lea esi, [ebp - 0x934]
mov dword [edx + 0x10140], eax
lea edx, [esi + 1]
mov eax, dword [ebx + 4]
mov dword [eax + 0xc], 0x10022500
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10023fd0
sub esi, edx
lea eax, [ecx + 2]
add eax, esi
lea edi, [ebx + 0xe]
mov dword [ebx + 0x80000c], eax
mov eax, dword [ebp + 0xc]
mov dword [0x1007b864], eax
lea eax, [ebp - 0x934]
push esi
push eax
push edi
call fcn.10037b50
add esp, 0xc
add edi, esi
push dword [ebp - 0x93c]
push dword [ebp + 8]
push 1
push edi
call fcn.1003bf7f
mov edx, dword [ebp + 8]
add esp, 0x10
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, si
shr ecx, 8
xor ecx, eax
shl esi, 8
xor si, word [ecx*2 + 0x1006fc80]
movzx esi, si
sub edx, 1
jne 0x10024020
mov edi, dword [ebp - 0x938]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024050
sub ecx, edx
je 0x100240d7
push 0x100
lea eax, [ebp - 0x11c]
push eax
push 0x200
lea eax, [ebp - 0x31c]
push eax
push 0x200
lea eax, [ebp - 0x71c]
push eax
push 0x200
lea eax, [ebp - 0x91c]
push eax
push edi
call fcn.1004ab83
add esp, 0x24
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x31c]
push 0x200
push eax
call fcn.1004a8ef
add esp, 0xc
lea eax, [ebp - 0x31c]
push 0
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x51c]
push str.RDFSXFM4_d_FN__s__SZ_zu_CR_d_FM_d_RB_d
push eax
call fcn.10007ab0
add esp, 0x20
jmp 0x100240f6
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x51c]
push esi
push dword [ebp + 8]
push 0
push str.RDFSXFM4_d_SZ_zu_CR_d_FM_d_RB_d
push eax
call fcn.10007ab0
add esp, 0x1c
cmp dword [0x1007b864], 0
mov ecx, eax
mov edx, 3
mov eax, 8
cmove eax, edx
lea edx, [ebp - 0x51c]
push 0
push ecx
mov ecx, ebx
mov dword [ebx + 8], eax
call fcn.10022860
mov ecx, dword [ebx + 0x800018]
lea eax, [ebp - 0x934]
add esp, 8
mov dword [ebp - 0x934], 0x35b60
add ecx, 0x1c8
mov dword [ebp - 0x930], 0
push eax
call fcn.10014790
xor eax, eax
jmp 0x1002416d
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10024168
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebx + 0x800018]
call eax
mov eax, 0xfffffff8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10033290
mov esp, ebp
pop ebp
ret