Function at 0x100cdd80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019b059
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x101f6e00]
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
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 4]
cmp eax, ecx
jbe 0x100cddc3
xor edi, edi
jmp 0x100cddce
push edi
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov edi, dword [eax]
add dword [esi + 8], 4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov dword [ebp - 0xd4], edi
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x100cddec
xor eax, eax
jmp 0x100cddf7
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov eax, dword [eax]
mov ecx, dword [0x10297f7c]
add dword [esi + 8], 4
mov dword [ebp - 0xcc], eax
mov edx, dword [ecx + 0x47c]
test edx, edx
je 0x100ce360
mov edx, dword [edx + 0x30]
cmp edi, edx
jbe 0x100cdf68
movaps xmm0, xmmword [0x101de7a0]
mov eax, edi
sub eax, edx
mov dword [ebp - 0x1c], 0xe5a4649
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0x465d4f4d
xor ecx, ecx
mov word [ebp - 0x14], 0
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x100cde50
sub esp, 0x1c
mov byte [ebp - 0x13], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100cde90
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x48]
push eax
call fcn.10052ec0
add esp, 0x24
mov dword [ebp - 4], 0
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
mov dword [ebp - 0xbc], ecx
jbe 0x100cdecf
mov ecx, dword [ecx]
mov dword [ebp - 0xbc], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100cded2
sub ecx, edx
mov dword [ebp - 0xc0], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1013d380
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc4], edi
call fcn.1013f8f0
push dword [ebp - 0xc0]
lea esi, [edi + 0x20]
push dword [ebp - 0xbc]
push esi
call fcn.1013f190
mov eax, dword [ebp - 0xc0]
add esp, 0x1c
mov dword [edi + 0x14], eax
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xfff2ab
push dword [ebp - 0xc4]
mov eax, dword [0x101d63dc]
call eax
push edi
call fcn.1013c8d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100477d0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], 0
jmp 0x100ce0a3
jae 0x100ce0b4
movaps xmm0, xmmword [0x101ddd70]
sub edx, edi
push edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x5b405250
xor ecx, ecx
mov word [ebp - 0x14], 0x1d
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x27]
xor al, byte [ebp - 0x28]
mov byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x100cdf90
sub esp, 0x1c
mov byte [ebp - 0x13], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100cdfd0
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x64]
push eax
call fcn.10052ec0
add esp, 0x24
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
mov dword [ebp - 0xc0], ecx
jbe 0x100ce00f
mov ecx, dword [ecx]
mov dword [ebp - 0xc0], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce012
sub ecx, edx
mov dword [ebp - 0xbc], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1013d380
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc4], edi
call fcn.1013f8f0
push dword [ebp - 0xbc]
lea esi, [edi + 0x20]
push dword [ebp - 0xc0]
push esi
call fcn.1013f190
mov eax, dword [ebp - 0xbc]
add esp, 0x1c
mov dword [edi + 0x14], eax
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xff0000
push dword [ebp - 0xc4]
mov eax, dword [0x101d63dc]
call eax
push edi
call fcn.1013c8d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.100477d0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], 0
push 8
push eax
call fcn.1013c8d0
mov ecx, dword [0x10297f7c]
add esp, 8
mov eax, dword [ecx + 0x47c]
mov esi, dword [ebp - 0xcc]
mov edx, dword [eax + 0x34]
cmp esi, edx
jbe 0x100ce208
movaps xmm0, xmmword [0x101def50]
mov eax, esi
sub eax, edx
mov dword [ebp - 0x1c], 0x373a3734
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0x78333538
xor ecx, ecx
mov byte [ebp - 0x14], 0
nop
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x17
jb 0x100ce0f0
sub esp, 0x1c
mov byte [ebp - 0x14], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce130
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x80]
push eax
call fcn.10052ec0
add esp, 0x24
mov dword [ebp - 4], 2
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
mov dword [ebp - 0xc0], ecx
jbe 0x100ce16f
mov ecx, dword [ecx]
mov dword [ebp - 0xc0], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce172
sub ecx, edx
mov dword [ebp - 0xbc], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1013d380
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc4], edi
call fcn.1013f8f0
push dword [ebp - 0xbc]
lea esi, [edi + 0x20]
push dword [ebp - 0xc0]
push esi
call fcn.1013f190
mov eax, dword [ebp - 0xbc]
add esp, 0x1c
mov dword [edi + 0x14], eax
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xfff2ab
push dword [ebp - 0xc4]
mov eax, dword [0x101d63dc]
call eax
push edi
call fcn.1013c8d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.100477d0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], 0
jmp 0x100ce34f
jae 0x100ce366
movaps xmm0, xmmword [0x101dec20]
sub edx, esi
push edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x2d66606d
xor ecx, ecx
mov byte [ebp - 0x14], 0
nop dword [eax]
mov al, byte [ebp + ecx - 0x27]
xor al, byte [ebp - 0x28]
mov byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x100ce230
sub esp, 0x1c
mov byte [ebp - 0x14], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce270
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x9c]
push eax
call fcn.10052ec0
add esp, 0x24
mov dword [ebp - 4], 3
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
mov dword [ebp - 0xc0], ecx
jbe 0x100ce2b2
mov ecx, dword [ecx]
mov dword [ebp - 0xc0], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce2b5
sub ecx, edx
mov dword [ebp - 0xbc], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1013d380
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc4], edi
call fcn.1013f8f0
push dword [ebp - 0xbc]
lea esi, [edi + 0x20]
push dword [ebp - 0xc0]
push esi
call fcn.1013f190
mov eax, dword [ebp - 0xbc]
add esp, 0x1c
mov dword [edi + 0x14], eax
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xff0000
push dword [ebp - 0xc4]
mov eax, dword [0x101d63dc]
call eax
push edi
call fcn.1013c8d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.100477d0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push 8
push eax
call fcn.1013c8d0
mov ecx, dword [0x10297f7c]
add esp, 8
mov esi, dword [ebp - 0xcc]
mov eax, dword [ecx + 0x47c]
mov edi, dword [ebp - 0xd4]
mov dword [ecx + 0x1c0], edi
mov dword [ecx + 0x1c8], esi
test eax, eax
je 0x100ce39f
mov dword [eax + 0x30], edi
mov eax, dword [ecx + 0x47c]
mov dword [eax + 0x34], esi
mov ecx, dword [ecx + 0x47c]
call fcn.10130b20
mov ecx, dword [0x10297f7c]
cmp dword [ecx + 0x51c], 0
je 0x100ce51d
push edi
sub esp, 0x1c
lea eax, [ebp - 0xcd]
mov esi, esp
mov dword [ebp - 0xc4], eax
xorps xmm0, xmm0
push 8
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.1013ca30
mov dword [ebp - 0xc8], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
push 0x20
mov dword [ebp - 4], 4
call fcn.100490d0
mov dword [esi + 4], eax
add esp, 8
mov dword [esi + 0x14], 0x10
mov dword [esi + 0x18], 0x1f
movups xmm0, xmmword [str.Knight_Cash_:__d]
mov dword [ebp - 4], 0xffffffff
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
lea eax, [ebp - 0xb8]
push eax
call fcn.10052ec0
add esp, 0x24
mov dword [ebp - 4], 5
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x100ce449
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xf0], 0
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
movups xmmword [ebp - 0xec], xmm0
mov dword [ebp - 0xd8], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ce476
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xf0]
call fcn.100484d0
mov eax, dword [0x10297f7c]
mov eax, dword [eax + 0x51c]
mov esi, dword [eax + 0x5c]
mov byte [ebp - 4], 6
test esi, esi
je 0x100ce4be
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100ce4be
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
call dword [0x101d64a4]
lea ecx, [ebp - 0xf0]
call fcn.100477d0
mov eax, dword [ebp - 0xf0]
push 8
push eax
mov dword [ebp - 0xf0], 0
call fcn.1013c8d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.100477d0
mov eax, dword [ebp - 0xb8]
push 8
push eax
mov dword [ebp - 0xb8], 0
call fcn.1013c8d0
mov ecx, dword [0x10297f7c]
add esp, 8
mov esi, dword [ebp - 0xcc]
mov eax, dword [ecx + 0x4b4]
test eax, eax
je 0x100ce539
push 0
push 1
push edi
mov ecx, eax
call fcn.10137f20
mov ecx, dword [0x10297f7c]
mov ecx, dword [ecx + 0x504]
test ecx, ecx
je 0x100ce54a
push esi
push edi
call fcn.100784d0
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.1013c8c0
mov esp, ebp
pop ebp
ret