Function at 0x401080
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xe4
xor eax, eax
push ebx
xor ebx, ebx
push ebp
push edi
mov byte [esp + 0x20], bl
mov ecx, 0xc
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x88], bl
mov ecx, 0xc
lea edi, [esp + 0x89]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0xbc], bl
mov ecx, 0xc
lea edi, [esp + 0xbd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x54], bl
mov ecx, 0xc
lea edi, [esp + 0x55]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xf4]
push 0x41424c
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call fcn.004098d8
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x401121
pop edi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0xe4
ret
push esi
push 2
push ebx
push ebp
call fcn.00409833
push ebp
call fcn.00409763
push ebx
push ebx
push ebp
mov esi, eax
call fcn.00409833
add esp, 0x1c
cmp esi, 1
jge 0x40115c
push ebp
call fcn.004095b0
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0xe4
ret
lea edi, [esi + 0xa]
push edi
call fcn.00409552
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x40153b
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push ebp
push esi
mov ecx, edx
and ecx, 3
push 1
push ebx
rep stosb byte es:[edi], al
call fcn.0040945f
push ebp
mov edi, eax
call fcn.004095b0
push edi
push ebx
lea eax, [esp + 0x3c]
push eax
push str.eyVal
xor ebp, ebp
call fcn.00401000
add esp, 0x24
test eax, eax
jne 0x40154a
mov eax, dword [esp + 0x20]
mov cl, byte [eax]
cmp cl, 0xa
je 0x401510
cmp cl, 0xd
je 0x401510
push 0x32
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.00406340
push edi
push ebx
lea edx, [esp + 0x24]
push edx
push str.xVal
call fcn.00401000
add esp, 0x1c
test eax, eax
jne 0x40154a
mov esi, dword [esp + 0x10]
mov al, byte [esi]
cmp al, 0xa
je 0x4014de
cmp al, 0xd
je 0x4014de
xor eax, eax
mov dl, byte [esi + eax*2 + 1]
mov cl, byte [esi + eax*2]
mov byte [esi + eax*2], dl
mov byte [esi + eax*2 + 1], cl
inc eax
cmp eax, 0x32
jl 0x401213
push 0x32
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00406340
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x58]
mov dl, byte [esp + eax + 0x24]
xor dl, cl
mov cl, byte [esp + eax + 0x25]
mov byte [esp + eax + 0x24], dl
mov dl, byte [esp + eax + 0x59]
xor cl, dl
mov dl, byte [esp + eax + 0x26]
mov byte [esp + eax + 0x25], cl
mov cl, byte [esp + eax + 0x5a]
xor dl, cl
mov cl, byte [esp + eax + 0x27]
mov byte [esp + eax + 0x26], dl
mov dl, byte [esp + eax + 0x5b]
xor cl, dl
mov dl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x27], cl
mov cl, byte [esp + eax + 0x5c]
xor dl, cl
mov byte [esp + eax + 0x28], dl
add eax, 5
cmp eax, 0x32
jl 0x401240
movzx eax, byte [esp + 0x24]
lea edx, [eax + eax*4]
movzx eax, byte [esp + 0x25]
lea ecx, [esp + eax + 0x26]
mov byte [ecx + edx*2 - 0x210], 0
mov edx, dword [esp + 0xfc]
lea eax, [esp + 0x26]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012b6
push edi
push ebx
lea edx, [esp + 0x24]
push edx
push str.yVal
call fcn.00401000
add esp, 0x10
test eax, eax
jne 0x401532
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
cmp al, 0xa
je 0x4014de
cmp al, 0xd
je 0x4014de
xor eax, eax
mov bl, byte [ecx + eax*2 + 1]
mov dl, byte [ecx + eax*2]
mov byte [ecx + eax*2], bl
mov byte [ecx + eax*2 + 1], dl
inc eax
cmp eax, 0x32
jl 0x4012f4
push 0x32
lea eax, [esp + 0x90]
push eax
push ecx
call fcn.00406340
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x58]
mov dl, byte [esp + eax + 0x8c]
mov bl, byte [esp + eax + 0x8d]
xor dl, cl
mov cl, byte [esp + eax + 0x5a]
mov byte [esp + eax + 0x8c], dl
mov dl, byte [esp + eax + 0x59]
xor bl, dl
mov dl, byte [esp + eax + 0x8e]
xor dl, cl
mov cl, byte [esp + eax + 0x8f]
mov byte [esp + eax + 0x8e], dl
mov dl, byte [esp + eax + 0x5b]
xor cl, dl
mov byte [esp + eax + 0x8d], bl
mov bl, byte [esp + eax + 0x90]
mov byte [esp + eax + 0x8f], cl
mov cl, byte [esp + eax + 0x5c]
xor bl, cl
mov byte [esp + eax + 0x90], bl
add eax, 5
cmp eax, 0x32
jl 0x401320
movzx eax, byte [esp + 0x8c]
lea edx, [eax + eax*4]
movzx eax, byte [esp + 0x8d]
lea ecx, [esp + eax + 0x8e]
mov byte [ecx + edx*2 - 0x210], 0
mov edx, dword [esp + 0x100]
lea eax, [esp + 0x8e]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4013c0
mov edx, dword [esp + 0x14]
push edi
push edx
lea eax, [esp + 0x20]
push eax
push str.zVal
call fcn.00401000
add esp, 0x10
test eax, eax
jne 0x40152e
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
cmp al, 0xa
je 0x4014da
cmp al, 0xd
je 0x4014da
xor eax, eax
mov bl, byte [ecx + eax*2 + 1]
mov dl, byte [ecx + eax*2]
mov byte [ecx + eax*2], bl
mov byte [ecx + eax*2 + 1], dl
inc eax
cmp eax, 0x32
jl 0x401402
push 0x32
lea edx, [esp + 0xc4]
push edx
push ecx
call fcn.00406340
add esp, 0xc
xor eax, eax
jmp 0x401430
mov cl, byte [esp + eax + 0x58]
mov dl, byte [esp + eax + 0xc0]
mov bl, byte [esp + eax + 0xc1]
xor dl, cl
mov cl, byte [esp + eax + 0x5a]
mov byte [esp + eax + 0xc0], dl
mov dl, byte [esp + eax + 0x59]
xor bl, dl
mov dl, byte [esp + eax + 0xc2]
xor dl, cl
mov cl, byte [esp + eax + 0xc3]
mov byte [esp + eax + 0xc2], dl
mov dl, byte [esp + eax + 0x5b]
xor cl, dl
mov byte [esp + eax + 0xc1], bl
mov bl, byte [esp + eax + 0xc4]
mov byte [esp + eax + 0xc3], cl
mov cl, byte [esp + eax + 0x5c]
xor bl, cl
mov byte [esp + eax + 0xc4], bl
add eax, 5
cmp eax, 0x32
jl 0x401430
movzx eax, byte [esp + 0xc0]
lea edx, [eax + eax*4]
movzx eax, byte [esp + 0xc1]
lea ecx, [esp + eax + 0xc2]
mov byte [ecx + edx*2 - 0x210], 0
mov edx, dword [esp + 0x104]
lea eax, [esp + 0xc2]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4014d0
mov ebx, dword [esp + 0x14]
cmp byte [esi], 0x78
je 0x4014eb
mov al, byte [esi - 1]
dec esi
cmp al, 0x78
jne 0x4014e3
mov eax, dword [esp + 0xf8]
push 0x414228
push eax
call fcn.004098d8
mov ebp, eax
push ebp
sub esi, ebx
push esi
push 1
push ebx
call fcn.0040932a
add esp, 0x18
jmp 0x401532
push edi
push ebx
lea edx, [esp + 0x18]
push edx
push str.xVal
call fcn.00401000
mov esi, dword [esp + 0x20]
add esp, 0x10
test esi, esi
je 0x401532
jmp 0x4014de
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004091b2
add esp, 4
test ebp, ebp
je 0x401548
push ebp
call fcn.004095b0
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xe4
ret