Function at 0x4229f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x40414e4f
mov dword [esp + 0x24], 0
mov dword [esp + 0x27], 0
mov ecx, 0xf91299b5
mov edi, 0x6ed664a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 0x6ed666b]
lea eax, [ecx + 1]
mov dword [esp + 8], eax
and eax, esi
mov edx, eax
and edx, 0xfffffffd
mov ebx, ecx
mov dword [esp + 0x10], ecx
mov ecx, eax
or ecx, 0xfffffffd
inc ecx
imul ecx, edx
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
add ecx, esi
sub ecx, eax
lea eax, [ebx + ecx]
inc eax
lea ecx, [edi - 1]
mov dword [esp + 4], ecx
or eax, ecx
mov ecx, eax
not ecx
mov ebx, ecx
and ebx, 2
mov edx, ecx
or ecx, 2
imul ecx, ebx
mov ebx, eax
and ebx, 2
and edx, 0xfffffffd
imul ebx, edx
add ebx, ecx
add ebx, edi
shr eax, 1
and eax, 1
imul eax, edx
lea eax, [ecx + eax*2]
mov edi, dword [esp + 0x10]
mov ecx, edi
sub ecx, eax
and ecx, esi
not esi
and esi, ebx
sub ecx, esi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax]
not ecx
add ecx, eax
and eax, 0x307dcc05
lea edx, [eax + eax]
not edx
add edx, eax
mov esi, edx
or esi, 2
xor edx, 0xfffffffd
and edx, esi
not esi
imul esi, edx
and ecx, 0xcf8233fa
or ecx, eax
mov eax, ecx
not eax
and eax, esi
not esi
and esi, ecx
sub eax, esi
mov byte [esp + edi + 0x6ed666b], al
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, eax
cmp eax, 0xf91299c0
jne 0x422a30
mov eax, dword [esp + 0x20]
mov ecx, dword [0x44c2c8]
test ecx, ecx
je 0x422b54
xor edx, edx
mov esi, dword [0x44c2cc]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x10def2fc
je 0x422b30
inc edx
cmp ecx, edx
jne 0x422b20
jmp 0x422b54
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x422b54
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x44c2d0]
push ecx
call fcn.0043c490
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x422ca0
push dword [esp + 0x1c]
call fcn.0043a8c0
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0x40414e4f
mov dword [esp + 0x24], 0
mov dword [esp + 0x27], 0
mov ecx, 0xf91299b5
mov ebx, 0x6ed664a
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx + 0x6ed666b]
lea eax, [ecx + 1]
mov dword [esp + 8], eax
and eax, edi
mov esi, ecx
mov dword [esp + 0x10], ecx
mov edx, eax
and edx, 0xfffffffd
mov ecx, eax
or ecx, 0xfffffffd
inc ecx
imul ecx, edx
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
add ecx, edi
sub ecx, eax
lea eax, [esi + ecx]
inc eax
lea ecx, [ebx - 1]
mov dword [esp + 4], ecx
or eax, ecx
mov edx, eax
not edx
mov ecx, edx
and ecx, 2
mov esi, edx
or edx, 2
imul edx, ecx
mov ecx, eax
and ecx, 2
and esi, 0xfffffffd
imul ecx, esi
add ecx, edx
add ecx, ebx
shr eax, 1
and eax, 1
imul eax, esi
lea eax, [edx + eax*2]
mov ebx, dword [esp + 0x10]
mov edx, ebx
sub edx, eax
and edx, edi
not edi
and edi, ecx
sub edx, edi
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax]
not ecx
add ecx, eax
and eax, 0x307dcc05
lea edx, [eax + eax]
not edx
add edx, eax
mov esi, edx
or esi, 2
xor edx, 0xfffffffd
and edx, esi
not esi
imul esi, edx
and ecx, 0xcf8233fa
or ecx, eax
mov eax, ecx
not eax
and eax, esi
not esi
and esi, ecx
sub eax, esi
mov byte [esp + ebx + 0x6ed666b], al
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, eax
cmp eax, 0xf91299c0
jne 0x422ba0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x44c2c8]
test ecx, ecx
je 0x422ccc
xor edx, edx
mov esi, dword [0x44c2cc]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x10def2fc
je 0x422ca7
inc edx
cmp ecx, edx
jne 0x422c90
jmp 0x422ccc
xor ebx, ebx
jmp 0x422fac
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x422ccc
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
push 5
push 4
push dword [0x44c2d0]
push ecx
call fcn.0043c490
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x422fa0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
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 0x422ce0
mov eax, ebx
and eax, 0x104
mov ecx, ebx
or ebx, 0x104
imul ebx, eax
xor eax, 0x104
and ecx, 0xfffffefb
imul ecx, eax
add ebx, ecx
jns 0x422d22
mov ebx, 0xffffffff
jmp 0x422d24
add ebx, ebx
push ebx
call fcn.00408a60
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov dword [esp + 4], edi
jmp 0x422d4e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x422d73
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x422d40
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x422d60
jmp 0x422d40
mov eax, dword [esp + 4]
cmp edi, eax
je 0x422ec5
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x422ecc
xor esi, esi
jmp 0x422db0
add edx, esi
mov esi, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x422de1
cmp eax, edi
jae 0x422de1
mov edx, esi
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 8]
mov esi, 1
cmp ebx, 0x80
jb 0x422da0
movzx ebx, byte [esp + 8]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x422da0
lea eax, [esi + 1]
mov dword [esp + 0x10], eax
push eax
call fcn.00408a60
add esp, 4
test esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
jle 0x422ee6
lea ecx, [eax + esi]
mov dword [esp + 8], ecx
add dword [esp + 0x10], eax
mov edx, dword [esp + 4]
mov esi, eax
jmp 0x422e36
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 8]
jae 0x422ee8
cmp edx, edi
jae 0x422ee8
movzx ecx, word [edx]
test cx, cx
je 0x422ee8
cmp cx, 0x7f
jbe 0x422e20
mov eax, esi
not eax
add eax, dword [esp + 0x10]
cmp eax, 2
jb 0x422e90
movzx ebx, cx
cmp ebx, 0x7ff
ja 0x422e90
mov eax, ecx
shr eax, 6
or al, 0xc0
mov byte [esi], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
mov eax, 2
jmp 0x422e27
cmp eax, 3
mov eax, 0
jb 0x422e27
movzx ebx, cx
mov eax, ebx
shr eax, 0xc
or al, 0xe0
mov byte [esi], al
shr ebx, 6
and bl, 0x3f
or bl, 0x80
mov byte [esi + 1], bl
and cl, 0x3f
or cl, 0x80
mov byte [esi + 2], cl
mov eax, 3
jmp 0x422e27
xor ebx, ebx
jmp 0x422f97
mov dword [esp + 0x14], 0
push 1
call fcn.00408a60
add esp, 4
mov esi, eax
mov dword [esp + 0x38], eax
jmp 0x422ee8
mov esi, eax
mov ecx, dword [ebp + 8]
mov byte [esi], 0
mov dword [esp + 0x20], 0xe252306
mov dword [esp + 0x24], 0x141d1c11
mov dword [esp + 0x28], 0x6b18df1b
mov word [esp + 0x2c], 0xe116
mov dword [esp + 0x32], 0
mov dword [esp + 0x2e], 0
mov eax, 0xc393871d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x3c6c7903]
xor edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0x35
mov byte [esp + eax + 0x3c6c7903], dl
movzx esi, byte [esp + eax + 0x3c6c7904]
lea edx, [eax + 1]
xor edx, esi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0x35
mov byte [esp + eax + 0x3c6c7904], dl
add eax, 2
cmp eax, 0xc3938733
jne 0x422f30
lea eax, [esp + 0x20]
push dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
push esi
push eax
call fcn.004096b0
mov ebx, eax
push esi
call fcn.00408a70
add esp, 4
mov eax, dword [esp + 4]
push eax
call fcn.00408a70
add esp, 4
push dword [esp + 0x18]
call fcn.0043a980
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret