Function at 0x100678e0
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 0x100cb6af
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x100f2040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
movzx eax, word [ebx + 8]
push eax
mov dword [ebp - 4], 0
call fcn.10010340
test eax, eax
je 0x100679d3
cmp dword [eax + 0x1c], 0xf
lea edx, [eax + 8]
jbe 0x1006794a
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067977
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.10003370
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x10067af1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10067af1
cmp dword [ebp - 0x98], 0xf
lea ecx, [ebp - 0xac]
cmova ecx, dword [ebp - 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100679c7
jmp 0x10067a8b
mov dl, 0x33
mov dword [ebp - 0x44], 0x5d460f33
mov dword [ebp - 0x40], 0x445c5d58
xor ecx, ecx
mov word [ebp - 0x3c], 0xd5d
mov byte [ebp - 0x3a], 0
nop
xor byte [ebp + ecx - 0x43], dl
inc ecx
cmp ecx, 9
jae 0x100679ff
mov dl, byte [ebp - 0x44]
jmp 0x100679f0
xorps xmm0, xmm0
mov byte [ebp - 0x3a], 0
lea ecx, [ebp - 0x43]
mov dword [ebp - 0xb0], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x9c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x98], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067a31
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0xb0]
call fcn.10003370
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x10067af1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10067af1
cmp dword [ebp - 0x98], 0xf
lea ecx, [ebp - 0xac]
cmova ecx, dword [ebp - 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067a84
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x98], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0xac]
push dword [ebp - 0x38]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6db0]
push edi
call fcn.100891b0
add esp, 4
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0xb0]
push 8
push eax
mov dword [ebp - 0xb0], 0
call fcn.100891b0
mov eax, dword [ebx + 0x10]
add esp, 8
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0xb4], ecx
cmp eax, ecx
je 0x1006822b
nop word [eax + eax]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x48], edi
movzx eax, ax
test edi, edi
je 0x1006821a
test ax, ax
je 0x1006821a
mov esi, dword [0x100e6d00]
mov eax, 0x10624dd3
mul edi
mov ecx, 0xd78ae8
mov eax, edx
shr eax, 6
mov dword [ebp - 0x54], eax
imul eax, eax, 0x3e8
push eax
call fcn.1001e350
mov ecx, eax
call esi
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x10067e93
xorps xmm0, xmm0
mov word [ebp - 0x4c], 3
lea ecx, [ebp - 0x4b]
mov byte [ebp - 0x4b], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067bc5
sub ecx, edx
lea eax, [ebp - 0x4b]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10003370
mov eax, 0x12e0be83
mov byte [ebp - 4], 3
mov cl, byte [esi + 4]
mov esi, edi
mul edi
mov byte [ebp - 0x55], cl
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x10067c9f
cmp cl, 0x2d
jae 0x10067c9f
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10067c9f
sub esi, dword [ebp - 0x54]
movzx ecx, byte [ebp - 0x55]
mov edx, dword [0x100e6d04]
imul eax, esi, 0x3e8
mov ecx, dword [ecx*4 + 0xd78af0]
add eax, edi
push eax
call edx
mov edi, eax
mov esi, edi
test edi, edi
je 0x10067ca3
cmp dword [edi + 0x48], 0
je 0x10067ca3
push dword [ebp - 0x48]
xor edx, edx
lea ecx, [ebp - 0x90]
push edi
call fcn.1000f930
mov esi, eax
add esp, 8
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x10067c78
mov ecx, eax
call fcn.10002f50
push esi
lea ecx, [ebp - 0x30]
call fcn.100082f0
lea ecx, [ebp - 0x90]
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.100891b0
mov esi, edi
jmp 0x10067cf6
xor esi, esi
jmp 0x10067ca6
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x90]
push edi
push 0
call fcn.1000f930
mov edi, eax
add esp, 8
lea eax, [ebp - 0x30]
cmp eax, edi
je 0x10067cd3
mov ecx, eax
call fcn.10002f50
push edi
lea ecx, [ebp - 0x30]
call fcn.100082f0
lea ecx, [ebp - 0x90]
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.100891b0
movzx eax, byte [ebp - 0x31]
add esp, 8
lea edi, [eax + eax*2]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], edi
mov ecx, dword [eax + edi*8 + 0x3c]
test ecx, ecx
je 0x10067e11
add ecx, 4
lea edx, [ebp - 0x30]
call fcn.10018220
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x50], ecx
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x54], esi
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x58], 0
test esi, esi
je 0x10067d4f
mov eax, dword [ebp - 0x38]
movsx ecx, word [esi + 0x56]
movsx eax, word [eax + 0x66]
add ecx, eax
jmp 0x10067d53
movsx ecx, word [ecx + 0x66]
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x5c], ecx
mov eax, dword [edx + edi*8 + 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10067e11
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10067ded
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067d86
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x2c]
push dword [ebp - 0x38]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6d88]
push edi
call fcn.100891b0
mov edi, dword [ebp - 0x48]
add esp, 4
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + edi*8 + 0x3c]
mov esi, dword [eax]
test esi, esi
je 0x10067e11
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10067e11
push 1
mov ecx, esi
call dword [0x100e6d54]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.100891b0
add esp, 8
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x94]
sub esp, 8
movss xmm1, dword [0x100e8808]
mov dl, 0x7c
movzx eax, ax
xor ecx, ecx
mov dword [ebp - 0x44], 0x4e52597c
mov dword [ebp - 0x40], 0x59591a10
mov byte [ebp - 0x3c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
minss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [ebp - 0x94], xmm1
movsd qword [esp], xmm0
nop
xor byte [ebp + ecx - 0x43], dl
inc ecx
cmp ecx, 7
jae 0x1006811f
mov dl, byte [ebp - 0x44]
jmp 0x10067e80
lea eax, [edi - 1]
cmp eax, 0x5f5e0fe
ja 0x10067e32
movzx eax, byte [ebp - 0x31]
lea esi, [eax + eax*2]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], esi
mov dword [eax + esi*8 + 0x28], edi
mov edi, eax
cmp dword [edi + esi*8 + 0x3c], 0
je 0x100680f0
movaps xmm0, xmmword [str.l9_0]
xor ecx, ecx
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0x4218091e
mov dword [ebp - 0x60], 0x181408
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x73]
xor al, byte [ebp - 0x74]
mov byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0x16
jb 0x10067ee0
xorps xmm0, xmm0
mov byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x73]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x78], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067f20
sub ecx, edx
lea eax, [ebp - 0x73]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.10003370
mov byte [ebp - 4], 4
lea edx, [ebp - 0x90]
mov ecx, dword [edi + esi*8 + 0x3c]
add ecx, 4
call fcn.10018220
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.100891b0
mov eax, dword [edi + esi*8 + 0x3c]
add esp, 8
cmp dword [eax], 0
je 0x100680f0
movaps xmm0, xmmword [str.q_8_]
xor ecx, ecx
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0x5f051403
mov dword [ebp - 0x60], 0x50915
mov al, byte [ebp + ecx - 0x73]
xor al, byte [ebp - 0x74]
mov byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0x16
jb 0x10067fa1
xorps xmm0, xmm0
mov byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x73]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x78], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067fe0
sub ecx, edx
lea eax, [ebp - 0x73]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.10003370
mov byte [ebp - 4], 5
mov eax, dword [edi + esi*8 + 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x100680a3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100680a3
cmp dword [ebp - 0x78], 0xf
lea ecx, [ebp - 0x8c]
cmova ecx, dword [ebp - 0x8c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068033
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea edx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x8c]
push dword [ebp - 0x38]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6d88]
push edi
call fcn.100891b0
mov edi, dword [ebp - 0x50]
add esp, 4
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.100891b0
mov eax, dword [edi + esi*8 + 0x3c]
add esp, 8
mov esi, dword [eax]
test esi, esi
je 0x100680ed
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100680ed
push eax
mov ecx, esi
call dword [0x100e6d54]
mov esi, dword [ebp - 0x48]
mov esi, dword [edi + esi*8 + 0x38]
test esi, esi
je 0x10067e35
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10067e35
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.1001e280
jmp 0x10067e35
sub esp, 0x1c
mov byte [ebp - 0x3c], 0
mov edx, esp
lea ecx, [ebp - 0x43]
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068150
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x90]
push eax
call fcn.1000d650
add esp, 0x28
movzx esi, byte [ebp - 0x31]
mov edx, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x54], esi
lea ecx, [esi + esi*2]
mov ecx, dword [edi + ecx*8 + 0x30]
call fcn.1001e150
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.100891b0
lea eax, [esi + esi*2]
add esp, 8
mov esi, dword [edi + eax*8 + 0x34]
test esi, esi
je 0x100681ef
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100681ef
movss xmm0, dword [ebp - 0x94]
sub esp, 0xc
mov ecx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x100e6d9c]
mov esi, dword [ebp - 0x54]
mov esi, dword [edi + esi*4 + 0xc]
test esi, esi
je 0x10068211
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10068211
push 1
mov ecx, esi
call dword [0x100e6d54]
inc byte [ebp - 0x31]
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x5c]
add eax, 8
mov dword [ebp - 0x5c], eax
cmp eax, ecx
jne 0x10067b40
lea ecx, [ebx + 0xc]
call fcn.10068290
mov eax, dword [ebx + 0xc]
push 8
push eax
mov dword [ebx + 0xc], 0
call fcn.100891b0
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.10089100
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14