Function at 0x10016340
Capabilities:
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movaps xmm0, xmmword [0x10117490]
movups xmmword [ebp - 0x34], xmm0
push esi
movaps xmm0, xmmword [0x10117420]
xor esi, esi
movups xmmword [ebp - 0x24], xmm0
push ebx
movaps xmm0, xmmword [str.8_v_4_2____juk]
movups xmmword [ebp - 0x14], xmm0
nop dword [eax + eax]
cmp esi, 0x2f
jb 0x1001638c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x33]
xor bl, byte [ebp - 0x34]
cmp esi, 0x2f
jb 0x100163af
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x33], bl
inc esi
cmp esi, 0x2e
jb 0x10016370
push 0
push 1
lea eax, [ebp - 0x33]
mov byte [ebp - 5], 0
push eax
push 0
push 0x1012a758
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100164d8
push 0x1012a754
push 0
push 0
push 0x8004
push dword [0x1012a758]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100164d8
movaps xmm0, xmmword [0x10117540]
xor esi, esi
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x237b2d2a
movaps xmm0, xmmword [0x10117870]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0xc], 0x297f390b
movaps xmm0, xmmword [0x10117770]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0x6a3b311e
mov word [ebp - 4], 0x36
nop word [eax + eax]
cmp esi, 0x3d
jb 0x1001645c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov bl, byte [ebp + esi - 0x3f]
xor bl, byte [ebp - 0x40]
cmp esi, 0x3d
jb 0x1001647f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.10043280
add esp, 0xc
mov byte [ebp + esi - 0x3f], bl
inc esi
cmp esi, 0x3c
jb 0x10016440
push 1
push 0x3c
lea eax, [ebp - 0x3f]
mov byte [ebp - 3], 0
push eax
push dword [0x1012a754]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100164d8
push 0x1012a750
push 0x800000
push dword [0x1012a754]
push 0x6801
push dword [0x1012a758]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x100164d8
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x1012a74c], eax
call fcn.10051770
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call fcn.10051c40
push 0x100160e0
push 0x1012a748
call fcn.10051480
call fcn.100517d0
push 4
push 0x60f6e0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
pop ebx
test eax, eax
jne 0x10016547
mov dword [0x1012a748], 0x60f6e0
call fcn.10051770
call esi
push eax
call fcn.10051c40
push 0x100160e0
push 0x1012a748
call fcn.10050ff0
call fcn.100517d0
call fcn.10051770
call esi
push eax
call fcn.10051c40
push 0x100161d0
push 0x1012a744
call fcn.10051480
call fcn.100517d0
push 4
push 0x60eab0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100165a4
mov dword [0x1012a744], 0x60eab0
call fcn.10051770
call esi
push eax
call fcn.10051c40
push 0x100161d0
push 0x1012a744
call fcn.10050ff0
call fcn.100517d0
pop esi
mov esp, ebp
pop ebp
ret