Function at 0x10022fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x168
mov eax, dword [0x100a9040]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
push esi
mov esi, ecx
mov dword [esp + 0x38], 0x3f
push edi
mov edi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], edi
mov edx, 1
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 8], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0xb8]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xc]
shl edx, cl
mov ecx, dword [esi + 0x10]
sub edi, edx
sub eax, ecx
cmp eax, edx
mov eax, edi
mov edi, dword [esp + 0x10]
cmovbe eax, ecx
cmp dword [esi + 0x18], 0
cmovne eax, ecx
mov ecx, 6
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x54], eax
mov eax, 1
shl eax, cl
cmp dword [esi + 0xdc], 0
mov dword [esp + 0x38], eax
jne 0x100232aa
mov ecx, dword [esp + 0xc]
mov edx, 0x18
mov eax, dword [esi + 0x1c]
sub ecx, eax
cmp ecx, 0x180
jbe 0x100231e2
lea ecx, [eax + 0x60]
mov dword [esp + 0x14], ecx
cmp eax, ecx
jae 0x10023162
mov edi, edx
mov edx, dword [esp + 0x30]
sub edi, dword [esp + 8]
add edx, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
nop dword [eax]
nop dword [eax + eax]
imul edx, dword [eax + edx], 0x9e3779b1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x54], ecx
mov ecx, edi
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, eax
and ecx, 7
mov edi, dword [esi + ecx*4 + 0x2c]
mov dword [esi + ecx*4 + 0x2c], edx
mov ecx, 0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x44], edi
shr edi, 2
and edi, 0x3fffffc0
add esi, edi
movzx edx, byte [esi]
dec edx
and edx, 0x3f
cmove ecx, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x44]
mov byte [esi], dl
mov byte [edx + esi], cl
lea ecx, [edx + edi]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc eax
mov edx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
jb 0x100230f0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
inc edi
mov edx, dword [esp + 0x30]
add eax, 0xffffffe0
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea ecx, [edx + eax]
cmp ecx, edi
jbe 0x10023181
xor edi, edi
jmp 0x10023186
sub edi, edx
sub edi, eax
inc edi
mov ecx, 8
cmp edi, ecx
cmova edi, ecx
add edi, eax
cmp eax, edi
jae 0x100231dd
mov eax, 0x18
sub eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
nop word [eax + eax]
imul edx, dword [eax + edx], 0x9e3779b1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x18]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, eax
and ecx, 7
inc eax
mov dword [esi + ecx*4 + 0x2c], edx
mov edx, dword [esp + 0x30]
cmp eax, edi
jb 0x100231b0
mov eax, dword [esp + 0x14]
mov edx, 0x18
mov ecx, dword [esi + 0x5c]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
cmp eax, edi
jae 0x10023278
mov ecx, edx
sub ecx, dword [esi + 0x24]
mov dword [esp + 0x18], ecx
nop dword [eax + eax]
mov ecx, dword [esp + 0x1c]
imul edx, dword [eax + ecx + 8], 0x9e3779b1
mov ecx, dword [esp + 0x18]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, eax
and ecx, 7
mov edi, dword [esi + ecx*4 + 0x2c]
mov dword [esi + ecx*4 + 0x2c], edx
mov ecx, 0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x44], edi
shr edi, 2
and edi, 0x3fffffc0
add esi, edi
movzx edx, byte [esi]
dec edx
and edx, 0x3f
cmove ecx, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x44]
mov byte [esi], dl
mov byte [edx + esi], cl
lea ecx, [edx + edi]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
mov dword [edx + ecx*4], eax
inc eax
cmp eax, edi
jb 0x10023210
mov eax, dword [esp + 0x10]
mov ecx, 0x18
sub ecx, dword [esp + 8]
mov dword [esi + 0x1c], edi
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, edi
xor edx, dword [esp + 0x24]
shr edx, cl
and eax, 7
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov edx, ecx
mov dword [esp + 0x50], ecx
jmp 0x100232c6
imul edx, dword [edi], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi + 0x1c], eax
xor edx, dword [esp + 0x24]
shr edx, cl
add dword [esi + 0x58], edx
mov eax, edx
movzx ecx, dl
mov edx, dword [esp + 0x2c]
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0
movzx esi, byte [edx]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x24]
movsx eax, al
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x18], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x50], eax
inc ecx
cmp ecx, 4
jl 0x10023320
mov eax, dword [esp + 0x5c]
and esi, 0x3f
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x58]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x54]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x50]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
mov dword [esp + 0x2c], ecx
or edi, eax
mov edx, dword [esp + 0x2c]
mov ecx, esi
neg ecx
mov eax, edi
and ecx, 0x3f
call fcn.100950d0
mov dword [esp + 0x50], eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov eax, edi
mov edx, dword [esp + 0x2c]
call fcn.100950f0
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
or esi, eax
or edi, edx
ja 0x100233b1
test esi, esi
je 0x100233ff
cmp dword [esp + 0x38], 0
jbe 0x100233ff
push edi
push esi
call fcn.100218d0
add eax, dword [esp + 0x20]
add esp, 8
and eax, 0x3f
je 0x100233e9
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x34]
jb 0x100233ff
mov eax, dword [esp + 8]
mov dword [esp + eax*4 + 0x68], ecx
inc eax
dec dword [esp + 0x38]
mov dword [esp + 8], eax
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0x100233b1
jb 0x100233ff
test esi, esi
jne 0x100233b1
mov edx, dword [esp + 0x14]
mov esi, 0x3f
mov eax, 0
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, esi
mov esi, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x24]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 8], 0
jbe 0x100234b4
mov ecx, dword [esp + 0x10]
xor esi, esi
mov edi, 3
nop word [eax + eax]
mov edx, dword [esp + 0x30]
add edx, dword [esp + esi*4 + 0x68]
mov eax, dword [edx + edi - 3]
cmp eax, dword [edi + ecx - 3]
jne 0x10023497
push dword [esp + 0x40]
call fcn.1001b5f0
mov ecx, eax
add esp, 4
cmp ecx, edi
jbe 0x10023493
mov eax, dword [esp + 0xc]
mov edi, ecx
sub eax, dword [esp + esi*4 + 0x68]
mov edx, dword [esp + 0x4c]
add eax, 3
mov dword [edx], eax
mov eax, dword [esp + 0x10]
add eax, ecx
cmp eax, dword [esp + 0x40]
je 0x1002349e
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, dword [esp + 8]
jb 0x10023450
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x16c]
mov eax, 3
pop edi
pop esi
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret