Function at 0x4223b0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x464479
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.004475e0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1098]
push eax
lea ecx, [esp + 0x84]
push 0x800
push ecx
mov dword [esp + 0x1094], 1
call fcn.00446a3e
mov esi, dword [esp + 0x10ac]
add esp, 0xc
cmp esi, 0x64
lea edi, [esi + 0x20]
jge 0x422421
lea eax, [edi + 0x70]
cdq
mov ecx, 0x9d
idiv ecx
mov edi, edx
jmp 0x42243a
mov eax, 0x9c18f9c1
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xa4
add edi, eax
cmp edi, 0x88
jge 0x422450
add edi, 0x49
cmp edi, 0x88
jge 0x422450
add edi, 0x49
lea ecx, [esp + 0x1094]
xor esi, 0xb3
call fcn.00421b90
mov ecx, eax
and ecx, 0x80000003
jns 0x422471
dec ecx
or ecx, 0xfffffffc
inc ecx
mov eax, esi
cdq
mov ebx, 0xc
idiv ebx
mov eax, esi
mov esi, 6
mov ebx, edx
cdq
idiv esi
lea eax, [esp + 0x80]
sub ebx, edx
add ebx, edi
add ebx, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422497
sub eax, edx
mov ebp, eax
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp byte [esp + 0x10a4], 1
jne 0x4224dc
xor eax, eax
test edi, edi
jle 0x4224dc
lea esi, [esp + ebp + 0x7f]
nop
mov dl, byte [esi]
mov cl, byte [esp + eax + 0x80]
mov byte [esp + eax + 0x80], dl
mov byte [esi], cl
add eax, 1
sub esi, 1
cmp eax, edi
jl 0x4224c0
push 0x468780
lea eax, [esp + 0x884]
push 0x800
push eax
mov dword [esp + 0x20], 0
call fcn.00446a3e
add esp, 0xc
cmp ebp, 3
jle 0x4225d4
mov esi, ebp
lea esp, [esp]
mov ecx, dword [esp + 0x80]
add dword [esp + 0x14], 4
push ebp
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], 0
sub esi, 4
call fcn.00448f10
mov al, byte [esp + 0x28]
add esp, 0xc
cmp byte [esp + 0x10a4], 0
je 0x422582
mov dl, byte [esp + 0x1d]
mov cl, byte [esp + 0x1f]
mov byte [esp + 0x13], dl
lea edx, [ebx - 3]
xor cl, dl
mov byte [esp + 0x1c], cl
lea ecx, [ebx + 2]
xor cl, byte [esp + 0x1e]
mov byte [esp + 0x1d], cl
lea ecx, [ebx - 1]
xor cl, byte [esp + 0x13]
xor al, bl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
jmp 0x4225b1
mov dl, byte [esp + 0x1e]
lea ecx, [ebx - 3]
xor al, cl
lea ecx, [ebx + 2]
xor byte [esp + 0x1d], cl
lea ecx, [ebx - 1]
xor dl, cl
mov cl, byte [esp + 0x1f]
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1d]
xor cl, bl
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], al
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x884]
push 0x800
push ecx
call fcn.00446aa3
add esp, 0xc
cmp esi, 3
jg 0x422510
mov esi, ebp
sub esi, dword [esp + 0x14]
test esi, esi
jle 0x422637
push esi
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00446e80
add esp, 0xc
xor eax, eax
test esi, esi
mov byte [esp + esi + 0x1c], 0
jle 0x42260c
nop
xor byte [esp + eax + 0x1c], 0x89
add eax, 1
cmp eax, esi
jl 0x422600
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x884]
push 0x800
push edx
call fcn.00446aa3
lea eax, [esp + 0x8c]
push ebp
push eax
mov ecx, eax
push ecx
call fcn.00448f10
add esp, 0x18
cmp byte [esp + 0x10a4], 0
jne 0x42266c
xor eax, eax
test edi, edi
jle 0x42266c
lea ecx, [esp + ebp + 0x87f]
mov edi, edi
mov bl, byte [ecx]
mov dl, byte [esp + eax + 0x880]
mov byte [esp + eax + 0x880], bl
mov byte [ecx], dl
add eax, 1
sub ecx, 1
cmp eax, edi
jl 0x422650
mov esi, dword [esp + 0x1090]
lea edx, [esp + 0x880]
push edx
mov ecx, esi
call fcn.00421f00
lea ecx, [esp + 0x1094]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 0
call fcn.00421ba0
mov ecx, dword [esp + 0x1080]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x107c
ret