Function at 0x409010
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 0x40904d
lea esi, [eax + 0x2ac]
cmp ebx, edi
lea edx, [eax + 0x2a8]
jne 0x40905d
lea edx, [eax + 0x2d4]
cmp ebx, edi
mov dword [ebp - 4], edx
je 0x40906b
add eax, 0x298
jmp 0x409070
add eax, 0x2b0
cmp ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], str.Microsoft_Base_Cryptographic_Provider_v1.0
jne 0x409085
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 0x4090c7
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 0x409149
mov eax, dword [esi]
cmp eax, edi
je 0x409149
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], edi
jne 0x409149
push edi
push eax
call dword [0x422140]
push 0x30
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x422148]
test eax, eax
jne 0x409134
test byte [ebp + 0xc], 2
je 0x409134
push edi
push str.CryptAcquireContext_destroy_
call fcn.0040bdfb
pop ecx
pop ecx
push 0x10
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
push eax
push esi
call dword [0x422148]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40917d
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 [0x422148]
test eax, eax
jne 0x40917a
mov eax, dword [ebx + 4]
add ebx, 4
cmp eax, 0xffffffff
jne 0x409155
mov ebx, dword [ebp - 0x20]
cmp dword [esi], edi
jne 0x4091a0
cmp dword [ebp - 0x14], edi
je 0x409199
test byte [ebp + 0xc], 2
je 0x409199
push edi
push str.CryptAcquireContext
call fcn.0040bdfb
pop ecx
pop ecx
xor eax, eax
jmp 0x40934c
cmp dword [ebp - 0x14], edi
jne 0x409277
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x2c0], edi
je 0x409277
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040939f
test eax, eax
je 0x409221
push dword [ebp - 4]
lea eax, [ebp - 0x440]
push 1
push edi
push dword [ebp - 8]
push eax
push dword [esi]
call dword [0x422130]
test eax, eax
jne 0x409221
test byte [ebp + 0xc], 2
je 0x409201
push edi
push str.CryptImportKey_blob_
call fcn.0040bdfb
pop ecx
pop ecx
push edi
push dword [esi]
call dword [0x422140]
push 0x20
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x422148]
mov eax, dword [ebp - 4]
cmp dword [eax], edi
jne 0x409277
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x2c8], 1
jne 0x409256
cmp dword [eax + 0x2cc], edi
je 0x409256
push edi
push edi
push 2
call fcn.004077c2
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ecx + 0x98]
push dword [eax + 0x2c0]
call fcn.00417002
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 0x4092b6
push eax
push 1
push dword [esi]
call dword [0x42212c]
test eax, eax
jne 0x4092b6
push dword [ebp - 4]
push 1
push 0xa400
push dword [esi]
call dword [0x422124]
test eax, eax
jne 0x4092b6
test byte [ebp + 0xc], 2
je 0x4092b6
push edi
push str.CryptGenKey
call fcn.0040bdfb
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 [0x422128]
test eax, eax
je 0x4092e6
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.00409353
jmp 0x4092f9
test byte [ebp + 0xc], 2
je 0x4092f9
push edi
push str.CryptExportKey
call fcn.0040bdfb
pop ecx
pop ecx
cmp dword [ebp - 0x14], edi
jne 0x409349
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x2c0], edi
jne 0x409349
mov eax, dword [ebp - 4]
cmp dword [eax], edi
je 0x409349
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 [0x422128]
test eax, eax
je 0x409349
push dword [ebp - 8]
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.0040956b
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8