Function at 0x1000387c
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x120c]
mov eax, 0x120c
call fcn.1000bfa0
push 0xffffffffffffffff
push 0x1000d303
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10017114]
xor eax, ebp
mov dword [ebp + 0x1208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0x121c]
xor ebx, ebx
mov edi, dword [ebp + 0x1214]
mov esi, dword [ebp + 0x1218]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
call fcn.10006d5f
test eax, eax
js 0x10003cad
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.1000ccc2
pop ecx
pop ecx
test eax, eax
jne 0x10003916
mov eax, 0x80020009
jmp 0x10003cad
mov ecx, dword [ebp - 0x24]
call fcn.10009793
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0x208]
push eax
call fcn.10006d5f
test eax, eax
js 0x10003cad
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x10003c61
sub eax, 9
je 0x10003b33
dec eax
sub eax, 1
je 0x10003a3d
sub eax, 0x3ff5
jne 0x10003c99
lea ecx, [ebp + 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003969
sub ecx, edx
mov dword [ebp], ebx
add ecx, 2
push 1
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 4], 1
call fcn.1000ccc2
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x1000399b
push eax
lea ecx, [ebp]
call fcn.10003d05
jmp 0x100039b1
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x100039b4
mov esi, dword [ebp]
test esi, esi
je 0x10003a22
cmp byte [ebp + 0x208], 0
lea edi, [ebp + 0x208]
je 0x10003a08
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x100039e7
cmp byte [eax], 0x30
jne 0x100039e7
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x10003a02
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10003a01
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x10003a08
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x100039c7
mov ecx, dword [ebp - 0x20]
mov word [esi], 0
push dword [ebp]
push dword [ebp - 0x1c]
call fcn.1000958f
mov esi, dword [ebp]
mov ebx, eax
jmp 0x10003a25
push 0xe
pop ebx
lea eax, [ebp + 4]
cmp esi, eax
je 0x10003c8c
lea ecx, [ebp]
call fcn.10005b92
jmp 0x10003c8c
mov esi, ebx
mov dword [ebp - 0x18], esi
lea ecx, [ebp + 0x208]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a52
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10002301
add esp, 0xc
test eax, eax
js 0x10003ace
mov edi, dword [ebp - 0x14]
cmp edi, 0x400
jg 0x10003a98
push edi
call fcn.1000a540
pop ecx
test al, al
je 0x10003a98
mov eax, edi
call fcn.1000bfd0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10003aa4
push edi
lea ecx, [ebp - 0x18]
call fcn.10003cda
mov esi, dword [ebp - 0x18]
push 3
shr edi, 1
lea ecx, [ebp + 0x208]
push edi
push ecx
push eax
call fcn.1000ccc2
test eax, eax
jne 0x10003ad8
test esi, esi
je 0x10003ace
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test edi, edi
jne 0x10003abe
mov eax, 0x8007000e
jmp 0x10003cad
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ebx, eax
test ebx, ebx
jns 0x10003b06
test esi, esi
je 0x10003aff
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test edi, edi
jne 0x10003aef
mov eax, ebx
jmp 0x10003cad
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.1000952d
mov ebx, eax
test esi, esi
je 0x10003c8c
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test edi, edi
jne 0x10003b1e
jmp 0x10003c8c
lea ecx, [ebp + 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b3c
sub ecx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
test cl, 1
jne 0x10003bcf
mov eax, ecx
mov dword [ebp + 0x104], ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x28], edi
push 1
mov dword [ebp - 4], 4
push edi
mov byte [ebp - 4], 5
call fcn.1000ccc2
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x10003b92
push eax
lea ecx, [ebp + 0x104]
call fcn.10003d05
mov eax, dword [ebp + 0x104]
jmp 0x10003b9e
lea eax, [ebp + 0x108]
mov dword [ebp + 0x104], eax
mov esi, dword [ebp - 0x18]
jmp 0x10003bc0
test eax, eax
jne 0x10003bd9
lea ecx, [ebp + 0x104]
call fcn.10005b92
mov eax, 0x80004005
jmp 0x10003cad
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, ebx
mov dword [ebp - 0x14], eax
test esi, esi
jle 0x10003c2c
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x104]
mov edi, eax
movzx eax, byte [ebp + eax + 0x208]
push eax
shr edi, 1
call fcn.100043b1
mov edx, dword [ebp - 0x14]
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 - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x10003bf0
mov edi, dword [ebp - 0x28]
xor ebx, ebx
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp + 0x104]
push 3
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp + 0x108]
cmp dword [ebp + 0x104], eax
je 0x10003c8c
lea ecx, [ebp + 0x104]
call fcn.10005b92
jmp 0x10003c8c
lea ecx, [ebp + 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c6a
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x208]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test ebx, ebx
je 0x10003c99
push ebx
call fcn.10003f2d
pop ecx
jmp 0x10003cad
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
call fcn.10006d5f
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1208]
xor ecx, ebp
call fcn.1000be75
add ebp, 0x120c
leave
ret 0xc