Function at 0x6b50f890
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [esp + 0xe4]
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0xd0]
mov ebp, dword [esp + 0xec]
mov dword [esp], ebx
mov dword [esp + 0x54], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0xac], eax
xor eax, eax
call sym.libcrypto_1_1.dll_EVP_MD_size
mov dword [esp + 0x30], eax
test eax, eax
js 0x6b50fca0
call sym.libcrypto_1_1.dll_HMAC_CTX_new
mov dword [esp + 0x2c], eax
test eax, eax
je 0x6b50fca0
test esi, esi
je 0x6b50fd0d
cmp dword [esp + 0xd4], 0xffffffff
jne 0x6b50f90e
mov dword [esp], esi
call sym._strlen
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_Init_ex
test eax, eax
je 0x6b50fcf7
call sym.libcrypto_1_1.dll_HMAC_CTX_new
mov dword [esp + 0x58], eax
test eax, eax
je 0x6b50fc92
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x6b50fc73
mov dword [esp + 0x5c], 1
mov esi, ebp
mov ebp, dword [esp + 0x58]
lea edi, [esp + 0x6c]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0xe8]
mov dword [esp], ebp
mov ebx, eax
mov eax, dword [esp + 0x5c]
cmovg ebx, dword [esp + 0xe8]
bswap eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_copy
test eax, eax
je 0x6b50fd22
mov eax, dword [esp + 0xdc]
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_HMAC_Update
test eax, eax
je 0x6b50fcdb
lea eax, [esp + 0x68]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], ebp
call sym.libcrypto_1_1.dll_HMAC_Update
test eax, eax
je 0x6b50fcdb
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym.libcrypto_1_1.dll_HMAC_Final
test eax, eax
je 0x6b50fcdb
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._memcpy
cmp dword [esp + 0xe0], 1
jle 0x6b50fc5f
test esi, 3
lea eax, [ebx - 1]
mov dword [esp + 0x28], 1
sete cl
cmp eax, 2
seta al
and ecx, eax
mov eax, ebx
shr eax, 2
mov byte [esp + 0x37], cl
mov dword [esp + 0x38], eax
mov eax, ebx
and eax, 0xfffffffc
lea edx, [esi + eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea edx, [eax + 1]
add eax, 2
mov dword [esp + 0x44], edx
add edx, esi
mov dword [esp + 0x4c], eax
add eax, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], eax
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_copy
test eax, eax
je 0x6b50fd22
mov eax, dword [esp + 0x30]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym.libcrypto_1_1.dll_HMAC_Update
test eax, eax
je 0x6b50fcdb
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym.libcrypto_1_1.dll_HMAC_Final
test eax, eax
je 0x6b50fcdb
test ebx, ebx
jle 0x6b50fc49
cmp byte [esp + 0x37], 0
je 0x6b50fcc0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
xor dword [esi], eax
cmp ecx, 1
jbe 0x6b50fc10
mov eax, dword [esi + 4]
xor eax, dword [esp + 0x70]
mov dword [esi + 4], eax
cmp ecx, 2
je 0x6b50fc10
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x74]
mov dword [esi + 8], eax
cmp ecx, 3
je 0x6b50fc10
mov eax, dword [esi + 0xc]
xor eax, dword [esp + 0x78]
mov dword [esi + 0xc], eax
cmp ecx, 4
je 0x6b50fc10
mov eax, dword [esi + 0x10]
xor eax, dword [esp + 0x7c]
mov dword [esi + 0x10], eax
cmp ecx, 5
je 0x6b50fc10
mov eax, dword [esi + 0x14]
xor eax, dword [esp + 0x80]
mov dword [esi + 0x14], eax
cmp ecx, 6
je 0x6b50fc10
mov eax, dword [esi + 0x18]
xor eax, dword [esp + 0x84]
mov dword [esi + 0x18], eax
cmp ecx, 7
je 0x6b50fc10
mov eax, dword [esi + 0x1c]
xor eax, dword [esp + 0x88]
mov dword [esi + 0x1c], eax
cmp ecx, 8
je 0x6b50fc10
mov eax, dword [esi + 0x20]
xor eax, dword [esp + 0x8c]
mov dword [esi + 0x20], eax
cmp ecx, 9
je 0x6b50fc10
mov eax, dword [esi + 0x24]
xor eax, dword [esp + 0x90]
mov dword [esi + 0x24], eax
cmp ecx, 0xa
je 0x6b50fc10
mov eax, dword [esi + 0x28]
xor eax, dword [esp + 0x94]
mov dword [esi + 0x28], eax
cmp ecx, 0xb
je 0x6b50fc10
mov eax, dword [esi + 0x2c]
xor eax, dword [esp + 0x98]
mov dword [esi + 0x2c], eax
cmp ecx, 0xc
je 0x6b50fc10
mov eax, dword [esi + 0x30]
xor eax, dword [esp + 0x9c]
mov dword [esi + 0x30], eax
cmp ecx, 0xd
je 0x6b50fc10
mov eax, dword [esi + 0x34]
xor eax, dword [esp + 0xa0]
mov dword [esi + 0x34], eax
cmp ecx, 0xe
je 0x6b50fc10
mov eax, dword [esi + 0x38]
xor eax, dword [esp + 0xa4]
mov dword [esi + 0x38], eax
cmp ecx, 0xf
je 0x6b50fc10
mov eax, dword [esi + 0x3c]
xor eax, dword [esp + 0xa8]
mov dword [esi + 0x3c], eax
nop
mov eax, dword [esp + 0x3c]
cmp ebx, eax
je 0x6b50fc49
mov edx, dword [esp + 0x40]
movzx eax, byte [esp + eax + 0x6c]
xor byte [edx], al
mov eax, dword [esp + 0x44]
cmp eax, ebx
jge 0x6b50fc49
mov edx, dword [esp + 0x48]
movzx eax, byte [esp + eax + 0x6c]
xor byte [edx], al
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jle 0x6b50fc49
mov edx, dword [esp + 0x50]
movzx eax, byte [esp + eax + 0x6c]
xor byte [edx], al
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
cmp dword [esp + 0xe0], eax
jne 0x6b50fa80
add dword [esp + 0x5c], 1
add esi, ebx
sub dword [esp + 0xe8], ebx
jne 0x6b50f96f
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
mov eax, 1
jmp 0x6b50fca2
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
nop
xor eax, eax
mov edi, dword [esp + 0xac]
xor edi, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b50fd47
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea esi, [esi]
movzx edx, byte [edi + eax]
xor byte [esi + eax], dl
add eax, 1
cmp ebx, eax
jne 0x6b50fcc8
jmp 0x6b50fc49
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
xor eax, eax
jmp 0x6b50fca2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
mov eax, dword [esp + 0x28]
jmp 0x6b50fca2
mov dword [esp + 0xd4], 0
mov esi, 0x6b5fa698
jmp 0x6b50f90e
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_HMAC_CTX_free
mov eax, dword [esp + 0x28]
jmp 0x6b50fca2
call sym.___stack_chk_fail
lea esi, [esi]