Function at 0x10033d2
Capabilities:
Create new key via cryptacquirecontext
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x100c02c]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x14]
mov dword [esi], ebx
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x24], ebx
mov dword [edi], ebx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x100342b
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1003757
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x100372d
push 8
push 1
mov eax, 0x1001470
push eax
mov dword [edi], eax
push dword [esi]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1003714
lea eax, [ebp - 0x48]
push eax
push 0x4000001
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x10036e2
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push 0x80
mov dword [ebp - 0x2c], 0x40
call edi
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x10034e6
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x10034ed
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
call edi
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
je 0x10034e6
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x10034ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 0x20], ebx
jmp 0x10034ed
mov dword [ebp - 0x18], 8
cmp dword [ebp - 0x20], ebx
je 0x10036d0
push dword [ebp - 0x20]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
mov dword [esp], 0x1001410
mov dword [ebp - 0x28], eax
call esi
mov ecx, dword [ebp - 0x28]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
call edi
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x28], esi
je 0x1003538
push dword [ebp - 0x20]
push 0x1001410
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x100353f
mov dword [ebp - 0x18], 8
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_free]
cmp esi, ebx
pop ecx
je 0x10036cd
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push ebx
push esi
xor esi, esi
inc esi
push esi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.CRYPT32.dll_CertStrToNameW]
test eax, eax
je 0x10036b5
push dword [ebp - 0x40]
call edi
cmp eax, ebx
pop ecx
mov dword [ebp - 0x3c], eax
je 0x10036ac
push ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
push ebx
push ebx
push dword [ebp - 0x28]
push esi
call dword [sym.imp.CRYPT32.dll_CertStrToNameW]
test eax, eax
je 0x1003697
lea eax, [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x24
push esi
mov dword [ebp - 0x20], 0x10013f4
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], 0x10013e8
call fcn.01003359
test eax, eax
je 0x1003697
lea eax, [ebp - 0x58]
mov dword [ebp - 0x64], eax
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x6c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
add eax, 0x2da30000
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x34]
adc ecx, 0x7009d3
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
lea eax, [ebp - 0x84]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.CRYPT32.dll_CertCreateSelfSignCertificate]
cmp eax, ebx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
je 0x1003682
mov byte [ebp - 0x19], 1
jmp 0x100368b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x10036a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x3c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x10036be
mov dword [ebp - 0x18], 8
jmp 0x10036be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x28]
call dword [sym.imp.msvcrt.dll_free]
mov esi, dword [ebp - 0x38]
pop ecx
jmp 0x10036d7
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], 8
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x10036eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
je 0x1003734
push 0x50
push 1
push 0x1001470
push dword [esi]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
jmp 0x100371d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x1003734
push esi
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov dword [esi], ebx
jmp 0x1003734
mov dword [ebp - 0x18], 8
cmp byte [ebp - 0x19], bl
jne 0x100374b
mov esi, dword [ebp - 0x44]
mov eax, dword [esi]
cmp eax, ebx
je 0x100374b
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov dword [esi], ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010058ab
leave
ret 0xc