Function at 0x417ab6
Capabilities:
Terminate process

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub eax, 0x200
sub esp, 0x438
cmp eax, 1
sbb eax, eax
push ebx
neg eax
mov dword [ebp - 0xc], 0x400
push esi
push edi
mov ebx, dword [ecx + 0x98]
mov esi, ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x417af0
add ebx, 0x294
jmp 0x417af6
add ebx, 0x2ac
cmp dword [ebp - 8], 0
mov eax, dword [esi + 0x98]
je 0x417b09
add eax, 0x2a8
jmp 0x417b0e
add eax, 0x2d4
mov edi, dword [esi + 0x98]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x417b25
add edi, 0x298
jmp 0x417b2b
add edi, 0x2b0
cmp dword [ebp - 8], 0
mov eax, str.Microsoft_Base_Cryptographic_Provider_v1.0
jne 0x417b3b
mov eax, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
cmp dword [ebp - 8], 1
mov dword [ebp - 0x14], eax
sbb eax, eax
xor ecx, ecx
and eax, 0x1f001
mov edx, 0x28
add eax, 0x1001
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], edx
mov eax, 0x20
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
cmp dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
jne 0x417b8c
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x438]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x8c]
add eax, 0x20
push eax
push dword [ebp + 8]
push str.ipmsg.rsa_d._s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [ebp + 0xc], 1
je 0x417c14
mov eax, dword [ebx]
test eax, eax
je 0x417c14
cmp dword [edi], 0
jne 0x417c14
push 0
push eax
call dword [0x4205cc]
push 0x30
lea ecx, [ebp - 0x438]
push 1
mov dword [ebx], 0
push dword [ebp - 0x14]
push ecx
push ebx
call dword [0x4205d4]
test eax, eax
jne 0x417bff
test byte [ebp + 0xc], 2
je 0x417bff
push 0
push str.CryptAcquireContext_destroy_
call fcn.0040c250
add esp, 8
push 0x10
lea ecx, [ebp - 0x438]
push 1
push dword [ebp - 0x14]
push ecx
push ebx
call dword [0x4205d4]
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xffffffff
je 0x417c4d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
push dword [eax]
push 1
push dword [ebp - 0x14]
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [0x4205d4]
test eax, eax
jne 0x417c4d
add dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xffffffff
jne 0x417c1f
xor eax, eax
cmp dword [ebx], eax
jne 0x417c73
cmp dword [ebp - 8], eax
je 0x417c6c
test byte [ebp + 0xc], 2
je 0x417c6c
push eax
push str.CryptAcquireContext
call fcn.0040c250
add esp, 8
xor eax, eax
jmp 0x417e72
cmp dword [ebp - 8], 0
jne 0x417d54
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x2c0], 0
je 0x417d54
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x438]
push eax
push ecx
mov ecx, esi
call fcn.00417e7b
test eax, eax
je 0x417cfd
push dword [ebp - 4]
push 1
push 0
lea edx, [ebp - 0x438]
push dword [ebp - 0xc]
push edx
push dword [ebx]
call dword [0x4205bc]
test eax, eax
jne 0x417cfd
test byte [ebp + 0xc], 2
je 0x417cd8
push 0
push str.CryptImportKey_blob_
call fcn.0040c250
add esp, 8
push 0
push dword [ebx]
call dword [0x4205cc]
push 0x20
lea ecx, [ebp - 0x438]
push 1
mov dword [ebx], 0
push dword [ebp - 0x14]
push ecx
push ebx
call dword [0x4205d4]
xor eax, eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], eax
jne 0x417d54
mov ecx, dword [esi + 0x98]
cmp dword [ecx + 0x2c8], 1
jne 0x417d30
cmp dword [ecx + 0x2cc], eax
je 0x417d30
push eax
mov ecx, esi
push eax
push 2
call fcn.00416153
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esi + 0x98]
push dword [eax + 0x2c0]
call fcn.00418440
add esp, 4
mov ecx, dword [esi + 0x98]
mov dword [ecx + 0x2c0], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
jne 0x417d96
push ecx
push 1
push dword [ebx]
call dword [0x4205b8]
test eax, eax
jne 0x417d96
push dword [ebp - 4]
push 1
push 0xa400
push dword [ebx]
call dword [0x4205b0]
test eax, eax
jne 0x417d96
test byte [ebp + 0xc], 2
je 0x417d96
push 0
push str.CryptGenKey
call fcn.0040c250
add esp, 8
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x438]
push eax
xor ebx, ebx
push ecx
mov edx, dword [ebp - 4]
push ebx
push 6
push ebx
push dword [edx]
call dword [0x4205b4]
test eax, eax
je 0x417e06
push dword [edi]
call fcn.00418440
add esp, 4
mov dword [edi], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [ebp - 0x42c]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
mov dword [edi + 4], eax
call fcn.004188d0
add esp, 4
lea edx, [ebp - 0x424]
mov dword [edi], eax
push dword [edi + 4]
push edx
push eax
call fcn.00418760
add esp, 0xc
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x18]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x417e1b
test byte [ebp + 0xc], 2
je 0x417e1b
push 0
push str.CryptExportKey
call fcn.0040c250
add esp, 8
xor edx, edx
cmp dword [ebp - 8], edx
jne 0x417e6d
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x2c0], edx
jne 0x417e6d
mov ecx, dword [ebp - 4]
cmp dword [ecx], edx
je 0x417e6d
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x438]
push eax
push ecx
push edx
push 7
push edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], 0x400
push dword [edx]
call dword [0x4205b4]
test eax, eax
je 0x417e6d
push dword [ebp - 0xc]
lea ecx, [ebp - 0x438]
push ecx
mov ecx, esi
call fcn.00418047
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8