Function at 0x100cd6e0
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 0x100e092d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x100f0040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100f6abc], 0
je 0x100cd8c6
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x54], str.particle_vistasmokev1_vistasmokev1_fire
sub eax, ecx
mov dword [ebp - 0x50], str.particle_vistasmokev1_vistasmokev1_smokegrenade
mov ecx, eax
mov dword [ebp - 0x40], eax
xor esi, esi
sar ecx, 2
xorps xmm0, xmm0
mov dword [ebp - 0x4c], str.particle_vistasmokev1_vistasmokev1_emods
xor edi, edi
movq qword [ebp - 0x20], xmm0
xor eax, eax
mov dword [ebp - 0x48], str.particle_vistasmokev1_vistasmokev1_emods_impactdust
xor edx, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
test ecx, ecx
je 0x100cd810
cmp ecx, 0x3fffffff
ja 0x100cd8e4
lea edi, [ecx*4]
test edi, edi
jne 0x100cd7a7
mov dword [ebp - 0x24], esi
jmp 0x100cd7e7
cmp edi, 0x1000
jb 0x100cd7d9
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x100cd8e9
push eax
call fcn.100d6f28
add esp, 4
test eax, eax
je 0x100cd8b6
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [ebp - 0x24], esi
mov dword [esi - 4], eax
jmp 0x100cd7e7
push edi
call fcn.100d6f28
add esp, 4
mov dword [ebp - 0x24], eax
mov esi, eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], esi
push eax
add edi, esi
push esi
mov dword [ebp - 0x18], edi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x38], esi
lea edx, [esi + eax*4]
mov eax, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
cmp eax, edx
je 0x100cd893
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x34], 0xb3bea299
xor eax, eax
mov dword [ebp - 0x30], 0xb3a2f6a4
mov dword [ebp - 0x2c], 0xa4a3a2ae
mov word [ebp - 0x28], 0xa5b3
mov byte [ebp - 0x26], 0xd6
xor byte [ebp + eax - 0x34], 0xd6
inc eax
cmp eax, 0xf
jb 0x100cd851
mov ecx, dword [0x10121868]
lea edx, [ebp - 0x34]
push 0
push 1
push edx
mov eax, dword [ecx]
push dword [edi]
mov eax, dword [eax + 0x150]
call eax
push 1
mov ecx, eax
push 0x10000000
mov edx, dword [eax]
mov eax, dword [edx + 0x74]
call eax
add edi, 4
cmp edi, esi
jne 0x100cd830
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
test esi, esi
je 0x100cd8c6
sub edi, esi
mov eax, esi
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x100cd8bc
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100cd8bc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.100d7387
add esp, 8
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.100d6f0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1002f110
call fcn.10027fe0
int3