Function at 0x6e7880
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov edx, dword [esp + 8]
push 0x88d738
push eax
mov dword fs:[0], esp
sub esp, 0x48
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x6e78db
cmp byte [edx], 0
je 0x6e78db
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x33
jbe 0x6e78c7
mov esi, 0x33
mov dword [esp + 0x68], edx
jmp 0x6e78e8
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x68], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
jmp 0x6e78e8
mov esi, 1
mov dword [esp + 0x68], 0x8af618
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x6e7925
cmp byte [edx], 0
je 0x6e7925
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x33
jbe 0x6e7911
mov ebx, 0x33
mov dword [esp + 0x6c], edx
jmp 0x6e7932
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x6c], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
jmp 0x6e7932
mov ebx, 1
mov dword [esp + 0x6c], 0x8af618
push ebp
lea ecx, [esp + 0x14]
call fcn.006e6860
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x60], edi
jne 0x6e79a1
push 0x12345678
push str.result_lock_ChangePwd_fail___lock_failed__
mov ecx, ebp
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], 0x8005
cmp eax, edi
mov dword [esp + 0x10], 0x8af620
je 0x6e7997
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x6e7984
push ecx
call fcn.00741630
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x6e7994
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], edi
mov eax, 4
jmp 0x6e7c26
mov ecx, dword [esp + 0x68]
push esi
push ecx
push eax
mov ecx, ebp
call fcn.006e9d80
mov edi, eax
test edi, edi
je 0x6e7a07
cmp edi, 5
je 0x6e7a07
push edi
push str.result_Change_password_failed____VerifyPwd_
mov ecx, ebp
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x8af620
test eax, eax
je 0x6e7a00
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x6e79e9
push ecx
call fcn.00741630
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
test eax, eax
je 0x6e79f9
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], 0
mov eax, edi
jmp 0x6e7c26
cmp edi, 5
mov dword [ebp + 8], 1
jne 0x6e7bbd
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
mov ecx, ebp
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
push edx
push 0x3c
push 0
push eax
call fcn.006e99c0
test eax, eax
mov dword [ebp + 4], eax
je 0x6e7aab
push 0x12345678
push str.result__ReadHeader_error_
mov ecx, ebp
call fcn.006eacc0
push 3
push str.result_Change_password_failed____ReadHeader_
mov ecx, ebp
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x8af620
test eax, eax
je 0x6e7aa1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x6e7a8a
push ecx
call fcn.00741630
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
test eax, eax
je 0x6e7a9a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], 0
mov eax, 3
jmp 0x6e7c26
mov al, byte [esp + 0x35]
mov edx, 0x23
and al, 0xf0
mov byte [esp + 0x35], al
mov cl, al
mov eax, 1
cmp edx, eax
jle 0x6e7ace
xor cl, byte [esp + eax + 0x35]
inc eax
cmp eax, edx
jl 0x6e7ac5
mov edx, dword [esp + 0x20]
mov byte [esp + 0x34], cl
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], edx
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.006e7c40
mov cl, byte [esp + 0x38]
add esp, 4
cmp al, cl
je 0x6e7b0e
mov dword [ebp + 0x10], 0xfe
jmp 0x6e7b1e
mov edx, dword [esp + 0x35]
and edx, 0xff
shr edx, 4
mov dword [ebp + 0x10], edx
mov eax, dword [esp + 0x36]
mov dl, byte [esp + 0x35]
and eax, 0xff
and dl, 0xf
mov ecx, eax
and ecx, 0xf
shr eax, 4
neg dl
sbb edx, edx
mov dword [ebp + 0x14], ecx
neg edx
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x1c], edx
mov edx, dword [esp + 0x14]
push ecx
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x3b]
push 0x3c
push 0
push edx
mov ecx, ebp
mov dword [ebp + 0x20], eax
call fcn.006e9aa0
test eax, eax
mov dword [ebp + 4], eax
je 0x6e7bbd
push 0x12345678
push str.result__WriteHeader_error_
mov ecx, ebp
call fcn.006eacc0
push 3
push str.result_Change_password_failed____WriteHeader_
mov ecx, ebp
call fcn.006eacc0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
test eax, eax
mov dword [esp + 0x10], 0x8af620
je 0x6e7bb6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6e7bad
push eax
call fcn.00741630
mov ecx, dword [esp + 0x18]
call fcn.006e9530
mov eax, 3
jmp 0x6e7c26
cmp esi, ebx
jne 0x6e7bd9
mov edi, dword [esp + 0x6c]
mov ecx, esi
mov esi, dword [esp + 0x68]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x6e7bd9
push eax
push str.result_Change_password
jmp 0x6e7c14
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push edx
mov ecx, ebp
call fcn.006ea180
test eax, eax
jne 0x6e7c0d
push 3
push str.result_Change_password_failed____SetPwd_
mov ecx, ebp
call fcn.006eacc0
lea ecx, [esp + 0x10]
call fcn.006e6970
mov eax, 3
jmp 0x6e7c26
push 0
push str.Change_password
mov ecx, ebp
call fcn.006eacc0
lea ecx, [esp + 0x10]
call fcn.006e6970
xor eax, eax
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8