Function at 0x10006f4b
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x10012698
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x960
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.1000103b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.1000103b
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.1000112f
add eax, 0x41
push eax
lea ecx, [ebp - 0x18]
call fcn.10001074
lea ecx, [ebp - 0x18]
call fcn.1000c89a
mov ecx, dword [ebp + 8]
push eax
call fcn.1000c89a
push eax
call fcn.10010da4
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.10001139
mov esi, 0x10023d28
push esi
call sub.MSVCRT.dll_strlen
mov edi, eax
pop ecx
lea eax, [edi + 0x41]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001074
lea ecx, [ebp - 0x18]
call fcn.1000c89a
cmp byte [eax], 0x22
jne 0x10007005
push 0x22
lea ecx, [ebp - 0x18]
call fcn.1000c89a
inc eax
push eax
call sub.MSVCRT.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x10006feb
mov byte [eax], 0
lea ecx, [ebp - 0x18]
call fcn.1000c89a
inc eax
push eax
lea ecx, [ebp - 0x18]
call fcn.1000c89a
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push ebx
push edi
push esi
lea ecx, [ebp - 0x24]
call fcn.100010ba
push 0x40
pop ebx
jmp 0x10007020
push 0
lea ecx, [ebp - 0x24]
call fcn.1000110f
inc edi
mov eax, edi
cdq
mov ecx, ebx
idiv ecx
test edx, edx
jne 0x10007015
cmp edi, ebx
jle 0x1000707e
lea eax, [ebp - 0x16c]
push eax
call fcn.100111f1
pop ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.1000c89a
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.10011ba7
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.10011c3d
add esp, 0x14
push 0x10
pop edi
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000c89a
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
lea eax, [ebp - 0xd0]
push 0x36
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x114]
push 0x5c
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
xor esi, esi
test edi, edi
jle 0x100070ce
lea ecx, [ebp - 0x24]
call fcn.1000c89a
mov al, byte [eax + esi]
xor byte [ebp + esi - 0xd0], al
lea ecx, [ebp - 0x24]
call fcn.1000c89a
mov al, byte [eax + esi]
xor byte [ebp + esi - 0x114], al
inc esi
cmp esi, edi
jl 0x100070a5
lea eax, [ebp - 0x8c]
push eax
call fcn.100111f1
push ebx
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10011ba7
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.1000112f
push eax
lea ecx, [ebp - 0x18]
call fcn.1000c89a
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10011ba7
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10011c3d
lea eax, [ebp - 0x8c]
push eax
call fcn.100111f1
push ebx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10011ba7
push 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10011ba7
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.10011c3d
lea eax, [ebp - 0x96c]
push 0x1001e068
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x96c]
add esp, 0x40
push eax
call sub.MSVCRT.dll_strlen
mov esi, eax
pop ecx
mov byte [ebp + esi - 0x96c], 0x20
inc esi
xor edi, edi
pop ebx
movzx eax, byte [ebp + edi - 0x34]
push eax
lea eax, [ebp + esi - 0x96c]
push str._02x
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
inc esi
inc esi
inc edi
cmp edi, 0x10
jl 0x10007190
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x96c]
push esi
push eax
call fcn.10010fcf
push 0x1001361c
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.1000102d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000102d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret