Function at 0x1005b1b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push esi
push edi
mov eax, dword [0x100a8080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
lea eax, [edi + 0x110]
xor cl, cl
mov edx, eax
mov esi, 6
nop
cmp dword [edx - 4], 0
je 0x1005b1fb
cmp dword [edx], 0
jne 0x1005b1fd
inc cl
add edx, 0x14
sub esi, 1
jne 0x1005b1f0
cmp cl, 6
jne 0x1005b37b
movaps xmm0, xmmword [str._qNVDS_ftQ]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x1005b220
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x23]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005b250
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.10005240
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x1009ff60]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x10474a4e
mov word [ebp - 0x14], 0x1f
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x1005b287
xorps xmm0, xmm0
mov byte [ebp - 0x13], 0
lea ecx, [ebp - 0x27]
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 0x1005b2b3
sub ecx, edx
lea eax, [ebp - 0x27]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10005240
push 0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x5c]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x1009dff0]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1005b320
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b316
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b566
push ecx
push edx
call fcn.100675d1
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x1005b555
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b360
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b566
push ecx
push edx
call fcn.100675d1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [esi + 6]
cmp dword [eax - 4], 0
jbe 0x1005b38e
cmp dword [eax], 0
jbe 0x1005b38e
add esi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x1005b380
mov eax, dword [edi + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
jne 0x1005b3ee
mov eax, dword [ebp - 0x10]
add eax, 0xe5
push 4
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
jne 0x1005b3ee
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x1005b3ee
mov edi, dword [ebp - 0x2c]
mov edi, dword [edi + 0x34]
test edi, edi
je 0x1005b3e8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b3e8
push eax
mov ecx, edi
call dword [0x1009df64]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push ecx
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.1000e990
add esp, 4
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x1005b40e
mov eax, dword [eax]
movaps xmm0, xmmword [0x1009f8b0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x5e080d
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x12
jb 0x1005b423
sub esp, 0x18
mov byte [ebp - 0x15], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005b453
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.10005240
lea eax, [ebp - 0x74]
push eax
call fcn.10004de0
add esp, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
mov esi, dword [eax + 0x100]
test esi, esi
je 0x1005b49c
push 4
push esi
call edi
test eax, eax
jne 0x1005b49c
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x1009dfc8]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x1005b4d4
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b4ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b56b
push ecx
push edx
call fcn.100675d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0xf
jbe 0x1005b520
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b516
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b56b
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov esi, dword [eax + 0xfc]
test esi, esi
je 0x1005b555
push 4
push esi
call edi
test eax, eax
jne 0x1005b555
push 1
mov ecx, esi
call dword [0x1009df64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1006cd3b
call fcn.1006cd3b
int3