Function at 0x10087d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, edx
and eax, 1
mov ecx, 0x10
je 0x10087e0d
cmp dword [ebp + 0x24], 1
jl 0x10087e01
cmp dword [ebp + 0x28], 0
jne 0x10087e0d
mov eax, 0x862e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, 2
je 0x10087e1e
mov eax, 0x84ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, 4
mov edi, dword [ebp + 0x1c]
je 0x10087e36
test edi, edi
jne 0x10087e36
mov eax, 0x8502
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x2c]
cmp ebx, 1
je 0x10087e5e
cmp ebx, 8
je 0x10087e5e
cmp ebx, 4
je 0x10087e5e
cmp ebx, 2
je 0x10087e63
cmp ebx, 3
je 0x10087e5e
mov eax, 0x850c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jne 0x10087e6a
mov ecx, 0x18
jmp 0x10087e72
cmp ebx, 1
jne 0x10087e72
lea ecx, [ebx + 7]
mov esi, dword [ebp + 0x20]
cmp esi, 1
je 0x10087e8e
cmp esi, 8
je 0x10087e8e
cmp esi, 4
je 0x10087e8e
cmp esi, 2
je 0x10087e8e
cmp esi, 3
jne 0x10087e52
test edi, edi
je 0x10087ec4
cmp dword [edi + 4], 0
je 0x10087ec4
cmp dword [edi], 0
jbe 0x10087ec4
test eax, eax
jne 0x10087ea6
test dl, 8
je 0x10087ec4
lea eax, [esp + 0x1c]
push edi
push eax
call sub.XecureAcIO.dll_XFA_BIN_Copy
add esp, 8
test eax, eax
je 0x10087ed1
mov eax, 0x8516
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [esp + 0x20]
push ecx
call sub.XecureAcCSP.dll_XFA_CSP_GenerateRandom
jmp 0x10087eb1
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x30]
and eax, 0xff
sub eax, 1
je 0x10088006
sub eax, 3
je 0x10087fa8
sub eax, 4
jne 0x10088113
cmp dword [edi], 2
jne 0x10087f0d
lea edx, [edi + 8]
push edx
lea eax, [esp + 0x28]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Data_Encode
add esp, 8
push edi
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.10086f80
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10088165
xor ecx, ecx
cmp dword [edi], 2
lea edx, [esp + 0x10]
setne cl
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x3c]
push ecx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Encrypted_Encode
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10088165
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x18]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Content_Encode
mov esi, eax
add esp, 8
test esi, esi
jne 0x10088165
cmp dword [edi], 2
jne 0x10088113
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 8]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Copy
mov eax, dword [esp + 0x3c]
add esp, 8
mov dword [esi + 4], eax
mov dword [esi], 2
jmp 0x10088113
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
push edi
push esi
push ebx
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.100874d0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10088165
cmp dword [edi], 2
jne 0x10088113
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 8]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Copy
add esp, 8
mov dword [esi + 4], 3
mov dword [esi], 2
jmp 0x10088113
cmp dword [edi], 2
jne 0x1008801e
lea edx, [edi + 8]
push edx
lea eax, [esp + 0x28]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Data_Encode
add esp, 8
jmp 0x10088026
mov dword [esp + 0x24], 1
xor ebx, ebx
cmp dword [ebp + 0x24], ebx
jle 0x1008807c
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx + ebx*4]
push edx
lea eax, [esp + 0x48]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_RecipInfo_Set
mov esi, eax
add esp, 8
test esi, esi
jne 0x10088165
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x68]
push edx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_RecipInfos_Add
mov esi, eax
add esp, 8
test esi, esi
jne 0x10088165
lea eax, [esp + 0x44]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_RecipInfo_Reset
add ebx, 1
add esp, 4
cmp ebx, dword [ebp + 0x24]
jl 0x1008802d
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.10087370
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10088165
cmp dword [edi], 2
lea ecx, [esp + 0x3c]
setne al
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x34]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Enveloped_Encode
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10088165
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Content_Encode
mov esi, eax
add esp, 8
test esi, esi
jne 0x10088165
cmp dword [edi], 2
jne 0x10088110
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 8]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Copy
mov edx, dword [esp + 0x34]
add esp, 8
mov dword [esi + 4], edx
mov dword [esi], 2
mov ebx, dword [ebp + 0x2c]
cmp dword [edi], 1
jne 0x10088163
test byte [ebp + 0x10], 8
mov ecx, dword [esp + 0x70]
mov eax, 0x120
je 0x10088130
mov ecx, dword [esp + 0x5c]
mov eax, 0x140
push eax
push ebx
call fcn.10086b70
mov edx, dword [edi + 8]
add esp, 4
push eax
push ecx
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.10088da0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10088165
xor esi, esi
lea eax, [esp + 0x24]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Content_Reset
lea ecx, [esp + 0x48]
push ecx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_RecipInfo_Reset
lea edx, [esp + 0x34]
push edx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Content_Reset
lea eax, [esp + 0x70]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Enveloped_Reset
lea ecx, [esp + 0x44]
push ecx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Content_Reset
lea edx, [esp + 0x68]
push edx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Encrypted_Reset
lea eax, [esp + 0x34]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x30]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 0x20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret