Function at 0x100595b0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015b398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dl, byte [0x1018c73f]
mov al, byte [esp + 0x60]
push ebx
push esi
xor ebx, ebx
push edi
inc dl
push ebx
lea ecx, [esp + 0x34]
mov byte [0x1018c73f], dl
mov byte [esp + 0x34], al
call fcn.1000bc70
mov eax, 0xb4
mov ecx, 0xb7
mov word [esp + 0x40], ax
mov word [esp + 0x46], ax
mov word [esp + 0x56], ax
mov al, byte [0x101978d4]
test al, 1
mov dword [esp + 0x64], ebx
mov word [esp + 0x42], 0xb0
mov word [esp + 0x44], 0xbd
mov word [esp + 0x48], 0xa1
mov word [esp + 0x4a], cx
mov word [esp + 0x4c], 0xa0
mov word [esp + 0x4e], 0xa6
mov word [esp + 0x50], 0xea
mov word [esp + 0x52], 0xa5
mov word [esp + 0x54], cx
jne 0x10059676
lea ecx, [esp + 0x40]
push 0xc4
or al, 1
push ecx
mov ecx, 0x101978d8
mov byte [0x101978d4], al
call fcn.10044070
push 0x1005ef50
call fcn.1013c36b
add esp, 4
mov dl, byte [esp + 0x6c]
mov edi, dword [0x101978d8]
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x20]
push 1
push esi
call fcn.1000c010
test al, al
je 0x100596c2
mov eax, dword [esp + 0x24]
push esi
push edi
push eax
call fcn.100017d0
add esp, 0xc
lea ecx, [esp + 0x20]
push esi
call fcn.1000bff0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x6c], 1
call fcn.1008f160
add esp, 8
lea ecx, [esp + 0x20]
test al, al
push 1
mov byte [esp + 0x68], bl
sete byte [esp + 0x13]
call fcn.1000bc70
cmp byte [esp + 0xf], bl
jne 0x1005972a
push 1
call fcn.1008f800
mov eax, 0x34d
add esp, 4
cdq
idiv dword [0x1018c718]
mov eax, dword [0x1018c714]
mov cl, byte [edx + eax]
mov byte [0x1018c73d], cl
mov ecx, dword [esp + 0x6c]
cmp ecx, ebx
je 0x10059751
call fcn.10062d80
test al, al
je 0x10059751
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], 0xffffffff
call fcn.1000bc70
xor al, al
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
mov dl, byte [esp + 0x6c]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x10], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dl, byte [0x1018c73c]
lea eax, [esp + 0x10]
inc dl
push eax
mov byte [esp + 0x68], 2
mov byte [0x1018c73c], dl
sub esp, 0x10
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.10023d70
mov byte [esp + 0x78], 2
call fcn.100221a0
mov al, byte [0x1018c73d]
add esp, 0x14
mov byte [0x1018c73f], al
dec al
mov byte [0x1018c73d], al
mov eax, 0x46
mov word [esp + 0x40], ax
mov word [esp + 0x44], ax
mov word [esp + 0x48], ax
mov word [esp + 0x50], ax
mov al, byte [0x101978dc]
mov ecx, 0x69
test al, 1
mov word [esp + 0x42], 0x59
mov word [esp + 0x46], 0x43
mov word [esp + 0x4a], cx
mov word [esp + 0x4c], 0x42
mov word [esp + 0x4e], 0x4f
mov word [esp + 0x52], 0x53
mov word [esp + 0x54], 0x45
mov word [esp + 0x56], cx
mov word [esp + 0x58], 0x52
mov word [esp + 0x5a], 0x54
jne 0x10059879
or al, 1
push 0x1e
mov byte [0x101978dc], al
call fcn.1013c2df
add esp, 4
mov dword [0x101978e0], eax
xor esi, esi
mov di, word [esp + esi + 0x40]
push 0x36
mov eax, edi
mov ecx, 0x101978e0
and eax, 0xffff
push eax
call fcn.100a8ee0
mov ecx, dword [0x101978e0]
add eax, 0x36
xor eax, edi
mov word [esi + ecx], ax
add esi, 2
cmp esi, 0x1c
jb 0x10059832
mov edx, dword [0x101978e0]
push 0x1005efd0
mov word [edx + 0x1c], bx
call fcn.1013c36b
add esp, 4
mov esi, dword [0x101978e0]
mov al, byte [esp + 0x6c]
push esi
mov byte [esp + 0x24], al
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x20]
push eax
push esi
call fcn.1000bf40
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [0x10191a54]
push edx
mov byte [esp + 0x6c], 4
call fcn.10058e60
mov ecx, eax
call fcn.10068420
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x64], 2
cmp ecx, ebx
je 0x100598f3
mov al, byte [ecx - 1]
cmp al, bl
je 0x100598e7
cmp al, 0xff
je 0x100598e7
dec al
mov byte [ecx - 1], al
jmp 0x100598f3
lea eax, [ecx - 2]
push eax
call fcn.101307a0
add esp, 4
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp esi, edi
mov byte [esp + 0x64], bl
je 0x10059917
push 1
mov ecx, esi
call fcn.1000bc70
add esi, 0x10
cmp esi, edi
jne 0x10059903
mov esi, dword [esp + 0x14]
push esi
call fcn.101307a0
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
mov dword [esp + 0x64], 0xffffffff
je 0x1005996c
mov al, byte [ecx - 1]
cmp al, bl
je 0x10059960
cmp al, 0xff
je 0x10059960
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret