Function at 0x100886b0
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 0x1008874d
cmp dword [ebp + 0x24], 1
jl 0x10088741
cmp dword [ebp + 0x28], 0
jne 0x1008874d
mov eax, 0x862e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, 2
je 0x1008875e
mov eax, 0x84ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, 4
mov edi, dword [ebp + 0x1c]
je 0x10088776
test edi, edi
jne 0x10088776
mov eax, 0x8502
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x2c]
cmp ebx, 1
je 0x1008879e
cmp ebx, 8
je 0x1008879e
cmp ebx, 4
je 0x1008879e
cmp ebx, 2
je 0x100887a3
cmp ebx, 3
je 0x1008879e
mov eax, 0x850c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jne 0x100887aa
mov ecx, 0x18
jmp 0x100887b2
cmp ebx, 1
jne 0x100887b2
lea ecx, [ebx + 7]
mov esi, dword [ebp + 0x20]
cmp esi, 1
je 0x100887ce
cmp esi, 8
je 0x100887ce
cmp esi, 4
je 0x100887ce
cmp esi, 2
je 0x100887ce
cmp esi, 3
jne 0x10088792
test edi, edi
je 0x10088804
cmp dword [edi + 4], 0
je 0x10088804
cmp dword [edi], 0
jbe 0x10088804
test eax, eax
jne 0x100887e6
test dl, 8
je 0x10088804
lea eax, [esp + 0x1c]
push edi
push eax
call sub.XecureAcIO.dll_XFA_BIN_Copy
add esp, 8
test eax, eax
je 0x10088811
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 0x100887f1
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x30]
and eax, 0xff
sub eax, 1
je 0x10088946
sub eax, 3
je 0x100888e8
sub eax, 4
jne 0x10088a53
cmp dword [edi], 2
jne 0x1008884d
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.100878c0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10088aa5
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 0x10088aa5
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 0x10088aa5
cmp dword [edi], 2
jne 0x10088a53
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 0x10088a53
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.10087e10
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10088aa5
cmp dword [edi], 2
jne 0x10088a53
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 0x10088a53
cmp dword [edi], 2
jne 0x1008895e
lea edx, [edi + 8]
push edx
lea eax, [esp + 0x28]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Data_Encode
add esp, 8
jmp 0x10088966
mov dword [esp + 0x24], 1
xor ebx, ebx
cmp dword [ebp + 0x24], ebx
jle 0x100889bc
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 0x10088aa5
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 0x10088aa5
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 0x1008896d
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.10087cb0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10088aa5
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 0x10088aa5
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 0x10088aa5
cmp dword [edi], 2
jne 0x10088a50
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 0x10088aa3
test byte [ebp + 0x10], 8
mov ecx, dword [esp + 0x70]
mov eax, 0x120
je 0x10088a70
mov ecx, dword [esp + 0x5c]
mov eax, 0x140
push eax
push ebx
call fcn.100874b0
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.100896e0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10088aa5
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