Function at 0x100c0a40
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 0x100d4b0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x100e500c]
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 [0x100eb560], 0
je 0x100c0c16
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 0x100c0b6c
cmp ecx, 0x3fffffff
ja 0x100c0c34
lea edi, [ecx*4]
cmp edi, 0x1000
jb 0x100c0b2d
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x100c0c39
push eax
call fcn.100ca012
add esp, 4
test eax, eax
je 0x100c0c06
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x100c0b40
test edi, edi
je 0x100c0b3e
push edi
call fcn.100ca012
add esp, 4
mov esi, eax
jmp 0x100c0b40
xor esi, esi
push dword [ebp - 0x40]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], esi
push eax
add edi, esi
mov dword [ebp - 0x20], 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 0x100c0be3
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
nop dword [eax]
mov dword [ebp - 0x34], 0x8c819da6
xor eax, eax
mov dword [ebp - 0x30], 0x8c9dc99b
mov dword [ebp - 0x2c], 0x9b9c9d91
mov word [ebp - 0x28], 0x9a8c
mov byte [ebp - 0x26], 0xe9
xor byte [ebp + eax - 0x34], 0xe9
inc eax
cmp eax, 0xf
jb 0x100c0ba1
mov ecx, dword [0x1016a528]
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 0x100c0b80
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
test esi, esi
je 0x100c0c16
sub edi, esi
mov eax, esi
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x100c0c0c
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c0c0c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.100ca471
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.100c9ff6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10022fb0
call fcn.1001c3e0
int3