Function at 0x1000b0e9
Capabilities:
Encrypt data using aes via winapi
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x18], edx
push edi
mov edi, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], 1
cmp dword [ebp + 8], esi
je 0x1000b3ac
cmp dword [ebp + 0x24], esi
je 0x1000b3ac
mov ebx, dword [ebp + 0x20]
push 0xf
push str.1.2.643.2.2.21
push ebx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000b150
mov ecx, 0x661e
mov dword [ebp - 0x2c], 4
jmp 0x1000b1f6
push 0x18
push str.2.16.840.1.101.3.4.1.42
push ebx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000b176
mov ecx, 0x6610
mov dword [ebp - 0x2c], 1
jmp 0x1000b1f6
push 0x14
push str.1.2.643.7.1.1.5.1.1
push ebx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000b199
mov ecx, 0x6630
mov dword [ebp - 0x2c], 0x20
jmp 0x1000b1f6
push 0x14
push str.1.2.643.7.1.1.5.1.2
push ebx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000b1b5
mov ecx, 0x6630
jmp 0x1000b1ef
push 0x14
push str.1.2.643.7.1.1.5.2.1
push ebx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000b1d1
mov ecx, 0x6631
jmp 0x1000b190
push 0x14
push str.1.2.643.7.1.1.5.2.2
push ebx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000b3a5
mov ecx, 0x6631
mov dword [ebp - 0x2c], 0x23
xor eax, eax
mov dword [ebp - 0x30], ecx
cmp ecx, 0x6610
mov dword [ebp - 0x24], 0x20
setne al
mov dword [ebp - 0x28], eax
cmp ecx, 0x6630
je 0x1000b21e
cmp ecx, 0x6631
jne 0x1000b239
push 0x12
push str.1.2.643.7.1.1.4.2
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000b3ac
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
call fcn.1000aaab
pop ecx
test eax, eax
je 0x1000b36c
push dword [ebp - 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1000b273
push 0x8009000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000b36c
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x18]
push eax
push ecx
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.1000ab64
add esp, 0x18
test eax, eax
jne 0x1000b2a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000b36c
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000b298
push esi
push dword [ebp - 0x20]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x1000b298
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1000b298
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea eax, [ebp - 0x2c]
push esi
push eax
push 4
push dword [ebp - 4]
call ebx
test eax, eax
je 0x1000b298
cmp dword [ebp - 0x30], 0x661e
mov eax, dword [ebp + 0x18]
jne 0x1000b30a
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], esi
push esi
push eax
xor eax, eax
push 0x6c
inc eax
cmp dword [ebp - 0x14], esi
pop ecx
cmovne eax, ecx
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x1000b298
mov eax, dword [ebp - 0x30]
cmp eax, 0x6610
je 0x1000b347
push esi
lea eax, [ebp - 0x28]
push eax
push 0x65
push dword [ebp - 4]
call ebx
test eax, eax
je 0x1000b298
mov eax, dword [ebp - 0x30]
cmp eax, 0x661e
jne 0x1000b361
push esi
push dword [ebp + 0x1c]
push 0x68
push dword [ebp - 4]
call ebx
test eax, eax
je 0x1000b298
mov ecx, dword [ebp + 0x24]
xor esi, esi
mov eax, dword [ebp - 4]
inc esi
mov dword [ecx], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0
je 0x1000b384
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
jne 0x1000b3a1
cmp dword [ebp - 4], esi
je 0x1000b396
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test edi, edi
je 0x1000b3a1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x1000b3b6
push 0x80090005
jmp 0x1000b3ae
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret