Function at 0x401b82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43b860]
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 [0x444304]
mov ebx, ecx
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
cmp eax, 3
ja case.default.0x401a08
jmp dword [eax*4 + 0x401c4c]
sub esi, ebx
mov edi, 0x10
lea edx, [esi + ebx]
mov ecx, ebx
call fcn.00403270
add ebx, 0x10
dec edi
jne 0x401a16
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.00414dc0
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4442fc]
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.00403270
xor eax, eax
test edi, edi
jne 0x401a8e
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 0x401a9f
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 0x401a71
inc edi
cmp edi, 0x10
jb 0x401a58
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.00414dc0
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 0x401ae5
mov ecx, dword [0x4442fc]
jmp 0x401aef
mov ecx, esi
shl ecx, 4
add ecx, 0xfffffff0
add ecx, ebx
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x401c3a
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 0x401b20
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 0x401b20
mov ebx, dword [ebp - 0x24]
inc esi
cmp esi, 0x10
jb 0x401ad0
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.00414dc0
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x401b90
mov ecx, dword [0x4442fc]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test edi, edi
je 0x401ba5
mov ecx, eax
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x401c3a
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 0x401bd0
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
inc edi
cmp edi, 0x10
jb 0x401b90
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.00414dc0
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.00414dc0
mov esp, ebp
pop ebp
ret