Function at 0x1000317d
Capabilities:
Create directory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
xor esi, esi
test byte [0x1000d5d4], 1
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], esi
je 0x100031a1
mov dword [ebp - 0x1c], 0x100
mov eax, dword [ebp + 0x14]
cmp eax, 8
jbe 0x100034e9
add eax, 0x41
cmp eax, 0x104
jae 0x100034e9
push 0x5f
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
jne 0x100034e9
push dword [ebp + 0xc]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000e514
lea eax, [ebp - 0x150]
push eax
call edi
push 0x1000e4be
lea eax, [ebp - 0x150]
push eax
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100034e9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push 0x1000e504
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0xc], esi
je 0x100034d9
push dword [0x1000d734]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2 + 0x36]
push eax
push esi
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, esi
je 0x100034d9
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
push 0x1000e504
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x100034c9
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x1000e708
push ebx
shr eax, 1
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [0x1000d738]
push ebx
push ebx
call edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [0x1000d734]
push ebx
push ebx
call edi
push dword [0x1000d5e0]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100034c2
mov edi, dword [ebp + 0x1c]
mov eax, dword [edi + 4]
cmp eax, esi
je 0x100032ef
push eax
push ebx
call fcn.10003813
jmp 0x100032f7
push ebx
xor eax, eax
call fcn.10004155
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x100034b9
mov eax, dword [ebp + 0x14]
push 0x1000e4a6
lea eax, [ebp + eax - 0x126]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x1c]
or eax, 0xf003f
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp + 0x1c], eax
push esi
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003375
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [0x1000d730]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
jne 0x100034a7
lea ebx, [edi + 0x18]
cmp dword [ebx], esi
jne 0x10003391
lea eax, [edi + 0x1c]
push eax
push ebx
call fcn.10002d62
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x100034a4
push dword [edi + 0x1c]
push dword [ebx]
push dword [ebp - 0x10]
call fcn.10002dad
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x10003450
cmp dword [edi], esi
jne 0x100033b9
push dword [ebp + 0xc]
xor eax, eax
call fcn.10004155
mov dword [edi], eax
push dword [0x1000d73c]
mov eax, dword [ebp + 0x14]
lea eax, [ebp + eax - 0x14f]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100034a4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0x1000e622
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000342d
cmp dword [ebp - 0xc], 0x28
jne 0x1000342d
push 0x28
lea eax, [ebp - 0x44]
push eax
push 3
push esi
push 0x1000e622
push dword [ebp - 4]
mov dword [ebp - 0x44], esi
call ebx
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x10003445
push eax
push dword [edi + 8]
push 3
push esi
push 0x1000e4ab
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100034a4
cmp eax, 0x20
je 0x100034a1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x150]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100034a4
mov edi, dword [0x1000d730]
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10003445
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003445
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100034c9
mov dword [ebp - 8], 8
jmp 0x100034c9
mov dword [ebp - 8], 0xb7
push ebx
push esi
push dword [0x1000d5b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100034e0
mov dword [ebp - 8], 8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
inc dword [eax]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18