Function at 0x6b517c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov eax, dword [esp + 0xf0]
mov ebp, dword [esp + 0xe0]
mov edx, dword [esp + 0xec]
mov esi, dword [esp + 0xe4]
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0xbc], eax
xor eax, eax
mov eax, dword [ebp]
test edx, edx
je 0x6b517eb0
cmp edx, eax
je 0x6b517cce
test esi, esi
je 0x6b517da8
mov ebx, dword [esp + 0xe8]
test ebx, ebx
js 0x6b517da8
mov dword [ebp], edx
mov edi, 1
mov dword [esp], edx
mov dword [esp + 0x18], edx
call sym.libcrypto_1_1.dll_EVP_MD_meth_get_flags
and eax, 2
mov ebx, eax
jne 0x6b517da8
test esi, esi
mov edx, dword [esp + 0x18]
je 0x6b517dd0
mov dword [esp], edx
call sym.libcrypto_1_1.dll_EVP_MD_block_size
cmp eax, 0x90
jg 0x6b517da8
cmp dword [esp + 0xe8], eax
mov edx, dword [esp + 0x18]
jg 0x6b517d80
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x18], eax
cmp eax, 0x90
ja 0x6b517da8
lea ecx, [ebp + 0x14]
cmp dword [esp + 0xe8], 4
mov eax, ecx
jae 0x6b517f87
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x6b517fb3
movzx ecx, byte [esi]
mov byte [ebp + 0x14], cl
test byte [esp + 0xe8], 2
je 0x6b517fb3
mov ecx, dword [esp + 0xe8]
movzx esi, word [esi + ecx - 2]
mov word [eax + ecx - 2], si
jmp 0x6b517fb3
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
test eax, eax
jne 0x6b517edd
lea esi, [esi]
nop
xor eax, eax
mov ecx, dword [esp + 0xbc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b517ff9
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
test edi, edi
je 0x6b517ec1
xor eax, eax
lea esi, [esp + 0x2c]
lea esi, [esi]
mov edi, dword [ebp + eax + 0x14]
xor edi, 0x36363636
mov dword [esi + eax], edi
add eax, 4
cmp eax, 0x90
jne 0x6b517de8
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x18], edx
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
mov edx, dword [esp + 0x18]
test eax, eax
je 0x6b517e8a
mov dword [esp], edx
mov dword [esp + 0x18], edx
call sym.libcrypto_1_1.dll_EVP_MD_block_size
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
test eax, eax
je 0x6b517e8a
mov edx, dword [esp + 0x18]
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp + ebx + 0x14]
xor eax, 0x5c5c5c5c
mov dword [esi + ebx], eax
add ebx, 4
cmp ebx, 0x90
jne 0x6b517e50
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
test eax, eax
jne 0x6b517f41
xor eax, eax
mov dword [esp + 4], 0x90
mov dword [esp], esi
mov dword [esp + 0x14], eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov eax, dword [esp + 0x14]
jmp 0x6b517daa
test eax, eax
je 0x6b517da8
mov edx, eax
xor edi, edi
jmp 0x6b517cd6
mov dword [esp + 4], ecx
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_MD_CTX_copy_ex
test eax, eax
setne al
movzx eax, al
jmp 0x6b517daa
mov eax, dword [esp + 0xe8]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
test eax, eax
je 0x6b517da8
lea eax, [ebp + 0x10]
mov dword [esp + 8], eax
lea eax, [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_DigestFinal_ex
test eax, eax
je 0x6b517da8
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0x90
jne 0x6b517fc2
mov ecx, dword [ebp + 8]
jmp 0x6b517ddb
mov edx, dword [esp + 0x14]
mov dword [esp], edx
call sym.libcrypto_1_1.dll_EVP_MD_block_size
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
test eax, eax
je 0x6b517e8a
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_MD_CTX_copy_ex
test eax, eax
setne al
movzx eax, al
jmp 0x6b517e8c
mov edi, dword [esi]
mov dword [ebp + 0x14], edi
mov ecx, dword [esp + 0xe8]
mov edi, dword [esi + ecx - 4]
mov dword [eax + ecx - 4], edi
lea edi, [ebp + 0x18]
mov ecx, eax
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, dword [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xe8]
mov dword [ebp + 0x10], ecx
jmp 0x6b517f2b
mov eax, dword [esp + 0x18]
mov ecx, 0x90
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov esi, ecx
mov dword [esp + 4], 0
lea ecx, [ebp + eax + 0x14]
mov dword [esp + 8], esi
mov dword [esp], ecx
call sym._memset
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
jmp 0x6b517ddb
call sym.___stack_chk_fail
nop