Function at 0x40fed4
Capabilities:
Terminate process

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
xor ebp, ebp
mov esi, ecx
push edi
mov ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
cmp dword [esi], ebp
je 0x4100a3
cmp dword [esi + 4], ebp
je 0x4100a3
cmp dword [esi + 8], ebx
je 0x4100a3
xor eax, eax
lea edi, [esp + 0x44]
stosd dword es:[edi], eax
push 0x30
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x54]
pop edi
push edi
push ebp
push eax
mov dword [esp + 0x50], 0x6ba184
call fcn.005bb370
add esp, 0xc
mov dword [esp + 0x50], edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
push 0x10040
push dword [esi + 8]
call dword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
mov ebp, dword [esp + 0xbc]
test eax, eax
je 0x410064
mov edx, dword [esi + 8]
lea edi, [esp + 0x60]
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 1
mov eax, dword [edx + 0xc]
mov dword [esp + 0x54], eax
movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
push 7
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [esp + 0x70], ebx
lea esi, [esp + 0x54]
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 8]
lea edi, [esp + 0x2c]
mov ecx, dword [edx + 4]
mov esi, 0x10001
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], ecx
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x28], 0x1c
push 0x90
mov dword [esp + 0x34], eax
xor edi, edi
lea eax, [esp + 0x24]
mov dword [esp + 0x44], edi
push edi
mov dword [esp + 0x40], eax
xor ecx, ecx
lea eax, [esp + 0x30]
inc ecx
push eax
push 2
push edi
push esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
call dword [sym.imp.CRYPT32.dll_CryptMsgCalculateEncodedLength]
mov dword [esp + 0x14], eax
test eax, eax
je 0x410066
push eax
call fcn.005f0a50
mov dword [ebp], eax
pop ecx
test eax, eax
je 0x4100b2
push edi
push edi
lea eax, [esp + 0x30]
push eax
push 2
push edi
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgOpenToEncode]
push 1
push 0x90
mov esi, eax
push 0x751940
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x410053
lea eax, [esp + 0x14]
push eax
push dword [ebp]
push edi
push 2
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
cmovne ebx, dword [esp + 0x14]
test esi, esi
je 0x41005e
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
test ebx, ebx
jne 0x410078
jmp 0x410066
xor edi, edi
cmp dword [ebp], 0
je 0x410078
push dword [ebp]
call fcn.005f0a30
pop ecx
mov dword [ebp], edi
cmp dword [esp + 0x18], 0
je 0x41009f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41009f
cmp dword [esp + 0x1c], 0xffffffff
jne 0x410097
push eax
call dword [sym.imp.ncrypt.dll_NCryptFreeObject]
jmp 0x41009f
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x4100a5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, 0xfe
mov esi, 0x1bf
push edi
push esi
mov edx, 0x6ba19c
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push esi
push 0x6ba1b8
push 0x6ba1d4
call fcn.00401109
add esp, 0xc
push edi
call fcn.005c8390
int3