Function at 0x4211bb
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 [0x518764]
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 edi
mov dword [ebp - 0xf4], eax
xor eax, eax
push edi
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.004a7f20
push edi
xor esi, esi
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.004a7f20
push edi
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.004a7f20
push edi
lea eax, [ebp - 0xd4]
push esi
push eax
call fcn.004a7f20
push 0x4dfc50
push ebx
call fcn.004afdb4
mov edi, eax
add esp, 0x38
test edi, edi
jne 0x421262
push 0xfffffffffffffffc
pop eax
jmp 0x42157f
push 2
xor ebx, ebx
push ebx
push edi
call fcn.004aefc8
push edi
call fcn.004b61bd
push ebx
push ebx
push edi
mov esi, eax
call fcn.004aefc8
add esp, 0x1c
cmp esi, 1
jge 0x421290
push edi
call fcn.004ae483
pop ecx
push 0xfffffffffffffffb
jmp 0x42125c
lea eax, [esi + 0xa]
push eax
call fcn.004ac04c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x421572
lea eax, [esi + 0xa]
push eax
push 0
push ebx
call fcn.004a7f20
push edi
push esi
push 1
push ebx
call fcn.004aeb87
mov esi, eax
push edi
mov dword [ebp - 0xe4], esi
call fcn.004ae483
push esi
push ebx
lea eax, [ebp - 0xdc]
xor edi, edi
push eax
push str.eyVal
call fcn.00421594
add esp, 0x30
test eax, eax
jne 0x42157f
mov ecx, dword [ebp - 0xdc]
mov al, byte [ecx]
cmp al, 0xa
je 0x421522
cmp al, 0xd
je 0x421522
push 0x32
lea eax, [ebp - 0xd4]
push eax
push ecx
call fcn.00426b9e
push esi
push ebx
lea eax, [ebp - 0xd8]
push eax
push str.xVal
call fcn.00421594
add esp, 0x1c
test eax, eax
jne 0x42157f
mov esi, dword [ebp - 0xd8]
mov al, byte [esi]
cmp al, 0xa
je 0x421545
cmp al, 0xd
je 0x421545
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 0x421347
push 0x32
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00426b9e
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0xd4]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x32
jl 0x42136c
movzx eax, byte [ebp - 0x38]
imul ecx, eax, 0xa
movzx eax, byte [ebp - 0x37]
add eax, 0xfffffdf2
add eax, ecx
cmp eax, 0x34
jae 0x42158e
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 0x4213aa
push dword [ebp - 0xe4]
lea eax, [ebp - 0xe0]
push ebx
push eax
push str.yVal
call fcn.00421594
add esp, 0x10
test eax, eax
jne 0x42156b
mov edx, dword [ebp - 0xe0]
mov al, byte [edx]
cmp al, 0xa
je 0x421545
cmp al, 0xd
je 0x421545
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 0x4213f1
push 0x32
lea eax, [ebp - 0x6c]
push eax
push edx
call fcn.00426b9e
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 0x42141c
movzx eax, byte [ebp - 0x6c]
imul ecx, eax, 0xa
movzx eax, byte [ebp - 0x6b]
add eax, 0xfffffdf2
add eax, ecx
cmp eax, 0x34
jae 0x42158e
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 0x42145a
push dword [ebp - 0xe4]
lea eax, [ebp - 0xe8]
push ebx
push eax
push str.zVal
call fcn.00421594
add esp, 0x10
test eax, eax
jne 0x42156b
mov edx, dword [ebp - 0xe8]
mov al, byte [edx]
cmp al, 0xa
je 0x421545
cmp al, 0xd
je 0x421545
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 0x4214a1
push 0x32
lea eax, [ebp - 0xa0]
push eax
push edx
call fcn.00426b9e
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0xd4]
xor byte [ebp + ecx - 0xa0], al
inc ecx
cmp ecx, 0x32
jl 0x4214c9
movzx eax, byte [ebp - 0xa0]
imul ecx, eax, 0xa
movzx eax, byte [ebp - 0x9f]
add eax, 0xfffffdf2
add eax, ecx
cmp eax, 0x34
jae 0x42158e
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 0x421516
jmp 0x421545
push esi
push ebx
lea eax, [ebp - 0xd8]
push eax
push str.xVal
call fcn.00421594
mov esi, dword [ebp - 0xd8]
add esp, 0x10
test esi, esi
je 0x42156b
jmp 0x421545
dec esi
cmp byte [esi], 0x78
jne 0x421544
push 0x4dfc74
push dword [ebp - 0xf8]
call fcn.004afdb4
mov edi, eax
sub esi, ebx
push edi
push esi
push 1
push ebx
call fcn.004af21b
add esp, 0x18
push ebx
call fcn.004ac047
pop ecx
test edi, edi
je 0x42157d
push edi
call fcn.004ae483
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret
call fcn.004a4ffc
int3