Function at 0x100bada0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10175529
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x101cfdb0]
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
call fcn.1007fce0
mov ebx, eax
mov ecx, esi
mov dword [ebp - 0xe8], ebx
call fcn.1007fce0
mov ecx, dword [0x102710b4]
mov esi, eax
mov dword [ebp - 0xc4], esi
mov edx, dword [ecx + 0x47c]
test edx, edx
je 0x100bb2d7
mov edx, dword [edx + 0x30]
cmp ebx, edx
jbe 0x100baf2c
movaps xmm0, xmmword [0x101b7230]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x1c], 0x40140807
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0x8130103
xor ecx, ecx
mov word [ebp - 0x14], 0x4e
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x100bae31
sub esp, 0x1c
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x48]
push eax
call fcn.100492e0
add esp, 0x24
mov dword [ebp - 4], 0
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xbc], ecx
jb 0x100bae7a
mov ecx, dword [ecx]
mov dword [ebp - 0xbc], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100bae80
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10117010
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc0], edi
call fcn.101193b0
push ebx
push dword [ebp - 0xbc]
lea esi, [edi + 0x20]
push esi
call fcn.10118c50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xfff2ab
push dword [ebp - 0xc0]
mov eax, dword [0x101b06ec]
call eax
push edi
call fcn.101163d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100432e0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100baf0b
inc eax
push eax
push dword [ebp - 0x44]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
jmp 0x100bb047
jae 0x100bb05e
movaps xmm0, xmmword [0x101b7ec0]
sub edx, ebx
push edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x61d0f0d
xor ecx, ecx
mov word [ebp - 0x14], 0x40
nop
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x100baf50
sub esp, 0x1c
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x64]
push eax
call fcn.100492e0
add esp, 0x24
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xbc], ecx
jb 0x100baf99
mov ecx, dword [ecx]
mov dword [ebp - 0xbc], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100bafa0
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10117010
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc0], edi
call fcn.101193b0
push ebx
push dword [ebp - 0xbc]
lea esi, [edi + 0x20]
push esi
call fcn.10118c50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xff0000
push dword [ebp - 0xc0]
mov eax, dword [0x101b06ec]
call eax
push edi
call fcn.101163d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.100432e0
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100bb02b
inc eax
push eax
push dword [ebp - 0x60]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
push 8
push eax
call fcn.100479d0
mov esi, dword [ebp - 0xc4]
add esp, 8
mov ecx, dword [0x102710b4]
mov eax, dword [ecx + 0x47c]
mov edx, dword [eax + 0x34]
cmp esi, edx
jbe 0x100bb18d
movaps xmm0, xmmword [0x101b8640]
mov eax, esi
sub eax, edx
mov dword [ebp - 0x1c], 0x3c313c3f
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0x73383e33
xor ecx, ecx
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x17
jb 0x100bb093
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x80]
push eax
call fcn.100492e0
add esp, 0x24
mov dword [ebp - 4], 2
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xbc], ecx
jb 0x100bb0dc
mov ecx, dword [ecx]
mov dword [ebp - 0xbc], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100bb0e1
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10117010
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc0], edi
call fcn.101193b0
push ebx
push dword [ebp - 0xbc]
lea esi, [edi + 0x20]
push esi
call fcn.10118c50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xfff2ab
push dword [ebp - 0xc0]
mov eax, dword [0x101b06ec]
call eax
push edi
call fcn.101163d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.100432e0
mov eax, dword [ebp - 0x68]
cmp eax, 0x10
jb 0x100bb16c
inc eax
push eax
push dword [ebp - 0x7c]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
jmp 0x100bb2c0
jae 0x100bb2d7
movaps xmm0, xmmword [0x101b7700]
sub edx, esi
push edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x6e25232e
xor ecx, ecx
mov byte [ebp - 0x14], 0
nop
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x100bb1b0
sub esp, 0x1c
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x9c]
push eax
call fcn.100492e0
add esp, 0x24
mov dword [ebp - 4], 3
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xbc], ecx
jb 0x100bb1fc
mov ecx, dword [ecx]
mov dword [ebp - 0xbc], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100bb201
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10117010
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc0], edi
call fcn.101193b0
push ebx
push dword [ebp - 0xbc]
lea esi, [edi + 0x20]
push esi
call fcn.10118c50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xff0000
push dword [ebp - 0xc0]
mov eax, dword [0x101b06ec]
call eax
push edi
call fcn.101163d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.100432e0
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
jb 0x100bb295
inc eax
push eax
push dword [ebp - 0x98]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
push 8
push eax
call fcn.100479d0
mov esi, dword [ebp - 0xc4]
add esp, 8
mov ecx, dword [0x102710b4]
mov eax, dword [ecx + 0x47c]
mov edi, dword [ebp - 0xe8]
mov dword [ecx + 0x1c0], edi
mov dword [ecx + 0x1c8], esi
test eax, eax
je 0x100bb31b
mov dword [eax + 0x30], edi
mov eax, dword [0x102710b4]
mov eax, dword [eax + 0x47c]
mov dword [eax + 0x34], esi
mov ecx, dword [0x102710b4]
mov ecx, dword [ecx + 0x47c]
call fcn.1010c320
mov ecx, dword [0x102710b4]
cmp dword [ecx + 0x51c], 0
je 0x100bb4ca
push edi
sub esp, 0x1c
lea eax, [ebp - 0xc5]
mov esi, esp
mov dword [ebp - 0xe8], eax
lea ebx, [ebp - 0xe4]
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.10047940
add esp, 4
mov dword [ebp - 0xec], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [ebp - 4], 4
mov ecx, esi
push 0x10
push str.Knight_Cash_:__d
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
call fcn.10046d30
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.100492e0
add esp, 0x24
mov dword [ebp - 4], 5
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0x10
jb 0x100bb3c5
mov edx, dword [edx]
push edx
mov ecx, ebx
call fcn.100461a0
mov eax, dword [0x102710b4]
mov eax, dword [eax + 0x51c]
mov esi, dword [eax + 0x5c]
mov byte [ebp - 4], 6
test esi, esi
je 0x100bb3ff
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100bb3ff
lea eax, [ebp - 0xe4]
mov ecx, esi
push eax
call dword [0x101b07cc]
lea ecx, [ebp - 0xe4]
call fcn.100432e0
mov eax, dword [ebp - 0xcc]
cmp eax, 0x10
jb 0x100bb425
inc eax
push eax
push dword [ebp - 0xe0]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0xe4]
push 8
push eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov dword [ebp - 0xe4], 0
call fcn.100479d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.100432e0
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x100bb488
inc eax
push eax
push dword [ebp - 0xb4]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0xb8]
push 8
push eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov dword [ebp - 0xb8], 0
call fcn.100479d0
mov ecx, dword [0x102710b4]
add esp, 8
mov esi, dword [ebp - 0xc4]
mov eax, dword [ecx + 0x4b4]
test eax, eax
je 0x100bb4e6
push 0
push 1
push edi
mov ecx, eax
call fcn.10112370
mov ecx, dword [0x102710b4]
mov ecx, dword [ecx + 0x504]
test ecx, ecx
je 0x100bb4f7
push esi
push edi
call fcn.10075f50
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.101163c0
mov esp, ebp
pop ebp
ret