Function at 0x1001d3a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
add eax, 0xfffffff5
cmp eax, 9
ja case.0x1001d3ba.13
jmp dword [eax*4 + 0x1001d744]
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x1001d3df
mov eax, dword [esi + 0x20]
mov dword [eax], str.Unknown_variable:_variable_set_is_not_provided
jmp 0x1001d72a
sub eax, ebx
lea ecx, [esi + 0x24]
sar eax, 1
mov dword [ebp - 4], ecx
lea edi, [eax + eax]
cmp eax, 0x20
jb 0x1001d418
lea eax, [edi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x1001d418
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
mov ebx, dword [ebp - 4]
push ebx
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
add esp, 0xc
mov word [edi + ebx], ax
xor ecx, ecx
movzx eax, word [ebx]
mov edx, ebx
test ax, ax
je 0x1001d45f
mov edi, eax
nop word [eax + eax]
movzx eax, di
add edx, 2
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x1001d440
mov edi, dword [ebp - 0xc]
lea eax, [ecx + ecx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
and ecx, 0x3f
mov edi, dword [edi + ecx*4]
test edi, edi
je 0x1001d4d6
mov eax, dword [edi]
dec eax
cmp eax, 3
ja case.default.0x1001d47e
jmp dword [eax*4 + 0x1001d76c]
lea eax, [edi + 0x1c]
jmp 0x1001d49b
lea eax, [edi + 0x10]
jmp 0x1001d49b
lea eax, [edi + 0xc]
jmp 0x1001d49b
lea eax, [edi + 0xa]
jmp 0x1001d49b
xor eax, eax
mov ecx, ebx
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001d4c6
test dx, dx
je 0x1001d4c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001d4c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001d4a0
xor eax, eax
jmp 0x1001d4cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001d4d8
mov edi, dword [edi + 4]
test edi, edi
jne 0x1001d476
xor edi, edi
lea eax, [esi + 0x24]
cmp ebx, eax
je 0x1001d4e9
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
jne 0x1001d4fb
mov eax, dword [esi + 0x20]
mov dword [eax], str.Unknown_variable:_variable_set_does_not_contain_the_given_name
jmp 0x1001d72a
lea ecx, [esi + 4]
call fcn.1001d8e0
mov ecx, dword [esi]
mov ebx, dword [edi]
push 0x18
call fcn.10024730
test eax, eax
je 0x1001d738
mov byte [eax], 0x14
mov byte [eax + 1], bl
mov word [eax + 2], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 4]
call fcn.1001d8e0
push 0
mov ecx, esi
call fcn.1001ea00
mov ebx, eax
test ebx, ebx
je 0x1001d738
cmp dword [esi + 0x14], 0xd
je 0x1001d570
mov eax, dword [esi + 0x20]
mov dword [eax], 0x100a0d84
jmp 0x1001d72a
lea ecx, [esi + 4]
call fcn.1001d8e0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xc]
push eax
call fcn.1001d830
mov edi, eax
test edi, edi
je 0x1001d738
lea ecx, [esi + 4]
call fcn.1001d8e0
mov ecx, dword [esi]
push 0x18
call fcn.10024730
test eax, eax
je 0x1001d738
mov dword [eax], 0x312
jmp 0x1001d522
mov edx, dword [esi + 0xc]
lea edi, [esi + 0x24]
mov eax, dword [esi + 0x10]
sub eax, edx
mov dword [ebp - 0xc], edx
sar eax, 1
lea ebx, [eax + eax]
cmp eax, 0x20
jb 0x1001d5ea
lea eax, [ebx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1001d407
mov edx, dword [ebp - 0xc]
push ebx
push edx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, edi
mov word [ebx + edi], ax
call fcn.10022550
test al, al
jne 0x1001d610
movsd xmm0, qword [0x100a9d18]
jmp 0x1001d624
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstod]
fstp qword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x10]
add esp, 8
lea eax, [esi + 0x24]
movsd qword [ebp - 0x10], xmm0
cmp edi, eax
je 0x1001d63a
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [esi + 4]
call fcn.1001d8e0
mov ecx, dword [esi]
push 0x18
call fcn.10024730
test eax, eax
je 0x1001d738
movsd xmm0, qword [ebp - 0x10]
mov dword [eax], 0x213
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movsd qword [eax + 0x10], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
mov dword [ebp - 8], eax
xorps xmm0, xmm0
mov eax, dword [esi + 0x10]
xor edi, edi
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 4], eax
call fcn.1001d8e0
xor ebx, ebx
cmp dword [esi + 0x14], 0xc
je 0x1001d6b0
mov eax, dword [esi + 0x20]
mov dword [eax], str.Unrecognized_function_call
jmp 0x1001d72a
lea ecx, [esi + 4]
call fcn.1001d8e0
mov eax, dword [esi + 0x14]
cmp eax, 0xd
je 0x1001d6f7
test edi, edi
je 0x1001d6d1
cmp eax, 0x15
jne 0x1001d716
lea ecx, [esi + 4]
call fcn.1001d8e0
push 0
mov ecx, esi
call fcn.1001ea00
test eax, eax
je 0x1001d738
cmp edi, 2
jae 0x1001d6e9
mov dword [ebp + edi*4 - 0x10], eax
jmp 0x1001d6ec
mov dword [ebx + 0xc], eax
mov ebx, eax
inc edi
mov eax, dword [esi + 0x14]
cmp eax, 0xd
jne 0x1001d6c0
lea ecx, [esi + 4]
call fcn.1001d8e0
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.1001cd50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
mov dword [eax], str.No_comma_between_function_arguments
jmp 0x1001d72a
mov eax, dword [esi + 0x20]
mov dword [eax], str.Unrecognizable_primary_expression
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
sar ecx, 1
mov dword [eax + 4], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret