Function at 0x422ad0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x464c89
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.00447d00
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.0044715f
mov esi, dword [esp + 0x10ac]
add esp, 0xc
cmp esi, 0x64
lea edi, [esi + 0x20]
jge 0x422b41
lea eax, [edi + 0x70]
cdq
mov ecx, 0x9d
idiv ecx
mov edi, edx
jmp 0x422b5a
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 0x422b70
add edi, 0x49
cmp edi, 0x88
jge 0x422b70
add edi, 0x49
lea ecx, [esp + 0x1094]
xor esi, 0xb3
call fcn.004222b0
mov ecx, eax
and ecx, 0x80000003
jns 0x422b91
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 0x422bb7
sub eax, edx
mov ebp, eax
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp byte [esp + 0x10a4], 1
jne 0x422bfc
xor eax, eax
test edi, edi
jle 0x422bfc
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 0x422be0
push 0x469780
lea eax, [esp + 0x884]
push 0x800
push eax
mov dword [esp + 0x20], 0
call fcn.0044715f
add esp, 0xc
cmp ebp, 3
jle 0x422cf4
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.00449630
mov al, byte [esp + 0x28]
add esp, 0xc
cmp byte [esp + 0x10a4], 0
je 0x422ca2
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 0x422cd1
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.004471c4
add esp, 0xc
cmp esi, 3
jg 0x422c30
mov esi, ebp
sub esi, dword [esp + 0x14]
test esi, esi
jle 0x422d57
push esi
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004475a0
add esp, 0xc
xor eax, eax
test esi, esi
mov byte [esp + esi + 0x1c], 0
jle 0x422d2c
nop
xor byte [esp + eax + 0x1c], 0x89
add eax, 1
cmp eax, esi
jl 0x422d20
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x884]
push 0x800
push edx
call fcn.004471c4
lea eax, [esp + 0x8c]
push ebp
push eax
mov ecx, eax
push ecx
call fcn.00449630
add esp, 0x18
cmp byte [esp + 0x10a4], 0
jne 0x422d8c
xor eax, eax
test edi, edi
jle 0x422d8c
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 0x422d70
mov esi, dword [esp + 0x1090]
lea edx, [esp + 0x880]
push edx
mov ecx, esi
call fcn.00422620
lea ecx, [esp + 0x1094]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 0
call fcn.004222c0
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