Function at 0x103b584
Capabilities:
Encrypt data using rc4 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
xor edi, edi
inc ebx
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
cmp esi, edi
jne 0x103b5c8
call fcn.0106d6ff
push eax
push 0x16a20139
mov dword [ebp + 0x18], eax
call fcn.01053610
jmp 0x103b772
push 0xf0000000
push ebx
push edi
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x103b5f6
call fcn.0106d6ff
push eax
push 0x16ad0139
mov dword [ebp + 0x18], eax
call fcn.01053610
jmp 0x103b76b
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x103b61c
call fcn.0106d6ff
push eax
push 0x16b20139
jmp 0x103b5e9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.0106db01
test eax, eax
jne 0x103b642
call fcn.0106d6ff
push eax
push 0x16bc0139
jmp 0x103b5e9
cmp dword [0x107b258], edi
je 0x103b680
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
inc eax
push eax
call fcn.0102518f
cmp dword [0x107b258], ebx
jle 0x103b680
mov eax, dword [esi + 0xc]
add eax, 0x38
push eax
call fcn.01024fab
mov eax, dword [esi + 0xc]
push edi
push edi
add eax, 0x38
push eax
call fcn.01025cb3
push dword [ebp - 8]
call fcn.01024fab
push edi
push edi
push dword [ebp - 8]
call fcn.01025cb3
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0x38]
push ecx
push dword [ebp - 8]
xor ecx, ecx
cmp dword [eax], edi
sete cl
push ecx
push ebx
call fcn.01056669
test eax, eax
jne 0x103b6eb
mov edi, dword [ebp + 0x1c]
test edi, edi
mov ebx, 0x8007000d
mov dword [ebp + 0x18], ebx
jne 0x103b6d2
push 0x17c
call fcn.01052a94
push eax
call fcn.0105b329
mov dword [esp], 0x1003410
call fcn.0105b329
pop ecx
neg edi
sbb edi, edi
and edi, ebx
push edi
push ebx
push 0x16d80139
call fcn.0105362d
xor edi, edi
jmp 0x103b76b
mov eax, dword [esi + 0xc]
add eax, 0x38
cmp dword [ebp + 0x18], 2
jne 0x103b707
push 0x8004
push eax
push dword [ebp - 4]
call fcn.0105949a
jmp 0x103b715
push 0x6801
push eax
push dword [ebp - 4]
call fcn.01059652
cmp eax, edi
mov dword [ebp + 0x18], eax
je 0x103b746
push 0x301
call fcn.01052a94
push eax
call fcn.0105b329
mov dword [esp], 0x1003410
call fcn.0105b329
pop ecx
push dword [ebp + 0x18]
push 0x16ec0139
jmp 0x103b5ec
cmp dword [0x107b258], edi
je 0x103b76b
push 0x8d2
call fcn.01052a94
push eax
call fcn.0105b329
mov dword [esp], 0x1003410
call fcn.0105b329
pop ecx
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 8], edi
je 0x103b780
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], edi
je 0x103b78e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 4], edi
je 0x103b79d
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18