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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x10]
push 0x34
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x14]
pop esi
mov dword [ebp - 0xf4], eax
xor eax, eax
push esi
push eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0xf8], ebx
call fcn.00414350
push esi
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00414350
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00414350
push esi
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.00414350
push 0x43aa90
push ebx
call fcn.0041bf81
mov edi, eax
add esp, 0x38
test edi, edi
jne 0x4092f3
push 0xfffffffffffffffc
pop eax
jmp 0x409610
push 2
xor ebx, ebx
push ebx
push edi
call fcn.0041b4ed
push edi
call fcn.00422799
push ebx
push ebx
push edi
mov esi, eax
call fcn.0041b4ed
add esp, 0x1c
cmp esi, 1
jge 0x409321
push edi
call fcn.0041acb0
pop ecx
push 0xfffffffffffffffb
jmp 0x4092ed
lea eax, [esi + 0xa]
push eax
call fcn.004188c5
mov ebx, eax
pop ecx
test ebx, ebx
je 0x409603
lea eax, [esi + 0xa]
push eax
push 0
push ebx
call fcn.00414350
push edi
push esi
push 1
push ebx
call fcn.0042210b
mov esi, eax
push edi
mov dword [ebp - 0xe4], esi
call fcn.0041acb0
push esi
push ebx
lea eax, [ebp - 0xdc]
xor edi, edi
push eax
push str.eyVal
call fcn.00409627
add esp, 0x30
test eax, eax
jne 0x409610
mov ecx, dword [ebp - 0xdc]
mov al, byte [ecx]
cmp al, 0xa
je 0x4095b3
cmp al, 0xd
je 0x4095b3
push 0x32
lea eax, [ebp - 0xd4]
push eax
push ecx
call fcn.0040e9cd
push esi
push ebx
lea eax, [ebp - 0xd8]
push eax
push str.xVal
call fcn.00409627
add esp, 0x1c
test eax, eax
jne 0x409610
mov esi, dword [ebp - 0xd8]
mov al, byte [esi]
cmp al, 0xa
je 0x4095d6
cmp al, 0xd
je 0x4095d6
xor edx, edx
mov al, byte [esi + edx*2 + 1]
mov cl, byte [esi + edx*2]
mov byte [esi + edx*2], al
mov byte [esi + edx*2 + 1], cl
inc edx
cmp edx, 0x32
jl 0x4093d8
push 0x32
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.0040e9cd
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0xd4]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x32
jl 0x4093fd
mov edx, dword [ebp - 0x38]
movzx eax, dl
imul ecx, eax, 0xa
movzx eax, dh
add eax, 0xfffffdf2
add eax, ecx
cmp eax, 0x34
jae 0x409621
mov edx, dword [ebp - 0xec]
lea ecx, [ebp - 0x36]
mov byte [ebp + eax - 0x38], 0
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40943c
push dword [ebp - 0xe4]
lea eax, [ebp - 0xe0]
push ebx
push eax
push str.yVal
call fcn.00409627
add esp, 0x10
test eax, eax
jne 0x4095fc
mov edx, dword [ebp - 0xe0]
mov al, byte [edx]
cmp al, 0xa
je 0x4095d6
cmp al, 0xd
je 0x4095d6
xor esi, esi
mov al, byte [edx + esi*2 + 1]
mov cl, byte [edx + esi*2]
mov byte [edx + esi*2], al
mov byte [edx + esi*2 + 1], cl
inc esi
cmp esi, 0x32
jl 0x409483
push 0x32
lea eax, [ebp - 0x6c]
push eax
push edx
call fcn.0040e9cd
mov esi, dword [ebp - 0xd8]
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0xd4]
xor byte [ebp + ecx - 0x6c], al
inc ecx
cmp ecx, 0x32
jl 0x4094ae
mov edx, dword [ebp - 0x6c]
movzx eax, dl
imul ecx, eax, 0xa
movzx eax, dh
add eax, 0xfffffdf2
add eax, ecx
cmp eax, 0x34
jae 0x409621
mov edx, dword [ebp - 0xf0]
lea ecx, [ebp - 0x6a]
mov byte [ebp + eax - 0x6c], 0
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4094ed
push dword [ebp - 0xe4]
lea eax, [ebp - 0xe8]
push ebx
push eax
push str.zVal
call fcn.00409627
add esp, 0x10
test eax, eax
jne 0x4095fc
mov edx, dword [ebp - 0xe8]
mov al, byte [edx]
cmp al, 0xa
je 0x4095d6
cmp al, 0xd
je 0x4095d6
xor edi, edi
mov al, byte [edx + edi*2 + 1]
mov cl, byte [edx + edi*2]
mov byte [edx + edi*2], al
mov byte [edx + edi*2 + 1], cl
inc edi
cmp edi, 0x32
jl 0x409534
push 0x32
lea eax, [ebp - 0xa0]
push eax
push edx
call fcn.0040e9cd
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0xd4]
xor byte [ebp + ecx - 0xa0], al
inc ecx
cmp ecx, 0x32
jl 0x40955c
mov edx, dword [ebp - 0xa0]
movzx eax, dl
imul ecx, eax, 0xa
movzx eax, dh
add eax, 0xfffffdf2
add eax, ecx
cmp eax, 0x34
jae 0x409621
mov edx, dword [ebp - 0xf4]
lea ecx, [ebp - 0x9e]
mov byte [ebp + eax - 0xa0], 0
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4095a7
jmp 0x4095d6
push esi
push ebx
lea eax, [ebp - 0xd8]
push eax
push str.xVal
call fcn.00409627
mov esi, dword [ebp - 0xd8]
add esp, 0x10
test esi, esi
je 0x4095fc
jmp 0x4095d6
dec esi
cmp byte [esi], 0x78
jne 0x4095d5
push 0x43aab4
push dword [ebp - 0xf8]
call fcn.0041bf81
mov edi, eax
sub esi, ebx
push edi
push esi
push 1
push ebx
call fcn.0041b740
add esp, 0x18
push ebx
call fcn.004188c0
pop ecx
test edi, edi
je 0x40960e
push edi
call fcn.0041acb0
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret
call fcn.00412d6b
int3