Function at 0x43eb30
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f2c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x30], ebx
mov esi, ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], eax
call fcn.0043ef20
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x40]
call fcn.0043ef20
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x38]
call fcn.0043ef20
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x43eccc
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
mov edx, esi
call fcn.0043e850
mov edi, eax
add esp, 4
test edi, edi
jne 0x43ecd4
lea eax, [ebp - 0x14]
push eax
push 1
push 0x6801
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x43eccc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push edi
push 0x40
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x43eccc
mov eax, dword [ebx + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 1
push edi
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x43eccc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
add eax, 8
mov esi, dword [ebp - 0x24]
add eax, esi
push eax
mov dword [ecx + 4], eax
call fcn.0043b690
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [eax], esi
mov esi, ecx
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov ecx, dword [esi]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 0x24]
add eax, 8
add ecx, eax
call fcn.0041aa00
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
add esp, 8
add eax, 8
push ecx
push eax
push 0x40
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x43eccc
push dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
add eax, 8
add eax, dword [esi]
push eax
push edi
push 1
push edi
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x43ecd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp byte [ebp - 0x34], 0
je 0x43ecec
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
test eax, eax
je 0x43ecec
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [ebp - 0x3c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
je 0x43ed04
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
test eax, eax
je 0x43ed04
push eax
call esi
cmp byte [ebp - 0x44], 0
je 0x43ed16
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
test eax, eax
je 0x43ed16
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret