Function at 0x10003840
Capabilities:
Generate random numbers via rtlgenrandom
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov word [eax], 0x316
add eax, 2
mov dword [ebp + 8], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov byte [eax], 1
mov byte [eax + 3], 1
add eax, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ecx
mov byte [eax], 0
lea esi, [eax + 5]
mov word [eax + 3], 0x303
mov eax, dword [0x101160c8]
test eax, eax
jne 0x100038a7
push str.SystemFunction036
push str.ADVAPI32.DLL
call edi
push eax
call ebx
mov dword [0x101160c8], eax
test eax, eax
je 0x10003ba5
push 0x20
push esi
call eax
test al, al
je 0x10003ba5
mov eax, dword [0x101160c8]
mov byte [esi + 0x20], 0x20
add esi, 0x21
test eax, eax
jne 0x100038e0
push str.SystemFunction036
push str.ADVAPI32.DLL
call edi
push eax
call ebx
mov dword [0x101160c8], eax
test eax, eax
je 0x10003ba5
push 0x20
push esi
call eax
test al, al
je 0x10003ba5
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
mov byte [ebp - 1], al
cmp al, 2
jne 0x10003924
movups xmm0, xmmword [0x100f2f8c]
mov ecx, 0x28
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x100f2f9c]
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [0x100f2fac]
movq qword [esi + 0x40], xmm0
jmp 0x10003954
movups xmm0, xmmword [0x100f2f64]
mov ecx, 0x26
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x100f2f74]
movups xmmword [esi + 0x30], xmm0
mov eax, dword [0x100f2f84]
mov dword [esi + 0x40], eax
mov ax, word [0x100f2f88]
mov word [esi + 0x44], ax
mov al, byte [ebp - 1]
add ecx, 0x20
add ecx, esi
mov dword [ebp - 0x20], ecx
lea edx, [ecx + 2]
mov ecx, edx
cmp al, 2
je 0x1000396f
mov eax, dword [0x100f2f60]
lea ecx, [edx + 4]
mov dword [edx], eax
cmp byte [ebp - 1], 2
lea edx, [ecx + 0x23]
movups xmm0, xmmword [0x100f2f3c]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x100f2f4c]
movups xmmword [ecx + 0x10], xmm0
mov ax, word [0x100f2f5c]
mov word [ecx + 0x20], ax
mov al, byte [0x100f2f5e]
mov byte [ecx + 0x22], al
jne 0x10003aa3
movups xmm0, xmmword [0x100f2efc]
lea esi, [edx + 0x3d]
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100f2f0c]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [0x100f2f1c]
movups xmmword [edx + 0x20], xmm0
movq xmm0, qword [0x100f2f2c]
movq qword [edx + 0x30], xmm0
mov eax, dword [0x100f2f34]
mov dword [edx + 0x38], eax
mov al, byte [0x100f2f38]
mov byte [edx + 0x3c], al
mov eax, dword [0x101160c8]
test eax, eax
jne 0x10003a08
push str.SystemFunction036
push str.ADVAPI32.DLL
call edi
push eax
call ebx
mov dword [0x101160c8], eax
test eax, eax
je 0x10003ba5
push 0x20
push esi
call eax
test al, al
je 0x10003ba5
and byte [esi + 0x1f], 0x7f
mov eax, dword [0x100f2ef4]
mov dword [esi + 0x20], eax
mov al, byte [0x100f2ef8]
mov byte [esi + 0x24], al
add esi, 0x25
mov eax, dword [0x101160c8]
test eax, eax
jne 0x10003a51
push str.SystemFunction036
push str.ADVAPI32.DLL
call edi
push eax
call ebx
mov dword [0x101160c8], eax
test eax, eax
je 0x10003ba5
push 0x40
push esi
call eax
test al, al
je 0x10003ba5
movups xmm0, xmmword [0x100f2eb0]
lea ecx, [esi + 0x81]
mov dword [ebp - 8], ecx
movups xmmword [esi + 0x40], xmm0
movups xmm0, xmmword [0x100f2ec0]
movups xmmword [esi + 0x50], xmm0
movups xmm0, xmmword [0x100f2ed0]
movups xmmword [esi + 0x60], xmm0
movups xmm0, xmmword [0x100f2ee0]
movups xmmword [esi + 0x70], xmm0
mov al, byte [0x100f2ef0]
mov byte [esi + 0x80], al
jmp 0x10003b23
mov eax, dword [0x101160c8]
mov ecx, 0x17
mov esi, 0x100f2e50
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea esi, [edx + 0x5e]
test eax, eax
jne 0x10003ae1
push str.SystemFunction036
push str.ADVAPI32.DLL
call edi
push eax
call ebx
mov dword [0x101160c8], eax
test eax, eax
je 0x10003ba5
push 0x20
push esi
call eax
test al, al
je 0x10003ba5
and byte [esi + 0x1f], 0x7f
lea eax, [esi + 0x49]
movups xmm0, xmmword [0x100f2e24]
mov dword [ebp - 8], eax
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x100f2e34]
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [0x100f2e44]
movq qword [esi + 0x40], xmm0
mov al, byte [0x100f2e4c]
mov byte [esi + 0x48], al
mov eax, dword [0x101160c8]
test eax, eax
jne 0x10003b44
push str.SystemFunction036
push str.ADVAPI32.DLL
call edi
push eax
call ebx
mov dword [0x101160c8], eax
test eax, eax
je 0x10003ba5
mov esi, dword [ebp - 8]
push 0xc4
push esi
call eax
test al, al
je 0x10003ba5
mov ax, word [0x100f2e20]
mov word [esi + 0xc4], ax
lea eax, [esi + 0xc6]
lea esi, [eax + 0x21]
mov dword [ebp - 0x18], eax
movzx eax, si
mov dword [ebp - 8], eax
movzx eax, si
mov dword [ebp - 0x14], eax
mov eax, dword [0x101160c8]
movzx ecx, si
test eax, eax
jne 0x10003bad
push str.SystemFunction036
push str.ADVAPI32.DLL
call edi
push eax
call ebx
mov ecx, dword [ebp - 8]
mov dword [0x101160c8], eax
movzx ebx, si
movzx ecx, cx
test eax, eax
jne 0x10003bb0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push 0x21
movzx ecx, cx
push edi
mov dword [ebp - 0x14], ecx
call eax
test al, al
je 0x10003ba5
mov eax, dword [ebp - 0xc]
mov ecx, ebx
movzx edx, ax
sub ecx, edx
sub ecx, 5
mov ah, cl
mov al, ch
mov ecx, dword [ebp + 8]
mov word [ecx + 1], ax
mov ecx, dword [ebp - 0x14]
sub ecx, edx
sub ecx, 9
mov ah, cl
mov al, ch
mov ecx, dword [ebp - 0x1c]
mov word [ecx + 1], ax
mov ecx, dword [ebp - 0x20]
sub ebx, ecx
sub ebx, 2
mov ah, bl
mov al, bh
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
sub esi, ecx
lea edx, [ecx + 5]
mov ecx, dword [ebp - 0x10]
lea eax, [esi - 5]
push eax
lea ecx, [ecx + 0x48]
call fcn.10003780
mov eax, dword [0x100f2e00]
add esp, 4
mov dword [edi + 0x21], eax
mov ax, word [0x100f2e04]
mov word [edi + 0x25], ax
lea eax, [esi + 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4