Function at 0x100589b0
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x50
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov edx, str.application_pkcs7_
mov ecx, dword [esp + 0x5c]
push ebx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x60]
push edi
mov dword [esp + 0x20], eax
mov edi, str.application_x_pkcs7_
mov eax, dword [esp + 0x70]
test eax, 0x400
mov dword [esp + 0x18], ecx
cmovne edx, edi
mov dword [esp + 0x24], ebp
test eax, 0x800
mov dword [esp + 0x14], edx
mov edi, 0x102818cc
mov dword [esp + 0x10], str.smime.p7m
mov edx, 0x10283400
cmovne edi, edx
test al, 0x40
je 0x10058ce6
test ecx, ecx
je 0x10058ce6
push ebx
push 0x20
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call sym.libcrypto_3.dll_RAND_bytes_ex
add esp, 0x10
test eax, eax
jle 0x10058dc4
movups xmm0, xmmword [esp + 0x38]
push edi
movaps xmm7, xmmword [0x10283770]
movaps xmm6, xmmword [str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n]
movaps xmm3, xmm7
pand xmm3, xmm0
mov byte [esp + 0x5c], bl
movaps xmm1, xmm6
movaps xmm0, xmm3
paddb xmm0, xmmword [0x10283790]
pcmpgtb xmm1, xmm3
paddb xmm3, xmmword [str.00000000000000007777777777777777oid_module_init]
movaps xmm2, xmm1
pandn xmm2, xmm0
pand xmm3, xmm1
movups xmm0, xmmword [esp + 0x4c]
push str.MIME_Version:_1.0_s
por xmm2, xmm3
pand xmm7, xmm0
pcmpgtb xmm6, xmm7
movaps xmm0, xmm7
paddb xmm0, xmmword [0x10283790]
movaps xmm1, xmm6
paddb xmm7, xmmword [str.00000000000000007777777777777777oid_module_init]
pandn xmm1, xmm0
pand xmm7, xmm6
por xmm1, xmm7
push esi
movups xmmword [esp + 0x44], xmm2
movups xmmword [esp + 0x54], xmm1
call sym.libcrypto_3.dll_BIO_printf
push str.Content_Type:_multipart_signed_
push esi
call sym.libcrypto_3.dll_BIO_printf
push dword [esp + 0x28]
push str._protocol__ssignature__
push esi
call sym.libcrypto_3.dll_BIO_printf
push str._micalg_
push esi
call sym.libcrypto_3.dll_BIO_puts
push dword [esp + 0x50]
push esi
call fcn.10058f20
push edi
push edi
lea eax, [esp + 0x70]
push eax
push str.___boundary______s__s_s
push esi
call sym.libcrypto_3.dll_BIO_printf
add esp, 0x44
push edi
push edi
push str.This_is_an_S_MIME_signed_message_s_s
push esi
call sym.libcrypto_3.dll_BIO_printf
push edi
lea eax, [esp + 0x4c]
push eax
push str._______s_s
push esi
call sym.libcrypto_3.dll_BIO_printf
mov eax, dword [esp + 0x3c]
add esp, 0x20
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, ebx
and eax, 0x8040
cmp eax, 0x40
jne 0x10058c4d
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10058c0e
cmp dword [eax + 0x10], 0
je 0x10058c0e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
push ecx
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
push ecx
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0x10]
push 0xc
call eax
add esp, 0x10
test eax, eax
jle 0x10058dc4
push ebx
push dword [esp + 0x34]
push dword [esp + 0x20]
call sym.libcrypto_3.dll_SMIME_crlf_copy
neg eax
sbb ebp, ebp
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
lea eax, [esp + 0x24]
and ebp, 1
push eax
mov eax, dword [esp + 0x38]
push 0xd
mov eax, dword [eax + 0x10]
call eax
mov ebx, dword [esp + 0x4c]
xor ecx, ecx
add esp, 0x1c
test eax, eax
cmovle ebp, ecx
cmp ebx, esi
je 0x10058c5d
nop
push ebx
call sym.libcrypto_3.dll_BIO_pop
push dword [esp + 0x34]
mov ebx, eax
call sym.libcrypto_3.dll_BIO_free
add esp, 8
mov dword [esp + 0x30], ebx
cmp ebx, esi
jne 0x10058bf0
jmp 0x10058c5d
call sym.libcrypto_3.dll_ERR_new
push str.asn1_output_data
push 0x166
push str.crypto_asn1_asn_mime.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0xca
push 0xd
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1022836f
add esp, 0x50
ret
push ebx
push esi
push dword [esp + 0x20]
call sym.libcrypto_3.dll_SMIME_crlf_copy
add esp, 0xc
mov ebp, eax
test ebp, ebp
je 0x10058dc4
push edi
lea eax, [esp + 0x3c]
push eax
push edi
push str._s_______s_s
push esi
call sym.libcrypto_3.dll_BIO_printf
push dword [esp + 0x28]
push str.Content_Type:__ssignature_
push esi
call sym.libcrypto_3.dll_BIO_printf
push edi
push str._name_smime.p7s__s
push esi
call sym.libcrypto_3.dll_BIO_printf
push edi
push str.Content_Transfer_Encoding:_base64_s
push esi
call sym.libcrypto_3.dll_BIO_printf
push str.Content_Disposition:_attachment_
push esi
call sym.libcrypto_3.dll_BIO_printf
add esp, 0x40
push edi
push edi
push str._filename_smime.p7s__s_s
push esi
call sym.libcrypto_3.dll_BIO_printf
push dword [esp + 0x34]
push 0
push 0
push dword [esp + 0x38]
push esi
call fcn.10057eb0
push edi
push edi
lea eax, [esp + 0x64]
push eax
push edi
push str._s_______s___s_s
push esi
call sym.libcrypto_3.dll_BIO_printf
add esp, 0x3c
jmp 0x10058de8
mov eax, dword [esp + 0x74]
cmp eax, 0x17
jne 0x10058cf6
mov ebx, str.enveloped_data
jmp 0x10058d3d
cmp eax, 0x16
jne 0x10058d29
cmp dword [esp + 0x78], 0xcc
jne 0x10058d0c
mov ebx, str.signed_receipt
jmp 0x10058d3d
push dword [esp + 0x28]
call sym.libcrypto_3.dll_OPENSSL_sk_num
add esp, 4
mov ebx, str.signed_data
test eax, eax
mov ecx, str.certs_only
cmovs ebx, ecx
jmp 0x10058d3d
cmp eax, 0x312
jne 0x10058d3d
mov ebx, str.compressed_data
mov dword [esp + 0x10], str.smime.p7z
push edi
push str.MIME_Version:_1.0_s
push esi
call sym.libcrypto_3.dll_BIO_printf
push str.Content_Disposition:_attachment_
push esi
call sym.libcrypto_3.dll_BIO_printf
push edi
push dword [esp + 0x28]
push str._filename__s__s
push esi
call sym.libcrypto_3.dll_BIO_printf
push dword [esp + 0x38]
push str.Content_Type:__smime_
push esi
call sym.libcrypto_3.dll_BIO_printf
add esp, 0x30
test ebx, ebx
je 0x10058d89
push ebx
push str._smime_type_s_
push esi
call sym.libcrypto_3.dll_BIO_printf
add esp, 0xc
push edi
push dword [esp + 0x14]
push str._name__s__s
push esi
call sym.libcrypto_3.dll_BIO_printf
push edi
push edi
push str.Content_Transfer_Encoding:_base64_s_s
push esi
call sym.libcrypto_3.dll_BIO_printf
mov ebx, dword [esp + 0x90]
push ebp
push ebx
push dword [esp + 0x40]
push dword [esp + 0x48]
push esi
call fcn.10057eb0
add esp, 0x34
test eax, eax
jne 0x10058dd9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1022836f
add esp, 0x50
ret
push edi
push 0x10283630
push esi
call sym.libcrypto_3.dll_BIO_printf
add esp, 0xc
mov ecx, dword [esp + 0x5c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022836f
add esp, 0x50
ret