Function at 0x1006c800
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1f4
call fcn.100bf140
mov eax, dword [0x10116cb0]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [esp + 0x200]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push esi
mov esi, dword [esp + 0x204]
push edi
mov edi, dword [esp + 0x21c]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 1
call sym.LIBEAY32.dll_EVP_MD_size
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
test ebp, ebp
js 0x1006c8b2
lea eax, [esp + 0xf0]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_init
add esp, 4
test esi, esi
jne 0x1006c86f
xor ecx, ecx
jmp 0x1006c889
mov ecx, dword [esp + 0x20c]
cmp ecx, 0xffffffff
jne 0x1006c889
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006c880
sub ecx, edx
push 0
push edi
push ecx
lea eax, [esp + 0xfc]
push esi
push eax
call sym.LIBEAY32.dll_HMAC_Init_ex
add esp, 0x14
test eax, eax
jne 0x1006c8b9
lea eax, [esp + 0xf0]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_cleanup
add esp, 4
xor eax, eax
jmp 0x1006cb07
mov eax, dword [esp + 0x220]
test eax, eax
je 0x1006caf2
mov esi, dword [esp + 0x218]
mov ecx, 1
cmp eax, ebp
mov byte [esp + 0x13], cl
mov edi, eax
mov eax, ecx
cmovg edi, ebp
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x11], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x12], al
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x24]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_copy
add esp, 8
test eax, eax
je 0x1006c8a2
push dword [esp + 0x214]
lea eax, [esp + 0x24]
push dword [esp + 0x20]
push eax
call sym.LIBEAY32.dll_HMAC_Update
add esp, 0xc
test eax, eax
je 0x1006cad4
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call sym.LIBEAY32.dll_HMAC_Update
add esp, 0xc
test eax, eax
je 0x1006cad4
push 0
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x28]
push eax
call sym.LIBEAY32.dll_HMAC_Final
add esp, 0xc
test eax, eax
je 0x1006cad4
lea eax, [esp + 0x20]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_cleanup
push edi
lea eax, [esp + 0x1c8]
push eax
push ebx
call sub.MSVCR120.dll_memcpy
mov ebp, 1
add esp, 0x10
cmp esi, ebp
jle 0x1006caac
jmp 0x1006c9a0
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x24]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_copy
add esp, 8
test eax, eax
je 0x1006c8a2
push dword [esp + 0x18]
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x28]
push eax
call sym.LIBEAY32.dll_HMAC_Update
add esp, 0xc
test eax, eax
je 0x1006cad4
push 0
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x28]
push eax
call sym.LIBEAY32.dll_HMAC_Final
add esp, 0xc
test eax, eax
je 0x1006cad4
lea eax, [esp + 0x20]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_cleanup
add esp, 4
xor ecx, ecx
test edi, edi
jle 0x1006caa3
cmp edi, 0x10
jb 0x1006ca75
lea edx, [ebx - 1]
lea eax, [esp + edi + 0x1bf]
add edx, edi
cmp ebx, eax
ja 0x1006ca34
lea eax, [esp + 0x1c0]
cmp edx, eax
jae 0x1006ca75
mov eax, edi
and eax, reloc.WS2_32.dll_ntohs
jns 0x1006ca42
dec eax
or eax, 0xfffffff0
inc eax
mov edx, edi
lea esi, [esp + 0x1c0]
sub edx, eax
mov eax, ebx
sub esi, ebx
movdqu xmm1, xmmword [esi + eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x1006ca51
mov esi, dword [esp + 0x218]
cmp ecx, edi
jge 0x1006caa3
lea esi, [esp + 0x1c0]
mov edx, edi
sub esi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
lea esp, [esp]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x1006ca90
mov esi, dword [esp + 0x218]
inc ebp
cmp ebp, esi
jl 0x1006c9a0
mov eax, dword [esp + 0x220]
add ebx, edi
mov ecx, dword [esp + 0x14]
sub eax, edi
inc ecx
mov dword [esp + 0x220], eax
mov dword [esp + 0x14], ecx
test eax, eax
je 0x1006caf2
mov ebp, dword [esp + 0x18]
jmp 0x1006c8d4
lea eax, [esp + 0xf0]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_cleanup
lea eax, [esp + 0x24]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_cleanup
add esp, 8
xor eax, eax
jmp 0x1006cb07
lea eax, [esp + 0xf0]
push eax
call sym.LIBEAY32.dll_HMAC_CTX_cleanup
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x200]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100bf100
add esp, 0x1f4
ret