Function at 0x1005a930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009bc67
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x100bd078]
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
mov edi, dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1005a983
push 4
push edi
call ebx
test eax, eax
jne 0x1005a983
lea ecx, [edi + 0xd0]
mov dl, 2
call fcn.10017320
mov ecx, dword [0x100c19b4]
test ecx, ecx
je 0x1005a9c7
mov edx, dword [esi + 0x68]
cmp edx, 1
jne 0x1005a99d
mov eax, dword [ecx + 0x44]
cmp eax, dword [esi + 0x64]
jb 0x1005a9aa
cmp edx, 2
jne 0x1005a9c7
mov eax, dword [ecx + 0x48]
cmp eax, dword [esi + 0x64]
jae 0x1005a9c7
mov edi, dword [esi + 0x54]
test edi, edi
je 0x1005a9c7
push 4
push edi
call ebx
test eax, eax
jne 0x1005a9c7
mov dl, 7
lea ecx, [edi + 0xd0]
call fcn.10017320
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x1005adc8
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.100173f0
mov ecx, eax
call dword [0x100b0d3c]
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
je 0x1005adc8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x60]
mov cl, byte [edi + 4]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.1000b6c0
mov ebx, eax
test ebx, ebx
je 0x1005aa56
cmp dword [ebx + 0x48], 0
je 0x1005aa56
push dword [esi + 0x60]
xor edx, edx
lea ecx, [ebp - 0x74]
push ebx
call fcn.1000b960
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.1000f1d0
lea ecx, [ebp - 0x74]
call fcn.10002340
jmp 0x1005aabd
push dword [esi + 0x60]
mov edx, edi
lea ecx, [ebp - 0x28]
push 0
call fcn.1000b960
add esp, 8
mov edi, eax
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x1005aaa1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1005aa86
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002760
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10006190
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1005aaba
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002760
mov edi, dword [ebp - 0x44]
push ebx
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.1000bc40
add esp, 4
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [esi + 0x40]
call fcn.100170e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1005aaf2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002760
mov eax, dword [esi + 0x68]
cmp eax, 1
jne 0x1005abb2
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x74]
push 0x2e
call fcn.10012630
add esp, 4
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x1005ab1a
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1d60]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x1005ab30
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10002980
lea eax, [ebp - 0x28]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [esi + 0x44]
call fcn.100170e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1005ab7e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002760
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x1005ac32
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.10002760
jmp 0x1005ac32
cmp eax, 2
jne 0x1005ac32
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x28]
push 0x2e
call fcn.10012630
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1005abd3
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1f30]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x1005abe5
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10002980
lea eax, [ebp - 0x74]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [esi + 0x44]
call fcn.100170e0
lea ecx, [ebp - 0x74]
call fcn.10002340
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10002340
mov edx, dword [esi + 0x6c]
lea ecx, [ebp - 0x74]
push 0x2e
call fcn.10012630
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x1005ac4e
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1aa0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x70
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x1005ac62
sub esp, 0x18
mov byte [ebp - 0x47], 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 0x1005ac9e
mov eax, dword [edx]
jmp 0x1005aca0
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x57], 0
jne 0x1005acad
xor ecx, ecx
jmp 0x1005acc0
lea ecx, [ebp - 0x57]
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005acb6
sub ecx, dword [ebp - 0x44]
push ecx
lea eax, [ebp - 0x57]
mov ecx, edx
push eax
call fcn.10002880
lea eax, [ebp - 0x28]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0x48]
call fcn.100170e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1005acfb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002760
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x1005ad26
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.10002760
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1005ad9d
add ecx, 4
lea edx, [ebp - 0x40]
call fcn.10011f00
mov eax, dword [esi + 0x50]
mov dword [eax + 0x50], edi
mov eax, dword [esi + 0x50]
mov dword [eax + 0x54], ebx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x58], 1
test ebx, ebx
je 0x1005ad5e
movsx ecx, word [ebx + 0x56]
movsx eax, word [edi + 0x66]
add ecx, eax
jmp 0x1005ad62
movsx ecx, word [edi + 0x66]
mov eax, dword [esi + 0x50]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [eax]
test ecx, ecx
je 0x1005ad9d
lea edx, [ebp - 0x40]
call fcn.10016d50
mov eax, dword [esi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [eax]
test edi, edi
je 0x1005ada3
push 4
push edi
call ebx
test eax, eax
jne 0x1005ada3
push 1
mov ecx, edi
call dword [0x100b0d90]
jmp 0x1005ada3
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1005b0b0
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002760
jmp 0x1005b0b0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1005b0b0
cmp eax, 0x5f5e100
jae 0x1005b0b0
mov edx, dword [esi + 0x74]
sub edx, dword [esi + 0x70]
sar edx, 2
call fcn.10012150
mov ecx, dword [esi + 0x70]
mov edi, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], edi
test edi, edi
je 0x1005b0b0
mov eax, dword [esi + 0x68]
cmp eax, 1
jne 0x1005ae8c
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x8c]
push 0x2e
call fcn.10012630
add esp, 4
mov dword [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x1005ae2c
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b2150]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
nop
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x1005ae40
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10002980
lea eax, [ebp - 0x74]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0x44]
call fcn.100170e0
lea ecx, [ebp - 0x74]
call fcn.10002340
lea ecx, [ebp - 0x8c]
jmp 0x1005af10
cmp eax, 2
jne 0x1005af1c
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x74]
push 0x2e
call fcn.10012630
add esp, 4
mov dword [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x1005aeb4
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1e50]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x48], 0
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xf
jb 0x1005aec6
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10002980
lea eax, [ebp - 0x8c]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 0xc
mov edx, eax
mov ecx, dword [esi + 0x44]
call fcn.100170e0
lea ecx, [ebp - 0x8c]
call fcn.10002340
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.10002340
mov edx, dword [esi + 0x6c]
lea ecx, [ebp - 0x74]
push 0x2e
call fcn.10012630
add esp, 4
mov dword [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x1005af3b
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b1bd0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x66
nop
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x1005af50
sub esp, 0x18
mov byte [ebp - 0x47], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10002980
lea eax, [ebp - 0x8c]
push eax
call fcn.10009ac0
add esp, 0x20
mov byte [ebp - 4], 0xe
mov edx, eax
mov ecx, dword [esi + 0x48]
call fcn.100170e0
lea ecx, [ebp - 0x8c]
call fcn.10002340
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.10002340
mov ecx, edi
call fcn.1000b690
mov ebx, eax
test ebx, ebx
je 0x1005b0aa
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xf
call fcn.10008840
mov cl, byte [ebx + 4]
mov edx, edi
call fcn.1000b6c0
mov edi, eax
test edi, edi
je 0x1005b013
cmp dword [edi + 0x48], 0
je 0x1005b013
push dword [ebp - 0x44]
xor edx, edx
lea ecx, [ebp - 0x8c]
push edi
call fcn.1000b960
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000f1d0
lea ecx, [ebp - 0x8c]
jmp 0x1005b037
push dword [ebp - 0x44]
mov edx, ebx
lea ecx, [ebp - 0xa4]
push 0
call fcn.1000b960
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000f1d0
lea ecx, [ebp - 0xa4]
call fcn.10002340
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1005b09b
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.10011f00
mov eax, dword [esi + 0x50]
mov dword [eax + 0x50], ebx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x54], edi
mov eax, dword [esi + 0x50]
mov dword [eax + 0x58], 1
test edi, edi
je 0x1005b074
movsx ecx, word [edi + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x1005b078
movsx ecx, word [ebx + 0x66]
mov eax, dword [esi + 0x50]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [eax]
test ecx, ecx
je 0x1005b09b
lea edx, [ebp - 0x28]
call fcn.10016d50
mov ecx, dword [esi + 0x50]
mov dl, 1
mov ecx, dword [ecx]
call fcn.100168c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10002340
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, esi
call fcn.1005a2e0
mov ecx, esi
call fcn.1005b100
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x1005b0d8
push 4
push esi
call ebx
test eax, eax
jne 0x1005b0d8
push 1
mov ecx, esi
call dword [0x100b0d90]
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.10067c75
mov esp, ebp
pop ebp
ret