Function at 0x521e20
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
sub esp, 0x434
mov edx, ecx
xor eax, eax
mov ecx, dword [esp + 0x438]
push ebx
cmp ecx, 0x200
push ebp
push esi
push edi
sete al
mov edi, eax
mov eax, dword [edx + 0x78]
test edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0x400
je 0x521e77
lea esi, [eax + 0x55fc]
lea ebx, [eax + 0x5610]
add eax, 0x5600
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov ebp, str.Microsoft_Base_Cryptographic_Provider_v1.0
jmp 0x521e95
lea esi, [eax + 0x5614]
lea ebx, [eax + 0x563c]
add eax, 0x5618
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov ebp, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov ebx, edi
mov eax, 0x28
neg ebx
sbb ebx, ebx
mov dword [esp + 0x30], 0x20
and ebx, 0xfffe0fff
mov dword [esp + 0x34], 0
add ebx, 0x20002
mov dword [esp + 0x38], eax
test edi, edi
mov dword [esp + 0x3c], 8
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
lea edi, [esp + 0x30]
jne 0x521ef0
lea edi, [esp + 0x24]
mov edx, dword [edx + 0x6c]
add edx, eax
lea eax, [esp + 0x44]
push edx
push ecx
push str.feiq.rsa_d._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x45c]
add esp, 0x10
test al, 1
je 0x521f72
mov eax, dword [esi]
test eax, eax
je 0x521f72
mov ecx, dword [esp + 0x1c]
cmp dword [ecx], 0
jne 0x521f72
push 0
push eax
call dword [0x5f43c4]
push 0x30
push 1
lea edx, [esp + 0x4c]
push ebp
push edx
push esi
mov dword [esi], 0
call dword [0x5f43f0]
test eax, eax
jne 0x521f61
test byte [esp + 0x44c], 2
je 0x521f61
push 0
push str.CryptAcquireContext_destroy_
call fcn.0043c440
add esp, 8
push 0x10
push 1
lea eax, [esp + 0x4c]
push ebp
push eax
push esi
call dword [0x5f43f0]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x521f9e
push eax
push 1
lea ecx, [esp + 0x4c]
push ebp
push ecx
push esi
mov dword [esi], 0
call dword [0x5f43f0]
test eax, eax
jne 0x521f9e
mov eax, dword [edi + 4]
add edi, 4
cmp eax, 0xffffffff
jne 0x521f79
cmp dword [esi], 0
mov eax, dword [esp + 0x20]
jne 0x521fd3
test eax, eax
je 0x521fc4
test byte [esp + 0x44c], 2
je 0x521fc4
push 0
push str.CryptAcquireContext
call fcn.0043c440
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x434
ret 8
test eax, eax
jne 0x5220b8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x78]
mov eax, dword [edx + 0x5628]
test eax, eax
je 0x5220b8
lea eax, [esp + 0x18]
lea edx, [esp + 0x44]
push eax
push edx
call fcn.005228f0
mov edi, dword [esp + 0x14]
test eax, eax
je 0x52205e
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push edi
push 1
push 0
lea ecx, [esp + 0x50]
push eax
push ecx
push edx
call dword [0x5f43cc]
test eax, eax
jne 0x52205e
test byte [esp + 0x44c], 2
je 0x52203c
push 0
push str.CryptImportKey_blob_
call fcn.0043c440
add esp, 8
mov eax, dword [esi]
push 0
push eax
call dword [0x5f43c4]
push 0x20
push 1
lea ecx, [esp + 0x4c]
push ebp
push ecx
push esi
mov dword [esi], 0
call dword [0x5f43f0]
mov eax, dword [edi]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x5220c0
mov eax, dword [ebp + 0x78]
cmp dword [eax + 0x5630], 1
jne 0x522097
mov ecx, dword [eax + 0x5634]
test ecx, ecx
je 0x522097
mov ecx, dword [ebp + 0x80]
push 0
push 0
push 2
call fcn.00486740
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp + 0x78]
mov eax, dword [edx + 0x5628]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp + 0x78]
add esp, 4
mov dword [ecx + 0x5628], 0
jmp 0x5220c0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp dword [edi], 0
jne 0x522103
mov edx, dword [esi]
push edi
push 1
push edx
call dword [0x5f43dc]
test eax, eax
jne 0x522103
mov eax, dword [esi]
push edi
push 1
push 0xa400
push eax
call dword [0x5f43d4]
test eax, eax
jne 0x522103
test byte [esp + 0x44c], 2
je 0x522103
push 0
push str.CryptGenKey
call fcn.0043c440
add esp, 8
mov eax, dword [edi]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push 6
push 0
push eax
call dword [0x5f43e0]
test eax, eax
je 0x522189
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
test eax, eax
je 0x522142
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp], 0
mov dword [ebp + 0xc], 0
mov eax, dword [esp + 0x50]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
mov dword [ebp + 4], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 4]
lea esi, [esp + 0x5c]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
mov ebp, dword [esp + 0x10]
jmp 0x5221a2
test byte [esp + 0x44c], 2
je 0x5221a2
push 0
push str.CryptExportKey
call fcn.0043c440
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5221f2
mov ecx, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5628]
test eax, eax
jne 0x5221f2
cmp dword [edi], 0
je 0x5221f2
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x20], 0x400
mov ecx, dword [edi]
push 0
push 7
push 0
push ecx
call dword [0x5f43e0]
test eax, eax
je 0x5221f2
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, ebp
call fcn.00522a70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x434
ret 8