Function at 0x6e9d80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
push 0x12345678
mov ebp, ecx
push str._VerifyPwd
call fcn.006eacc0
mov esi, dword [esp + 0x60]
test esi, esi
jne 0x6e9dc0
push 0x12345678
push str.result__VerifyPwd_Fail___hUKey__NULL_
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret 0xc
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
push 0x3c
push 0
push esi
call fcn.006e99c0
test eax, eax
mov dword [ebp + 4], eax
je 0x6e9e1f
push 0x12345678
push str.result__ReadHeader_error_
mov ecx, ebp
call fcn.006eacc0
push 0x12345678
push str.result__VerifyPwd__ReadHeader_Fail_
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x4c
ret 0xc
mov ecx, dword [ebp + 0x2c]
mov edx, dword [esp + 0x24]
mov ebx, 0x23
mov dword [ecx], edx
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc], eax
mov al, byte [esp + 0x39]
mov ecx, 1
mov dl, al
cmp ebx, ecx
jle 0x6e9e5a
xor dl, byte [esp + ecx + 0x39]
inc ecx
cmp ecx, ebx
jl 0x6e9e51
cmp dl, byte [esp + 0x38]
je 0x6e9e69
mov dword [ebp + 0x10], 0xfe
jmp 0x6e9e79
mov ecx, dword [esp + 0x39]
and ecx, 0xff
shr ecx, 4
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x3a]
and al, 0xf
and ecx, 0xff
mov edx, ecx
and edx, 0xf
shr ecx, 4
neg al
sbb eax, eax
mov dword [ebp + 0x14], edx
neg eax
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x3b]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp + 0x18], ecx
je 0x6e9eca
push 0x12345678
push str.result__VerifyPwd_Fail___m_nStatus___UKEY_STATUS_NORMAL_
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x4c
ret 0xc
xor ecx, ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x11], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x15], ecx
push edx
mov dword [esp + 0x1d], ecx
push eax
mov word [esp + 0x25], cx
mov byte [esp + 0x18], 0
mov byte [esp + 0x27], cl
mov ecx, dword [esp + 0x70]
push ecx
push 1
push esi
mov ecx, ebp
call fcn.006e9bd0
mov ecx, 4
lea edi, [esp + 0x10]
lea esi, [esp + 0x3c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x6ea039
mov eax, dword [ebp + 0x14]
mov dword [ebp + 4], 0x8002
test eax, eax
je 0x6ea019
mov ecx, dword [ebp + 0x18]
dec eax
cmp ecx, eax
mov al, byte [esp + 0x39]
jl 0x6e9f3c
and al, 0xf
add al, 0x10
mov byte [esp + 0x39], al
mov dl, byte [ebp + 0x14]
inc ecx
mov dword [ebp + 0x18], ecx
and cl, 0xf
shl cl, 4
and dl, 0xf
add cl, dl
mov edx, 0x23
mov byte [esp + 0x3a], cl
mov ecx, 1
cmp edx, ecx
jle 0x6e9f69
xor al, byte [esp + ecx + 0x39]
inc ecx
cmp ecx, edx
jl 0x6e9f60
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x38], al
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x30]
mov ecx, 1
mov dword [eax + 0xc], edx
mov al, byte [esp + 0x39]
cmp ebx, ecx
mov dl, al
jle 0x6e9fa3
xor dl, byte [esp + ecx + 0x39]
inc ecx
cmp ecx, ebx
jl 0x6e9f9a
cmp dl, byte [esp + 0x38]
je 0x6e9fb2
mov dword [ebp + 0x10], 0xfe
jmp 0x6e9fc2
mov ecx, dword [esp + 0x39]
and ecx, 0xff
shr ecx, 4
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x3a]
and al, 0xf
and ecx, 0xff
mov edx, ecx
and edx, 0xf
shr ecx, 4
neg al
mov dword [ebp + 0x18], ecx
lea ecx, [esp + 0x20]
sbb eax, eax
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x60]
push ecx
neg eax
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x3f]
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 0x6ea019
push 0x12345678
push str.result__WriteHeader_error_
mov ecx, ebp
call fcn.006eacc0
push 0x12345678
push str.result__VerifyPwd_Fail___wrong_pwd_
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret 0xc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x6ea131
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x6ea131
mov cl, byte [ebp + 0x14]
mov dword [ebp + 0x18], 0
mov al, byte [ebp + 0x18]
and cl, 0xf
and al, 0xf
mov edx, 0x23
shl al, 4
add al, cl
mov cl, byte [esp + 0x39]
mov byte [esp + 0x3a], al
mov eax, 1
cmp edx, eax
jle 0x6ea087
mov bl, byte [esp + eax + 0x39]
xor cl, bl
inc eax
cmp eax, edx
jl 0x6ea07c
mov edx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x38], cl
mov dword [edx], eax
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x20]
push edx
call fcn.006e7c40
mov cl, byte [esp + 0x3c]
add esp, 4
cmp al, cl
je 0x6ea0c7
mov dword [ebp + 0x10], 0xfe
jmp 0x6ea0d6
mov eax, dword [esp + 0x39]
and eax, 0xff
shr eax, 4
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x3a]
mov dl, byte [esp + 0x39]
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 + 0x20]
mov dword [ebp + 0x1c], edx
mov edx, dword [esp + 0x60]
push ecx
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x3f]
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 0x6ea131
push 0x12345678
push str.result__WriteHeader_error_
mov ecx, ebp
call fcn.006eacc0
mov eax, dword [ebp + 0x1c]
push 0x12345678
test eax, eax
je 0x6ea158
push str._VerifyPwd_Need_Change
mov ecx, ebp
call fcn.006eacc0
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x4c
ret 0xc
push str._VerifyPwd_Succeed
mov ecx, ebp
call fcn.006eacc0
pop edi
mov dword [ebp + 8], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 0xc