Function at 0x10003b80
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Generate random numbers via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100407d1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x1004a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x62], dl
mov edi, ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov dword [ebp - 0x44], 0x339631d4
mov dword [ebp - 0x40], 0x1479d63f
mov dword [ebp - 0x3c], 0x4b6a94b8
mov dword [ebp - 0x38], 0xbb048241
movups xmmword [ebp - 0x24], xmm0
mov byte [edi], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x68], 1
push eax
mov byte [ebp - 0x61], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10004201
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10004201
push 0
push 0x10
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10004201
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x34]
push 0x660e
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10004201
cmp byte [ebp - 0x62], 0
je 0x10003fe6
lea eax, [ebx + 8]
cmp edi, eax
je 0x10003cd3
cmp dword [ebx + 0x1c], 0xf
mov ecx, edi
push dword [ebx + 0x18]
cmova eax, dword [ebx + 8]
push eax
call fcn.10005990
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x30], esi
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
cmp ecx, esi
ja 0x10003cf6
mov dword [edi + 0x10], ecx
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10003cf0
mov eax, dword [edi]
mov byte [eax + ecx], 0
jmp 0x10003d3b
mov eax, dword [edi + 0x14]
mov edx, ecx
sub edx, esi
sub eax, esi
mov dword [ebp - 0x60], edx
cmp edx, eax
ja 0x10003d2a
cmp dword [edi + 0x14], 0xf
mov eax, edi
mov dword [edi + 0x10], ecx
jbe 0x10003d13
mov eax, dword [edi]
push edx
add esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x10003d3b
push ecx
push edx
mov byte [ebp - 0x60], 0
mov ecx, edi
push dword [ebp - 0x60]
push edx
call fcn.10005db0
lea eax, [ebp - 0x24]
push eax
push 8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10004201
push ecx
push 8
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x84]
call fcn.100032a0
add esp, 8
cmp dword [eax + 0x14], 0xf
jbe 0x10003d6e
mov eax, dword [eax]
movups xmm0, xmmword [eax]
mov ecx, dword [ebp - 0x70]
movups xmmword [ebp - 0x24], xmm0
cmp ecx, 0xf
jbe 0x10003dae
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003da4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003da4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003f24b
add esp, 8
push 0
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10004201
mov edx, dword [edi + 0x10]
lea esi, [edx + edx*2]
cmp esi, edx
ja 0x10003de4
mov dword [edi + 0x10], esi
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10003dde
mov eax, dword [edi]
mov byte [eax + esi], 0
jmp 0x10003e2a
mov eax, dword [edi + 0x14]
mov ecx, esi
sub ecx, edx
sub eax, edx
mov dword [ebp - 0x60], ecx
cmp ecx, eax
ja 0x10003e19
cmp dword [edi + 0x14], 0xf
mov eax, edi
mov dword [edi + 0x10], esi
jbe 0x10003e01
mov eax, dword [edi]
push ecx
lea esi, [eax + edx]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x10003e2a
push ecx
push ecx
mov byte [ebp - 0x60], 0
push dword [ebp - 0x60]
push ecx
mov ecx, edi
call fcn.10005db0
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x10003e34
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
push ecx
push 0
push 1
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x10004201
mov esi, dword [edi + 0x10]
mov edx, dword [ebp - 0x30]
cmp edx, esi
ja 0x10003e72
mov dword [edi + 0x10], edx
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10003e6c
mov eax, dword [edi]
mov byte [eax + edx], 0
jmp 0x10003eb7
mov eax, dword [edi + 0x14]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x60], ecx
cmp ecx, eax
ja 0x10003ea6
cmp dword [edi + 0x14], 0xf
mov eax, edi
mov dword [edi + 0x10], edx
jbe 0x10003e8f
mov eax, dword [edi]
push ecx
add esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x10003eb7
push ecx
push ecx
mov byte [ebp - 0x60], 0
push dword [ebp - 0x60]
push ecx
mov ecx, edi
call fcn.10005db0
sub esp, 0x18
mov ecx, esp
push edi
call fcn.10005780
lea ecx, [ebp - 0x5c]
call fcn.10003890
add esp, 0x18
mov byte [ebp - 4], 2
mov edx, dword [edi + 0x10]
cmp edx, 0x10
jb 0x10003ef0
mov dword [edi + 0x10], 0x10
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10003eea
mov eax, dword [edi]
mov byte [eax + 0x10], 0
jmp 0x10003f3e
mov esi, dword [edi + 0x14]
mov ecx, 0x10
mov eax, esi
sub ecx, edx
sub eax, edx
mov dword [ebp - 0x60], ecx
cmp ecx, eax
ja 0x10003f2d
mov dword [edi + 0x10], 0x10
mov eax, edi
cmp esi, 0xf
jbe 0x10003f15
mov eax, dword [edi]
push ecx
lea esi, [eax + edx]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x10003f3e
push ecx
push ecx
mov byte [ebp - 0x60], 0
push dword [ebp - 0x60]
push ecx
mov ecx, edi
call fcn.10005db0
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x10003f48
mov eax, dword [edi]
movups xmm0, xmmword [ebp - 0x24]
lea edx, [ebp - 0x5c]
movups xmmword [eax], xmm0
cmp dword [ebp - 0x48], 0xf
mov eax, dword [edi + 0x14]
cmova edx, dword [ebp - 0x5c]
mov esi, dword [edi + 0x10]
sub eax, esi
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x60], ecx
cmp ecx, eax
ja 0x10003f92
cmp dword [edi + 0x14], 0xf
lea eax, [ecx + esi]
mov dword [edi + 0x10], eax
mov eax, edi
jbe 0x10003f7c
mov eax, dword [edi]
push ecx
add esi, eax
push edx
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x10003fa3
push ecx
push edx
mov byte [ebp - 0x60], 0
push dword [ebp - 0x60]
push ecx
mov ecx, edi
call fcn.10005f10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x100041fd
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003fd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003fd7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003f24b
add esp, 8
jmp 0x100041fd
mov edx, dword [ebx + 0x18]
sub esp, 0x18
mov ecx, esp
xorps xmm0, xmm0
add edx, 0xfffffff0
mov dword [ebp - 0x60], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov eax, dword [ebx + 0x18]
cmp eax, 0x10
jb 0x10004297
add eax, 0xfffffff0
cmp eax, edx
cmovb edx, eax
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
cmova eax, dword [ebx + 8]
push edx
add eax, 0x10
push eax
call fcn.100020e0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x68], 3
call fcn.100034a0
mov esi, eax
add esp, 0x18
cmp edi, esi
je 0x100040ad
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x1000407b
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x10004071
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100040d6
mov eax, edx
push ecx
push eax
call fcn.1003f24b
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x100040e6
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100040dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100040dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003f24b
add esp, 8
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x30], esi
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
cmp ecx, esi
ja 0x10004109
mov dword [edi + 0x10], ecx
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10004103
mov eax, dword [edi]
mov byte [eax + ecx], 0
jmp 0x1000414e
mov eax, dword [edi + 0x14]
mov edx, ecx
sub edx, esi
sub eax, esi
mov dword [ebp - 0x60], edx
cmp edx, eax
ja 0x1000413d
cmp dword [edi + 0x14], 0xf
mov eax, edi
mov dword [edi + 0x10], ecx
jbe 0x10004126
mov eax, dword [edi]
push edx
add esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x1000414e
push ecx
push edx
mov byte [ebp - 0x60], 0
mov ecx, edi
push dword [ebp - 0x60]
push edx
call fcn.10005db0
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
push 0
cmova eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0x28]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10004201
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x10004183
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
push eax
push 0
push 1
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10004201
mov esi, dword [edi + 0x10]
mov edx, dword [ebp - 0x30]
cmp edx, esi
ja 0x100041b8
mov dword [edi + 0x10], edx
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x100041b2
mov eax, dword [edi]
mov byte [eax + edx], 0
jmp 0x100041fd
mov eax, dword [edi + 0x14]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x60], ecx
cmp ecx, eax
ja 0x100041ec
cmp dword [edi + 0x14], 0xf
mov eax, edi
mov dword [edi + 0x10], edx
jbe 0x100041d5
mov eax, dword [edi]
push ecx
add esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x100041fd
push ecx
push ecx
mov byte [ebp - 0x60], 0
push dword [ebp - 0x60]
push ecx
mov ecx, edi
call fcn.10005db0
mov byte [ebp - 0x61], 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000420f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1000421d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000422d
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [ebp - 0x61], 0
jne 0x10004241
push 0
push 0x10041408
mov ecx, edi
call fcn.10005990
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x10004277
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000426d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000426d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003f24b
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003f23d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10005ac0
int3