Function at 0x100d0490
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10131ffd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x1016c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x101df848], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xdc], 0xffffffff
mov dword [ebp - 0xd4], 0xffffffff
mov byte [ebp - 0x98], 1
mov dword [ebp - 0x90], 0
je 0x100d0eb2
push 0x13
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push str.effects_bullettrace
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10011990
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x101e9590
call fcn.100107b0
mov al, byte [eax]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x49], al
cmp edx, 0x10
jb 0x100d05e9
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d05dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100d05dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10128808
mov al, byte [ebp - 0x49]
add esp, 8
test al, al
je 0x100d0eb2
cmp byte [0x101df84c], 0
jne 0x100d0615
mov eax, dword [0x101e04fc]
cmp eax, dword [0x101e0500]
je 0x100d0eb2
mov dword [0x101e0500], eax
jmp 0x100d0eb2
mov edx, dword [0x101e0500]
sub edx, dword [0x101e04fc]
sar edx, 5
mov dword [ebp - 0x74], edx
test edx, edx
je 0x100d0eb2
mov ecx, dword [0x101f5c5c]
mov edi, edx
mov eax, dword [0x101df848]
add ecx, 0xffffffc2
xor ecx, 0xea42ce0a
shl edi, 5
movd xmm0, dword [ecx + eax]
mov eax, dword [0x101f46f4]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x20]
mov eax, edx
movss dword [ebp - 0x70], xmm0
mov esi, dword [0x101e04fc]
sub edi, 0x20
mov dword [ebp - 0x5c], eax
dec eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], edi
add esi, edi
je 0x100d0ea7
push 0x18
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x10160028
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10011990
movss xmm0, dword [ebp - 0x70]
mov dword [ebp - 4], 1
movd xmm1, dword [esi + 0x18]
mov eax, dword [0x101f46f4]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.10015ab0
lea eax, [ebp - 0x2c]
movss dword [ebp - 0x50], xmm0
push eax
mov ecx, 0x101e95b0
call fcn.10010790
movss xmm0, dword [ebp - 0x50]
movd xmm1, dword [eax]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
comiss xmm0, xmm1
seta al
mov byte [ebp - 0x49], al
cmp edx, 0x10
jb 0x100d0731
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d0724
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d05d6
push edx
push ecx
call fcn.10128808
mov al, byte [ebp - 0x49]
add esp, 8
test al, al
je 0x100d07ad
add edi, dword [0x101e04fc]
mov eax, dword [0x101e0500]
mov dword [ebp - 0x50], eax
lea esi, [edi + 0x20]
cmp esi, eax
je 0x100d079d
lea ecx, [edi + 0x14]
lea edx, [edi + 0x34]
mov eax, dword [esi]
lea edi, [edi + 0x20]
mov dword [edi - 0x20], eax
lea ecx, [ecx + 0x20]
mov eax, dword [edx - 0x10]
lea edx, [edx + 0x20]
mov dword [ecx - 0x30], eax
add esi, 0x20
mov eax, dword [edx - 0x2c]
mov dword [ecx - 0x2c], eax
mov eax, dword [edx - 0x28]
mov dword [ecx - 0x28], eax
mov eax, dword [edx - 0x24]
mov dword [ecx - 0x24], eax
mov eax, dword [edx - 0x20]
mov dword [ecx - 0x20], eax
mov eax, dword [edx - 0x1c]
mov dword [ecx - 0x1c], eax
movzx eax, byte [edx - 0x18]
mov byte [ecx - 0x18], al
movzx eax, byte [edx - 0x17]
mov byte [ecx - 0x17], al
cmp esi, dword [ebp - 0x50]
jne 0x100d0750
mov eax, dword [0x101e0500]
mov edi, dword [ebp - 0x54]
sub eax, 0x20
mov dword [0x101e0500], eax
jmp 0x100d0ea7
cmp byte [esi + 0x1c], 0
jne 0x100d0ea7
mov edx, dword [ebp - 0x74]
lea eax, [edx - 1]
cmp dword [ebp - 0x6c], eax
je 0x100d07dd
cmp dword [ebp - 0x5c], edx
jae 0x100d0ea7
mov eax, dword [0x101e04fc]
mov ecx, dword [esi + 0x18]
cmp ecx, dword [edi + eax + 0x38]
je 0x100d0ea7
movss xmm0, dword [esi + 0x10]
movss xmm7, dword [esi + 0xc]
movss xmm4, dword [esi]
movss xmm5, dword [esi + 4]
subss xmm4, xmm7
movss xmm3, dword [esi + 0x14]
subss xmm5, xmm0
movss xmm6, dword [esi + 8]
movss dword [ebp - 0x60], xmm0
subss xmm6, xmm3
movss dword [ebp - 0x64], xmm7
movaps xmm2, xmm4
movss dword [ebp - 0x68], xmm3
movaps xmm0, xmm5
mulss xmm2, xmm4
mulss xmm0, xmm5
addss xmm2, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm6
addss xmm2, xmm0
movaps xmm0, xmm2
call fcn.10004d50
addss xmm0, dword [0x101625ec]
movss xmm1, dword [0x10162728]
divss xmm1, xmm0
movaps xmm0, xmm2
call fcn.10004d50
mulss xmm4, xmm1
lea ecx, [ebp - 0x2c]
push 0x13
mulss xmm5, xmm1
mov dword [ebp - 0x2c], 0
mulss xmm6, xmm1
push str.effects_bullettrace
mulss xmm4, xmm0
mov dword [ebp - 0x1c], 0
mulss xmm5, xmm0
mov dword [ebp - 0x18], 0xf
mulss xmm6, xmm0
addss xmm4, xmm7
mov byte [ebp - 0x2c], 0
addss xmm5, dword [ebp - 0x60]
addss xmm6, xmm3
movss dword [ebp - 0x5c], xmm4
movss dword [ebp - 0x54], xmm5
movss dword [ebp - 0x50], xmm6
call fcn.10011990
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
mov ecx, 0x101e95b0
call fcn.10010790
mov eax, dword [eax]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
cmp edx, 0x10
jb 0x100d090a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d08fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d05d6
push edx
push ecx
call fcn.10128808
mov eax, dword [ebp - 0x58]
add esp, 8
cmp eax, 2
jne 0x100d0b09
movss xmm0, dword [ebp - 0x64]
mov eax, 0x10
movaps xmm1, xmmword [0x10163740]
movss dword [ebp - 0xf4], xmm0
movss xmm0, dword [ebp - 0x60]
movss dword [ebp - 0xf0], xmm0
movss xmm0, dword [ebp - 0x68]
subss xmm0, dword [0x10162854]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x1c], 0x1f061d45
mov byte [ebp - 0x18], 0x6b
movss dword [ebp - 0xec], xmm0
movss xmm0, dword [ebp - 0x5c]
movss dword [ebp - 0xe8], xmm0
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0xe4], xmm0
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0xe0], xmm0
movaps xmm0, xmmword [0x10162bb0]
pxor xmm0, xmm1
movups xmmword [ebp - 0x2c], xmm0
nop dword [eax]
xor byte [ebp + eax - 0x2c], 0x6b
inc eax
cmp eax, 0x15
jb 0x100d09a0
movaps xmm0, xmmword [0x10162bb0]
lea eax, [ebp - 0x2c]
pxor xmm0, xmm1
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x1c], 0x1f061d45
mov eax, 0x10
mov byte [ebp - 0x18], 0x6b
movups xmmword [ebp - 0x2c], xmm0
xor byte [ebp + eax - 0x2c], 0x6b
inc eax
cmp eax, 0x15
jb 0x100d09d3
mov ecx, dword [0x101f46cc]
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x10162e10]
pxor xmm0, xmmword [0x10163740]
mov dword [ebp - 0xdc], eax
mov eax, 0x10
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x38], 0x340e080a
mov dword [ebp - 0x34], 0xe06021f
mov byte [ebp - 0x30], 0x6b
movups xmmword [ebp - 0x48], xmm0
nop dword [eax]
xor byte [ebp + eax - 0x48], 0x6b
inc eax
cmp eax, 0x19
jb 0x100d0a30
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d0a60
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10011990
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 3
push eax
mov ecx, 0x101e95b0
call fcn.10010790
movd xmm0, dword [eax]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
movss dword [ebp - 0xc8], xmm0
cmp edx, 0x10
jb 0x100d0ad5
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d0acb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d05d6
push edx
push ecx
call fcn.10128808
add esp, 8
movaps xmm0, xmmword [0x10163230]
mov dword [ebp - 0xb4], 0x437f0000
mov dword [ebp - 0xb0], 0x3dcccccd
mov dword [ebp - 0x94], 5
mov dword [ebp - 0x90], 0x8300
jmp 0x100d0d74
push 0x13
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push str.effects_bullettrace
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10011990
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov ecx, 0x101e95b0
call fcn.10010790
mov eax, dword [eax]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
cmp edx, 0x10
jb 0x100d0b89
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d0b7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d05d6
push edx
push ecx
call fcn.10128808
mov eax, dword [ebp - 0x58]
add esp, 8
cmp eax, 1
jne 0x100d0d96
movss xmm0, dword [ebp - 0x64]
mov eax, 0x10
movss dword [ebp - 0xf4], xmm0
movss xmm0, dword [ebp - 0x60]
movss dword [ebp - 0xf0], xmm0
movss xmm0, dword [ebp - 0x68]
movss dword [ebp - 0xec], xmm0
movss xmm0, dword [ebp - 0x5c]
movss dword [ebp - 0xe8], xmm0
movss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0xe4], xmm0
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0xe0], xmm0
movaps xmm0, xmmword [0x10162c50]
pxor xmm0, xmmword [0x10163740]
mov dword [ebp - 0x38], 0x5a190e18
mov dword [ebp - 0x34], 0x1f061d45
mov byte [ebp - 0x30], 0x6b
movups xmmword [ebp - 0x48], xmm0
nop word [eax + eax]
xor byte [ebp + eax - 0x48], 0x6b
inc eax
cmp eax, 0x19
jb 0x100d0c10
mov ecx, dword [0x101f46cc]
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x10162c50]
movaps xmm1, xmmword [0x10163740]
pxor xmm0, xmm1
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x38], 0x5a190e18
mov eax, 0x10
mov dword [ebp - 0x34], 0x1f061d45
mov byte [ebp - 0x30], 0x6b
movups xmmword [ebp - 0x48], xmm0
nop
xor byte [ebp + eax - 0x48], 0x6b
inc eax
cmp eax, 0x19
jb 0x100d0c60
movaps xmm0, xmmword [0x10162e10]
lea eax, [ebp - 0x48]
pxor xmm0, xmm1
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xcc], 0
mov eax, 0x10
mov dword [ebp - 0x38], 0x340e080a
mov dword [ebp - 0x34], 0xe06021f
mov byte [ebp - 0x30], 0x6b
movups xmmword [ebp - 0x48], xmm0
xor byte [ebp + eax - 0x48], 0x6b
inc eax
cmp eax, 0x19
jb 0x100d0ca4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d0cd0
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10011990
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 5
push eax
mov ecx, 0x101e95b0
call fcn.10010790
movd xmm0, dword [eax]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
movss dword [ebp - 0xc8], xmm0
cmp edx, 0x10
jb 0x100d0d45
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d0d3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d05d6
push edx
push ecx
call fcn.10128808
add esp, 8
movaps xmm0, xmmword [0x10163100]
mov dword [ebp - 0xb4], 0x43660000
mov dword [ebp - 0xb0], 0x3f000000
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x98], 1
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
movups xmmword [ebp - 0xc4], xmm0
push 0x17
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x1015fff0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10011990
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 6
push eax
mov ecx, 0x101e95f0
call fcn.10010770
movss xmm1, dword [0x10162960]
movss xmm0, dword [eax + 8]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, xmm1
mov dword [ebp - 0x58], ecx
cvttss2si edx, xmm0
movss xmm0, dword [eax]
mulss xmm0, xmm1
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cvttss2si eax, xmm0
mov dword [ebp - 0x50], eax
cmp edx, 0x10
jb 0x100d0e4b
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d0e3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d05d6
push edx
push ecx
call fcn.10128808
mov ecx, dword [ebp - 0x58]
add esp, 8
mov eax, dword [ebp - 0x50]
movzx eax, al
movd xmm0, eax
mov eax, dword [ebp - 0x54]
cvtdq2ps xmm0, xmm0
movzx eax, al
movss dword [ebp - 0xa4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, cl
lea ecx, [ebp - 0x108]
movss dword [ebp - 0xa0], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x9c], xmm0
call fcn.1009d400
mov edx, eax
test edx, edx
je 0x100d0ea7
mov ecx, dword [0x101f4728]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [esi + 0x1c], 1
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x100d0661
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1012838d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret