Function at 0x40f75a
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 0x40f929
cmp dword [esi + 4], ebp
je 0x40f929
cmp dword [esi + 8], ebx
je 0x40f929
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], 0x6b5134
call fcn.005b5fd0
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 0x40f8ea
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 0x40f8ec
push eax
call fcn.005eae30
mov dword [ebp], eax
pop ecx
test eax, eax
je 0x40f938
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 0x72f000
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x40f8d9
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 0x40f8e4
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
test ebx, ebx
jne 0x40f8fe
jmp 0x40f8ec
xor edi, edi
cmp dword [ebp], 0
je 0x40f8fe
push dword [ebp]
call fcn.005eae10
pop ecx
mov dword [ebp], edi
cmp dword [esp + 0x18], 0
je 0x40f925
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f925
cmp dword [esp + 0x1c], 0xffffffff
jne 0x40f91d
push eax
call dword [sym.imp.ncrypt.dll_NCryptFreeObject]
jmp 0x40f925
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x40f92b
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, 0x6b514c
xor ecx, ecx
call fcn.00488a50
push esi
push 0x6b5168
push 0x6b5184
call fcn.00401109
add esp, 0x18
push edi
call fcn.005c3000
int3