Function at 0x1004a9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094b11
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x37
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x2b], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.10004a40
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x1b4]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1004aa26
push 4
push edi
call ebx
test eax, eax
jne 0x1004aa26
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1004aa42
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.100048f0
push 0
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x2e
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x2b], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.10004a40
mov dword [ebp - 4], 1
mov edi, dword [esi + 0x1b8]
test edi, edi
je 0x1004aa92
push 4
push edi
call ebx
test eax, eax
jne 0x1004aa92
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1004aaae
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.100048f0
push 0
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x6e
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x2b], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.10004a40
mov dword [ebp - 4], 2
mov edi, dword [esi + 0x1bc]
test edi, edi
je 0x1004aafe
push 4
push edi
call ebx
test eax, eax
jne 0x1004aafe
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x100ad8c4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1004ab1a
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.100048f0
mov ecx, dword [esi + 0x198]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
test ecx, ecx
je 0x1004af22
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100ad844]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x1004af22
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
mov ecx, edi
mov edx, dword [esi + 0x198]
call fcn.1000ee90
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1004abb0
cmp dword [eax + 0x3c], 0
je 0x1004abb0
push dword [esi + 0x198]
xor edx, edx
lea ecx, [ebp - 0x74]
push eax
call fcn.1000efe0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000f870
jmp 0x1004ac02
push dword [esi + 0x198]
mov edx, edi
lea ecx, [ebp - 0x74]
push 0
call fcn.1000efe0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x1004abfe
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1004abe3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100048f0
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100042c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x1004ac17
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.100048f0
mov edi, dword [esi + 0x1bc]
test edi, edi
je 0x1004ac36
push 4
push edi
call ebx
test eax, eax
jne 0x1004ac36
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call dword [0x100ad8c4]
push dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x74]
call fcn.1000f330
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 5
mov edi, dword [esi + 0x1ac]
test edi, edi
je 0x1004ac6c
push 4
push edi
call ebx
test eax, eax
jne 0x1004ac6c
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x100ad8f4]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x1004ac85
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.100048f0
mov eax, dword [esi + 0x1a4]
cmp eax, 1
jne 0x1004acfa
mov edx, dword [esi + 0x1a0]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10012960
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x1004acae
mov eax, dword [eax]
movaps xmm0, xmmword [0x100af670]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x4c], 0x6a3c
mov byte [ebp - 0x4a], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x11
jb 0x1004acc6
sub esp, 0x18
mov byte [ebp - 0x4a], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10004b40
lea eax, [ebp - 0x48]
push eax
call fcn.100043b0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 7
jmp 0x1004ad72
cmp eax, 2
jne 0x1004add0
mov edx, dword [esi + 0x1a0]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10012960
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x1004ad21
mov eax, dword [eax]
movaps xmm0, xmmword [0x100afcc0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x4c], 0x2274
mov byte [ebp - 0x4a], 0
nop dword [eax]
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x11
jb 0x1004ad40
sub esp, 0x18
mov byte [ebp - 0x4a], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10004b40
lea eax, [ebp - 0x48]
push eax
call fcn.100043b0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
mov edi, dword [esi + 0x1b4]
test edi, edi
je 0x1004ad90
push 4
push edi
call ebx
test eax, eax
jne 0x1004ad90
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x100ad8f4]
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1004ada5
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.100048f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
cmp eax, 0x10
jb 0x1004add0
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.100048f0
mov edx, dword [esi + 0x19c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10012960
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x1004adee
mov eax, dword [eax]
movaps xmm0, xmmword [0x100af430]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x5d0b0e
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x12
jb 0x1004ae03
sub esp, 0x18
mov byte [ebp - 0x49], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1004ae3f
mov eax, dword [edx]
jmp 0x1004ae41
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x5b], 0
jne 0x1004ae4e
xor ecx, ecx
jmp 0x1004ae5d
lea ecx, [ebp - 0x5b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004ae54
sub ecx, edi
push ecx
lea eax, [ebp - 0x5b]
mov ecx, edx
push eax
call fcn.10004a40
lea eax, [ebp - 0x8c]
push eax
call fcn.100043b0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xb
mov edi, dword [esi + 0x1b8]
test edi, edi
je 0x1004ae9d
push 4
push edi
call ebx
test eax, eax
jne 0x1004ae9d
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x100ad8f4]
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x1004aeb8
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.100048f0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
cmp eax, 0x10
jb 0x1004aee2
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.100048f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x1004af10
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100048f0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov esi, dword [esi + 0x1a8]
test esi, esi
je 0x1004af3f
push 4
push esi
call ebx
test eax, eax
jne 0x1004af3f
push 1
mov ecx, esi
call dword [0x100ad890]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005baa0
mov esp, ebp
pop ebp
ret