Function at 0x4202f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x70605
mov byte [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x42035b
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + ecx]
add edx, 0xad100031
add eax, 0xad100031
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0xcb
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x420320
mov eax, dword [esp + 0x18]
mov ecx, dword [0x44a974]
test ecx, ecx
je 0x4203b4
xor edx, edx
mov esi, dword [0x44a978]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x420390
inc edx
cmp ecx, edx
jne 0x420380
jmp 0x4203b4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4203b4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x44a97c]
push ecx
call fcn.0043d1f0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x420460
push dword [esp + 0x14]
call fcn.0043b2f0
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x70605
mov byte [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x42042b
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
lea esi, [eax + edx]
add esi, 0xad100031
add eax, 0xad100031
and eax, edx
add eax, eax
sub esi, eax
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
add al, 0xcb
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x4203f0
mov eax, dword [esp + 0x18]
mov edx, dword [0x44a974]
test edx, edx
je 0x420486
xor esi, esi
mov edi, dword [0x44a978]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x420467
inc esi
cmp edx, esi
jne 0x420450
jmp 0x420486
xor ebx, ebx
jmp 0x42073d
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x420486
push 0
push ecx
push ebp
push 5
push 4
push dword [0x44a97c]
push edx
call fcn.0043d1f0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x420734
mov edi, dword [ebp]
mov eax, edi
mov ecx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov esi, ebx
and esi, 1
xor ebx, 1
lea ebx, [ebx + esi*2]
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x4204a0
lea eax, [ebx*4]
mov ecx, ebx
shl ecx, 8
add ecx, eax
mov dword [esp + 0x10], ebp
jns 0x4204d2
mov eax, 0xffffffff
jmp 0x4204da
mov eax, ebx
shl eax, 9
lea eax, [eax + ebx*8]
push eax
call fcn.00409a50
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
jmp 0x420502
mov esi, ebp
add eax, edi
lea ebp, [esi + 2]
mov word [esi], 0xa
mov edi, dword [eax]
test edi, edi
je 0x420533
mov ecx, dword [eax + edi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x4204f0
add ecx, 2
mov esi, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420520
jmp 0x4204f2
xor ebx, ebx
mov eax, dword [esp + 4]
cmp ebp, eax
je 0x420727
mov word [ebp], 0
movzx ecx, word [eax]
test cx, cx
je 0x420594
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x42056e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x420594
cmp eax, ebp
jae 0x420594
movzx edi, cx
cmp edi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp edi, 0x80
jb 0x420560
mov edx, ecx
jmp 0x420560
mov eax, ebx
and eax, 1
mov ecx, ebx
xor ecx, 1
lea edi, [ecx + eax*2]
push edi
call fcn.00409a50
add esp, 4
lea edx, [eax + edi]
dec edx
mov ecx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], edx
cmp eax, edx
jae 0x420695
mov ecx, dword [esp + 0xc]
cmp dword [esp + 4], ebp
jae 0x420695
mov ecx, dword [esp + 0xc]
mov eax, ecx
add eax, edi
mov dword [esp + 0x30], eax
mov ebp, dword [esp + 4]
nop
nop
movzx eax, word [ebp]
test ax, ax
je 0x420695
cmp ax, 0x7f
ja 0x420600
mov byte [ecx], al
mov edi, 1
jmp 0x420680
mov dword [esp + 0x2c], ebp
mov edx, ecx
not edx
mov edi, edx
mov ebp, dword [esp + 0x30]
and edi, ebp
xor edx, ebp
lea ebp, [edx + edi*2]
movzx edx, ax
cmp ebp, 2
jb 0x420650
cmp edx, 0x7ff
ja 0x420650
mov edx, eax
shr edx, 6
add dl, 0xc0
mov byte [ecx], dl
and al, 0x3f
or al, 0x80
mov byte [ecx + 1], al
mov edi, 2
mov ebp, dword [esp + 0x2c]
jmp 0x420680
xor edi, edi
cmp ebp, 3
mov ebp, dword [esp + 0x2c]
jb 0x420680
mov edi, edx
shr edx, 0xc
or dl, 0xe0
mov byte [ecx], dl
mov edx, edi
shr edx, 6
and dl, 0x3f
or dl, 0x80
mov byte [ecx + 1], dl
and al, 0x3f
or al, 0x80
mov byte [ecx + 2], al
mov edi, 3
nop
add ecx, edi
cmp ecx, dword [esp + 0x34]
jae 0x420695
lea eax, [ebp + 2]
cmp ebp, esi
mov ebp, eax
jb 0x4205e0
mov byte [ecx], 0
mov dword [esp + 0x18], 0xb5be825f
mov dword [esp + 0x1c], 0xbb8687b6
mov dword [esp + 0x20], 0x8a897688
mov word [esp + 0x24], 0x8f
mov dword [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x4206fe
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
add eax, 0x71b14721
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xd2
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x4206d0
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x10]
push esi
push eax
call fcn.0040a3e0
mov ebx, eax
push esi
call fcn.00409a60
add esp, 4
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 4]
jmp 0x42072b
mov ebp, dword [esp + 0x10]
push eax
call fcn.00409a60
add esp, 4
push ebp
call fcn.0043b3e0
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret