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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x91c
mov eax, dword [0x10079040]
xor eax, esp
mov dword [esp + 0x918], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [str.RDFD]
mov dword [esp + 4], eax
mov al, byte [0x10071f28]
mov dword [esp + 0x10], edx
mov byte [esp + 8], al
push ebx
push esi
push edi
mov edi, ecx
test edx, edx
je 0x10024449
mov edx, dword [ebp + 8]
test edx, edx
je 0x10024449
cmp byte [0x1007b4de], 0
jne 0x10024247
xor eax, eax
mov byte [0x1007b4de], 1
mov word [0x1007b4dc], ax
cmp dword [edi + 8], 2
mov ecx, dword [edi + 4]
je 0x1002427d
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x10024263
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x800018]
call eax
mov eax, 0xfffffff3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x918]
xor ecx, esp
call fcn.10033290
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0xc]
lea esi, [esp + 0x10]
mov dword [ecx + 0x10140], eax
lea ecx, [esi + 1]
mov eax, dword [edi + 4]
mov dword [eax + 0xc], 0x10022500
mov al, byte [esi]
inc esi
test al, al
jne 0x10024297
sub esi, ecx
lea eax, [edx + 2]
add eax, esi
lea ebx, [edi + 0xe]
mov dword [edi + 0x80000c], eax
mov eax, dword [ebp + 0xc]
mov dword [0x1007b864], eax
lea eax, [esp + 0x10]
push esi
push eax
push ebx
call fcn.10037b50
add esp, 0xc
add ebx, esi
push dword [esp + 0x1c]
push dword [ebp + 8]
push 1
push ebx
call fcn.1003bf7f
mov edx, dword [ebp + 8]
add esp, 0x10
xor esi, esi
nop
movzx eax, byte [ebx]
lea ebx, [ebx + 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 0x100242e0
mov ebx, dword [esp + 0x18]
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024310
sub ecx, edx
je 0x1002439f
push 0x100
lea eax, [esp + 0x24]
push eax
push 0x200
lea eax, [esp + 0x12c]
push eax
push 0x200
lea eax, [esp + 0x534]
push eax
push 0x200
lea eax, [esp + 0x73c]
push eax
push ebx
call fcn.1004ab83
add esp, 0x24
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x124]
push 0x200
push eax
call fcn.1004a8ef
mov ebx, dword [ebp + 0x18]
lea eax, [esp + 0x12c]
add esp, 0xc
push ebx
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push eax
push 0
lea eax, [esp + 0x338]
push str.RDFSXBA_d_FN__s__SZ_zu_CR_d_FM_d_RB_d
push eax
call fcn.10007ab0
add esp, 0x20
jmp 0x100243c1
mov ebx, dword [ebp + 0x18]
lea eax, [esp + 0x320]
push ebx
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push 0
push str.RDFSXBA_d_SZ_zu_CR_d_FM_d_RB_d
push eax
call fcn.10007ab0
add esp, 0x1c
cmp dword [0x1007b864], 0
mov ecx, eax
jne 0x100243d5
mov dword [edi + 8], 3
jmp 0x100243e2
xor eax, eax
test ebx, ebx
setne al
add eax, 8
mov dword [edi + 8], eax
push 0
push ecx
lea edx, [esp + 0x328]
mov ecx, edi
call fcn.10022860
mov ecx, dword [edi + 0x800018]
add esp, 8
mov esi, eax
mov dword [esp + 0x14], 0
add ecx, 0x1c8
mov dword [esp + 0x10], 0x44aa20
cmp dword [edi + 0x800040], 0x8243
lea eax, [esp + 0x10]
push eax
je 0x1002442d
mov dword [esp + 0x14], 0x35b60
call fcn.10014790
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x918]
xor ecx, esp
call fcn.10033290
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1002445f
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi + 0x800018]
call eax
mov ecx, dword [esp + 0x924]
mov eax, 0xfffffff8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10033290
mov esp, ebp
pop ebp
ret