Function at 0x421609
Capabilities:
Encode data using xor

Disassembly:
push 0xa0
mov eax, 0x46fedc
call fcn.00455d47
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 2
mov ebx, dword [eax]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x9c], ebx
cmp ebx, dword [eax + 4]
je 0x421735
mov eax, dword [ebx]
cmp eax, 8
jne 0x421678
mov ecx, ebx
lea edi, [ebp - 0x98]
call fcn.00422082
inc dword [ebp - 0x84]
jmp 0x421717
cmp eax, 6
jne 0x42168c
mov ecx, ebx
lea edi, [ebp - 0x6c]
call fcn.00422082
jmp 0x421714
cmp eax, 7
jne 0x4216ff
mov eax, esi
sub eax, dword [ebp - 0x6c]
sar eax, 5
test eax, eax
je 0x4216da
cmp dword [esi - 0x20], 6
je 0x4216d4
lea ecx, [esi - 0x20]
lea edi, [ebp - 0x98]
call fcn.00422082
cmp dword [ebp - 0x6c], esi
je 0x4216c8
push 0
push 1
lea ecx, [esi - 0x1c]
call fcn.00403b18
add esi, 0xffffffe0
mov dword [ebp - 0x68], esi
mov eax, esi
sub eax, dword [ebp - 0x6c]
sar eax, 5
test eax, eax
jne 0x42169d
mov ebx, dword [ebp - 0x9c]
mov eax, esi
sub eax, dword [ebp - 0x6c]
test eax, 0xffffffe0
je 0x42173c
cmp dword [ebp - 0x6c], esi
je 0x421717
add esi, 0xffffffe0
push 0
push 1
lea ecx, [esi + 4]
call fcn.00403b18
mov dword [ebp - 0x68], esi
jmp 0x421717
mov ecx, ebx
lea edi, [ebp - 0x6c]
call fcn.00422082
cmp dword [ebx], 5
je 0x421714
dec dword [ebp - 0x84]
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x50]
add ebx, 0x20
mov dword [ebp - 0x9c], ebx
cmp ebx, dword [eax + 4]
jne 0x421659
cmp dword [ebp - 0x84], 1
jge 0x421765
call fcn.00421ad9
jmp 0x421741
call fcn.00421a60
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0044c67b
mov dword [ebp - 0x5c], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [ebp - 0x5c]
push eax
call fcn.004554bb
jle 0x421799
call fcn.00421b78
jmp 0x421741
lea ebx, [esi - 0x20]
cmp dword [ebx], 6
je 0x4217a5
mov ecx, ebx
lea edi, [ebp - 0x98]
call fcn.00422082
cmp dword [ebp - 0x6c], esi
je 0x421799
push 0
push 1
lea ecx, [ebx + 4]
call fcn.00403b18
mov esi, ebx
mov dword [ebp - 0x68], esi
mov eax, esi
sub eax, dword [ebp - 0x6c]
sar eax, 5
test eax, eax
jne 0x42176e
sub esi, dword [ebp - 0x6c]
sar esi, 5
cmp esi, 1
jbe 0x4217b7
call fcn.00421c16
jmp 0x421741
lea eax, [ebp - 0x6c]
push eax
call fcn.004220f9
xor edi, edi
lea eax, [ebp - 0x50]
push eax
xor eax, eax
lea esi, [ebp - 0x80]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.004226b6
mov dword [ebp - 0x70], edi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x98]
cmp esi, dword [ebp - 0x94]
je 0x421917
mov eax, dword [esi]
cmp eax, 8
jne 0x42181b
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4219a6
mov eax, dword [ecx]
lea edx, [esi + 4]
push edx
call dword [eax + 4]
mov byte [ebp - 0x50], al
push dword [ebp - 0x50]
jmp 0x4218f6
cmp eax, 5
jne 0x42185c
cmp dword [ebp - 0x70], 1
jb 0x4219ab
lea edi, [ebp - 0xa0]
lea eax, [ebp - 0x80]
call fcn.00422183
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edi, edi
inc edi
shl edi, cl
test dword [edx], edi
lea edi, [ebp - 0x80]
setne bl
call fcn.004221e7
test bl, bl
sete al
movzx eax, al
jmp 0x4218f5
cmp dword [ebp - 0x70], 2
jb 0x4219b5
lea edi, [ebp - 0x88]
lea eax, [ebp - 0x80]
call fcn.00422183
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edi, edi
inc edi
shl edi, cl
test dword [edx], edi
lea edi, [ebp - 0x80]
setne byte [ebp - 0x49]
call fcn.004221e7
lea edi, [ebp - 0x58]
lea eax, [ebp - 0x80]
call fcn.00422183
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edi, edi
inc edi
shl edi, cl
test dword [edx], edi
lea edi, [ebp - 0x80]
setne bl
call fcn.004221e7
mov eax, dword [esi]
sub eax, 0
je 0x421999
dec eax
je 0x421982
dec eax
je 0x4218e8
dec eax
je 0x4218db
dec eax
jne 0x4219bf
test bl, bl
je 0x4218f2
cmp byte [ebp - 0x49], 0
je 0x4218f2
xor al, al
jmp 0x4218f5
test bl, bl
jne 0x4218d7
cmp byte [ebp - 0x49], bl
jne 0x4218d7
mov al, 1
jmp 0x4218f5
test bl, bl
jne 0x4218d1
cmp byte [ebp - 0x49], 0
je 0x4218d7
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x80]
call fcn.004221b7
add esi, 0x20
cmp esi, dword [ebp - 0x94]
jne 0x4217f5
cmp dword [ebp - 0x70], 1
je 0x421a00
test byte [0x4a3ff0], 1
jne 0x42195f
or dword [0x4a3ff0], 1
mov dword [0x4a2bc4], 0xf0e7ffd8
mov dword [0x4a2bc8], 0xb1f5f8fd
mov dword [0x4a2bcc], 0xe3e1e9f4
mov dword [0x4a2bd0], 0xf8e2e2f4
mov word [0x4a2bd4], 0xfffe
mov byte [0x4a2bd6], 0x91
xor eax, eax
mov cl, byte [eax + 0x4a2bc4]
xor cl, 0x91
mov byte [eax + 0x4a2d14], cl
inc eax
cmp eax, 0x13
jb 0x421961
mov dword [ebp - 0x50], 0x4a2d14
jmp 0x421744
test bl, bl
je 0x4218d7
cmp byte [ebp - 0x49], 0
je 0x4218d7
jmp 0x4218e4
test bl, bl
jne 0x4218f2
jmp 0x4218ec
call fcn.0044c39b
call fcn.00421c89
jmp 0x421741
call fcn.00421d17
jmp 0x421741
mov eax, dword [esi]
cdq
push edx
push eax
lea esi, [ebp - 0x2c]
call fcn.00427d80
pop ecx
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.00421dae
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040c222
add esp, 0xc
lea esi, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.00404e30
push 0x4915dc
mov eax, esi
jmp 0x42175f
lea edi, [ebp - 0x58]
lea eax, [ebp - 0x80]
call fcn.00422183
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor esi, esi
inc esi
shl esi, cl
test dword [edx], esi
setne bl
cmp dword [ebp - 0x80], 0
je 0x421a29
push dword [ebp - 0x80]
call fcn.0044cf93
pop ecx
lea esi, [ebp - 0x6c]
call fcn.00416a1a
lea esi, [ebp - 0x98]
call fcn.00416a1a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x421a58
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call dword [eax + 0xc]
mov al, bl
call fcn.00455dca
ret