Function at 0x1001d690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
movzx eax, byte [ebx]
cmp eax, 8
ja case.default.0x1001d6ad
push esi
jmp dword [eax*4 + 0x1001dc80]
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
cmp dword [eax + 4], 0
mov edx, dword [ecx]
jne 0x1001d6d4
push 2
push 0x100303b8
call dword [edx + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x1001d833
push 2
push 0x100303bc
call dword [edx + 4]
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x14]
mov eax, dword [edi + 0x260]
mov dword [ebp + 0xc], ecx
cmp eax, ecx
jae 0x1001d70b
push 0x20
add eax, eax
lea ecx, [edi + 0x250]
push eax
call fcn.10020b20
mov eax, dword [ebx + 8]
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [ebp + 8], esi
sub eax, 1
je 0x1001d7af
cmp dword [edi + 0x264], 0x10
lea eax, [edi + 0x250]
mov ecx, dword [edi]
mov edx, eax
jb 0x1001d73d
mov edx, dword [eax]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1001dcb0
mov ecx, dword [edi]
push 3
push 0x100303c0
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0xc]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push esi
call fcn.1001d690
mov ecx, dword [edi]
push 2
push 0x100303c4
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 4]
lea ecx, [ebp + 8]
inc esi
mov dword [ebp - 4], esi
call fcn.1001ac20
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [ebp + 8]
jb 0x1001d728
cmp dword [edi + 0x264], 0x10
lea ebx, [edi + 0x250]
mov ecx, dword [edi]
mov edx, ebx
jb 0x1001d7c4
mov edx, dword [ebx]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1001dcb0
mov ecx, dword [edi]
push 3
push 0x100303c0
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0xc]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push esi
call fcn.1001d690
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [edi]
jb 0x1001d819
mov ebx, dword [ebx]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x7b
call dword [edx]
mov eax, dword [ebx + 8]
mov dword [ebp + 8], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [ebp + 0xc], esi
sub eax, 1
je 0x1001d8af
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1001dcb0
mov ecx, dword [edi]
push 2
push 0x100303c8
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push esi
call fcn.1001d690
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
inc esi
mov dword [ebp + 8], esi
call fcn.1001ac20
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [ebp + 0xc]
jb 0x1001d850
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 0x10]
push ebx
push eax
mov ecx, edi
call fcn.1001dcb0
mov ecx, dword [edi]
push 2
push 0x100303c8
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push ebx
push 0
push esi
call fcn.1001d690
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebx + 8]
mov ecx, dword [edi]
mov eax, dword [edx]
mov esi, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x1001d91a
push 2
push 0x100303cc
call dword [esi + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x1001da19
push 2
push 0x100303d0
call dword [esi + 4]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov edx, dword [edi + 0x260]
mov dword [ebp + 0xc], eax
cmp edx, eax
jae 0x1001d952
push 0x20
lea eax, [edx + edx]
lea ecx, [edi + 0x250]
push eax
call fcn.10020b20
mov eax, dword [ebx + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x1001d9b3
lea eax, [edi + 0x250]
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov ecx, dword [edi]
jb 0x1001d973
mov edx, dword [eax]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push esi
call fcn.1001d690
mov ecx, dword [edi]
push 2
push 0x100303c4
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
add esi, 0x10
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
lea eax, [edi + 0x250]
jne 0x1001d967
cmp dword [edi + 0x264], 0x10
lea esi, [edi + 0x250]
mov ecx, dword [edi]
mov edx, esi
jb 0x1001d9c8
mov edx, dword [esi]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push dword [ebp + 0xc]
mov eax, dword [ebx + 8]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
push 1
sub eax, 0x10
push eax
call fcn.1001d690
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, dword [edi]
jb 0x1001d9ff
mov esi, dword [esi]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x5b
call dword [esi]
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
je 0x1001da5f
push eax
push edx
push dword [ebp + 0x10]
mov ecx, edi
push 0
push esi
call fcn.1001d690
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 8]
add esi, 0x10
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
jne 0x1001da32
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
push edx
push dword [ebp + 0x10]
sub eax, 0x10
push 0
push eax
call fcn.1001d690
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebx + 8]
call fcn.1001dcb0
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebx + 8], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
je 0x1001daca
push 4
push str.true
call eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 5
push str.false
call eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov ebx, eax
or eax, ecx
je 0x1001db84
test ecx, ecx
jg 0x1001dafc
jl 0x1001daf6
test ebx, ebx
jae 0x1001dafc
mov byte [ebp + 0xf], 1
jmp 0x1001db00
mov byte [ebp + 0xf], 0
lea edx, [edi + 8]
xor esi, esi
mov dword [ebp + 0x10], edx
xor edi, edi
nop word [eax + eax]
push 0
push 0xa
push ecx
push ebx
call fcn.10029210
mov esi, eax
mov dword [ebp + 0x14], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub ebx, ecx
mov ecx, dword [ebp + 0x14]
mov eax, ebx
mov ebx, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 0x10]
add al, 0x30
mov byte [edi + edx], al
mov eax, ebx
inc edi
or eax, ecx
jne 0x1001db10
mov dword [ebp + 0x10], edi
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
cmp byte [ebp + 0xf], al
je 0x1001db56
mov byte [esi + edi + 8], 0x2d
inc esi
lea eax, [esi + edx]
push eax
push edx
call fcn.10028bbe
mov ecx, dword [edi]
lea edx, [edi + 8]
add esp, 8
mov eax, dword [ecx]
push esi
push edx
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov ebx, eax
or eax, ecx
jne 0x1001db95
mov ecx, dword [edi]
push 0x30
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea edx, [edi + 8]
xor edi, edi
mov dword [ebp + 0xc], edx
nop dword [eax]
push 0
push 0xa
push ecx
push ebx
call fcn.10029670
mov esi, eax
mov dword [ebp + 0x10], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub ebx, ecx
mov ecx, dword [ebp + 0x10]
mov eax, ebx
mov ebx, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 0xc]
add al, 0x30
mov byte [edi + edx], al
mov eax, ebx
inc edi
or eax, ecx
jne 0x1001dba0
lea eax, [edi + edx]
mov dword [ebp + 0xc], edi
push eax
push edx
call fcn.10028bbe
mov edi, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push edx
lea edx, [edi + 8]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
movsd xmm0, qword [ebx + 8]
lea eax, [ebp - 8]
push eax
movsd qword [ebp - 0x10], xmm0
movsd qword [ebp - 8], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__dtest]
add esp, 4
test ax, ax
jg case.0x1001d6ad.0
movsd xmm0, qword [ebp - 0x10]
lea esi, [edi + 8]
sub esp, 8
lea eax, [esi + 0x40]
movsd qword [esp], xmm0
push eax
push esi
call fcn.10019120
mov ecx, dword [edi]
add esp, 0x10
sub eax, esi
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0xb
push str._discarded_
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 4
push str.null
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14