Function at 0x410d3f
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 0x410f0e
cmp dword [esi + 4], ebp
je 0x410f0e
cmp dword [esi + 8], ebx
je 0x410f0e
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], 0x6c31a4
call fcn.005c3840
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 0x410ecf
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 0x410ed1
push eax
call fcn.0060a4f0
mov dword [ebp], eax
pop ecx
test eax, eax
je 0x410f1d
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 0x770260
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgUpdate]
test eax, eax
je 0x410ebe
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 0x410ec9
push esi
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
test ebx, ebx
jne 0x410ee3
jmp 0x410ed1
xor edi, edi
cmp dword [ebp], 0
je 0x410ee3
push dword [ebp]
call fcn.00609ce0
pop ecx
mov dword [ebp], edi
cmp dword [esp + 0x18], 0
je 0x410f0a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410f0a
cmp dword [esp + 0x1c], 0xffffffff
jne 0x410f02
push eax
call dword [sym.imp.ncrypt.dll_NCryptFreeObject]
jmp 0x410f0a
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x410f10
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, 0x6c31bc
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push esi
push 0x6c31d8
push 0x6c31f4
call fcn.00401109
add esp, 0xc
push edi
call fcn.005d08b0
int3