Function at 0x6b55c830
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x8c], eax
xor eax, eax
call sym.libcrypto_1_1.dll_EVP_sha1
mov dword [esp], eax
mov dword [esp + 0x30], eax
call sym.libcrypto_1_1.dll_EVP_MD_size
mov ecx, eax
mov ebp, eax
neg ecx
add ecx, ecx
lea eax, [ebx + ecx - 2]
cmp dword [esp + 0xbc], eax
jg 0x6b55cc78
lea esi, [ebx - 1]
lea eax, [ebp + ebp + 1]
cmp esi, eax
jl 0x6b55cc40
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov byte [eax], 0
lea ebx, [eax + ebp + 1]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.libcrypto_1_1.dll_EVP_Digest
mov ecx, dword [esp + 0x38]
test eax, eax
jne 0x6b55c950
mov dword [esp + 0x34], 0
xor esi, esi
xor ebx, ebx
lea edi, [esp + 0x4c]
mov dword [esp + 4], 0x40
mov dword [esp], edi
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0x68
mov dword [esp + 8], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 4], eax
mov dword [esp], esi
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 0x6b55cd48
add esp, 0x9c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov edi, esi
sub edi, dword [esp + 0xbc]
mov dword [esp + 4], 0
lea ecx, [edi + ecx - 1]
sub edi, ebp
add eax, 1
mov dword [esp + 8], ecx
mov dword [esp + 0x38], eax
lea eax, [ebx + ebp]
mov dword [esp], eax
call sym._memset
mov edx, dword [esp + 0xbc]
mov byte [ebx + edi - 1], 1
add edi, ebx
mov dword [esp], edi
mov dword [esp + 8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sym.libcrypto_1_1.dll_RAND_bytes
test eax, eax
jle 0x6b55c8eb
sub esi, ebp
mov dword [esp + 8], 0x55
mov dword [esp], esi
mov edi, esi
mov dword [esp + 4], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 0x34], esi
call sym.libcrypto_1_1.dll_CRYPTO_malloc
mov esi, eax
test eax, eax
je 0x6b55cce8
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 8], eax
call sym.libcrypto_1_1.dll_PKCS1_MGF1
test eax, eax
js 0x6b55ccd8
test edi, edi
jle 0x6b55ca8f
mov eax, dword [esp + 0x2c]
lea eax, [eax + ebp + 5]
cmp esi, eax
lea eax, [esi + 4]
setae cl
cmp ebx, eax
setae al
or eax, ecx
lea ecx, [edi - 1]
cmp ecx, 2
seta cl
test al, cl
je 0x6b55cd20
mov eax, ebx
or eax, esi
test al, 3
jne 0x6b55cd20
mov ecx, edi
xor eax, eax
and ecx, 0xfffffffc
lea esi, [esi]
mov edx, dword [esi + eax]
xor dword [ebx + eax], edx
add eax, 4
cmp eax, ecx
jne 0x6b55ca50
mov eax, edi
and eax, 0xfffffffc
test edi, 3
je 0x6b55ca8f
movzx ecx, byte [esi + eax]
xor byte [ebx + eax], cl
lea ecx, [eax + 1]
cmp edi, ecx
jle 0x6b55ca8f
movzx edx, byte [esi + eax + 1]
xor byte [ebx + ecx], dl
lea ecx, [eax + 2]
cmp edi, ecx
jle 0x6b55ca8f
movzx eax, byte [esi + eax + 2]
xor byte [ebx + ecx], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], edi
lea edi, [esp + 0x4c]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call sym.libcrypto_1_1.dll_PKCS1_MGF1
test eax, eax
js 0x6b55c8fb
test ebp, ebp
jle 0x6b55cc2f
test byte [esp + 0x38], 3
jne 0x6b55ccb0
lea eax, [ebp - 1]
cmp eax, 2
jbe 0x6b55ccb0
mov edx, dword [esp + 0x2c]
mov eax, ebp
shr eax, 2
mov ecx, dword [edx + 1]
xor ecx, dword [esp + 0x4c]
mov dword [edx + 1], ecx
cmp eax, 1
je 0x6b55cbf8
mov ecx, dword [edx + 5]
xor ecx, dword [esp + 0x50]
mov dword [edx + 5], ecx
cmp eax, 2
je 0x6b55cbf8
mov ecx, dword [edx + 9]
xor ecx, dword [esp + 0x54]
mov dword [edx + 9], ecx
cmp eax, 3
je 0x6b55cbf8
mov ecx, dword [edx + 0xd]
xor ecx, dword [esp + 0x58]
mov dword [edx + 0xd], ecx
cmp eax, 4
je 0x6b55cbf8
mov ecx, dword [edx + 0x11]
xor ecx, dword [esp + 0x5c]
mov dword [edx + 0x11], ecx
cmp eax, 5
je 0x6b55cbf8
mov ecx, dword [edx + 0x15]
xor ecx, dword [esp + 0x60]
mov dword [edx + 0x15], ecx
cmp eax, 6
je 0x6b55cbf8
mov ecx, dword [edx + 0x19]
xor ecx, dword [esp + 0x64]
mov dword [edx + 0x19], ecx
cmp eax, 7
je 0x6b55cbf8
mov ecx, dword [edx + 0x1d]
xor ecx, dword [esp + 0x68]
mov dword [edx + 0x1d], ecx
cmp eax, 8
je 0x6b55cbf8
mov ecx, dword [edx + 0x21]
xor ecx, dword [esp + 0x6c]
mov dword [edx + 0x21], ecx
cmp eax, 9
je 0x6b55cbf8
mov ecx, dword [edx + 0x25]
xor ecx, dword [esp + 0x70]
mov dword [edx + 0x25], ecx
cmp eax, 0xa
je 0x6b55cbf8
mov ecx, dword [edx + 0x29]
xor ecx, dword [esp + 0x74]
mov dword [edx + 0x29], ecx
cmp eax, 0xb
je 0x6b55cbf8
mov ecx, dword [edx + 0x2d]
xor ecx, dword [esp + 0x78]
mov dword [edx + 0x2d], ecx
cmp eax, 0xc
je 0x6b55cbf8
mov ecx, dword [edx + 0x31]
xor ecx, dword [esp + 0x7c]
mov dword [edx + 0x31], ecx
cmp eax, 0xd
je 0x6b55cbf8
mov ecx, dword [edx + 0x35]
xor ecx, dword [esp + 0x80]
mov dword [edx + 0x35], ecx
cmp eax, 0xe
je 0x6b55cbf8
mov ecx, dword [edx + 0x39]
xor ecx, dword [esp + 0x84]
mov dword [edx + 0x39], ecx
cmp eax, 0xf
je 0x6b55cbf8
mov eax, dword [edx + 0x3d]
xor eax, dword [esp + 0x88]
mov dword [edx + 0x3d], eax
lea esi, [esi]
mov ecx, ebp
and ecx, 0xfffffffc
test ebp, 3
je 0x6b55cc2f
mov edx, dword [esp + 0x38]
movzx eax, byte [esp + ecx + 0x4c]
xor byte [edx + ecx], al
lea eax, [ecx + 1]
cmp ebp, eax
jle 0x6b55cc2f
movzx ebx, byte [esp + ecx + 0x4d]
add ecx, 2
xor byte [edx + eax], bl
cmp ebp, ecx
jle 0x6b55cc2f
movzx eax, byte [esp + ecx + 0x4c]
xor byte [edx + ecx], al
mov ebx, 1
jmp 0x6b55c8fb
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 0x6b55c92b
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 0x6b55c92b
mov eax, dword [esp + 0x2c]
xor ecx, ecx
lea esi, [esi]
lea esi, [esi]
movzx edx, byte [edi + ecx]
xor byte [eax + ecx + 1], dl
add ecx, 1
cmp ebp, ecx
jne 0x6b55ccc0
jmp 0x6b55cc2f
xor ebx, ebx
lea edi, [esp + 0x4c]
jmp 0x6b55c8fb
mov dword [esp + 0x10], 0x57
xor ebx, ebx
lea edi, [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 0x6b55c8fb
mov dword [esp + 0x3c], ebx
mov eax, ebx
mov ecx, esi
lea edx, [ebx + edi]
lea esi, [esi]
nop
movzx ebx, byte [ecx]
xor byte [eax], bl
add eax, 1
add ecx, 1
cmp eax, edx
jne 0x6b55cd30
mov ebx, dword [esp + 0x3c]
jmp 0x6b55ca8f
call sym.___stack_chk_fail
nop
nop
nop