Function at 0x52f7d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov edx, dword [esp + 8]
push 0x613088
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 0x52f82b
cmp byte [edx], 0
je 0x52f82b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x33
jbe 0x52f817
mov esi, 0x33
mov dword [esp + 0x68], edx
jmp 0x52f838
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 0x52f838
mov esi, 1
mov dword [esp + 0x68], 0x630be0
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x52f875
cmp byte [edx], 0
je 0x52f875
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x33
jbe 0x52f861
mov ebx, 0x33
mov dword [esp + 0x6c], edx
jmp 0x52f882
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 0x52f882
mov ebx, 1
mov dword [esp + 0x6c], 0x630be0
push ebp
lea ecx, [esp + 0x14]
call fcn.0052e7b0
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x60], edi
jne 0x52f8f1
push 0x12345678
push str.result_lock_ChangePwd_fail___lock_failed__
mov ecx, ebp
call fcn.00532c10
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], 0x8005
cmp eax, edi
mov dword [esp + 0x10], 0x630be8
je 0x52f8e7
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x52f8d4
push ecx
call fcn.005b6c00
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x52f8e4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], edi
mov eax, 4
jmp 0x52fb76
mov ecx, dword [esp + 0x68]
push esi
push ecx
push eax
mov ecx, ebp
call fcn.00531cd0
mov edi, eax
test edi, edi
je 0x52f957
cmp edi, 5
je 0x52f957
push edi
push str.result_Change_password_failed____VerifyPwd_
mov ecx, ebp
call fcn.00532c10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x630be8
test eax, eax
je 0x52f950
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x52f939
push ecx
call fcn.005b6c00
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
test eax, eax
je 0x52f949
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], 0
mov eax, edi
jmp 0x52fb76
cmp edi, 5
mov dword [ebp + 8], 1
jne 0x52fb0d
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.00531910
test eax, eax
mov dword [ebp + 4], eax
je 0x52f9fb
push 0x12345678
push str.result__ReadHeader_error_
mov ecx, ebp
call fcn.00532c10
push 3
push str.result_Change_password_failed____ReadHeader_
mov ecx, ebp
call fcn.00532c10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0x630be8
test eax, eax
je 0x52f9f1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x52f9da
push ecx
call fcn.005b6c00
mov eax, dword [esp + 0x18]
mov esi, eax
mov eax, dword [eax + 0x40]
test eax, eax
je 0x52f9ea
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x48], 0
mov eax, 3
jmp 0x52fb76
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 0x52fa1e
xor cl, byte [esp + eax + 0x35]
inc eax
cmp eax, edx
jl 0x52fa15
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.0052fb90
mov cl, byte [esp + 0x38]
add esp, 4
cmp al, cl
je 0x52fa5e
mov dword [ebp + 0x10], 0xfe
jmp 0x52fa6e
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.005319f0
test eax, eax
mov dword [ebp + 4], eax
je 0x52fb0d
push 0x12345678
push str.result__WriteHeader_error_
mov ecx, ebp
call fcn.00532c10
push 3
push str.result_Change_password_failed____WriteHeader_
mov ecx, ebp
call fcn.00532c10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
test eax, eax
mov dword [esp + 0x10], 0x630be8
je 0x52fb06
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52fafd
push eax
call fcn.005b6c00
mov ecx, dword [esp + 0x18]
call fcn.00531480
mov eax, 3
jmp 0x52fb76
cmp esi, ebx
jne 0x52fb29
mov edi, dword [esp + 0x6c]
mov ecx, esi
mov esi, dword [esp + 0x68]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x52fb29
push eax
push str.result_Change_password
jmp 0x52fb64
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push edx
mov ecx, ebp
call fcn.005320d0
test eax, eax
jne 0x52fb5d
push 3
push str.result_Change_password_failed____SetPwd_
mov ecx, ebp
call fcn.00532c10
lea ecx, [esp + 0x10]
call fcn.0052e8c0
mov eax, 3
jmp 0x52fb76
push 0
push str.Change_password
mov ecx, ebp
call fcn.00532c10
lea ecx, [esp + 0x10]
call fcn.0052e8c0
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