Function at 0x10059460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006af0d
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
jbe 0x10059b44
test eax, eax
je 0x10059b44
xor cl, cl
lea eax, [esi + 0x110]
mov edx, 6
cmp dword [eax - 4], 0
je 0x100594bf
cmp dword [eax], 0
jne 0x100594c1
inc cl
add eax, 0x14
sub edx, 1
jne 0x100594b4
test cl, cl
jne 0x10059646
movaps xmm0, xmmword [str._kTLI]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x100594e0
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059510
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10005220
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x10077660]
movups xmmword [ebp - 0xf8], xmm0
mov byte [ebp - 0xd8], 0
movaps xmm0, xmmword [0x10076fb0]
movups xmmword [ebp - 0xe8], xmm0
mov al, byte [ebp - 0xf8]
xor byte [ebp + ecx - 0xf7], al
inc ecx
cmp ecx, 0x1f
jb 0x10059552
xorps xmm0, xmm0
mov byte [ebp - 0xd8], 0
lea ecx, [ebp - 0xf7]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059590
sub ecx, edx
lea eax, [ebp - 0xf7]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10005220
push 0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x1007529c]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x100595fc
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100595f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059640
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x10059b44
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10059b3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10059b3a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, dword [ebp + 0x14]
xor cl, cl
nop dword [eax + eax]
movzx eax, cl
cmp edx, 1
jne 0x100597d8
lea eax, [eax + eax*4]
add eax, 0x46
cmp dword [esi + eax*4], 2
jne 0x100597e9
movaps xmm0, xmmword [0x100767b0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10059680
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100596b0
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10005220
mov dword [ebp - 4], 2
xor ecx, ecx
movaps xmm0, xmmword [0x10076ed0]
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x84], 0x303f6563
movaps xmm0, xmmword [0x10076ec0]
movups xmmword [ebp - 0xc4], xmm0
mov byte [ebp - 0x80], 0
movaps xmm0, xmmword [0x10077770]
movups xmmword [ebp - 0xb4], xmm0
movaps xmm0, xmmword [0x10077250]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x100774d0]
movups xmmword [ebp - 0x94], xmm0
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp - 0xd4]
xor byte [ebp + ecx - 0xd3], al
inc ecx
cmp ecx, 0x53
jb 0x10059730
xorps xmm0, xmm0
mov byte [ebp - 0x80], 0
lea ecx, [ebp - 0xd3]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059765
sub ecx, edx
lea eax, [ebp - 0xd3]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10005220
push 0
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x1007529c]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x100595fc
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100595f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059640
jmp 0x100595f2
cmp edx, 2
jne 0x100597e9
lea eax, [eax + eax*4]
add eax, 0x46
cmp dword [esi + eax*4], 1
je 0x10059822
inc cl
cmp cl, 6
jb 0x10059650
xor al, al
movzx ecx, al
mov dword [ebp - 0x7c], ecx
lea edi, [ecx + ecx*4]
cmp dword [esi + edi*4 + 0x10c], 0
ja 0x10059817
cmp dword [esi + edi*4 + 0x110], 0
jbe 0x1005997b
inc al
cmp al, 6
jb 0x100597f6
jmp 0x10059b44
movaps xmm0, xmmword [0x10076a10]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10059830
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059860
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10005220
mov dword [ebp - 4], 4
xor ecx, ecx
movaps xmm0, xmmword [0x10077170]
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x84], 0x4f401a
movaps xmm0, xmmword [str._N_]
movups xmmword [ebp - 0xc4], xmm0
movaps xmm0, xmmword [0x10076cf0]
movups xmmword [ebp - 0xb4], xmm0
movaps xmm0, xmmword [0x10076ad0]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x10076cc0]
movups xmmword [ebp - 0x94], xmm0
nop
mov al, byte [ebp - 0xd4]
xor byte [ebp + ecx - 0xd3], al
inc ecx
cmp ecx, 0x52
jb 0x100598d0
xorps xmm0, xmm0
mov byte [ebp - 0x81], 0
lea ecx, [ebp - 0xd3]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059908
sub ecx, edx
lea eax, [ebp - 0xd3]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10005220
push 0
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x1007529c]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x100595fc
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100595f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059640
jmp 0x100595f2
mov eax, 0x10624dd3
mul dword [ebp - 0x2c]
mov eax, edx
shr eax, 6
mov dword [ebp - 0x78], eax
imul eax, eax, 0x3e8
push eax
call dword [0x100751c4]
mov ecx, eax
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x10059b44
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 6
cmp dword [ecx], 0
je 0x10059a7f
mov eax, 0x12e0be83
mul dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
mov dword [ebp - 0x74], eax
cmp eax, 4
jae 0x10059a7f
cmp byte [ecx + 4], 0x2d
jae 0x10059a7f
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059a7c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x78]
imul eax, eax, 0x3e8
add eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x58]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call dword [0x100751c8]
test eax, eax
je 0x10059a7c
cmp dword [eax + 0x3c], 0
je 0x10059a7c
push dword [ebp - 0x2c]
xor edx, edx
lea ecx, [ebp - 0x70]
push eax
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x10059ad7
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10059acd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10059acd
jmp 0x10059640
mov ecx, dword [ebp - 0x58]
push dword [ebp - 0x2c]
mov edx, ecx
lea ecx, [ebp - 0xf0]
push 0
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0xdc]
cmp ecx, 0xf
jbe 0x10059ad7
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10059acd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059640
push ecx
push edx
call fcn.100662c0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [esi + edi*4 + 0x10c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + edi*4 + 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x114], eax
mov eax, dword [ebp - 0x7c]
lea eax, [eax + eax*4]
mov dword [esi + eax*4 + 0x118], ecx
mov esi, dword [esi + edi*4 + 0x11c]
test esi, esi
je 0x10059b29
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059b29
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x10075244]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10059b44
mov edx, dword [ebp - 0x28]
inc ecx
jmp 0x1005961e
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006625f
mov esp, ebp
pop ebp
ret 0x10