Function at 0x4686e5
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7b11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x240
mov eax, dword [ebx + 8]
push esi
mov esi, ecx
push edi
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x4c], esi
jne 0x46870d
push edx
call fcn.00446f20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x64]
call fcn.004e9450
xor esi, esi
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov eax, dword [ebx + 8]
mov ecx, eax
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x46873d
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 8
push str.SHA3_224
call fcn.00457de0
add esp, 8
test al, al
je 0x46892b
push 0xc8
lea eax, [ebp - 0x198]
mov dword [ebp - 0xc8], 0x1fffffff
push 0
push eax
mov dword [ebp - 0xc4], 0x19
mov byte [ebp - 0xcf], 1
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xb8], 0x1c
call fcn.00585a40
xor ecx, ecx
mov edx, vtable.CryptoPP::SHA3_224.0
add esp, 0xc
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x1a0], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 0x10
mov esi, dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4688c0
jmp 0x4687d0
mov edx, dword [edx + 0x24]
cmp edx, method.CryptoPP::SHA3_224.virtual_36
jne 0x4687e2
mov edi, 0x90
jmp 0x4687f5
lea ecx, [ebp - 0x1a0]
call edx
mov ecx, dword [ebp - 0xb4]
mov edi, eax
mov eax, dword [ebp - 0x14]
sub edi, ecx
mov dword [ebp - 0x48], edi
cmp esi, edi
jb 0x46889c
test edi, edi
je 0x468871
add ecx, dword [ebp - 0xc0]
mov edx, edi
mov esi, eax
test cl, 3
jne 0x468858
mov eax, dword [ebp - 0x14]
test al, 3
jne 0x468858
mov esi, edi
xor edx, edx
shr esi, 2
test esi, esi
je 0x468847
mov edi, eax
mov dword [ebp - 0x20], esi
mov edx, ecx
sub edi, ecx
mov eax, dword [edi + edx]
lea edx, [edx + 4]
xor dword [edx - 4], eax
sub esi, 1
jne 0x468830
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
lea esi, [edx*4]
mov edx, edi
sub edx, esi
je 0x46886e
add ecx, esi
add esi, eax
test edx, edx
je 0x46886e
sub esi, ecx
mov edi, edi
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x468860
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc0]
call fcn.00510910
mov eax, dword [ebp - 0x14]
sub esi, edi
mov edx, dword [ebp - 0x1a0]
add eax, edi
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb4], ecx
jmp 0x4687d0
test esi, esi
je 0x4688b8
add ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x14]
push esi
call fcn.004f5430
mov ecx, dword [ebp - 0xb4]
add esp, 4
add ecx, esi
mov dword [ebp - 0xb4], ecx
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x2c]
call fcn.004640e0
mov eax, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x1a0]
mov esi, dword [eax + 0x3c]
mov eax, dword [eax + 0x20]
call eax
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1a0]
push eax
mov dword [ebp - 0x14], eax
call esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x198]
mov edx, dword [ebp - 0xc4]
cmp dword [ebp - 0xc8], edx
mov ecx, dword [ebp - 0xc0]
cmovb edx, dword [ebp - 0xc8]
cmp ecx, eax
jne 0x468925
mov byte [ebp - 0xcf], 0
call fcn.0046bd50
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebx + 8]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x468939
mov eax, dword [eax]
push 6
push str.PBKDF2
mov ecx, eax
call fcn.00457de0
add esp, 8
test al, al
je 0x468ba9
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov edx, dword [ebx + 0xc]
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
jb 0x46897d
mov ecx, dword [edx]
add eax, ecx
jmp 0x468981
add eax, edx
mov ecx, edx
push dword [ebp - 0x20]
push eax
push ecx
push 0
lea ecx, [ebp - 0x44]
call fcn.0046b9a0
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x38]
call fcn.00461330
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
cmp eax, 0x10
je 0x468a8e
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x30
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.0044a110
mov ecx, 8
mov dword [ebp - 0x9c], 0x20
mov esi, str.Incorrect_salt_length_for_PBKDF2
mov dword [ebp - 0x98], 0x2f
mov edi, eax
mov dword [ebp - 0xac], eax
rep movsd dword es:[edi], dword [esi]
mov byte [eax + 0x20], 0
mov eax, dword [str.logic_salt]
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x7c], eax
mov eax, dword [0x5e95a8]
mov dword [ebp - 0x78], eax
mov ax, word [0x5e95ac]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0xa
mov word [ebp - 0x74], ax
mov byte [ebp - 0x72], 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
push 0x1c
lea eax, [ebp - 0xac]
mov ecx, 2
push str.SessionAccept.cpp
push eax
lea edx, [ebp - 0x7c]
call fcn.004d4b60
add esp, 0x10
lea ecx, [ebp - 0x7c]
call fcn.004470b0
lea ecx, [ebp - 0xac]
call fcn.004470b0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00449240
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, edi
sub edx, ecx
cmp edx, 0x20
jbe 0x468a9f
lea edi, [ecx + 0x20]
jmp 0x468ad6
jae 0x468ad9
mov eax, dword [ebp - 0x24]
sub eax, ecx
cmp eax, 0x20
jae 0x468ac1
push ecx
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.004676a0
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
jmp 0x468ad9
mov esi, 0x20
sub esi, edx
push esi
push 0
push edi
call fcn.00585a40
add esp, 0xc
add edi, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], vtable.CryptoPP::PKCS5_PBKDF2_HMAC_class_CryptoPP::SHA256_.0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x64]
mov ecx, dword [ebp - 0x38]
mov eax, edi
mov edx, dword [ebp - 0x34]
fldz
sub edx, ecx
cmp dword [ebp - 0x50], 0x10
cmovae esi, dword [ebp - 0x64]
sub esp, 8
sub eax, dword [ebp - 0x14]
fstp qword [esp]
push 0x9c40
push edx
push ecx
push dword [ebp - 0x54]
push esi
mov esi, dword [ebp - 0x14]
push ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0046af30
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], vtable.CryptoPP::PKCS5_PBKDF2_HMAC_class_CryptoPP::SHA256_.0
test edx, edx
je 0x468b71
mov ecx, dword [ebp - 0x30]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x468b52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468cdb
push ecx
push edx
call fcn.00583877
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x468ba9
mov edx, dword [ebp - 0x3c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x468b9f
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468cdb
push edx
push ecx
call fcn.00583877
add esp, 8
push ecx
lea ecx, [ebp - 0x250]
call fcn.00446140
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x22c]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ebp + ecx - 0x22c], eax
mov ecx, 0x30
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + 4]
mov word [ebp + eax - 0x200], cx
mov eax, esi
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x468c4f
lea esp, [esp]
mov al, byte [esi]
push 0
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x90]
push 2
push eax
call fcn.00571ffe
mov ecx, dword [ebp - 0x240]
lea edx, [ebp - 0x240]
add esp, 0xc
mov ecx, dword [ecx + 4]
push dword [eax + 0xc]
add ecx, edx
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
movzx eax, byte [ebp - 0x15]
lea ecx, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00446440
inc esi
cmp esi, edi
jne 0x468c00
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x238]
push edi
call fcn.004492b0
lea ecx, [ebp - 0x250]
call fcn.0043b280
test esi, esi
je 0x468c96
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x468c8c
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468ce0
push ecx
push esi
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x468cc6
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x468cbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468ce0
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00591c98
call fcn.00591c98
int3