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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xc8]
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x8c], eax
xor eax, eax
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
test ebp, ebp
je 0x6b55bde8
mov dword [esp], ebp
test ebx, ebx
cmove ebx, ebp
call sym.libcrypto_1_1.dll_EVP_MD_size
mov ecx, eax
mov edi, eax
neg ecx
add ecx, ecx
lea eax, [esi + ecx - 2]
cmp eax, dword [esp + 0xbc]
jl 0x6b55bdb0
lea eax, [edi + edi + 1]
cmp eax, dword [esp + 0x24]
jg 0x6b55bd78
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov byte [eax], 0
lea esi, [eax + edi + 1]
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_EVP_Digest
mov ecx, dword [esp + 0x34]
test eax, eax
jne 0x6b55ba30
mov dword [esp + 0x24], 0
xor ebp, ebp
xor ebx, ebx
lea esi, [esp + 0x4c]
mov dword [esp + 4], 0x40
mov dword [esp], esi
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebp
mov dword [esp + 0xc], 0x68
mov dword [esp + 8], str.crypto_rsa_rsa_oaep.c
mov dword [esp], eax
call sym.libcrypto_1_1.dll_CRYPTO_clear_free
mov eax, dword [esp + 0x8c]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b55be9c
add esp, 0x9c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], 0
sub ebp, dword [esp + 0xbc]
add eax, 1
lea edx, [ebp + ecx - 1]
sub ebp, edi
mov dword [esp + 0x2c], eax
lea eax, [esi + edi]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
mov edx, dword [esp + 0xbc]
mov byte [esi + ebp - 1], 1
add ebp, esi
mov dword [esp], ebp
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_RAND_bytes
test eax, eax
jle 0x6b55b9c7
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], 0x55
mov dword [esp + 4], str.crypto_rsa_rsa_oaep.c
sub ecx, edi
mov dword [esp], ecx
mov ebp, ecx
mov dword [esp + 0x30], ecx
call sym.libcrypto_1_1.dll_CRYPTO_malloc
mov ecx, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x24], eax
je 0x6b55be28
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x30], ecx
call sym.libcrypto_1_1.dll_PKCS1_MGF1
test eax, eax
js 0x6b55be18
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x6b55bbcd
mov eax, dword [esp + 0x28]
lea eax, [eax + edi + 5]
cmp dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
setae dl
add eax, 4
cmp esi, eax
setae al
or eax, edx
lea edx, [ecx - 1]
cmp edx, 2
seta dl
test al, dl
je 0x6b55be60
mov eax, dword [esp + 0x24]
or eax, esi
test al, 3
jne 0x6b55be60
mov dword [esp + 0x34], ecx
mov edx, ecx
xor eax, eax
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x24]
and edx, 0xfffffffc
lea esi, [esi]
nop
mov ecx, dword [ebp + eax]
xor dword [esi + eax], ecx
add eax, 4
cmp eax, edx
jne 0x6b55bb60
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov eax, ecx
and eax, 0xfffffffc
mov dword [esp + 0x30], eax
test cl, 3
je 0x6b55bbcd
mov edx, dword [esp + 0x24]
movzx edx, byte [edx + eax]
xor byte [esi + eax], dl
add eax, 1
mov dword [esp + 0x34], eax
cmp ecx, eax
jle 0x6b55bbcd
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
movzx edx, byte [edx + eax + 1]
mov eax, dword [esp + 0x34]
xor byte [esi + eax], dl
mov eax, dword [esp + 0x30]
lea edx, [eax + 2]
mov dword [esp + 0x34], edx
cmp ecx, edx
jle 0x6b55bbcd
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + eax + 2]
mov edx, dword [esp + 0x34]
xor byte [esi + edx], al
mov dword [esp + 8], esi
lea esi, [esp + 0x4c]
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym.libcrypto_1_1.dll_PKCS1_MGF1
test eax, eax
js 0x6b55b9d7
test edi, edi
jle 0x6b55bd67
test byte [esp + 0x2c], 3
jne 0x6b55bdf8
lea eax, [edi - 1]
cmp eax, 2
jbe 0x6b55bdf8
mov ebx, dword [esp + 0x28]
mov eax, edi
shr eax, 2
mov edx, dword [ebx + 1]
xor edx, dword [esp + 0x4c]
mov dword [ebx + 1], edx
cmp eax, 1
je 0x6b55bd30
mov edx, dword [ebx + 5]
xor edx, dword [esp + 0x50]
mov dword [ebx + 5], edx
cmp eax, 2
je 0x6b55bd30
mov edx, dword [ebx + 9]
xor edx, dword [esp + 0x54]
mov dword [ebx + 9], edx
cmp eax, 3
je 0x6b55bd30
mov edx, dword [ebx + 0xd]
xor edx, dword [esp + 0x58]
mov dword [ebx + 0xd], edx
cmp eax, 4
je 0x6b55bd30
mov edx, dword [ebx + 0x11]
xor edx, dword [esp + 0x5c]
mov dword [ebx + 0x11], edx
cmp eax, 5
je 0x6b55bd30
mov edx, dword [ebx + 0x15]
xor edx, dword [esp + 0x60]
mov dword [ebx + 0x15], edx
cmp eax, 6
je 0x6b55bd30
mov edx, dword [ebx + 0x19]
xor edx, dword [esp + 0x64]
mov dword [ebx + 0x19], edx
cmp eax, 7
je 0x6b55bd30
mov edx, dword [ebx + 0x1d]
xor edx, dword [esp + 0x68]
mov dword [ebx + 0x1d], edx
cmp eax, 8
je 0x6b55bd30
mov edx, dword [ebx + 0x21]
xor edx, dword [esp + 0x6c]
mov dword [ebx + 0x21], edx
cmp eax, 9
je 0x6b55bd30
mov edx, dword [ebx + 0x25]
xor edx, dword [esp + 0x70]
mov dword [ebx + 0x25], edx
cmp eax, 0xa
je 0x6b55bd30
mov edx, dword [ebx + 0x29]
xor edx, dword [esp + 0x74]
mov dword [ebx + 0x29], edx
cmp eax, 0xb
je 0x6b55bd30
mov edx, dword [ebx + 0x2d]
xor edx, dword [esp + 0x78]
mov dword [ebx + 0x2d], edx
cmp eax, 0xc
je 0x6b55bd30
mov edx, dword [ebx + 0x31]
xor edx, dword [esp + 0x7c]
mov dword [ebx + 0x31], edx
cmp eax, 0xd
je 0x6b55bd30
mov edx, dword [ebx + 0x35]
xor edx, dword [esp + 0x80]
mov dword [ebx + 0x35], edx
cmp eax, 0xe
je 0x6b55bd30
mov edx, dword [ebx + 0x39]
xor edx, dword [esp + 0x84]
mov dword [ebx + 0x39], edx
cmp eax, 0xf
je 0x6b55bd30
mov eax, dword [ebx + 0x3d]
xor eax, dword [esp + 0x88]
mov dword [ebx + 0x3d], eax
nop
mov edx, edi
and edx, 0xfffffffc
test edi, 3
je 0x6b55bd67
mov ebx, dword [esp + 0x2c]
movzx eax, byte [esp + edx + 0x4c]
xor byte [ebx + edx], al
lea eax, [edx + 1]
cmp edi, eax
jle 0x6b55bd67
movzx ecx, byte [esp + edx + 0x4d]
add edx, 2
xor byte [ebx + eax], cl
cmp edi, edx
jle 0x6b55bd67
movzx eax, byte [esp + edx + 0x4c]
xor byte [ebx + edx], al
mov ebx, 1
jmp 0x6b55b9d7
mov dword [esp + 0x10], 0x43
xor ebx, ebx
mov dword [esp + 0xc], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x78
mov dword [esp + 4], 0x9a
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b55ba07
mov dword [esp + 0x10], 0x3d
xor ebx, ebx
mov dword [esp + 0xc], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x6e
mov dword [esp + 4], 0x9a
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b55ba07
call sym.libcrypto_1_1.dll_EVP_sha1
mov ebp, eax
jmp 0x6b55b94d
mov eax, dword [esp + 0x28]
xor edx, edx
nop
movzx ecx, byte [esi + edx]
xor byte [eax + edx + 1], cl
add edx, 1
cmp edi, edx
jne 0x6b55be00
jmp 0x6b55bd67
xor ebx, ebx
lea esi, [esp + 0x4c]
jmp 0x6b55b9d7
mov dword [esp + 0x10], 0x57
xor ebx, ebx
lea esi, [esp + 0x4c]
mov dword [esp + 0xc], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x9a
mov dword [esp], 4
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b55b9d7
lea eax, [esi + ecx]
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
mov eax, esi
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x34]
lea esi, [esi]
movzx ecx, byte [edx]
xor byte [eax], cl
add eax, 1
add edx, 1
cmp eax, ebp
jne 0x6b55be80
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
jmp 0x6b55bbcd
call sym.___stack_chk_fail
lea esi, [esi]
lea esi, [esi]
nop