Function at 0x4208c0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
cmp dword [esp + 0x7c], 0xf
mov edi, dword [esp + 0x74]
jbe 0x420c0b
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x7c]
and eax, 3
je 0x420c40
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
sub esi, eax
mov eax, esi
mov esi, dword [esp + 0x78]
sub edx, 1
movzx ecx, byte [edi + edx]
xor cl, byte [esi + edx]
mov byte [ebx + edx], cl
cmp edx, eax
jne 0x4208fb
mov edx, dword [esp + 0x78]
lea ecx, [edi + eax]
add edx, eax
mov esi, ecx
mov ecx, eax
and eax, 3
mov ebx, edx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x78]
and esi, 3
and ebx, 3
add eax, dword [esp + 0x7c]
shr ecx, 2
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], ebx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
cmp esi, ebx
je 0x420c9b
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x420cf1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x420c57
mov ebx, dword [esp + 0x34]
lea eax, [ebx*8]
mov dword [esp + 0x20], eax
mov eax, ebx
neg eax
lea eax, [eax*8 + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
lea esi, [eax*8]
neg eax
lea eax, [eax*8 + 0x20]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
and esi, 0xfffffffc
and eax, 0xfffffffc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
lea ecx, [eax*4]
lea eax, [ebx - 1]
lea edx, [esi + ecx]
movzx ebp, byte [edx + ebx - 1]
test eax, eax
je 0x4209ef
sub eax, 1
shl ebp, 8
movzx ebx, byte [edx + eax]
or ebp, ebx
test eax, eax
jne 0x4209df
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
lea edx, [ebx + ecx]
movzx ecx, byte [eax + edx - 1]
sub eax, 1
mov dword [esp + 0x14], ecx
je 0x420a1c
sub eax, 1
shl ecx, 8
movzx ebx, byte [edx + eax]
or ecx, ebx
test eax, eax
jne 0x420a08
mov dword [esp + 0x14], ecx
movzx ecx, byte [esp + 0x18]
mov eax, ebp
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
shl eax, cl
movzx ecx, byte [esp + 0x1c]
shl edx, cl
mov dword [esp + 0x2c], edx
test bl, 1
jne 0x420a9e
mov ecx, dword [esp + 0x28]
sub ebx, 1
mov ebp, dword [esi + ebx*4]
mov dword [esp + 0x30], ebx
mov ecx, dword [ecx + ebx*4]
mov edx, ebp
mov dword [esp + 0x14], ecx
movzx ecx, byte [esp + 0x20]
shr edx, cl
movzx ecx, byte [esp + 0x24]
or eax, edx
mov edx, dword [esp + 0x14]
shr edx, cl
mov ecx, edx
mov edx, dword [esp + 0x2c]
or edx, ecx
mov ecx, dword [esp + 0x3c]
xor eax, edx
mov dword [ecx + ebx*4], eax
movzx ecx, byte [esp + 0x18]
mov eax, ebp
shl eax, cl
movzx ecx, byte [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
shl eax, cl
mov dword [esp + 0x48], eax
cmp ebx, 2
je 0x420c79
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x74], edi
lea eax, [ebx*4 - 4]
add ecx, eax
lea edx, [esi + eax]
mov dword [esp + 0x2c], ecx
lea ecx, [ebx - 3]
mov ebx, ecx
lea ecx, [esi + eax - 8]
shr ebx, 1
lea eax, [ebx*8]
mov dword [esp + 0x4c], ebx
mov ebx, ecx
sub ebx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], ebx
sub eax, esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
movzx ecx, byte [esp + 0x20]
sub esi, 8
mov ebx, dword [esi + 8]
mov edi, eax
shr edi, cl
movzx ecx, byte [esp + 0x18]
mov dword [esp + 0x2c], ebx
shl ebp, cl
movzx ecx, byte [esp + 0x24]
or ebp, edi
mov edi, ebx
mov ebx, dword [esp + 0x14]
shr edi, cl
movzx ecx, byte [esp + 0x1c]
shl ebx, cl
movzx ecx, byte [esp + 0x20]
or edi, ebx
mov ebx, dword [esp + 0x28]
xor ebp, edi
mov dword [ebx + edx], ebp
mov edi, dword [esi + 4]
mov ebp, dword [edx - 4]
mov ebx, edi
mov dword [esp + 0x14], edi
mov edi, ebp
shr edi, cl
movzx ecx, byte [esp + 0x18]
shl eax, cl
movzx ecx, byte [esp + 0x24]
or eax, edi
mov edi, ebx
mov ebx, dword [esp + 0x2c]
shr edi, cl
movzx ecx, byte [esp + 0x1c]
shl ebx, cl
or ebx, edi
xor eax, ebx
mov ebx, dword [esp + 0x28]
mov dword [ebx + edx - 4], eax
sub edx, 8
cmp dword [esp + 0x48], edx
jne 0x420ae6
movzx ecx, byte [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
shl ebp, cl
movzx ecx, byte [esp + 0x1c]
lea edx, [esi - 3]
mov dword [esp + 0x2c], ebp
shl eax, cl
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
add eax, eax
cmp edx, eax
jne 0x420c79
mov ebx, dword [esp + 0x40]
mov edx, 3
sub edx, dword [esp + 0x34]
movzx eax, byte [ebx + edx]
je 0x420bc4
sub edx, 1
shl eax, 8
movzx ecx, byte [ebx + edx]
or eax, ecx
test edx, edx
jne 0x420bb4
mov esi, dword [esp + 0x38]
mov ecx, 3
sub ecx, dword [esp + 0x44]
movzx edx, byte [esi + ecx]
je 0x420be7
sub ecx, 1
shl edx, 8
movzx ebx, byte [esi + ecx]
or edx, ebx
test ecx, ecx
jne 0x420bd7
mov esi, dword [esp + 0x20]
mov ecx, esi
mov esi, dword [esp + 0x24]
shl eax, cl
shr eax, cl
mov ecx, esi
or eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
shl edx, cl
shr edx, cl
or edx, dword [esp + 0x48]
xor eax, edx
mov dword [esi], eax
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
sub eax, 1
test edx, edx
je 0x420c34
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
movzx edx, byte [edi + eax]
xor dl, byte [ebx + eax]
mov byte [ecx + eax], dl
sub eax, 1
cmp eax, 0xffffffff
jne 0x420c22
mov eax, dword [esp + 0x70]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
add edx, dword [esp + 0x7c]
add ecx, edi
jmp 0x420915
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call fcn.00420700
jmp 0x420c0b
mov dword [esp + 8], 0xdd
mov dword [esp + 4], str..._nettle_3.5.1_memxor3.c
mov dword [esp], str.n__1
call dword [sym.imp.msvcrt.dll__assert]
jmp 0x420ba1
mov esi, ecx
mov ebp, dword [esp + 0x34]
and esi, 1
mov dword [esp + 0x20], esi
test ebp, ebp
jne 0x420d16
test esi, esi
je 0x420f1c
mov edx, ecx
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub edx, 1
mov esi, dword [esp + 0x3c]
mov eax, dword [ebx + edx*4]
xor eax, dword [ecx + edx*4]
mov dword [esi + edx*4], eax
mov eax, edx
sub eax, 2
mov edx, dword [ebx + eax*4 + 4]
xor edx, dword [ecx + eax*4 + 4]
mov dword [esi + eax*4 + 4], edx
mov edx, dword [ebx + eax*4]
xor edx, dword [ecx + eax*4]
mov dword [esi + eax*4], edx
test eax, eax
jne 0x420cd0
jmp 0x420c0b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call fcn.00420700
jmp 0x420c0b
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
lea eax, [esi*8]
and ecx, 0xfffffffc
mov dword [esp + 0x18], eax
mov eax, esi
mov ebp, ecx
and ebx, 0xfffffffc
neg eax
mov dword [esp + 0x24], ecx
lea eax, [eax*8 + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
lea edx, [eax*4]
lea eax, [esi - 1]
mov dword [esp + 0x28], edx
mov esi, edx
add edx, eax
movzx ecx, byte [ecx + edx]
movzx edx, byte [ebx + edx]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x420dab
mov dword [esp + 0x2c], eax
add ebp, esi
mov esi, dword [esp + 0x1c]
mov ecx, eax
sub ecx, 1
shl esi, 8
movzx eax, byte [ebp + ecx]
or esi, eax
test ecx, ecx
jne 0x420d7a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, 1
shl edx, 8
lea ebp, [ebx + eax]
movzx ebp, byte [ebp + ecx]
or edx, ebp
test eax, eax
jne 0x420d93
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x14]
xor esi, edx
mov eax, esi
mov ebp, esi
mov esi, dword [esp + 0x20]
shl eax, cl
test esi, esi
je 0x420ebf
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x74], edi
lea edx, [ecx*4 - 4]
sub ecx, 3
shr ecx, 1
lea eax, [esi + edx]
add ebx, edx
mov dword [esp + 0x20], ecx
lea ecx, [esi + edx - 8]
mov edx, dword [esp + 0x20]
shl edx, 3
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
sub ecx, esi
mov edi, ecx
mov edx, dword [eax]
movzx ecx, byte [esp + 0x18]
sub ebx, 8
xor edx, dword [ebx + 8]
mov esi, edx
shr esi, cl
movzx ecx, byte [esp + 0x14]
shl ebp, cl
movzx ecx, byte [esp + 0x18]
or esi, ebp
mov dword [edi + eax], esi
mov ebp, dword [eax - 4]
xor ebp, dword [ebx + 4]
mov esi, ebp
shr esi, cl
movzx ecx, byte [esp + 0x14]
shl edx, cl
or edx, esi
mov dword [edi + eax - 4], edx
sub eax, 8
cmp dword [esp + 0x1c], eax
jne 0x420e02
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
shl ebp, cl
mov dword [esp + 0x1c], ebp
mov edi, dword [esp + 0x74]
add eax, eax
lea edx, [esi - 3]
cmp edx, eax
jne 0x420efa
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov edx, 3
sub edx, dword [esp + 0x34]
movzx eax, byte [esi + edx]
movzx ecx, byte [ebx + edx]
je 0x420ea4
mov ebx, edx
sub ebx, 1
shl eax, 8
movzx ebp, byte [esi + ebx]
or eax, ebp
test ebx, ebx
jne 0x420e80
mov esi, dword [esp + 0x38]
sub edx, 1
shl ecx, 8
movzx ebx, byte [esi + edx]
or ecx, ebx
test edx, edx
jne 0x420e94
mov esi, dword [esp + 0x18]
xor eax, ecx
mov ecx, esi
mov esi, dword [esp + 0x3c]
shl eax, cl
shr eax, cl
or eax, dword [esp + 0x1c]
mov dword [esi], eax
jmp 0x420c0b
mov ecx, dword [esp + 0x24]
sub dword [esp + 0x30], 1
mov esi, dword [esp + 0x30]
mov ebp, dword [ecx + esi*4]
movzx ecx, byte [esp + 0x18]
xor ebp, dword [ebx + esi*4]
mov edx, ebp
shr edx, cl
mov ecx, dword [esp + 0x3c]
or eax, edx
mov dword [ecx + esi*4], eax
movzx ecx, byte [esp + 0x14]
mov eax, ebp
shl eax, cl
mov dword [esp + 0x1c], eax
cmp esi, 2
jne 0x420dc8
mov dword [esp + 8], 0xa1
mov dword [esp + 4], str..._nettle_3.5.1_memxor3.c
mov dword [esp], str.n__1
call dword [sym.imp.msvcrt.dll__assert]
jmp 0x420e63
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
jmp 0x420cd0