Function at 0x10006060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x178
lea ecx, [esp + 0x4c]
call fcn.100066f0
mov ebx, dword [esp + 0x54]
test ebx, ebx
js 0x100064a6
mov esi, dword [esp + 0x4c]
je 0x100060b8
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100064c6
lea ecx, [esp + 0xc]
mov edx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
jmp 0x100060d6
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
xor edx, edx
call fcn.10116f60
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov dword [esp + 4], eax
add eax, edi
push ebx
mov dword [esp + 0x34], esi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add edi, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], edi
je 0x10006136
mov esi, dword [0x10410768]
test esi, esi
je 0x100064ad
mov ebx, dword [0x10410760]
xor ecx, ecx
nop
mov eax, ecx
xor edx, edx
div esi
movzx eax, byte [ebx + edx]
mov edx, dword [esp + 4]
xor byte [edx + ecx], al
inc ecx
cmp edi, ecx
jne 0x10006120
lea ecx, [esp + 0xc]
call fcn.10006590
mov esi, edi
add esi, edi
js 0x100064a6
mov ebx, dword [esp + 0x10]
test esi, esi
mov dword [esp + 8], ebx
je 0x1000616e
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x10006175
mov ecx, esi
jmp 0x1000657d
xor esi, esi
mov eax, 1
test edi, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
je 0x100061bf
mov ebx, dword [esp + 4]
nop dword [eax]
movzx esi, byte [ebx]
lea ecx, [esp + 0x34]
inc ebx
mov eax, esi
shr eax, 4
movzx edx, byte [eax + str.0123456789abcdef]
call fcn.10001430
and esi, 0xf
lea ecx, [esp + 0x34]
movzx edx, byte [esi + str.0123456789abcdef]
call fcn.10001430
dec edi
jne 0x10006190
mov edi, dword [ebp + 8]
cmp dword [esp + 8], 0
je 0x100061da
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp + 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xffffffff
je 0x100064cd
lea ecx, [esp + 0x58]
mov edx, edi
push eax
call fcn.1000baa0
add esp, 4
cmp dword [esp + 0x58], 1
je 0x100064e3
mov edi, dword [esp + 0x60]
test edi, edi
js 0x100064a6
mov esi, dword [esp + 0x5c]
je 0x10006246
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1000657b
lea ecx, [esp + 0x58]
mov edx, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 0
jmp 0x10006264
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea ecx, [esp + 0x58]
xor edx, edx
call fcn.10116f60
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
add eax, ebx
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, edi
mov edi, dword [esp + 0x3c]
movsd xmm0, qword [esp + 0x58]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xe8]
mov dword [esp + 0xf0], ebx
mov edx, edi
movsd qword [esp + 0xe8], xmm0
mov dword [esp + 8], eax
call fcn.10116f60
mov ebx, dword [esp + 0xe8]
mov esi, dword [esp + 0xf0]
lea eax, [ebx + esi]
push edi
push dword [esp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xec]
add esi, edi
lea edi, [esp + 0x58]
mov dword [esp + 0x40], ebx
mov edx, ebx
mov ecx, edi
mov dword [esp + 0x48], eax
push esi
call fcn.10001c90
add esp, 4
cmp dword [esp + 0x58], 1
je 0x1000650f
lea eax, [esp + 0x60]
push 0x88
push eax
lea esi, [esp + 0xf0]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x88
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.100eb3d0
cmp dword [esp + 0x18], 1
je 0x10006538
movsd xmm0, qword [esp + 0x1c]
movsd xmm1, qword [esp + 0x24]
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x60], xmm1
mov ebx, dword [esp + 0x5c]
test ebx, ebx
js 0x100064a6
mov eax, dword [esp + 0x58]
mov dword [esp + 0x44], eax
je 0x10006397
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100064c6
lea ecx, [esp + 0x18]
mov edx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
jmp 0x100063b5
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x18]
xor edx, edx
call fcn.10116f60
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], eax
add eax, esi
push ebx
mov edi, dword [esp + 0x48]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + ebx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x64]
push ebx
push edi
lea ecx, [esp + 0x68]
push ecx
call dword [eax + 4]
add esp, 0xc
add esi, ebx
je 0x1000655f
cmp dword [esp + 0x2c], 0
je 0x100064ad
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
xor ecx, ecx
nop dword [eax]
mov eax, ecx
xor edx, edx
div edi
movzx eax, byte [ebx + edx]
mov edx, dword [esp + 4]
xor byte [edx + ecx], al
inc ecx
cmp esi, ecx
jne 0x10006410
lea ecx, [esp + 0x18]
call fcn.10006640
push esi
mov esi, dword [esp + 8]
push esi
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x10006455
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0x48], 0
mov esi, dword [esp + 0x30]
je 0x10006471
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp + 0x40]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0x38], 0
je 0x10006489
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp + 8]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0x50], 0
je 0x1000649e
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100067e0
ud2
mov ecx, 0x103650a0
mov edx, 0x39
push 0x103651cc
call fcn.10008540
add esp, 4
ud2
mov ecx, ebx
jmp 0x1000657d
mov ecx, 0xffffffff
xor edx, edx
push 0x103a0514
call fcn.10008b80
add esp, 4
ud2
movsd xmm0, qword [esp + 0x5c]
lea eax, [esp + 0xe8]
mov ecx, 0x103c93eb
mov edx, 0x2b
movsd qword [esp + 0xe8], xmm0
push 0x10365108
push 0x103650dc
jmp 0x10006535
mov eax, dword [esp + 0x5c]
mov ecx, 0x103c93eb
mov edx, 0x2b
mov dword [esp + 0xe8], eax
push 0x10365118
push 0x103650ec
lea eax, [esp + 0xf0]
push eax
jmp 0x10006555
mov eax, dword [esp + 0x1c]
mov ecx, 0x103c93eb
mov edx, 0x2b
mov dword [esp + 0x58], eax
push 0x10365128
push 0x103650ec
push edi
call fcn.1000aa20
add esp, 0xc
ud2
lea ecx, [esp + 0x18]
call fcn.10006640
xor ecx, ecx
xor edx, edx
push 0x10365138
call fcn.10008590
add esp, 4
ud2
mov ecx, edi
mov edx, 1
call fcn.100067d0
ud2