Function at 0x10003830
Capabilities:
Generate random numbers via winapi
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3ed4
call fcn.1001eab0
push ebx
push esi
push edi
mov al, byte [0x100273cc]
mov byte [ebp - 0x3db4], al
mov ecx, 0xf6c
xor eax, eax
lea edi, [ebp - 0x3db3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x3dbc], 0x3db4
lea ecx, [ebp - 0x3db4]
mov dword [ebp - 0x3db8], ecx
mov dword [ebp - 0x3dc0], 0
mov dl, byte [0x100273cc]
mov byte [ebp - 0x3e00], dl
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x3dff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x100273cc]
mov byte [ebp - 0x3e40], al
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x3e3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x100273cc]
mov byte [ebp - 0x3e80], cl
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x3e7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0x100273cc]
mov byte [ebp - 0x3e90], dl
xor eax, eax
mov dword [ebp - 0x3e8f], eax
mov dword [ebp - 0x3e8b], eax
mov dword [ebp - 0x3e87], eax
mov word [ebp - 0x3e83], ax
mov byte [ebp - 0x3e81], al
mov dword [ebp - 0x3e94], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1001e830
add esp, 4
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.BCreateDisk._1.__s.__08X.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x20
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x3dc0]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100039c9
lea ecx, [ebp - 0x3e90]
push ecx
push 0x10
mov edx, dword [ebp - 0x3dc0]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100039c9
lea eax, [ebp - 0x3e00]
push eax
push 0x40
mov ecx, dword [ebp - 0x3dc0]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100039c9
lea edx, [ebp - 0x3e40]
push edx
push 0x40
mov eax, dword [ebp - 0x3dc0]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100039c9
lea ecx, [ebp - 0x3e80]
push ecx
push 0x40
mov edx, dword [ebp - 0x3dc0]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10003a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3e94], eax
mov eax, dword [ebp - 0x3e94]
push eax
push str.BCreateDisk._2.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
cmp dword [ebp - 0x3dc0], 0
je 0x10003a08
push 0
mov ecx, dword [ebp - 0x3dc0]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x40
push 0
lea eax, [ebp - 0x3e00]
push eax
call fcn.1001ea50
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0x3e80]
push ecx
call fcn.1001ea50
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x3e90]
push edx
call fcn.1001ea50
add esp, 0xc
push 0x3db4
push 0
mov eax, dword [ebp - 0x3db8]
push eax
call fcn.1001ea50
add esp, 0xc
mov ecx, dword [ebp - 0x3e94]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10003cd9
push 0
mov edx, dword [ebp - 0x3dc0]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x3e90]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x3e80]
push edx
lea eax, [ebp - 0x3e00]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3dbc]
push edx
call sym.pdapi.dll_CreateDiskEx
test eax, eax
jne 0x10003b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3e94], eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1001e830
add esp, 4
push eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x3e94]
push edx
push str.BCreateDisk._3.__08X.__s.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x24
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x3e94], 0xb7
je 0x10003b2b
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001ea18
add esp, 4
push 0x40
push 0
lea edx, [ebp - 0x3e00]
push edx
call fcn.1001ea50
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x3e80]
push eax
call fcn.1001ea50
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x3e90]
push ecx
call fcn.1001ea50
add esp, 0xc
push 0x3db4
push 0
mov edx, dword [ebp - 0x3db8]
push edx
call fcn.1001ea50
add esp, 0xc
mov eax, dword [ebp - 0x3e94]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10003cd9
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x3dbc]
push edx
call sym.pdapi.dll_EncryptBlobNew
test eax, eax
je 0x10003bba
lea eax, [ebp - 0x3dbc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.pdapi.dll_AddDiskBlobToFile
test eax, eax
jne 0x10003c6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3e94], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.1001e830
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3e94]
push ecx
push str.BCreateDisk._4.__08X.__s.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x40
push 0
lea eax, [ebp - 0x3e00]
push eax
call fcn.1001ea50
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0x3e80]
push ecx
call fcn.1001ea50
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x3e90]
push edx
call fcn.1001ea50
add esp, 0xc
push 0x3db4
push 0
mov eax, dword [ebp - 0x3db8]
push eax
call fcn.1001ea50
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001ea18
add esp, 4
mov edx, dword [ebp - 0x3e94]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10003cd9
push 0x40
push 0
lea eax, [ebp - 0x3e00]
push eax
call fcn.1001ea50
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0x3e80]
push ecx
call fcn.1001ea50
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x3e90]
push edx
call fcn.1001ea50
add esp, 0xc
push 0x3db4
push 0
mov eax, dword [ebp - 0x3db8]
push eax
call fcn.1001ea50
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.BCreateDisk._5.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18