Function at 0x420ce6
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
mov eax, 0xfffffffe
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x4208f0
mov ecx, 0xfffffffe
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x420900
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x3f
test edx, edx
jns 0x420920
mov eax, 0xffffffff
jmp 0x420929
add eax, ecx
lea eax, [eax*2 + 0x7e]
push eax
call fcn.00408620
add esp, 4
mov esi, eax
mov dword [esp + 0x46], 0x7b3055a
mov dword [esp + 0x4a], 0xbaf09bb
mov dword [esp + 0x4e], 0xf4d0dbe
mov dword [esp + 0x52], 0x13bc11bf
mov dword [esp + 0x56], 0x17b315a0
mov dword [esp + 0x5a], 0x1bae19a0
mov dword [esp + 0x5e], 0x1fba1d55
mov dword [esp + 0x62], 0x6316611d
mov dword [esp + 0x66], 0x671f6516
mov dword [esp + 0x6a], 0x6b13691c
mov dword [esp + 0x6e], 0x6f196d1a
mov dword [esp + 0x72], 0x730b7102
mov dword [esp + 0x76], 0x772a7501
mov dword [esp + 0x7a], 0x7bde79d1
mov dword [esp + 0x7e], 0x7f7e7dde
mov word [esp + 0x82], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x24
xor cl, byte [esp + eax + 0x46]
add cl, 0xe0
mov byte [esp + eax + 0x46], cl
inc eax
cmp eax, 0x3e
jne 0x4209c0
mov dword [esp], 0xe9e0c67
mov dword [esp + 4], 0x29e009b
mov dword [esp + 8], 0x6640491
mov dword [esp + 0xc], 0x3a5c3860
mov dword [esp + 0x10], 0x3e593c57
mov dword [esp + 0x14], 0x3257305a
mov dword [esp + 0x18], 0x36a03452
mov dword [esp + 0x1c], 0x2abd28ab
mov dword [esp + 0x20], 0x2eb02c47
mov dword [esp + 0x24], 0x22ab20b0
mov dword [esp + 0x28], 0x2640247e
mov dword [esp + 0x2c], 0x5acd58af
mov dword [esp + 0x30], 0x5ec35c3e
mov dword [esp + 0x34], 0x52c850cc
mov dword [esp + 0x38], 0x56cb54cc
mov dword [esp + 0x3c], 0x4a12480c
mov dword [esp + 0x40], 0x4e4d4c10
mov byte [esp + 0x44], 0
mov eax, esp
mov edi, 0x5ed86f6c
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax]
mov ecx, edi
or ecx, edx
lea ebp, [edi - 0x5ed86f00]
and ebp, edx
not ecx
or ecx, ebp
mov edx, ecx
and edx, 1
xor ecx, 1
lea edx, [ecx + edx*2]
add edx, 0x732eb9ac
mov ecx, edx
xor ecx, 0x45
and edx, 0x3a
add edx, edx
sub edx, ecx
mov byte [eax], dl
inc eax
dec edi
cmp edi, 0x5ed86f27
jne 0x420a70
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x420ae1
add ecx, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420ad0
mov word [eax], 0
movzx ecx, word [esp]
test cx, cx
je 0x420b11
lea edx, [esp + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420b00
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x420b41
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x420b30
mov word [eax], 0
movzx ecx, word [esp + 0x46]
test cx, cx
je 0x420b71
lea edx, [esp + 0x48]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420b60
mov word [eax], 0
mov eax, dword [esp + 0xa8]
mov ebx, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x420b90
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x420bb0
mov edx, dword [esp + 0xa0]
mov edi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x420bd0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xb
test eax, eax
jns 0x420bf4
mov eax, 0xffffffff
jmp 0x420bfd
add ecx, edx
lea eax, [ecx*2 + 0x16]
push eax
call fcn.00408620
add esp, 4
mov edi, eax
mov dword [esp], 0x56b454a4
mov dword [esp + 4], 0x4ad548cb
mov dword [esp + 8], 0x4ed94cae
mov dword [esp + 0xc], 0x429e40dc
mov dword [esp + 0x10], 0x4443
mov eax, 0xc
mov ecx, 0xf4
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0xc]
mov ebp, ecx
and ebp, edx
not edx
or edx, ecx
add edx, eax
or edx, ebp
add dl, 0xa8
mov byte [esp + eax - 0xc], dl
inc eax
dec ecx
cmp eax, 0x20
jne 0x420c40
movzx ecx, word [esp]
mov eax, edi
test cx, cx
je 0x420c81
lea edx, [esp + 2]
mov eax, edi
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420c70
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x420cb1
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x420ca0
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [esp + 0x9c]
mov ecx, dword [ecx]
movzx edx, word [ecx]
test dx, dx
je 0x420ce1
add ecx, 2
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420cd0
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [esp + 0xa0]
mov ecx, dword [ecx]
movzx edx, word [ecx]
test dx, dx
je 0x420d11
add ecx, 2
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420d00
mov word [eax], 0
mov dword [esp], 0xf9f8f79c
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
and ebx, 4
mov edx, ecx
xor edx, 0xc6
add edx, ebx
xor dl, byte [esp + ecx]
add dl, 0xd0
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 4
jne 0x420d30
mov eax, esp
push 0
push 1
push 0
push eax
push esi
push edi
push dword [esp + 0xb0]
call fcn.00421020
add esp, 0x1c
mov ebx, eax
jmp dword [0x445298]