Function at 0x100a7170
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 0x100d8605
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x100e8040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
cmp byte [0x1015224c], 0
je 0x100a7ab1
mov eax, dword [edi + 0x48]
sub eax, dword [edi + 0x44]
sar eax, 4
cmp eax, 1
jbe 0x100a7ab1
cmp byte [0x1014b994], 0
je 0x100a7ab1
movd xmm0, dword [edi + 0x34]
mov eax, dword [0x10161510]
movss xmm1, dword [edi + 0x2c]
cvtdq2ps xmm0, xmm0
subss xmm1, dword [eax + 0x10]
mulss xmm0, dword [eax + 0x20]
divss xmm1, xmm0
addss xmm1, dword [0x100ddeb8]
minss xmm1, dword [0x100ddf40]
ucomiss xmm1, dword [0x100dde64]
movss dword [ebp - 0x60], xmm1
lahf
test ah, 0x44
jnp 0x100a7ab1
mov eax, dword [0x10164180]
mov esi, dword [0x101522f0]
mov dword [ebp - 0x50], esi
test al, 1
jne 0x100a723f
or eax, 1
mov dword [0x10164180], eax
test al, 2
jne 0x100a724b
or eax, 2
mov dword [0x10164180], eax
mov eax, dword [0x10161688]
lea ecx, [edi + 8]
add eax, 0xffffffde
mov dword [ebp - 0x2c], 0
xor eax, 0xa7769c41
mov dword [ebp - 0x28], ecx
add eax, dword [0x1014b990]
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
subss xmm0, dword [ecx + 4]
subss xmm1, dword [ecx]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10027ee0
mulss xmm0, dword [0x100ddeb4]
mov ecx, dword [edi + 0x30]
cvttss2si eax, xmm0
mov dword [ebp - 0x24], eax
cmp ecx, 0x2c
jne 0x100a72bb
cmp eax, 0x19
jg 0x100a7308
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x100de03c]
jmp 0x100a72e7
cmp ecx, 0x2e
je 0x100a72d3
mov dword [ebp - 0x2c], 0
cmp ecx, 0x30
jne 0x100a7308
mov dword [ebp - 0x2c], 0
cmp eax, 0x14
jg 0x100a7308
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x100de050]
movss xmm0, dword [0x100de0e8]
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x2c], eax
cmp eax, 0xff
jle 0x100a7308
mov dword [ebp - 0x2c], 0xff
mov edx, 1
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], 0
nop
mov ecx, dword [edi + 0x48]
lea eax, [edx - 1]
sub ecx, dword [edi + 0x44]
sar ecx, 4
cmp ecx, eax
jbe 0x100a7ad1
mov edx, dword [ebp - 0x30]
mov eax, dword [edi + 0x44]
add edx, eax
mov dword [ebp - 0x54], edx
cmp ecx, dword [ebp - 0x1c]
jbe 0x100a7ad1
mov ecx, dword [ebp - 0x20]
mov edx, 0x10164198
lea ecx, [eax + ecx]
call fcn.100c12c0
mov ecx, dword [ebp - 0x54]
mov edx, 0x101641bc
mov byte [ebp - 0x49], al
call fcn.100c12c0
cmp byte [ebp - 0x49], 0
je 0x100a73c3
test al, al
je 0x100a73c3
cvttss2si eax, dword [0x101641c0]
mov ecx, dword [0x101614bc]
push esi
cvttss2si edi, dword [0x10164198]
mov dword [ebp - 0x54], eax
cvttss2si eax, dword [0x101641bc]
mov dword [ebp - 0x5c], eax
cvttss2si eax, dword [0x1016419c]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
push dword [ebp - 0x54]
mov ecx, dword [0x101614bc]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0x4c]
call eax
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x48]
mov edx, dword [ebp - 0x1c]
sub eax, dword [edi + 0x44]
inc edx
add dword [ebp - 0x30], 0x10
add dword [ebp - 0x20], 0x10
sar eax, 4
mov dword [ebp - 0x1c], edx
cmp edx, eax
jb 0x100a7320
mov edx, 0x10164198
lea ecx, [edi + 8]
call fcn.100c12c0
test al, al
jne 0x100a7850
cmp dword [ebp - 0x24], 0x1e
jg 0x100a7850
mov ecx, dword [0x101614d8]
mov eax, dword [ecx + 0xc4]
movq xmm0, qword [ecx + 0xbc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
movq qword [ebp - 0x3c], xmm0
movss xmm3, dword [eax]
movss xmm4, dword [eax + 4]
subss xmm3, dword [ebp - 0x3c]
subss xmm4, dword [ebp - 0x38]
movss xmm2, dword [eax + 8]
subss xmm2, dword [ebp - 0x34]
movaps xmm1, xmm3
movaps xmm0, xmm4
mulss xmm1, xmm3
mulss xmm0, xmm4
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.10027ee0
addss xmm0, dword [0x100dde70]
movss xmm1, dword [0x100ddf40]
mov eax, dword [ecx + 0xd0]
mov dword [ebp - 0x34], eax
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm0, xmm3
movss dword [ebp - 0x54], xmm4
movss dword [ebp - 0x5c], xmm0
movd xmm0, dword [0x1014ba68]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100ddefc]
movss dword [ebp - 0x20], xmm0
movq xmm0, qword [ecx + 0xc8]
movq qword [ebp - 0x3c], xmm0
movss xmm0, dword [ebp - 0x3c]
mulss xmm0, dword [0x100dde90]
call fcn.10027ea0
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x38]
mulss xmm0, dword [0x100dde90]
movss dword [ebp - 0x28], xmm0
call fcn.10027ea0
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [ebp - 0x28]
call fcn.10027ed0
movss xmm4, dword [ebp - 0x58]
movaps xmm3, xmm0
mulss xmm4, dword [ebp - 0x24]
mulss xmm3, dword [ebp - 0x24]
movaps xmm0, xmm4
mulss xmm0, xmm4
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
call fcn.10027ee0
addss xmm0, dword [0x100dde70]
movss xmm5, dword [0x100ddf40]
divss xmm5, xmm0
movaps xmm2, xmm5
mulss xmm5, xmm3
mulss xmm2, xmm4
movaps xmm0, xmm5
mulss xmm5, dword [ebp - 0x5c]
mulss xmm0, dword [ebp - 0x54]
movaps xmm1, xmm2
mulss xmm1, dword [ebp - 0x5c]
mulss xmm2, dword [ebp - 0x54]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x20]
subss xmm5, xmm2
mulss xmm1, xmm0
mulss xmm0, xmm5
xorps xmm1, xmmword [0x100de1e0]
call fcn.10027e70
mulss xmm0, dword [0x100ddf3c]
movss xmm1, dword [0x100de14c]
subss xmm1, xmm0
movss dword [ebp - 0x28], xmm1
movaps xmm0, xmm1
call fcn.10027ed0
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x28]
call fcn.10027ea0
movd xmm1, dword [0x1014ba64]
movaps xmm3, xmm0
movss xmm0, dword [ebp - 0x24]
mulss xmm0, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mulss xmm3, dword [ebp - 0x20]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x100ddf08]
addss xmm0, xmm1
cvttss2si edi, xmm0
movd xmm0, dword [0x1014ba68]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100ddf08]
subss xmm0, xmm3
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [0x10161510]
subss xmm0, dword [eax + 0x10]
mov eax, dword [ecx + 0x30]
add eax, 0xffffffd4
movss dword [ebp - 0x28], xmm0
cmp eax, 4
ja case.0x100a7611.47
jmp dword [eax*4 + 0x100a7ad8]
mov eax, str.SMOKE
jmp 0x100a7639
mov eax, str.FRAG
jmp 0x100a7639
mov eax, str.FIRE
jmp 0x100a7639
mov eax, 0x100dd844
jmp 0x100a7639
mov eax, 0x100dc9b6
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x3c], 0x9c94c791
mov dword [ebp - 0x38], 0xd2859a91
mov word [ebp - 0x34], 0x9de7
mov byte [ebp - 0x32], 0xb4
xor byte [ebp + eax - 0x3c], 0xb4
inc eax
cmp eax, 0xb
jb 0x100a7656
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x78]
call fcn.100a9650
add esp, 8
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 4], 0
push 2
push eax
push 0xffffffffffffffff
cvttss2si ecx, xmm0
movd xmm0, dword [ebp - 0x30]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x58], ecx
subss xmm0, dword [0x100ddf9c]
cvttss2si eax, xmm0
push eax
push ecx
mov ecx, 0x10163f14
call fcn.100c1750
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x100a76ee
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a76e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a76e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d0707
add esp, 8
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.DANGER
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
call fcn.1002e7c0
movd xmm0, dword [ebp - 0x30]
mov ecx, 0x10163f14
mov eax, dword [ebp - 0x2c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 4], 1
mov byte [ebp - 0x19], al
lea eax, [ebp - 0x48]
push 2
push eax
mov word [ebp - 0x1c], 0xff
subss xmm0, dword [0x100de008]
mov byte [ebp - 0x1a], 0
push dword [ebp - 0x1c]
cvttss2si eax, xmm0
push eax
push dword [ebp - 0x58]
call fcn.100c1750
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x100a7791
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a7787
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a7787
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d0707
add esp, 8
movd xmm0, dword [ebp - 0x30]
cvtdq2ps xmm0, xmm0
mov ecx, dword [0x101614bc]
mov edx, dword [ecx]
addss xmm0, dword [0x100ddffc]
cvttss2si eax, xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x18], eax
subss xmm0, dword [0x100de024]
cvttss2si eax, xmm0
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x4d]
bswap eax
push eax
mov eax, dword [edx + 0x38]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x101614bc]
add eax, 4
push eax
mov eax, dword [ebp - 0x20]
add eax, 0x2a
mov edx, dword [ecx]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
mov eax, dword [edx + 0x40]
call eax
movd xmm0, dword [ebp - 0x30]
mov ecx, dword [0x101614bc]
cvtdq2ps xmm0, xmm0
push esi
addss xmm0, dword [0x100de000]
cvttss2si eax, xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
subss xmm0, dword [0x100de020]
mov eax, dword [eax + 0x38]
cvttss2si edi, xmm0
call eax
mov edx, edi
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
movss xmm0, dword [ebp - 0x60]
mulss xmm0, dword [0x100de15c]
cvttss2si eax, xmm0
sub edx, eax
push edx
push dword [ebp - 0x18]
jmp 0x100a7a9f
mov eax, dword [0x10161510]
movss xmm0, dword [edi + 0x2c]
subss xmm0, dword [eax + 0x10]
mov eax, dword [edi + 0x30]
add eax, 0xffffffd4
movss dword [ebp - 0x28], xmm0
cmp eax, 4
ja case.0x100a786f.47
jmp dword [eax*4 + 0x100a7aec]
mov eax, str.SMOKE
jmp 0x100a7897
mov eax, str.FRAG
jmp 0x100a7897
mov eax, str.FIRE
jmp 0x100a7897
mov eax, 0x100dd844
jmp 0x100a7897
mov eax, 0x100dc9b6
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x3c], 0x9c94c791
mov dword [ebp - 0x38], 0xd2859a91
mov word [ebp - 0x34], 0x9de7
mov byte [ebp - 0x32], 0xb4
xor byte [ebp + eax - 0x3c], 0xb4
inc eax
cmp eax, 0xb
jb 0x100a78b4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x78]
call fcn.100a9650
add esp, 8
mov dword [ebp - 4], 2
movss xmm0, dword [0x1016419c]
subss xmm0, dword [0x100ddf9c]
cvttss2si ecx, dword [0x10164198]
push 2
push eax
push 0xffffffffffffffff
cvttss2si edx, xmm0
push edx
push ecx
mov ecx, 0x10163f14
call fcn.100c1750
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x100a7946
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a793c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a793c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d0707
add esp, 8
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.DANGER
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
call fcn.1002e7c0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x48]
movss xmm0, dword [0x1016419c]
subss xmm0, dword [0x100de008]
cvttss2si ecx, dword [0x10164198]
push 2
push eax
mov eax, dword [ebp - 0x2c]
movzx eax, al
shl eax, 0x18
or eax, 0xff
push eax
cvttss2si edx, xmm0
push edx
push ecx
mov ecx, 0x10163f14
call fcn.100c1750
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x100a79eb
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a79e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a79e1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d0707
add esp, 8
movss xmm0, dword [0x1016419c]
addss xmm0, dword [0x100ddffc]
mov ecx, dword [0x101614bc]
mov edx, dword [ecx]
cvttss2si eax, xmm0
movss xmm0, dword [0x10164198]
subss xmm0, dword [0x100de024]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x4d]
bswap eax
push eax
mov eax, dword [edx + 0x38]
cvttss2si edi, xmm0
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x101614bc]
add eax, 4
push eax
lea eax, [edi + 0x2a]
push eax
mov edx, dword [ecx]
push dword [ebp - 0x18]
push edi
mov eax, dword [edx + 0x40]
call eax
movss xmm0, dword [0x1016419c]
addss xmm0, dword [0x100de000]
mov ecx, dword [0x101614bc]
push esi
cvttss2si eax, xmm0
movss xmm0, dword [0x10164198]
subss xmm0, dword [0x100de020]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx]
cvttss2si edi, xmm0
mov eax, dword [eax + 0x38]
call eax
mov edx, edi
mov eax, dword [ebp - 0x50]
add eax, 2
push eax
movss xmm0, dword [ebp - 0x60]
mulss xmm0, dword [0x100de15c]
cvttss2si eax, xmm0
sub edx, eax
push edx
push dword [ebp - 0x50]
mov ecx, dword [0x101614bc]
push edi
mov esi, dword [ecx]
mov eax, dword [esi + 0x40]
call eax
mov al, 1
jmp 0x100a7ab3
xor al, al
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.100d028c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100a9420
nop
pop ds
jbe 269122277
adc byte [eax], bl
jbe 0x100a7ae9
adc byte [esi], ah
jbe 0x100a7aed
adc byte [esi + esi*2], dh
or dl, byte [eax]
sub eax, 0x7d100a76
jbe 0x100a7af1
adc byte [0x7d100a76], ch
jbe 0x100a7af5
adc byte [ebp + 0x78], bh
or dl, byte [eax]
jbe 0x100a7b6a
js 0x100a7af9
adc byte [esi + 0x78], dh
js 0x100a7afd
or dl, byte [eax]
test byte [eax + 0xa], bh
adc byte [eax + edi*2 + 0x7892100a], al
or dl, byte [eax]
mov edi, dword [eax + 0xa]
js 0x100a7b01
adc byte [edx - 0x74eff588], dl
js 0x100a7b05
adc byte [ebx + 0x53100a78], cl
js 0x100a7b09
adc byte [ebx - 0x75], dl
fadd qword [ebx - 0x1b7cf714]
invalid
or byte [ebx - 0x3b7c0f1c], al
add al, 0x55
push ss
adc byte [eax], al
add byte [eax], al
add bh, al
add eax, 0x10164194
add byte [eax], al
add byte [eax], al