Function at 0x420110
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4203ae
sub esp, 0x28
mov ecx, dword [0xc7ec30]
test ecx, ecx
je 0x420349
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, ecx
xor ebx, ebx
xor ebp, ebp
cmp ebx, edx
jge 0x420164
mov esi, dword [ecx]
add ecx, 4
inc ebx
add esi, ebp
mov edi, esi
shl esi, 0xa
lea ebp, [edi + esi]
mov esi, ebp
shr ebp, 6
xor ebp, esi
cmp ebx, edx
jl 0x420149
mov ecx, dword [0xc7ec30]
test byte [ecx], al
mov ebx, dword [esp + 0x30]
add ebp, ebx
mov esi, ebp
shl ebp, 0xa
add ebp, esi
mov esi, ebp
shr ebp, 6
xor esi, ebp
lea ebp, [esi + esi*8]
mov esi, ebp
shr ebp, 0xb
xor esi, ebp
mov dword [esp + 0x1c], esi
mov ebp, eax
mov eax, esi
mov edi, 0xba6a1fbd
mul edi
shr edx, 0x11
imul edx, edx, 0x2bf1f
mov edi, esi
sub esi, edx
mov dword [esp + 0x20], esi
cmp esi, 0x2bf1f
jae 0x420342
mov eax, dword [ecx + esi*4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4201e8
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jne 0x4201de
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jne 0x4201de
mov ecx, dword [eax + 0x10]
cmp ebx, ecx
je 0x4202d6
mov eax, dword [eax]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4201c1
movzx eax, byte [esp + 0x40]
test al, al
je 0x4202ca
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call dbg.runtime.newBucket
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov ecx, eax
add ecx, 0x18
test byte [ecx], al
mov edx, dword [eax + 0x14]
cmp edx, 0x20
ja 0x4202c3
mov ebx, dword [esp + 0x38]
cmp edx, ebx
jle 0x4202bc
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
shl ebx, 2
mov dword [esp + 8], ebx
call dbg.runtime.memmove
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x10], eax
mov eax, dword [0xc7ec30]
test byte [eax], al
mov edx, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
mov dword [ecx], eax
mov eax, dword [0xc7ec30]
test byte [eax], al
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x420295
mov eax, dword [0xc7ec54]
mov dword [ecx + 4], eax
mov dword [0xc7ec54], ecx
mov dword [esp + 0x44], ecx
add esp, 0x28
ret
cmp eax, 3
jne 0x4202ab
mov eax, dword [0xc7ec68]
mov dword [ecx + 4], eax
mov dword [0xc7ec68], ecx
jmp 0x42028d
mov eax, dword [0xc7ec2c]
mov dword [ecx + 4], eax
mov dword [0xc7ec2c], ecx
jmp 0x42028d
mov ebx, edx
jmp 0x420230
call dbg.runtime.panicslice
ud2
mov dword [esp + 0x44], 0
add esp, 0x28
ret
mov ecx, eax
add ecx, 0x18
test byte [ecx], al
mov esi, dword [eax + 0x14]
cmp esi, 0x20
ja 0x42033b
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], esi
call dbg.runtime.eqslice
movzx eax, byte [esp + 0x18]
test al, al
jne 0x42032f
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4201de
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
add esp, 0x28
ret
call dbg.runtime.panicslice
ud2
call dbg.runtime.panicindex
ud2
mov dword [esp], 0xafc7c
lea eax, [0xc95a70]
mov dword [esp + 4], eax
call dbg.runtime.sysAlloc
mov eax, dword [esp + 8]
mov ecx, dword [0xc93940]
test ecx, ecx
jne 0x42039a
mov dword [0xc7ec30], eax
mov ecx, dword [0xc7ec30]
test ecx, ecx
je 0x420382
jmp 0x420137
lea eax, [0x99c752]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call dbg.runtime.throw
ud2
lea ecx, [0xc7ec30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
jmp 0x420373
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.stkbucket