Function at 0x4207b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0xd3d0d1d6
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x42080e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0xb3ba1ca3
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x8a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x4207e0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x44ba98]
test ecx, ecx
je 0x420864
xor edx, edx
mov esi, dword [0x44ba9c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x420840
inc edx
cmp ecx, edx
jne 0x420830
jmp 0x420864
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x420864
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 5
push 4
push dword [0x44baa0]
push ecx
call fcn.0043dc50
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x420910
push dword [esp + 0x24]
call fcn.0043bfa0
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], 0xd3d0d1d6
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x4208de
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
add eax, 0xb3ba1ca3
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x8a
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x4208b0
mov eax, dword [esp + 0x10]
mov edx, dword [0x44ba98]
test edx, edx
je 0x420939
xor esi, esi
mov edi, dword [0x44ba9c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x420917
inc esi
cmp edx, esi
jne 0x420900
jmp 0x420939
xor ebx, ebx
jmp 0x420be6
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x420939
push 0
push ecx
push dword [esp + 0x14]
push 5
push 4
push dword [0x44baa0]
push edx
call fcn.0043dc50
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x420bda
mov edx, dword [esp + 0xc]
mov ebp, dword [edx]
xor eax, eax
mov ecx, ebp
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x420950
test ebx, ebx
jns 0x420970
mov eax, 0xffffffff
push eax
call fcn.00409cc0
add esp, 4
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
jmp 0x4209a2
mov esi, edi
add eax, ebp
lea edi, [esi + 2]
mov word [esi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x4209d3
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x420990
add ecx, 2
mov esi, edi
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 0x4209c0
jmp 0x420992
xor ebx, ebx
mov eax, dword [esp + 4]
cmp edi, eax
je 0x420bd1
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x420a34
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x420a0e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x420a34
cmp eax, edi
jae 0x420a34
movzx ebp, cx
cmp ebp, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebp, 0x80
jb 0x420a00
mov edx, ecx
jmp 0x420a00
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
push eax
call fcn.00409cc0
add esp, 4
mov dword [esp + 0x20], eax
test ebx, ebx
jle 0x420b45
mov eax, dword [esp + 0x20]
cmp dword [esp + 4], edi
jae 0x420b45
mov eax, dword [esp + 0x20]
lea ebp, [eax + ebx]
add dword [esp + 0x2c], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x28], ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [ecx]
test dx, dx
je 0x420b45
mov dword [esp + 0x30], ecx
cmp dx, 0x7f
ja 0x420ab0
mov byte [eax], dl
mov edi, 1
jmp 0x420b30
mov edi, eax
not edi
mov ebp, edi
mov ecx, dword [esp + 0x2c]
and ebp, ecx
xor edi, ecx
lea ebp, [edi + ebp*2]
movzx ecx, dx
cmp ebp, 2
jb 0x420af0
cmp ecx, 0x7ff
ja 0x420af0
mov ecx, edx
shr ecx, 6
xor cl, 0xc0
mov byte [eax], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 1], dl
mov edi, 2
mov ebp, dword [esp + 0x28]
jmp 0x420b30
xor edi, edi
cmp ebp, 3
mov ebp, dword [esp + 0x28]
jb 0x420b30
mov edi, ecx
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
mov ecx, edi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 2], dl
mov edi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
cmp eax, ebp
jae 0x420b45
mov edx, dword [esp + 0x30]
lea ecx, [edx + 2]
cmp edx, esi
jb 0x420a80
mov byte [eax], 0
mov dword [esp + 0x10], 0x7562661b
mov dword [esp + 0x14], 0x7f62637a
mov dword [esp + 0x18], 0x66612a60
mov dword [esp + 0x1c], 0xd863
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x420bae
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x22517f2f
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x1c
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x420b80
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x48]
push ebx
mov esi, dword [esp + 0x24]
push esi
push eax
call fcn.0040a630
mov ebx, eax
push esi
call fcn.00409cd0
add esp, 4
mov eax, dword [esp + 4]
push eax
call fcn.00409cd0
add esp, 4
push dword [esp + 0xc]
call fcn.0043c040
add esp, 4
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret