Function at 0x100b934
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x538
mov eax, dword [0x102c22c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x530], eax
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x414]
push eax
push ebx
mov dword [ebp - 0x528], esi
mov dword [ebp - 0x520], ebx
mov dword [ebp - 0x524], ebx
mov dword [ebp - 0x538], 4
mov dword [ebp - 0x51c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x414]
push eax
push 0x1001970
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x100b9c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1001938
call fcn.01015c5a
add esp, 0xc
xor eax, eax
jmp 0x100bc6e
push 0x100192c
push esi
call dword [sym.imp.ntdll.dll_strstr]
pop ecx
add eax, 0xb
lea edx, [ebp - 0x20c]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x100b9dd
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100b9f0
sub eax, edx
mov byte [ebp + eax - 0x20d], bl
lea eax, [ebp - 0x108]
sub eax, esi
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
cmp cl, bl
jne 0x100ba08
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100ba1b
push edi
sub eax, edx
lea edi, [ebp - 0x108]
mov byte [ebp + eax - 0x109], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100ba33
mov esi, 0x1001920
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x528]
movsb byte es:[edi], byte [esi]
call fcn.0100b8b4
test eax, eax
jne 0x100ba60
xor eax, eax
jmp 0x100bc6d
mov esi, 0x104
push esi
lea eax, [ebp - 0x518]
push eax
push 0x1001900
lea eax, [ebp - 0x108]
push eax
call fcn.01015121
lea eax, [ebp - 0x108]
push eax
push 0x10018dc
call fcn.01015c5a
pop ecx
pop ecx
lea eax, [ebp - 0x52c]
push eax
push ebx
lea eax, [ebp - 0x518]
push eax
call fcn.01014dd5
cmp eax, ebx
jne 0x100bab1
push ebx
push 0x10018ac
jmp 0x100bad0
cmp dword [ebp - 0x52c], ebx
je 0x100baf8
cmp dword [ebp - 0x52c], 0xbc2
je 0x100baee
push dword [ebp - 0x52c]
push 0x1001880
call fcn.01015c5a
pop ecx
pop ecx
push dword [ebp - 0x528]
lea eax, [ebp - 0x108]
push eax
call fcn.0100b8b4
jmp 0x100ba59
mov dword [0x102c8c8], 1
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.01017661
push ebx
push dword [ebp - 0x530]
call fcn.01017367
test eax, eax
je 0x100bb2e
push dword [ebp - 0x528]
push dword [ebp - 0x530]
call fcn.0100b8b4
test eax, eax
je 0x100ba59
push esi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100184c
call fcn.01015121
lea eax, [ebp - 0x51c]
push eax
push 0x2001f
push ebx
lea eax, [ebp - 0x310]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x520]
push eax
push ebx
push ebx
mov edi, 0x100183c
push edi
push dword [ebp - 0x51c]
mov dword [ebp - 0x534], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x520], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x100bba8
dec dword [ebp - 0x520]
jne 0x100bc15
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x524]
push eax
push ebx
push ebx
push 0x1001824
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x100bbe4
push eax
lea eax, [ebp - 0x310]
push eax
push 0x10017d0
call fcn.01015c8e
add esp, 0xc
jmp 0x100bc1f
cmp dword [ebp - 0x524], 1
jne 0x100bc1f
push 1
push 0x10017c8
push 1
push ebx
push 0x10017b8
push dword [ebp - 0x51c]
call esi
cmp eax, ebx
je 0x100bc1f
push eax
push 0x10017b8
push 0x100178c
jmp 0x100bbda
mov dword [ebp - 0x524], 1
push 4
lea eax, [ebp - 0x520]
push eax
push 4
push ebx
push edi
push dword [ebp - 0x51c]
call esi
cmp eax, ebx
jne 0x100bc56
push 4
lea eax, [ebp - 0x524]
push eax
push 4
push ebx
mov edi, 0x1001780
push edi
push dword [ebp - 0x51c]
call esi
cmp eax, ebx
je 0x100bc6a
push eax
push edi
push 0x1001760
call fcn.01015c8e
add esp, 0xc
jmp 0x100ba59
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0101439a
leave
ret 8