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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], ebx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.1000130c
test eax, eax
jne 0x1000144a
push 8
pop esi
jmp 0x1000160a
push dword [0x1000d9cc]
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x100014cb
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x100014c4
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100014bb
cmp dword [ebp - 0x1c], 0x10
jbe 0x100014bb
mov eax, dword [esi]
cmp eax, ebx
je 0x10001494
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ecx
cmp dword [esi + 8], ebx
je 0x100014ab
mov ecx, dword [esi + 4]
add ecx, eax
lea eax, [ecx + esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
cmp dword [esi + 4], ebx
je 0x100014c4
mov eax, dword [esi]
lea eax, [eax + esi + 0x10]
mov dword [ebp - 0x44], eax
jmp 0x100014c4
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc]
push eax
call fcn.10002f4b
test eax, eax
jne 0x10001514
cmp dword [ebp - 0xc], 0x1000
jne 0x10001514
call fcn.10002520
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10001514
cmp dword [ebp - 4], ebx
jne 0x10001504
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.100035ff
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000150f
push dword [ebp - 0x44]
push dword [ebp - 4]
call fcn.100036ac
push 5
pop esi
jmp 0x10001588
cmp dword [ebp - 4], ebx
jne 0x10001525
call fcn.100013a5
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10001544
cmp dword [ebp - 0x2c], ebx
jne 0x10001544
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call fcn.10002b63
mov esi, eax
cmp esi, ebx
jne 0x1000160a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 1
push dword [0x1000d460]
mov edx, edi
push esi
call fcn.100040df
cmp dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], esi
je 0x1000156c
push 0x1000e4b4
jmp 0x10001571
push 0x1000e49c
push dword [0x1000d514]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x48]
push eax
call fcn.10003c70
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x10001595
push dword [ebp - 4]
call fcn.10002e82
cmp esi, ebx
jne 0x1000160a
cmp dword [ebp - 8], ebx
je 0x100015dc
lea eax, [ebp + 0xc]
push eax
push dword [0x1000d508]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100015dc
cmp dword [ebp - 0x38], ebx
je 0x100015d3
push dword [ebp - 0x38]
push dword [ebp - 0x40]
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 - 0x44], ebx
je 0x10001600
push 0x20
push dword [ebp - 0x48]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x100015f5
mov word [eax], bx
inc eax
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10002dbb
jmp 0x10001608
push dword [ebp - 0x48]
call fcn.1000350f
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8