Function at 0x4ef760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x90
mov edi, dword [ebp + 8]
call fcn.0049edd0
mov ebx, eax
test eax, eax
je 0x4efa90
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
test ecx, ecx
cmove eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004aa2f0
mov esi, eax
test eax, eax
js 0x4efa90
cmp dword [ebp + 0x1c], 0xffffffff
je 0x4efad0
cmp dword [ebp + 0x1c], 0xfffffffd
jl 0x4efb48
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call fcn.0045a620
mov dword [esp], edi
sub eax, 1
and eax, 7
mov dword [esp + 0x48], eax
call fcn.00410340
mov ecx, dword [ebp + 0x18]
mov edx, 0xff
movzx edi, byte [ecx]
movzx ecx, byte [esp + 0x48]
shl edx, cl
and edi, edx
mov dword [esp + 0x4c], edi
jne 0x4efb00
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x4ef803
add dword [ebp + 0x18], 1
sub eax, 1
lea edx, [esi + 1]
cmp edx, eax
jge 0x4efb98
mov ecx, eax
sub ecx, esi
cmp dword [ebp + 0x1c], 0xfffffffd
mov dword [esp + 0x44], ecx
je 0x4efae0
lea edx, [ecx - 1]
cmp edx, dword [ebp + 0x1c]
jle 0x4efbe0
mov ecx, dword [ebp + 0x18]
cmp byte [ecx + eax - 1], 0xbc
jne 0x4efa50
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 8], 0x63
mov dword [esp + 4], str..._crypto_rsa_rsa_pss.c
sub eax, 1
mov dword [esp], eax
add ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
call fcn.004ce330
mov edi, eax
test eax, eax
je 0x4efd88
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], esi
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004ebbc0
test eax, eax
js 0x4efa9a
mov ecx, dword [esp + 0x40]
movzx edx, byte [edi]
test ecx, ecx
je 0x4efd29
mov eax, dword [esp + 0x44]
sub eax, 2
mov dword [esp + 0x38], eax
cmp eax, 2
jbe 0x4ef8cd
mov edx, dword [ebp + 0x18]
mov eax, edi
add edx, 1
sub eax, edx
cmp eax, 0xe
ja 0x4efc00
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x38], ebx
mov eax, edi
add ecx, edi
lea esi, [esi]
movzx ebx, byte [edx]
xor byte [eax], bl
add eax, 1
add edx, 1
cmp eax, ecx
jne 0x4ef8e0
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
movzx edx, byte [edi]
test eax, eax
je 0x4ef914
mov eax, dword [esp + 0x48]
mov ecx, 8
mov edx, 0xff
sub ecx, eax
sar edx, cl
and dl, byte [edi]
mov byte [edi], dl
test dl, dl
jne 0x4efd1c
mov eax, dword [esp + 0x44]
cmp eax, 2
jle 0x4efd40
sub eax, 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
xor eax, eax
mov esi, dword [esp + 0x38]
jmp 0x4ef948
cmp esi, eax
je 0x4efd40
mov ecx, eax
add eax, 1
movzx edx, byte [edi + eax]
test dl, dl
je 0x4ef940
lea eax, [ecx + 2]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x48], eax
cmp dl, 1
jne 0x4efd40
cmp dword [ebp + 0x1c], 0xfffffffe
je 0x4ef982
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
sub eax, edx
cmp eax, dword [ebp + 0x1c]
jne 0x4efdd0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0049ee80
test eax, eax
je 0x4efa9a
mov dword [esp + 8], 8
mov dword [esp + 4], 0x68c5b0
mov dword [esp], ebx
call fcn.0049eea0
test eax, eax
je 0x4efa9a
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0049eea0
test eax, eax
je 0x4efa9a
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x40], edx
je 0x4efa07
mov eax, dword [esp + 0x40]
mov dword [esp], ebx
sub eax, edx
mov dword [esp + 8], eax
lea eax, [edi + edx]
mov dword [esp + 4], eax
call fcn.0049eea0
test eax, eax
je 0x4efa9a
lea edx, [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0049f180
lea edx, [esp + 0x50]
test eax, eax
je 0x4efa9a
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4efe3e
mov dword [esp + 0x4c], 1
jmp 0x4efa9a
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x5e
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x86
mov dword [esp], 4
call fcn.0049b230
lea esi, [esi]
mov dword [esp + 0x4c], 0
xor edi, edi
mov dword [esp], edi
mov dword [esp + 8], 0x8b
mov dword [esp + 4], str..._crypto_rsa_rsa_pss.c
call fcn.004ce2f0
mov dword [esp], ebx
call fcn.0049ee00
mov eax, dword [esp + 0x4c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0x1c], eax
jmp 0x4ef7b9
mov edx, ecx
mov ecx, dword [ebp + 0x18]
sub edx, 2
cmp byte [ecx + eax - 1], 0xbc
mov dword [ebp + 0x1c], edx
je 0x4ef83a
jmp 0x4efa50
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x4c
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x85
mov dword [esp], 4
call fcn.0049b230
jmp 0x4efa90
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
xor edi, edi
mov dword [esp + 4], 0x45
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x88
mov dword [esp], 4
call fcn.0049b230
mov dword [esp + 0x4c], 0
jmp 0x4efa9a
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x54
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6d
mov dword [esp], 4
call fcn.0049b230
jmp 0x4efa90
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x5a
jmp 0x4efbad
cmp dword [esp + 0x38], 0xe
jbe 0x4efe25
and ecx, 0xfffffff0
mov edx, dword [ebp + 0x18]
mov eax, edi
mov dword [esp + 0x34], ecx
add ecx, edi
lea esi, [esi]
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [edx]
add eax, 0x10
add edx, 0x10
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp ecx, eax
jne 0x4efc20
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x40], eax
je 0x4efd05
mov edx, dword [esp + 0x44]
sub edx, eax
mov eax, edx
lea edx, [edx - 1]
sub eax, 2
cmp eax, 2
jbe 0x4efcc1
mov eax, edx
movd xmm2, dword [ecx]
shr eax, 2
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
add eax, dword [ebp + 0x18]
cmp dword [esp + 0x2c], 1
movd xmm0, dword [eax]
pxor xmm2, xmm0
movd dword [ecx], xmm2
je 0x4efcb3
movd xmm0, dword [eax + 4]
movd xmm3, dword [ecx + 4]
cmp dword [esp + 0x2c], 2
pxor xmm3, xmm0
movd dword [ecx + 4], xmm3
je 0x4efcb3
movd xmm0, dword [eax + 8]
movd xmm4, dword [ecx + 8]
pxor xmm4, xmm0
movd dword [ecx + 8], xmm4
mov eax, edx
test dl, 3
je 0x4efd05
and eax, 0xfffffffc
add dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x40]
movzx eax, byte [eax + ecx]
xor byte [edi + ecx], al
mov eax, ecx
add ecx, 1
mov dword [esp + 0x34], ecx
cmp edx, ecx
jle 0x4efd05
mov ecx, dword [ebp + 0x18]
movzx ecx, byte [ecx + eax + 1]
mov eax, dword [esp + 0x34]
xor byte [edi + eax], cl
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 2]
cmp edx, eax
jle 0x4efd05
mov edx, dword [ebp + 0x18]
movzx edx, byte [edx + ecx + 2]
xor byte [edi + eax], dl
mov ecx, dword [esp + 0x48]
movzx edx, byte [edi]
test ecx, ecx
jne 0x4ef8fe
test dl, dl
je 0x4ef930
mov dword [esp + 0x48], 1
jmp 0x4ef960
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4ef8fe
test dl, dl
jne 0x4efd1c
lea esi, [esi]
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x70
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x87
mov dword [esp], 4
call fcn.0049b230
jmp 0x4efa9a
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x65
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0100
mov dword [esp], 4
call fcn.0049b230
jmp 0x4efa90
mov dword [esp + 0x48], eax
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x74
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], str.expected:__d_retrieved:__d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x88
mov dword [esp], 4
call fcn.0049b230
jmp 0x4efa9a
mov edx, ecx
mov dword [esp + 0x30], 0
mov ecx, edi
mov dword [esp + 0x34], 0
jmp 0x4efc5f
call fcn.0049b030
mov dword [esp + 8], str.RSA_verify_PKCS1_PSS_mgf1
mov dword [esp + 4], 0x84
mov dword [esp], str..._crypto_rsa_rsa_pss.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x68
mov dword [esp], 4
call fcn.0049b230
jmp 0x4efa9a