Function at 0x999570
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa926b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0
push 0xaaf4b8
mov ecx, 0xac2bac
mov dword [ebp - 4], 2
call fcn.009f4cf0
xor esi, esi
nop dword [eax + eax]
push 0
push 0x1338d
call fcn.00997d20
mov cl, byte [esi + 0xaa73c0]
add esp, 8
mov edx, dword [0xac2bbc]
xor cl, al
mov edi, dword [0xac2bc0]
mov byte [ebp - 0x1c], cl
cmp edx, edi
jae 0x9995bb
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0xac2bbc], eax
mov eax, 0xac2bac
cmovae eax, dword [0xac2bac]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x9995d1
push dword [ebp - 0x1c]
mov byte [ebp - 0x18], 0
mov ecx, 0xac2bac
push dword [ebp - 0x18]
push 1
call fcn.009928f0
inc esi
cmp esi, 0x10ce
jb 0x999570
mov dword [ebp - 0x18], 0x1006563
xor ecx, ecx
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x9995e3
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x999610
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00992810
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13]
xorps xmm0, xmm0
mov word [ebp - 0x13], 0xa
mov byte [ebp - 0x11], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x999650
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00992810
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov edi, 0xac2bac
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
cmovae ecx, edx
cmp dword [0xac2bc0], 0x10
mov eax, dword [0xac2bbc]
cmovae edi, dword [0xac2bac]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edi
cmp esi, eax
ja 0x999777
sub eax, esi
test esi, esi
jne 0x9996ad
xor edi, edi
jmp 0x999759
movsx ecx, byte [ecx]
inc eax
add eax, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
sub eax, edi
push eax
push ecx
push edi
call fcn.00a6fa00
mov edi, eax
add esp, 0xc
test edi, edi
je 0x999774
mov edx, dword [ebp - 0x1c]
mov ecx, edi
sub esi, 4
jb 0x9996f1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x9996f6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x9996e0
cmp esi, 0xfffffffc
je 0x99972a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x999723
cmp esi, 0xfffffffd
je 0x99972a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x999723
cmp esi, 0xfffffffe
je 0x99972a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x999723
cmp esi, 0xffffffff
je 0x99972a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x99972a
sbb eax, eax
or eax, 1
jmp 0x99972c
xor eax, eax
test eax, eax
je 0x99974e
mov eax, dword [ebp - 0x18]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x14]
push edi
call fcn.00a6fa00
mov esi, dword [ebp - 0x2c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x9996d0
jmp 0x999774
sub edi, dword [ebp - 0x24]
cmp edi, 0xffffffff
je 0x999774
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
mov ecx, 0xac2bac
push eax
push esi
push edi
call fcn.009f7870
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x9997ae
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x9997a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999f0c
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x9997e6
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x9997dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999f0c
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov dword [ebp - 0x18], 0x1006563
xor ecx, ecx
nop
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x9997f0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
push 0
push 0x132e8
call fcn.00997d20
mov edx, dword [ebx + 0x18]
add esp, 8
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x9999f2
mov ecx, eax
xor edi, edi
sub ecx, edx
mov esi, ecx
and ecx, 1
shr esi, 1
add ecx, esi
je 0x999881
nop dword [eax]
mov dword [ebp - 0x24], 0xf0fb8c
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x999850
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
mov eax, dword [ebp - 0x1c]
inc edi
mov edx, dword [ebx + 0x18]
sub eax, edx
and eax, 1
add eax, esi
cmp edi, eax
jb 0x999840
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9998a0
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x999eee
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.009fca20
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x3c]
call fcn.009f4e20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
mov ecx, 0xac2bac
call fcn.009f4e90
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x999952
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999948
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999ef3
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x99998a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999980
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999ef3
push ecx
push edx
call fcn.00a6c232
add esp, 8
test esi, esi
je 0x9999c4
nop
mov dword [ebp - 0x24], 0xf0fb8c
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x9999a0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
sub esi, 1
jne 0x999990
mov dword [ebp - 0x18], 0x1006563
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x9999d0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x999bbf
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x999a51
nop dword [eax]
mov dword [ebp - 0x24], 0xf0fb8c
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x999a20
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
mov eax, dword [ebp - 0x1c]
inc edi
mov edx, dword [ebx + 0x30]
sub eax, edx
and eax, 1
add eax, esi
cmp edi, eax
jb 0x999a10
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x999a70
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x999ef8
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
push edx
cmovae eax, dword [ebx + 0x20]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.009fca20
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x3c]
call fcn.009f4e20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 8
push eax
mov ecx, 0xac2bac
call fcn.009f4e90
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x999b22
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999b18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999efd
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x999b5a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999b50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999efd
push ecx
push edx
call fcn.00a6c232
add esp, 8
test esi, esi
je 0x999b94
nop
mov dword [ebp - 0x24], 0xf0fb8c
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x999b70
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
sub esi, 1
jne 0x999b60
mov dword [ebp - 0x18], 0x1006563
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x999ba0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x999d8f
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub eax, edx
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x999c21
nop dword [eax]
mov dword [ebp - 0x24], 0xf0fb8c
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x999bf0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
mov eax, dword [ebp - 0x1c]
inc edi
mov edx, dword [ebx + 0x48]
sub eax, edx
and eax, 1
add eax, esi
cmp edi, eax
jb 0x999be0
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x999c40
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x999f02
cmp dword [ebx + 0x4c], 0x10
lea eax, [ebx + 0x38]
push edx
cmovae eax, dword [ebx + 0x38]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.009fca20
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3c]
call fcn.009f4e20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
mov ecx, 0xac2bac
call fcn.009f4e90
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x999cf2
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999ce8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999f07
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x999d2a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999d20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999f07
push ecx
push edx
call fcn.00a6c232
add esp, 8
test esi, esi
je 0x999d64
nop
mov dword [ebp - 0x24], 0xf0fb8c
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x999d40
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
sub esi, 1
jne 0x999d30
mov dword [ebp - 0x18], 0x1006563
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0x6e]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x999d70
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
xor esi, esi
push 0
push 0x1338d
call fcn.00997d20
mov cl, byte [esi + 0xaa8490]
add esp, 8
mov edx, dword [0xac2bbc]
xor cl, al
mov edi, dword [0xac2bc0]
mov byte [ebp - 0x24], cl
cmp edx, edi
jae 0x999ddc
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0xac2bbc], eax
mov eax, 0xac2bac
cmovae eax, dword [0xac2bac]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x999df2
push dword [ebp - 0x24]
mov byte [ebp - 0x1c], 0
mov ecx, 0xac2bac
push dword [ebp - 0x1c]
push 1
call fcn.009928f0
inc esi
cmp esi, 0x14a
jb 0x999d91
mov dword [ebp - 0x18], 0x1006563
xor edx, edx
lea eax, [edx + 0x6e]
xor byte [ebp + edx - 0x18], al
inc edx
cmp edx, 2
jb 0x999e04
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0xac2bac
call fcn.009f4e20
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x999e57
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999e4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999f0c
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x999e99
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999e8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999f0c
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp ecx, 0x10
jb 0x999edb
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x999ed1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x999f0c
push ecx
push edx
call fcn.00a6c232
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00992040
call fcn.00a714d0
call fcn.00992040
call fcn.00a714d0
call fcn.00992040
call fcn.00a714d0
call fcn.00a714d0
int3