Function at 0x100ecc30
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 0x101b37f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x10249010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
add eax, 0xc0
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x100ecc8d
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1039ea44]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x103a26c4]
mov dword [ebp - 0x1c], esi
cmp eax, dword [esi + 4]
jle 0x100ecd71
push 0x103a26c4
call fcn.10151b0d
add esp, 4
cmp dword [0x103a26c4], 0xffffffff
jne 0x100ecd71
mov eax, dword [0x103a26a0]
cmp eax, dword [esi + 4]
jle 0x100ecd5a
push 0x103a26a0
call fcn.10151b0d
add esp, 4
cmp dword [0x103a26a0], 0xffffffff
jne 0x100ecd5a
mov eax, dword [0x1039ead8]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x100ecd42
mov edx, dword [edi + 0xc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ecd08
sub ecx, esi
lea esi, [ecx + 1]
mov ecx, 0x4fa38bcd
test esi, esi
je 0x100ecd3b
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub esi, 1
jne 0x100ecd20
cmp ecx, 0xbb927918
je 0x100ecd44
mov edi, dword [edi + 4]
test edi, edi
jne 0x100ecd00
xor edi, edi
push 0x103a26a0
mov dword [0x103a269c], edi
call fcn.10151ac3
mov esi, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [0x103a269c]
push 0x103a26c4
mov dword [0x103a26b0], eax
call fcn.10151ac3
add esp, 4
mov ecx, dword [0x103a26b0]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x30]
xor eax, ecx
je 0x100ecd91
mov dword [ecx + 0x50], 0
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x103a26ac]
cmp eax, dword [esi + 4]
jle 0x100ece61
push 0x103a26ac
call fcn.10151b0d
add esp, 4
cmp dword [0x103a26ac], 0xffffffff
jne 0x100ece61
mov eax, dword [0x103a26c0]
cmp eax, dword [esi + 4]
jle 0x100ece4a
push 0x103a26c0
call fcn.10151b0d
add esp, 4
cmp dword [0x103a26c0], 0xffffffff
jne 0x100ece4a
mov eax, dword [0x1039ead8]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x100ece32
nop
mov edx, dword [edi + 0xc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ecdf8
sub ecx, esi
lea esi, [ecx + 1]
mov ecx, 0x4fa38bcd
test esi, esi
je 0x100ece2b
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub esi, 1
jne 0x100ece10
cmp ecx, 0x3df0070f
je 0x100ece34
mov edi, dword [edi + 4]
test edi, edi
jne 0x100ecdf0
xor edi, edi
push 0x103a26c0
mov dword [0x103a26bc], edi
call fcn.10151ac3
mov esi, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [0x103a26bc]
push 0x103a26ac
mov dword [0x103a26cc], eax
call fcn.10151ac3
add esp, 4
mov ecx, dword [0x103a26cc]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x30]
xor eax, ecx
cmp eax, 1
je 0x100ece84
mov dword [ecx + 0x50], 0
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x103a26b4]
cmp eax, dword [esi + 4]
jle 0x100ecf4e
push 0x103a26b4
call fcn.10151b0d
add esp, 4
cmp dword [0x103a26b4], 0xffffffff
jne 0x100ecf4e
mov eax, dword [0x103a26a4]
cmp eax, dword [esi + 4]
jle 0x100ecf37
push 0x103a26a4
call fcn.10151b0d
add esp, 4
cmp dword [0x103a26a4], 0xffffffff
jne 0x100ecf37
mov eax, dword [0x1039ead8]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x100ecf22
nop
mov edx, dword [edi + 0xc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ecee8
sub ecx, esi
lea esi, [ecx + 1]
mov ecx, 0x4fa38bcd
test esi, esi
je 0x100ecf1b
nop dword [eax]
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub esi, 1
jne 0x100ecf00
cmp ecx, 0x5fa5cf23
je 0x100ecf24
mov edi, dword [edi + 4]
test edi, edi
jne 0x100ecee0
xor edi, edi
push 0x103a26a4
mov dword [0x103a26a8], edi
call fcn.10151ac3
add esp, 4
mov eax, dword [0x103a26a8]
push 0x103a26b4
mov dword [0x103a26c8], eax
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039f244]
mov ecx, dword [0x1039eb00]
mov al, byte [eax + 0x1877]
mov byte [ebp - 0x11], al
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
mov al, byte [ebp - 0x11]
je 0x100ecf93
cmp byte [0x1039f1fc], al
je 0x100ecf93
mov ecx, dword [0x103a26c8]
mov dword [ecx + 0x50], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
movzx eax, byte [ebp - 0x11]
push eax
call edx
jmp 0x100ecf9c
test al, al
sete byte [0x1039f1fc]
mov ecx, dword [0x1039eb00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x100ed322
mov eax, dword [0x1039f500]
cmp dword [eax + 8], 0
je 0x100ed322
xorps xmm0, xmm0
comiss xmm0, dword [eax + 0x4c]
jae 0x100ed322
call fcn.10099f90
test al, al
je 0x100ed322
xor edi, edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 1
mov eax, 0xa33a575b
mov ecx, dword [0x1039f48c]
mov esi, dword [ecx + 0x38]
sub esi, dword [ecx + 0x34]
imul esi
add edx, esi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100ed02b
cmp eax, 0x6666666
ja 0x100ed3bb
push eax
lea ecx, [ebp - 0x44]
call fcn.100edf50
mov edi, dword [ebp - 0x40]
mov ecx, dword [0x1039f48c]
mov esi, dword [ecx + 0x38]
mov eax, 0xa33a575b
sub esi, dword [ecx + 0x34]
imul esi
add edx, esi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100ed0a7
xor esi, esi
mov dword [ebp - 0x18], esi
cmp edi, dword [ebp - 0x3c]
je 0x100ed074
mov dword [edi + 0x24], 0
call fcn.10018b70
test al, al
je 0x100ed06c
mov dword [edi], 0x10213a7c
mov dword [edi + 4], esi
mov dword [edi + 0x24], edi
add edi, 0x28
mov dword [ebp - 0x40], edi
jmp 0x100ed084
lea eax, [ebp - 0x18]
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.100ee0a0
mov edi, dword [ebp - 0x40]
mov eax, dword [0x1039f48c]
inc esi
mov ecx, dword [eax + 0x38]
sub ecx, dword [eax + 0x34]
mov eax, 0xa33a575b
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x100ed048
mov ecx, dword [0x103a0e2c]
lea eax, [ebp - 0x44]
push eax
call fcn.100e9cd0
mov ecx, dword [0x1039eb00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov ecx, eax
test ecx, ecx
je 0x100ed312
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x100ed312
mov edi, dword [0x1039f48c]
mov esi, dword [edi + 0x34]
mov edi, dword [edi + 0x38]
cmp esi, edi
je 0x100ed312
mov ecx, dword [esi]
xor edx, edx
add ecx, 8
mov eax, ecx
cmove eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x100ed304
mov ecx, dword [esi]
mov dword [ebp - 0x18], ecx
cmp byte [ecx + 0x25f], al
jne 0x100ed304
cmp dword [ecx + 0x100], 0
je 0x100ed304
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x1039ef94]
cmp eax, dword [ecx + 4]
jle 0x100ed185
push 0x1039ef94
call fcn.10151b0d
add esp, 4
cmp dword [0x1039ef94], 0xffffffff
jne 0x100ed182
push ecx
push 0x359d9d63
mov byte [ebp - 4], 2
mov ecx, dword [0x1039f394]
push 0x22558ba9
call fcn.100bc2f0
push 0x1039ef94
mov dword [0x1039efcc], eax
mov byte [ebp - 4], 1
call fcn.10151ac3
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x1039efcc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1039efc4]
cmp eax, dword [ecx + 4]
jle 0x100ed1e8
push 0x1039efc4
call fcn.10151b0d
add esp, 4
cmp dword [0x1039efc4], 0xffffffff
jne 0x100ed1e8
push ecx
push 0x359d9d63
mov byte [ebp - 4], 3
mov ecx, dword [0x1039f394]
push 0x22558ba9
call fcn.100bc2f0
add eax, 4
mov byte [ebp - 4], 1
push 0x1039efc4
mov dword [0x1039efc8], eax
call fcn.10151ac3
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
movss xmm0, dword [eax + ecx]
mov eax, dword [0x1039efc8]
mov ecx, dword [ebp - 0x24]
ucomiss xmm0, dword [ecx + eax]
lahf
test ah, 0x44
jnp 0x100ed304
mov ecx, dword [esi]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x58], 0xdead99f1
cvttss2si eax, dword [ecx + 0x138]
mov word [ebp - 0x53], ax
cvttss2si eax, dword [ecx + 0x13c]
mov word [ebp - 0x51], ax
cvttss2si eax, dword [ecx + 0x140]
add ecx, 8
mov word [ebp - 0x4f], ax
mov eax, ecx
cmove eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
call eax
mov byte [ebp - 0x54], al
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [eax + 0x100]
mov byte [ebp - 0x4d], al
mov eax, dword [0x1039ea98]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x4c], eax
mov ax, word [0x1039eab0]
mov word [ebp - 0x16], ax
mov al, byte [ebp - 0x46]
and al, 0xfc
mov byte [ebp - 0x11], al
push ecx
push 0x13
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.100e9250
mov eax, dword [ebp - 0x38]
movups xmm0, xmmword [ebp - 0x58]
mov cx, word [ebp - 0x16]
movups xmmword [eax], xmm0
mov word [eax + 0x10], cx
mov cl, byte [ebp - 0x11]
mov byte [eax + 0x12], cl
lea eax, [ebp - 0x38]
push eax
call fcn.100bc460
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x100ed304
mov ecx, dword [ebp - 0x30]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100ed2e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ed31c
push ecx
push edx
call fcn.101519a9
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
add esi, 0x1918
cmp esi, edi
jne 0x100ed0f3
lea ecx, [ebp - 0x44]
call fcn.1004cff0
jmp 0x100ed395
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [0x1039f48c]
mov edi, dword [esi + 0x38]
mov esi, dword [esi + 0x34]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x100ed395
lea ecx, [esi + 8]
mov dword [ebp - 0x18], ecx
nop
mov edx, dword [ecx]
mov eax, dword [ecx - 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
cmp eax, edx
je 0x100ed37b
mov edi, eax
mov esi, edx
push 0x8514
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add edi, 0x8514
add esp, 0xc
cmp edi, esi
jne 0x100ed353
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
mov eax, dword [ecx - 4]
mov dword [ecx], eax
add esi, 0x1918
mov byte [ecx + 0x1c], 0
add ecx, 0x1918
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
cmp esi, edi
jne 0x100ed340
mov eax, dword [ebp - 0x2c]
add eax, 0xc0
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100188b0
int3