Function at 0x4ec370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x14]
test eax, eax
je 0x4ecba0
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x28]
test esi, esi
cmove eax, dword [ebp + 0x24]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [esp], eax
call fcn.004aa2f0
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
test edi, edi
jle 0x4ecc82
test ebx, ebx
jle 0x4ecc82
cmp ebx, dword [ebp + 0x18]
jg 0x4ecc45
add eax, 1
mov dword [esp + 0x58], eax
add eax, eax
cmp eax, dword [ebp + 0x18]
jg 0x4ecc45
mov eax, dword [ebp + 0x18]
mov esi, dword [esp + 0x64]
mov dword [esp + 8], 0xcd
mov dword [esp + 4], str..._crypto_rsa_rsa_oaep.c
sub eax, esi
mov dword [esp + 0x4c], eax
sub eax, 1
mov dword [esp], eax
mov dword [esp + 0x68], eax
call fcn.004ce330
mov dword [esp + 0x60], eax
test eax, eax
je 0x4ecb30
mov dword [esp + 8], 0xd3
mov dword [esp + 4], str..._crypto_rsa_rsa_oaep.c
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.004ce330
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x54], eax
add esi, eax
add ecx, ebx
mov edx, esi
test eax, eax
je 0x4ecbad
lea esi, [esi]
mov eax, ebx
lea edi, [ebx - 1]
sub edx, 1
not eax
and edi, eax
sar edi, 0x1f
mov eax, edi
add edi, 1
sub ecx, edi
not eax
sub ebx, edi
mov edi, esi
and al, byte [ecx]
sub edi, edx
mov byte [edx], al
cmp dword [ebp + 0x18], edi
jg 0x4ec448
mov esi, dword [esp + 0x54]
movzx edi, al
mov eax, dword [esp + 0x64]
lea edx, [edi - 1]
not edi
lea ebx, [esi + 1]
mov esi, dword [ebp + 0x28]
mov dword [esp + 4], eax
and edx, edi
lea ecx, [ebx + eax]
lea eax, [esp + 0x70]
mov dword [esp + 0x48], edx
sar edx, 0x1f
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x50], eax
call fcn.004ebbc0
test eax, eax
jne 0x4ec840
mov ecx, dword [esp + 0x64]
test ecx, ecx
jle 0x4ec512
mov esi, dword [esp + 0x64]
lea edx, [esi - 1]
cmp edx, 2
jbe 0x4ec4f5
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov esi, edi
add esi, 2
sub ecx, esi
cmp ecx, 0xe
ja 0x4ec9d0
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x50]
lea esi, [esi]
movzx ecx, byte [ebx + eax]
xor byte [edx + eax], cl
add eax, 1
cmp esi, eax
jne 0x4ec500
mov dword [esp + 0x6c], edi
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.004ebbc0
mov dword [esp + 0x40], eax
test eax, eax
jne 0x4ec840
mov edi, dword [esp + 0x68]
test edi, edi
jle 0x4ecbc4
mov eax, dword [esp + 0x4c]
lea ebx, [eax - 2]
mov dword [esp + 0x44], ebx
cmp ebx, 2
jbe 0x4ec582
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
lea edx, [ecx + eax + 2]
mov eax, esi
sub eax, edx
cmp eax, 0xe
ja 0x4ec8c0
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, esi
lea ecx, [esi + ebx]
lea esi, cs:[esi]
movzx ebx, byte [edx]
xor byte [eax], bl
add eax, 1
add edx, 1
cmp eax, ecx
jne 0x4ec598
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x24]
lea esi, [esp + 0xb0]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.0049f7e0
test eax, eax
je 0x4ec840
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov esi, ebx
mov dword [esp], eax
call fcn.004dedc0
mov edx, eax
sub eax, 1
not edx
and edx, eax
mov eax, dword [esp + 0x48]
and edx, eax
mov eax, dword [esp + 0x68]
sar edx, 0x1f
mov dword [esp + 0x48], edx
cmp ebx, eax
jge 0x4ecc23
mov dword [esp + 0x6c], 0
xor edi, edi
lea esi, [esi]
mov eax, dword [esp + 0x60]
movzx edx, byte [eax + esi]
mov eax, edx
xor eax, 1
movzx eax, al
mov ecx, eax
sub eax, 1
not ecx
and ecx, eax
mov eax, edi
sar ecx, 0x1f
not eax
and eax, ecx
or edi, ecx
mov ebx, eax
not eax
and ebx, esi
add esi, 1
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x6c]
and ebx, eax
mov eax, ebx
mov ebx, dword [esp + 0x5c]
or ebx, eax
mov eax, edx
sub edx, 1
not eax
mov dword [esp + 0x6c], ebx
and eax, edx
sar eax, 0x1f
or eax, edi
and dword [esp + 0x48], eax
cmp dword [esp + 0x68], esi
jne 0x4ec630
mov edx, ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [ebp + 0xc]
add edx, 1
mov esi, dword [esp + 0x48]
sub eax, edx
mov edx, dword [ebp + 0xc]
xor ecx, eax
mov dword [esp + 0x4c], eax
sub edx, eax
xor edx, eax
or edx, ecx
xor edx, dword [ebp + 0xc]
sar edx, 0x1f
not edx
and edx, edi
and esi, edx
mov ebx, esi
mov dword [esp + 0x5c], esi
not esi
and ebx, 1
mov edi, esi
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
sub edx, esi
mov esi, dword [ebp + 0xc]
lea ecx, [edx - 1]
xor esi, ecx
mov edx, ecx
sub edx, dword [ebp + 0xc]
xor edx, dword [ebp + 0xc]
or edx, esi
xor edx, ecx
sar edx, 0x1f
mov esi, edx
not edx
and esi, ecx
and edx, dword [ebp + 0xc]
or esi, edx
mov dword [esp + 0x48], esi
mov esi, ecx
sub esi, eax
mov dword [esp + 0x30], esi
mov esi, 1
cmp ecx, 1
jle 0x4ec78b
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov edi, esi
lea esi, [esi]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
and eax, edi
sub edx, edi
mov ebx, eax
sub eax, 1
not ebx
and ebx, eax
sar ebx, 0x1f
mov eax, ebx
not eax
cmp dword [esp + 0x58], edx
jge 0x4ec77b
mov ecx, dword [esp + 0x60]
movzx esi, al
mov eax, dword [esp + 0x58]
or ebx, 0xffffff00
add eax, ecx
add ecx, edx
mov dword [esp + 0x6c], ecx
lea esi, cs:[esi]
movzx edx, byte [eax + edi]
movzx ecx, byte [eax]
add eax, 1
and ecx, ebx
and edx, esi
or edx, ecx
mov ecx, dword [esp + 0x6c]
mov byte [eax - 1], dl
cmp eax, ecx
jne 0x4ec760
add edi, edi
cmp dword [esp + 0x44], edi
jg 0x4ec720
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x48]
add ebx, esi
test edx, edx
jle 0x4ec7f3
mov ecx, dword [esp + 0x40]
mov esi, dword [ebp + 8]
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], ebx
lea esi, [esi]
mov edx, ecx
mov ebx, ecx
sub edx, eax
xor ebx, eax
xor edx, eax
or edx, ebx
mov ebx, dword [esp + 0x5c]
xor edx, ecx
sar edx, 0x1f
and edx, ebx
mov ebx, dword [esp + 0x6c]
movzx edx, dl
movzx ebx, byte [ebx + ecx + 1]
mov edi, edx
not edx
and ebx, edi
movzx edi, byte [esi + ecx]
and edi, edx
or ebx, edi
mov byte [esi + ecx], bl
mov ebx, dword [esp + 0x48]
add ecx, 1
cmp ecx, ebx
jne 0x4ec7b0
mov edi, dword [esp + 0x64]
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_PKCS1_OAEP_mgf1
mov dword [esp + 4], 0x13a
mov dword [esp], str..._crypto_rsa_rsa_oaep.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x79
mov dword [esp], 4
call fcn.0049b230
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0049aee0
jmp 0x4ec84e
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
not edi
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0x40
mov dword [esp], eax
call fcn.004ded70
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], 0x13f
mov dword [esp + 8], str..._crypto_rsa_rsa_oaep.c
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.004ce740
mov dword [esp + 0xc], 0x140
mov dword [esp + 8], str..._crypto_rsa_rsa_oaep.c
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004ce740
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
and eax, esi
or eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 0xe
jbe 0x4ecc97
mov eax, esi
mov edx, esi
mov esi, edi
mov ebx, dword [esp + 0x58]
and esi, 0xfffffff0
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x30], esi
add ecx, ebx
add eax, esi
lea esi, [esi]
movdqu xmm0, xmmword [ecx]
movdqu xmm1, xmmword [edx]
add edx, 0x10
add ecx, 0x10
pxor xmm0, xmm1
movups xmmword [edx - 0x10], xmm0
cmp edx, eax
jne 0x4ec8e8
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x6c], edi
mov edx, esi
cmp esi, ebx
je 0x4ec5a7
mov ecx, dword [esp + 0x4c]
sub ecx, esi
lea esi, [ecx - 1]
sub ecx, 2
cmp ecx, 2
jbe 0x4ec98e
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov ebx, esi
movd xmm5, dword [eax]
shr ebx, 2
add ecx, edi
mov edi, dword [esp + 0x54]
add ecx, edi
movd xmm0, dword [ecx]
pxor xmm5, xmm0
movd dword [eax], xmm5
cmp ebx, 1
je 0x4ec97e
movd xmm0, dword [ecx + 4]
movd xmm7, dword [eax + 4]
pxor xmm7, xmm0
movd dword [eax + 4], xmm7
cmp ebx, 2
je 0x4ec97e
movd xmm0, dword [ecx + 8]
movd xmm5, dword [eax + 8]
pxor xmm5, xmm0
movd dword [eax + 8], xmm5
mov eax, esi
and eax, 0xfffffffc
add edx, eax
and esi, 3
je 0x4ec5a7
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x68]
movzx eax, byte [edi + edx]
xor byte [esi + edx], al
lea eax, [edx + 1]
cmp ebx, eax
jle 0x4ec5a7
movzx ecx, byte [edi + edx + 1]
xor byte [esi + eax], cl
lea eax, [edx + 2]
cmp eax, ebx
jge 0x4ec5a7
movzx edx, byte [edi + edx + 2]
xor byte [esi + eax], dl
jmp 0x4ec5a7
cmp edx, 0xe
jbe 0x4ecc8c
movdqu xmm3, xmmword [edi + 1]
movdqu xmm0, xmmword [esp + 0x70]
mov eax, dword [esp + 0x64]
pxor xmm0, xmm3
movups xmmword [esp + 0x30], xmm3
shr eax, 4
movups xmmword [esp + 0x70], xmm0
cmp eax, 1
je 0x4eca65
movdqu xmm0, xmmword [esp + 0x80]
movdqu xmm7, xmmword [edi + 0x11]
pxor xmm0, xmm7
movups xmmword [esp + 0x30], xmm7
movups xmmword [esp + 0x80], xmm0
cmp eax, 2
je 0x4eca65
movdqu xmm0, xmmword [esp + 0x90]
movdqu xmm6, xmmword [edi + 0x21]
pxor xmm0, xmm6
movups xmmword [esp + 0x30], xmm6
movups xmmword [esp + 0x90], xmm0
cmp eax, 3
je 0x4eca65
movdqu xmm0, xmmword [esp + 0xa0]
movdqu xmm3, xmmword [edi + 0x31]
pxor xmm0, xmm3
movups xmmword [esp + 0x30], xmm3
movups xmmword [esp + 0xa0], xmm0
mov ecx, dword [esp + 0x64]
mov eax, ecx
and eax, 0xfffffff0
mov esi, eax
cmp ecx, eax
je 0x4ec512
sub ecx, eax
lea edx, [ecx - 1]
cmp edx, 2
jbe 0x4ecaed
mov edx, ecx
mov edi, dword [esp + 0x54]
shr edx, 2
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x50]
add edx, esi
lea esi, [edi + esi + 1]
mov edi, dword [esp + 0x30]
movd xmm0, dword [esi]
movd xmm2, dword [edx]
pxor xmm2, xmm0
movd dword [edx], xmm2
cmp edi, 1
je 0x4ecadd
movd xmm0, dword [esi + 4]
movd xmm4, dword [edx + 4]
pxor xmm4, xmm0
movd dword [edx + 4], xmm4
cmp edi, 2
je 0x4ecadd
movd xmm0, dword [esi + 8]
movd xmm6, dword [edx + 8]
pxor xmm6, xmm0
movd dword [edx + 8], xmm6
mov edx, ecx
and edx, 0xfffffffc
add eax, edx
and ecx, 3
je 0x4ec512
mov esi, dword [esp + 0x64]
movzx edx, byte [ebx + eax]
xor byte [esp + eax + 0x70], dl
lea edx, [eax + 1]
cmp esi, edx
jle 0x4ec512
movzx ecx, byte [ebx + eax + 1]
xor byte [esp + edx + 0x70], cl
lea edx, [eax + 2]
cmp esi, edx
jle 0x4ec512
movzx eax, byte [ebx + eax + 2]
xor byte [esp + edx + 0x70], al
jmp 0x4ec512
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_PKCS1_OAEP_mgf1
mov dword [esp + 4], 0xcf
mov dword [esp], str..._crypto_rsa_rsa_oaep.c
mov edi, 0xffffffff
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0100
mov dword [esp], 4
call fcn.0049b230
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], eax
jmp 0x4ec84e
call fcn.004aee50
mov dword [ebp + 0x24], eax
jmp 0x4ec38d
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_PKCS1_OAEP_mgf1
mov dword [esp + 4], 0xd5
jmp 0x4ecb45
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x24]
lea esi, [esp + 0xb0]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.0049f7e0
test eax, eax
je 0x4ec840
mov eax, dword [esp + 0x64]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.004dedc0
mov eax, dword [esp + 0x4c]
sub eax, 2
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], 0
mov edi, 0xffffffff
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], eax
jmp 0x4ec6c9
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_PKCS1_OAEP_mgf1
mov dword [esp + 4], 0xc8
mov dword [esp], str..._crypto_rsa_rsa_oaep.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x79
mov dword [esp], 4
call fcn.0049b230
mov eax, 0xffffffff
jmp 0x4ec8b5
mov ecx, dword [esp + 0x64]
xor esi, esi
jmp 0x4eca82
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x60]
mov esi, edi
xor edx, edx
jmp 0x4ec929