Function at 0x401a12
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4305c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [eax], 0
mov eax, dword [0x439234]
mov ebx, ecx
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
cmp eax, 3
ja case.default.0x401898
jmp dword [eax*4 + 0x401adc]
sub esi, ebx
mov edi, 0x10
lea edx, [esi + ebx]
mov ecx, ebx
call fcn.00403100
add ebx, 0x10
dec edi
jne 0x4018a6
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410fdd
mov esp, ebp
pop ebp
ret
mov eax, dword [0x43922c]
sub eax, esi
mov dword [ebp - 0x2c], eax
mov eax, esi
lea ecx, [ebp - 0x14]
xor edi, edi
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov ebx, edi
shl ebx, 4
add eax, ebx
lea edx, [ebp - 0x14]
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.00403100
xor eax, eax
test edi, edi
jne 0x40191e
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
add edx, eax
add esi, edx
mov cl, byte [esi + ecx]
xor cl, byte [edx]
mov byte [esi], cl
mov esi, dword [ebp - 0x20]
jmp 0x40192f
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx + eax - 0x10]
xor dl, byte [ebp + eax - 0x14]
lea ecx, [ebx + esi]
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x10
jb 0x401901
inc edi
cmp edi, 0x10
jb 0x4018e8
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410fdd
mov esp, ebp
pop ebp
ret
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
jne 0x401975
mov ecx, dword [0x43922c]
jmp 0x40197f
mov ecx, esi
shl ecx, 4
add ecx, 0xfffffff0
add ecx, ebx
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x401aca
mov edi, dword [ebp - 0x20]
mov eax, esi
add eax, eax
mov dword [ebp - 0x18], ebx
xor ecx, ecx
sub dword [ebp - 0x18], edi
lea edx, [edi + eax*8]
lea edi, [ebx + eax*8]
mov ebx, dword [ebp - 0x18]
jmp 0x4019b0
movzx eax, byte [ebx + edx]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
movzx eax, byte [edi + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
movzx eax, byte [edi + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
movzx eax, byte [edi + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x4019b0
mov ebx, dword [ebp - 0x24]
inc esi
cmp esi, 0x10
jb 0x401960
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410fdd
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x401a20
mov ecx, dword [0x43922c]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test edi, edi
je 0x401a35
mov ecx, eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x401aca
mov eax, edi
add eax, eax
mov dword [ebp - 0x18], ebx
xor ecx, ecx
sub dword [ebp - 0x18], esi
lea edx, [esi + eax*8]
lea esi, [ebx + eax*8]
mov ebx, dword [ebp - 0x18]
lea ebx, [ebx]
movzx eax, byte [ebx + edx]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
movzx eax, byte [esi + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
movzx eax, byte [esi + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
movzx eax, byte [esi + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401a60
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
inc edi
cmp edi, 0x10
jb 0x401a20
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410fdd
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410fdd
mov esp, ebp
pop ebp
ret