Function at 0x40c2f4
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 0x40c4c3
cmp dword [esi + 4], ebp
je 0x40c4c3
cmp dword [esi + 8], ebx
je 0x40c4c3
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], 0x69a5f0
call fcn.0059de40
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 0x40c484
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 0x40c486
push eax
call fcn.005d0f60
mov dword [ebp], eax
pop ecx
test eax, eax
je 0x40c4d2
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 0x76c080
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x40c473
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 0x40c47e
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
test ebx, ebx
jne 0x40c498
jmp 0x40c486
xor edi, edi
cmp dword [ebp], 0
je 0x40c498
push dword [ebp]
call fcn.005d0f40
pop ecx
mov dword [ebp], edi
cmp dword [esp + 0x18], 0
je 0x40c4bf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c4bf
cmp dword [esp + 0x1c], 0xffffffff
jne 0x40c4b7
push eax
call dword [sym.imp.ncrypt.dll_NCryptFreeObject]
jmp 0x40c4bf
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x40c4c5
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, 0x193
push edi
push esi
mov edx, 0x69a608
xor ecx, ecx
call fcn.0047145c
push esi
push 0x69a624
push 0x69a640
call fcn.004010b4
add esp, 0x18
push edi
call fcn.005aae60
int3