Function at 0x6e82f0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x88d7bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
push edi
push 0x12345678
mov esi, ecx
push str.Reset_key
call fcn.006eacc0
push esi
lea ecx, [esp + 0x14]
call fcn.006e6860
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0xac], edi
jne 0x6e8393
push 0x12345678
push str.result_lock_ResetKey_fail___lock_failed__
mov ecx, esi
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esi + 4], 0x8005
cmp eax, edi
mov dword [esp + 0x10], 0x8af620
je 0x6e8561
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x6e8379
push ecx
call fcn.00741630
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x6e8389
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], edi
xor eax, eax
jmp 0x6e86aa
cmp dword [esi + 8], 2
je 0x6e83cf
push 0x12345678
push str.result_Reset_key_fail___m_nLogonStatus___UKEY_LOGON_MANAGER_
mov ecx, esi
mov dword [esi + 4], 1
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x8af620
cmp eax, edi
je 0x6e8561
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x6e8379
jmp 0x6e836f
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x3c
mov ebp, 0x3ac
cmp ebp, 0x3c
mov edi, 0x3c
jg 0x6e83fa
mov edi, ebp
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x68]
push eax
push edi
push ebx
push ecx
mov ecx, esi
call fcn.006e9aa0
test eax, eax
mov dword [esi + 4], eax
jne 0x6e849a
sub ebp, edi
add ebx, edi
test ebp, ebp
jg 0x6e83ee
xor ebx, ebx
mov ecx, 0xe
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x2c]
mov ecx, esi
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
push edx
push 0x3c
push ebx
push eax
call fcn.006e99c0
cmp eax, ebx
mov dword [esi + 4], eax
je 0x6e84de
push 0x12345678
push str.result__ReadHeader_error_
mov ecx, esi
call fcn.006eacc0
push 0x12345678
push str.result_Reset_key_fail_____ReadHeader_
mov ecx, esi
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x8af620
cmp eax, ebx
je 0x6e8561
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x6e854e
jmp 0x6e8544
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x8af620
test eax, eax
je 0x6e8561
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x6e84c0
push ecx
call fcn.00741630
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
test eax, eax
je 0x6e84d0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], 0
xor eax, eax
jmp 0x6e86aa
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1d], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x21], ecx
push edx
mov dword [esp + 0x29], ecx
push 0x8a9260
mov word [esp + 0x31], cx
push 1
mov byte [esp + 0x37], cl
push 1
push eax
mov ecx, esi
mov byte [esp + 0x30], 0
call fcn.006e9bd0
cmp eax, ebx
mov dword [esi + 4], eax
je 0x6e8568
push 0x12345678
push str.result_Reset_key_fail____CalcHmacMd5_
mov ecx, esi
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x8af620
cmp eax, ebx
je 0x6e8561
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x6e854e
push ecx
call fcn.00741630
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x6e855e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], ebx
xor eax, eax
jmp 0x6e86aa
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x47]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x28]
inc al
mov dword [esp + 0x4c], edx
mov byte [esp + 0x47], al
mov dword [esp + 0x54], ecx
mov edx, 0x23
mov eax, 1
xor cl, cl
cmp edx, eax
mov byte [esp + 0x45], 0
mov byte [esp + 0x46], 0
jle 0x6e85b5
xor cl, byte [esp + eax + 0x45]
inc eax
cmp eax, edx
jl 0x6e85ac
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x44], cl
mov dword [edx], eax
mov ecx, dword [esp + 0x34]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x38]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x2c]
push edx
call fcn.006e7c40
mov cl, byte [esp + 0x48]
add esp, 4
cmp al, cl
je 0x6e85f5
mov dword [esi + 0x10], 0xfe
jmp 0x6e8604
mov eax, dword [esp + 0x45]
and eax, 0xff
shr eax, 4
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x46]
mov dl, byte [esp + 0x45]
and eax, 0xff
and dl, 0xf
mov ecx, eax
and ecx, 0xf
shr eax, 4
neg dl
sbb edx, edx
mov dword [esi + 0x14], ecx
neg edx
lea ecx, [esp + 0x2c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x14]
push ecx
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x4b]
push 0x3c
push ebx
push edx
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.006e9aa0
mov edi, eax
cmp edi, ebx
mov dword [esi + 4], edi
je 0x6e8660
push 0x12345678
push str.result__WriteHeader_error_
mov ecx, esi
call fcn.006eacc0
xor eax, eax
cmp edi, ebx
sete al
mov edi, eax
mov ecx, esi
push edi
push str.Reset_key_end__BOOL_
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x10], 0x8af620
je 0x6e86a8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x6e869f
push eax
call fcn.00741630
mov ecx, dword [esp + 0x18]
call fcn.006e9530
mov eax, edi
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret