Function at 0x408fbb
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 0x408ff8
lea esi, [eax + 0x2ac]
cmp ebx, edi
lea edx, [eax + 0x2a8]
jne 0x409008
lea edx, [eax + 0x2d4]
cmp ebx, edi
mov dword [ebp - 4], edx
je 0x409016
add eax, 0x298
jmp 0x40901b
add eax, 0x2b0
cmp ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], str.Microsoft_Base_Cryptographic_Provider_v1.0
jne 0x409030
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 0x409072
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 0x4090f4
mov eax, dword [esi]
cmp eax, edi
je 0x4090f4
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], edi
jne 0x4090f4
push edi
push eax
call dword [0x422110]
push 0x30
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x422118]
test eax, eax
jne 0x4090df
test byte [ebp + 0xc], 2
je 0x4090df
push edi
push str.CryptAcquireContext_destroy_
call fcn.0040bda6
pop ecx
pop ecx
push 0x10
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
push eax
push esi
call dword [0x422118]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x409128
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 [0x422118]
test eax, eax
jne 0x409125
mov eax, dword [ebx + 4]
add ebx, 4
cmp eax, 0xffffffff
jne 0x409100
mov ebx, dword [ebp - 0x20]
cmp dword [esi], edi
jne 0x40914b
cmp dword [ebp - 0x14], edi
je 0x409144
test byte [ebp + 0xc], 2
je 0x409144
push edi
push str.CryptAcquireContext
call fcn.0040bda6
pop ecx
pop ecx
xor eax, eax
jmp 0x4092f7
cmp dword [ebp - 0x14], edi
jne 0x409222
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x2c0], edi
je 0x409222
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040934a
test eax, eax
je 0x4091cc
push dword [ebp - 4]
lea eax, [ebp - 0x440]
push 1
push edi
push dword [ebp - 8]
push eax
push dword [esi]
call dword [0x422100]
test eax, eax
jne 0x4091cc
test byte [ebp + 0xc], 2
je 0x4091ac
push edi
push str.CryptImportKey_blob_
call fcn.0040bda6
pop ecx
pop ecx
push edi
push dword [esi]
call dword [0x422110]
push 0x20
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 0x440]
mov dword [esi], edi
push eax
push esi
call dword [0x422118]
mov eax, dword [ebp - 4]
cmp dword [eax], edi
jne 0x409222
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x98]
cmp dword [eax + 0x2c8], 1
jne 0x409201
cmp dword [eax + 0x2cc], edi
je 0x409201
push edi
push edi
push 2
call fcn.004077aa
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ecx + 0x98]
push dword [eax + 0x2c0]
call fcn.004171da
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 0x409261
push eax
push 1
push dword [esi]
call dword [0x4220fc]
test eax, eax
jne 0x409261
push dword [ebp - 4]
push 1
push 0xa400
push dword [esi]
call dword [0x4220f4]
test eax, eax
jne 0x409261
test byte [ebp + 0xc], 2
je 0x409261
push edi
push str.CryptGenKey
call fcn.0040bda6
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 [0x4220f8]
test eax, eax
je 0x409291
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.004092fe
jmp 0x4092a4
test byte [ebp + 0xc], 2
je 0x4092a4
push edi
push str.CryptExportKey
call fcn.0040bda6
pop ecx
pop ecx
cmp dword [ebp - 0x14], edi
jne 0x4092f4
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x2c0], edi
jne 0x4092f4
mov eax, dword [ebp - 4]
cmp dword [eax], edi
je 0x4092f4
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 [0x4220f8]
test eax, eax
je 0x4092f4
push dword [ebp - 8]
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.00409516
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8