Function at 0x408fa6
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 + 0x294]
jne 0x408fe3
lea esi, [eax + 0x2ac]
cmp ebx, edi
lea edx, [eax + 0x2a8]
jne 0x408ff3
lea edx, [eax + 0x2d4]
cmp ebx, edi
mov dword [ebp - 4], edx
je 0x409001
add eax, 0x298
jmp 0x409006
add eax, 0x2b0
cmp ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], str.Microsoft_Base_Cryptographic_Provider_v1.0
jne 0x40901b
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 0x40905d
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 0x4090df
mov eax, dword [esi]
cmp eax, edi
je 0x4090df
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], edi
jne 0x4090df
push edi
push eax
call dword [0x422100]
push 0x30
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x422108]
test eax, eax
jne 0x4090ca
test byte [ebp + 0xc], 2
je 0x4090ca
push edi
push str.CryptAcquireContext_destroy_
call fcn.0040bdb0
pop ecx
pop ecx
push 0x10
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
push eax
push esi
call dword [0x422108]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x409113
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 [0x422108]
test eax, eax
jne 0x409110
mov eax, dword [ebx + 4]
add ebx, 4
cmp eax, 0xffffffff
jne 0x4090eb
mov ebx, dword [ebp - 0x20]
cmp dword [esi], edi
jne 0x409136
cmp dword [ebp - 0x14], edi
je 0x40912f
test byte [ebp + 0xc], 2
je 0x40912f
push edi
push str.CryptAcquireContext
call fcn.0040bdb0
pop ecx
pop ecx
xor eax, eax
jmp 0x4092e2
cmp dword [ebp - 0x14], edi
jne 0x40920d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x2c0], edi
je 0x40920d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00409335
test eax, eax
je 0x4091b7
push dword [ebp - 4]
lea eax, [ebp - 0x440]
push 1
push edi
push dword [ebp - 8]
push eax
push dword [esi]
call dword [0x4220f0]
test eax, eax
jne 0x4091b7
test byte [ebp + 0xc], 2
je 0x409197
push edi
push str.CryptImportKey_blob_
call fcn.0040bdb0
pop ecx
pop ecx
push edi
push dword [esi]
call dword [0x422100]
push 0x20
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x422108]
mov eax, dword [ebp - 4]
cmp dword [eax], edi
jne 0x40920d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x2c8], 1
jne 0x4091ec
cmp dword [eax + 0x2cc], edi
je 0x4091ec
push edi
push edi
push 2
call fcn.00407795
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ecx + 0x98]
push dword [eax + 0x2c0]
call fcn.00416fbc
mov eax, dword [ebp - 0x10]
pop ecx
mov eax, dword [eax + 0x98]
mov dword [eax + 0x2c0], edi
mov eax, dword [ebp - 4]
cmp dword [eax], edi
jne 0x40924c
push eax
push 1
push dword [esi]
call dword [0x4220ec]
test eax, eax
jne 0x40924c
push dword [ebp - 4]
push 1
push 0xa400
push dword [esi]
call dword [0x4220e4]
test eax, eax
jne 0x40924c
test byte [ebp + 0xc], 2
je 0x40924c
push edi
push str.CryptGenKey
call fcn.0040bdb0
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 [0x4220e8]
test eax, eax
je 0x40927c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.004092e9
jmp 0x40928f
test byte [ebp + 0xc], 2
je 0x40928f
push edi
push str.CryptExportKey
call fcn.0040bdb0
pop ecx
pop ecx
cmp dword [ebp - 0x14], edi
jne 0x4092df
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x2c0], edi
jne 0x4092df
mov eax, dword [ebp - 4]
cmp dword [eax], edi
je 0x4092df
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 [0x4220e8]
test eax, eax
je 0x4092df
push dword [ebp - 8]
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.00409501
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8