Function at 0x4120f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
push edi
push 0x2e
pop eax
mov dword [esp + 0x64], edx
mov edx, ecx
mov word [esp + 0x44], ax
xor eax, eax
mov dword [esp + 0x60], edx
xor ecx, ecx
mov word [esp + 0x46], ax
mov word [esp + 0x10], 0x1b1b
mov al, byte [esp + ecx + 0x10]
xor al, 0x35
movzx eax, al
mov word [esp + ecx*2 + 0x68], ax
inc ecx
cmp ecx, 2
jl 0x41211c
xor eax, eax
xor ebp, ebp
mov word [esp + 0x6c], ax
lea eax, [esp + 0x44]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x74], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x2c], 0xb19e81c8
xor ecx, ecx
mov dword [esp + 0x30], 0xb19e81c8
mov dword [esp + 0x34], 0x8c8e82a1
mov dword [esp + 0x38], 0x99becd81
mov word [esp + 0x3c], 0x998c
mov byte [esp + 0x3e], 0x88
mov al, byte [esp + ecx + 0x2c]
xor al, 0xed
movzx eax, al
mov word [esp + ecx*2 + 0x90], ax
inc ecx
cmp ecx, 0x13
jl 0x41217b
push dword [esp + ebp*4 + 0x70]
xor eax, eax
mov word [esp + 0xba], ax
lea eax, [esp + 0x94]
push edx
push eax
call fcn.0041b737
mov edi, eax
add esp, 0xc
mov dword [esp + 0x58], edi
test edi, edi
je 0x41234a
lea eax, [esp + 0x18]
xor ebx, ebx
and dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
and dword [esp + 0x18], ebx
mov ecx, edi
push eax
xor esi, esi
call fcn.0041b8e8
pop ecx
test al, al
je 0x4122c6
mov eax, dword [esp + 0x18]
xor dl, dl
and dword [esp + 0x40], ebx
add eax, 0xfffffff2
mov byte [esp + 0x10], dl
mov dword [esp + 0x54], eax
je 0x4122bc
mov edi, dword [esp + 0x14]
push 0x10
pop ebp
sub ebp, edi
mov dword [esp + 0x1c], 0x8d9c919a
mov dword [esp + 0x20], 0x9a8b8f86
mov dword [esp + 0x24], 0x9a94a09b
mov byte [esp + 0x28], 0x86
mov dword [esp + 0x18], ebp
xor ecx, ecx
mov al, byte [esp + ecx + 0x1c]
not al
mov byte [esp + ecx + 0x80], al
inc ecx
cmp ecx, 0xd
jl 0x41222b
mov byte [esp + 0x8d], 0
test dl, dl
jne 0x4122b4
push 0xd
lea eax, [esp + 0x84]
push eax
push edi
call fcn.004022e4
add esp, 0xc
test eax, eax
jne 0x41229c
add ebp, edi
mov esi, ebp
sub esi, dword [esp + 0x40]
cmp byte [edi + esi], 0x22
jne 0x41227c
push esi
call fcn.0040570b
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41227f
inc esi
jmp 0x412269
mov eax, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
add eax, ebp
push eax
push ebx
call fcn.00401d70
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x10], 1
mov edx, dword [esp + 0x40]
inc edx
inc edi
cmp edx, dword [esp + 0x54]
mov dword [esp + 0x40], edx
mov dl, byte [esp + 0x10]
jb 0x412229
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x58]
push dword [esp + 0x14]
call fcn.004056f0
pop ecx
push edi
call fcn.004056f0
pop ecx
test ebx, ebx
je 0x41234a
test esi, esi
je 0x41234a
lea eax, [esp + 0x5c]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0040f780
push ebx
mov edi, eax
call fcn.004056f0
pop ecx
pop ecx
test edi, edi
je 0x41234a
lea eax, [esp + 0x4c]
mov edx, 0xbedfd981
push eax
push 0
push 0
push 0
push 0
lea ecx, [edi + 5]
mov dword [esp + 0x90], ecx
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x70]
push 0
push eax
add ecx, 0xfffffffb
mov dword [esp + 0x94], ecx
push 3
pop ecx
call fcn.00412ca7
call eax
test eax, eax
je 0x412343
push dword [esp + 0x4c]
call fcn.0040570b
mov esi, eax
pop ecx
test esi, esi
jne 0x41235d
push edi
call fcn.004056f0
pop ecx
inc ebp
mov dword [esp + 0x48], ebp
cmp ebp, 2
jae 0x412382
mov edx, dword [esp + 0x60]
jmp 0x41214d
push dword [esp + 0x4c]
push dword [esp + 0x54]
push esi
call fcn.00401d70
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
push edi
mov dword [ecx], eax
call fcn.004056f0
add esp, 0x10
mov eax, esi
jmp 0x412384
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret