Function at 0x10001382
Capabilities:
Read file via mapping
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 7
xor ebx, ebx
xor eax, eax
pop ecx
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [0x1000d5e8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.10003785
test eax, eax
je 0x100013e7
push ebx
push 0x1000e44c
lea eax, [ebp - 8]
call fcn.10002c21
mov dword [0x1000d73c], eax
cmp eax, ebx
je 0x100013e7
push 1
push 0x1000e53f
lea eax, [ebp - 8]
call fcn.10002c21
mov dword [0x1000d744], eax
cmp eax, ebx
jne 0x100013ef
push 8
pop esi
jmp 0x100015b1
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x1000146b
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x10001464
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000145b
cmp dword [ebp - 0x20], 0x10
jbe 0x1000145b
mov eax, dword [esi]
cmp eax, ebx
je 0x10001434
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ecx
cmp dword [esi + 8], ebx
je 0x1000144b
mov ecx, dword [esi + 4]
add ecx, eax
lea eax, [ecx + esi + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
cmp dword [esi + 4], ebx
je 0x10001464
mov eax, dword [esi]
lea eax, [eax + esi + 0x10]
mov dword [ebp - 0x48], eax
jmp 0x10001464
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
call fcn.10003e01
test eax, eax
jne 0x100014ba
cmp dword [ebp - 0x10], 0x1000
jne 0x100014ba
push dword [0x1000d5cc]
call fcn.10009d30
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x100014ba
cmp dword [ebp - 4], ebx
jne 0x100014aa
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.10002f9b
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100014b5
push dword [ebp - 0x48]
push dword [ebp - 4]
call fcn.10003048
push 5
pop esi
jmp 0x1000152d
cmp dword [ebp - 4], ebx
jne 0x100014cb
call fcn.1000130c
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100014ea
cmp dword [ebp - 0x30], ebx
jne 0x100014ea
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call fcn.10003a19
mov esi, eax
cmp esi, ebx
jne 0x100015b1
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push dword [0x1000d5e8]
mov eax, esi
mov edx, edi
call fcn.100018ce
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x48], ebx
je 0x10001511
push 0x1000e4b4
jmp 0x10001516
push 0x1000e49c
push dword [0x1000d734]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x4c]
push eax
call fcn.1000386e
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x1000153a
push dword [ebp - 4]
call fcn.10003d38
cmp esi, ebx
jne 0x100015b1
cmp dword [ebp - 0xc], ebx
je 0x10001581
lea eax, [ebp + 0xc]
push eax
push dword [0x1000d73c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10001581
cmp dword [ebp - 0x3c], ebx
je 0x10001578
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
push 3
push ebx
push 0x1000e4ab
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x48], ebx
je 0x100015a7
push 0x20
push dword [ebp - 0x4c]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x1000159c
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.10003c71
jmp 0x100015af
push dword [ebp - 0x4c]
call fcn.10002eab
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8