Function at 0x40bd4e
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x6b0d44]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0x14], ecx
push esi
mov esi, edx
mov dword [esp + 0x24], 0xc00
mov dword [esp + 0x10], ebx
mov ebp, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
push edi
test esi, esi
je 0x40c25d
mov edi, 0xff
push edi
push esi
call fcn.005d06e0
pop ecx
pop ecx
cmp eax, 0x40
ja 0x40c25d
push esi
push str._s_privatekey
lea eax, [esp + 0x1d0]
push edi
push eax
call fcn.0040112a
push 0x40
lea eax, [esp + 0x1dc]
push eax
push 0x7f
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.005e2710
add esp, 0x24
test eax, eax
jne 0x40c25d
push ebx
push ebx
push 0x1c
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.005d0f60
pop ecx
push 0xc
pop edx
mov ecx, eax
call fcn.0046bf0b
pop ecx
pop ecx
mov ebx, eax
mov edi, 0x69aa80
xor ecx, ecx
cmp dword [edi], 0
je 0x40be2e
mov ebp, dword [edi]
push ecx
push ebp
push ebx
call dword [sym.imp.ncrypt.dll_NCryptOpenStorageProvider]
xor eax, eax
xor ecx, ecx
cmp dword [ebx], ecx
cmove ebp, eax
add edi, 4
test ebp, ebp
je 0x40be0e
cmp dword [ebx], ecx
je 0x40c245
mov edi, dword [sym.imp.CRYPT32.dll_CertStrToNameA]
lea eax, [esp + 0x20]
push ecx
push eax
push ecx
push ecx
push 3
xor eax, eax
push esi
inc eax
push eax
call edi
test eax, eax
je 0x40c245
push dword [esp + 0x20]
call fcn.005d0f60
mov dword [esp + 0x34], eax
pop ecx
test eax, eax
je 0x40c278
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push 3
xor eax, eax
push esi
inc eax
push eax
call edi
test eax, eax
je 0x40c245
mov eax, dword [esp + 0x20]
mov esi, 0x10001
push 0x69a478
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
push 0x14000
mov dword [esp + 0x48], eax
push dword [ebx]
push esi
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebx + 4], eax
test eax, eax
je 0x40c245
xor edi, edi
lea ecx, [esp + 0x3c]
push edi
push ecx
push 0x20007
push edi
push esi
push eax
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
lea esi, [ebx + 8]
mov dword [esi], eax
test eax, eax
je 0x40bf34
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0x10040
push eax
call dword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
mov ecx, dword [esp + 0x1c]
test eax, eax
push 1
pop eax
cmove ecx, eax
cmp dword [esp + 0x24], 0xffffffff
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x2c], edi
je 0x40bf38
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40bf38
cmp dword [esp + 0x24], 0xffffffff
jne 0x40bf2c
push eax
call dword [sym.imp.ncrypt.dll_NCryptFreeObject]
jmp 0x40bf34
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x1c]
cmp dword [esi], edi
je 0x40bf5a
test ecx, ecx
je 0x40c237
cmp dword [esi], edi
je 0x40bf5a
push dword [esi]
call dword [sym.imp.CRYPT32.dll_CertDeleteCertificateFromStore]
test eax, eax
je 0x40c245
mov dword [esi], edi
push 0x80
push edi
lea eax, [esp + 0xd0]
push eax
push 0x69a480
lea eax, [esp + 0x24]
push eax
push dword [ebx]
call dword [sym.imp.ncrypt.dll_NCryptCreatePersistedKey]
test eax, eax
js 0x40c245
mov esi, dword [sym.imp.ncrypt.dll_NCryptSetProperty]
lea eax, [esp + 0x28]
mov edi, 0x80000040
push edi
push 4
push eax
push 0x69a488
push dword [esp + 0x24]
call esi
test eax, eax
jns 0x40bfc7
push edi
push 4
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x800
push eax
push 0x69a498
push dword [esp + 0x24]
call esi
test eax, eax
js 0x40c245
push 0x40
push dword [esp + 0x18]
call dword [sym.imp.ncrypt.dll_NCryptFinalizeKey]
test eax, eax
js 0x40c245
push 7
pop ecx
xor eax, eax
mov byte [esp + 0x1b], 6
push 8
lea edi, [esp + 0x84]
xor edx, edx
rep stosd dword es:[edi], eax
pop ecx
lea eax, [esp + 0xc8]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], eax
lea edi, [esp + 0x50]
xor eax, eax
mov dword [esp + 0x88], edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x44]
mov dword [esp + 0x8c], edx
stosd dword es:[edi], eax
xor ecx, ecx
inc ecx
mov dword [esp + 0x98], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1b]
mov edi, dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
push eax
push 0xe
push ecx
call edi
test eax, eax
je 0x40c237
push dword [esp + 0x10]
call fcn.005d0f60
mov esi, eax
pop ecx
test esi, esi
jne 0x40c096
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfe
mov edx, 0x69a4a8
push eax
push esi
xor ecx, ecx
lea edi, [esi - 7]
push edi
call fcn.0047145c
push edi
push 0x69a4c4
push 0x69a4e0
jmp 0x40c2a0
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x4c]
push eax
xor eax, eax
push 0xe
inc eax
push eax
call edi
test eax, eax
je 0x40c237
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x9c]
mov dword [esp + 0x58], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x50], 0x69a504
stosd dword es:[edi], eax
xor edx, edx
inc edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
push eax
push ecx
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], edx
push eax
push 0xf
push edx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ecx
call edi
test eax, eax
je 0x40c237
push dword [esp + 0x10]
call fcn.005d0f60
mov esi, eax
pop ecx
test esi, esi
jne 0x40c14d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfe
mov edx, 0x69a510
push eax
push esi
xor ecx, ecx
lea edi, [esi + 0xb]
push edi
call fcn.0047145c
push edi
push 0x69a52c
push 0x69a548
jmp 0x40c2a0
lea eax, [esp + 0x10]
push eax
push esi
lea eax, [esp + 0xa4]
push eax
xor eax, eax
push 0xf
inc eax
push eax
call edi
test eax, eax
je 0x40c237
mov eax, dword [esp + 0x10]
and dword [esp + 0x64], 0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x38], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x6c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
push eax
mov dword [esp + 0x64], str.2.5.29.19
mov dword [esp + 0x38], 2
call esi
lea eax, [esp + 0xa8]
push eax
call esi
mov eax, 0xffff
add word [esp + 0xa8], 0x1e
add word [esp + 0xb8], ax
lea edi, [esp + 0x74]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xac]
mov dword [esp + 0x78], 0x69a578
push eax
lea eax, [esp + 0xc0]
xor edi, edi
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x90]
push eax
push edi
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.CRYPT32.dll_CertCreateSelfSignCertificate]
lea esi, [ebx + 8]
mov dword [esi], eax
test eax, eax
je 0x40c245
push esi
push 3
push eax
push dword [ebx + 4]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x40c245
cmp dword [esi], edi
je 0x40c245
test ebp, ebp
je 0x40c237
mov edx, ebp
mov ecx, 0x69a590
call fcn.0040bca9
push dword [esp + 0x30]
call fcn.005d0f40
pop ecx
mov eax, ebx
jmp 0x40c25f
cmp dword [esp + 0x14], 0
je 0x40c256
push dword [esp + 0x14]
call dword [sym.imp.ncrypt.dll_NCryptFreeObject]
mov ecx, ebx
call fcn.0040bd16
xor eax, eax
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059b3f0
add esp, 0x2c4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfe
mov edx, 0x69a41c
push eax
push esi
xor ecx, ecx
lea edi, [esi - 0x39]
push edi
call fcn.0047145c
push edi
push 0x69a438
push 0x69a454
call fcn.004010b4
add esp, 0x18
push esi
call fcn.005aae60
int3