Function at 0x1000bab4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001484f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x122c
call fcn.100133e0
mov eax, dword [0x1001f5e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1224], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x123c], eax
xor eax, eax
mov word [ebp - 0x1220], ax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1230], esi
mov dword [ebp - 0x122c], edi
mov dword [ebp - 0x1228], ebx
call fcn.1000ce60
test eax, eax
js 0x1000bf81
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.1000ce60
pop ecx
pop ecx
test eax, eax
jne 0x1000bb53
mov eax, 0x80020009
jmp 0x1000bf81
mov ecx, esi
call fcn.1000d8e3
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.1000ce60
test eax, eax
js 0x1000bf81
movzx eax, word [ebp - 0x1220]
sub eax, 8
je 0x1000bf41
sub eax, 9
je 0x1000bdda
dec eax
sub eax, 1
je 0x1000bcb7
sub eax, 0x3ff5
jne 0x1000bf6b
lea eax, [ebp - 0x1014]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor ebx, ebx
add eax, 2
mov dword [ebp - 0x121c], ebx
push 1
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call fcn.1000ce60
add esp, 0xc
cmp eax, 0x100
jbe 0x1000bbdc
push eax
lea ecx, [ebp - 0x121c]
call fcn.1000ce60
jmp 0x1000bbfe
lea esi, [ebp - 0x1218]
mov dword [ebp - 0x121c], esi
jmp 0x1000bc04
mov esi, dword [ebp - 0x121c]
mov dword [ebp - 4], ebx
test esi, esi
je 0x1000bc81
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x1000bc5b
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x1000bc3a
cmp byte [eax], 0x30
jne 0x1000bc3a
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x1000bc55
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1000bc54
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x1000bc5b
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x1000bc1a
mov ecx, dword [ebp - 0x122c]
mov word [esi], 0
push dword [ebp - 0x121c]
push dword [ebp - 0x1228]
call fcn.1000ce60
mov esi, dword [ebp - 0x121c]
mov edi, eax
jmp 0x1000bc84
push 0xe
pop edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1218]
cmp esi, eax
je 0x1000bc9d
lea ecx, [ebp - 0x121c]
call fcn.1000c41f
mov esi, dword [ebp - 0x1224]
test edi, edi
je 0x1000bf6b
push edi
call fcn.1000ce60
pop ecx
jmp 0x1000bf81
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x1230], esi
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 3
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
inc eax
push 2
push eax
mov dword [ebp - 0x1220], eax
lea eax, [ebp - 0x1220]
push eax
call fcn.1000ce60
add esp, 0x10
test eax, eax
js 0x1000bdbc
mov edi, dword [ebp - 0x1220]
cmp edi, 0x400
jg 0x1000bd1c
push edi
call fcn.10007bd8
pop ecx
test al, al
je 0x1000bd1c
mov eax, edi
call fcn.10013350
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000bd2e
push edi
lea ecx, [ebp - 0x1230]
call fcn.1000ce60
mov esi, dword [ebp - 0x1230]
push 3
shr edi, 1
lea ecx, [ebp - 0x1014]
push edi
push ecx
push eax
call fcn.1000ce60
test eax, eax
je 0x1000bdbc
lea ecx, [ebp - 0x1238]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
jns 0x1000bd75
or dword [ebp - 4], 0xffffffff
jmp 0x1000bd6a
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000bd60
mov eax, edi
jmp 0x1000bf81
mov eax, dword [ebp - 0x1238]
push 4
mov dword [ebp - 0x1234], eax
lea eax, [ebp - 0x1234]
push eax
mov eax, dword [ebp - 0x122c]
push 4
push ebx
push dword [ebp - 0x1228]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
mov edi, eax
jmp 0x1000bdb3
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000bda9
jmp 0x1000bc9d
or dword [ebp - 4], 0xffffffff
jmp 0x1000bdcc
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000bdc2
mov eax, 0x8007000e
jmp 0x1000bf81
lea eax, [ebp - 0x1014]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [ebp - 0x1234], eax
pop ecx
test al, 1
jne 0x1000be80
cdq
xor ebx, ebx
sub eax, edx
mov dword [ebp - 0x1118], ebx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1238], edi
push 4
pop esi
push 1
mov dword [ebp - 4], esi
push edi
mov byte [ebp - 4], 5
call fcn.1000ce60
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x1000be39
push eax
lea ecx, [ebp - 0x1118]
call fcn.1000ce60
mov eax, dword [ebp - 0x1118]
jmp 0x1000be45
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov dword [ebp - 4], esi
jmp 0x1000be71
test eax, eax
jne 0x1000be8a
lea ecx, [ebp - 0x1118]
call fcn.1000c41f
mov eax, 0x80004005
jmp 0x1000bf81
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1220], ebx
cmp dword [ebp - 0x1234], 0
mov eax, ebx
jle 0x1000befb
mov ebx, dword [ebp - 0x1234]
mov edi, eax
test edi, edi
jns 0x1000beb5
add edi, 1
sar edi, 1
movzx eax, byte [ebp + eax - 0x1014]
mov esi, dword [ebp - 0x1118]
push eax
call fcn.1000ce60
mov edx, dword [ebp - 0x1220]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov eax, dword [ebp - 0x1220]
inc eax
mov dword [ebp - 0x1220], eax
cmp eax, ebx
jl 0x1000beac
mov edi, dword [ebp - 0x1238]
xor ebx, ebx
mov eax, dword [ebp - 0x122c]
push edi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1228]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x1000bc9d
lea ecx, [ebp - 0x1118]
call fcn.1000c41f
jmp 0x1000bc9d
lea eax, [ebp - 0x1014]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x1000bca3
push dword [ebp - 0x123c]
mov ecx, esi
call fcn.1000ce60
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x124c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10013070
leave
ret 0xc