Function at 0x4095e9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [ecx + 0x98]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], 0x200
push esi
push edi
sete bl
xor edi, edi
mov dword [ebp - 0x10], ecx
cmp ebx, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 0x400
lea esi, [eax + 0x39c]
jne 0x409626
lea esi, [eax + 0x3b4]
cmp ebx, edi
lea edx, [eax + 0x3b0]
jne 0x409636
lea edx, [eax + 0x3dc]
cmp ebx, edi
mov dword [ebp - 4], edx
je 0x409644
add eax, 0x3a0
jmp 0x409649
add eax, 0x3b8
cmp ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], str.Microsoft_Base_Cryptographic_Provider_v1.0
jne 0x40965e
mov dword [ebp - 0xc], str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0x20
mov dword [ebp - 0x3c], edi
neg ebx
pop edx
mov dword [ebp - 0x34], 8
sbb ebx, ebx
or dword [ebp - 0x30], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
push 0x28
and ebx, 0xfffe0fff
pop eax
add ebx, 0x20002
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x40]
jne 0x4096a0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x8c]
add eax, edx
push eax
lea eax, [ebp - 0x440]
push dword [ebp + 8]
push str.ipmsg.rsa_d._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [ebp + 0xc], 1
je 0x409722
mov eax, dword [esi]
cmp eax, edi
je 0x409722
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], edi
jne 0x409722
push edi
push eax
call dword [0x426570]
push 0x30
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x426578]
test eax, eax
jne 0x40970d
test byte [ebp + 0xc], 2
je 0x40970d
push edi
push str.CryptAcquireContext_destroy_
call fcn.0040c4c4
pop ecx
pop ecx
push 0x10
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
push eax
push esi
call dword [0x426578]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x409756
mov ebx, ecx
push eax
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x426578]
test eax, eax
jne 0x409753
mov eax, dword [ebx + 4]
add ebx, 4
cmp eax, 0xffffffff
jne 0x40972e
mov ebx, dword [ebp - 0x20]
cmp dword [esi], edi
jne 0x409779
cmp dword [ebp - 0x14], edi
je 0x409772
test byte [ebp + 0xc], 2
je 0x409772
push edi
push str.CryptAcquireContext
call fcn.0040c4c4
pop ecx
pop ecx
xor eax, eax
jmp 0x409925
cmp dword [ebp - 0x14], edi
jne 0x409850
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x3c8], edi
je 0x409850
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00409978
test eax, eax
je 0x4097fa
push dword [ebp - 4]
lea eax, [ebp - 0x440]
push 1
push edi
push dword [ebp - 8]
push eax
push dword [esi]
call dword [0x426560]
test eax, eax
jne 0x4097fa
test byte [ebp + 0xc], 2
je 0x4097da
push edi
push str.CryptImportKey_blob_
call fcn.0040c4c4
pop ecx
pop ecx
push edi
push dword [esi]
call dword [0x426570]
push 0x20
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x426578]
mov eax, dword [ebp - 4]
cmp dword [eax], edi
jne 0x409850
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x3d0], 1
jne 0x40982f
cmp dword [eax + 0x3d4], edi
je 0x40982f
push edi
push edi
push 2
call fcn.00407d03
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ecx + 0x98]
push dword [eax + 0x3c8]
call fcn.0041803c
mov eax, dword [ebp - 0x10]
pop ecx
mov eax, dword [eax + 0x98]
mov dword [eax + 0x3c8], edi
mov eax, dword [ebp - 4]
cmp dword [eax], edi
jne 0x40988f
push eax
push 1
push dword [esi]
call dword [0x42655c]
test eax, eax
jne 0x40988f
push dword [ebp - 4]
push 1
push 0xa400
push dword [esi]
call dword [0x426554]
test eax, eax
jne 0x40988f
test byte [ebp + 0xc], 2
je 0x40988f
push edi
push str.CryptGenKey
call fcn.0040c4c4
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp - 4]
push edi
push 6
push edi
push dword [eax]
call dword [0x426558]
test eax, eax
je 0x4098bf
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0040992c
jmp 0x4098d2
test byte [ebp + 0xc], 2
je 0x4098d2
push edi
push str.CryptExportKey
call fcn.0040c4c4
pop ecx
pop ecx
cmp dword [ebp - 0x14], edi
jne 0x409922
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x3c8], edi
jne 0x409922
mov eax, dword [ebp - 4]
cmp dword [eax], edi
je 0x409922
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x400
push ecx
lea ecx, [ebp - 0x440]
push ecx
push edi
push 7
push edi
push dword [eax]
call dword [0x426558]
test eax, eax
je 0x409922
push dword [ebp - 8]
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.00409b44
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8