Function at 0x4036c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1128
lea ebp, [esp - 0x10a8]
call fcn.0040b880
mov eax, dword [0x415310]
push ebx
push esi
mov esi, dword [ebp + 0x10b4]
mov ebx, ecx
xor eax, ebp
push edi
mov edi, dword [ebp + 0x10b0]
lea ecx, [ebp + 0xa4]
mov dword [ebp + 0x10a4], eax
mov eax, dword [ebp + 0x10b8]
push ecx
mov ecx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], 0
call fcn.004028d0
test eax, eax
jl 0x403a4d
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp + 0xa4]
push eax
call fcn.00403ab0
add esp, 8
test eax, eax
jne 0x403740
mov eax, 0x80020009
jmp 0x403a4d
mov ecx, dword [ebx]
xor edx, edx
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.00402880
test eax, eax
je 0x40376f
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
xor edx, edx
mov dword [ebx], eax
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.00402880
test eax, eax
jne 0x403752
lea eax, [ebp + 0xa4]
push eax
mov ecx, ebx
call fcn.004028d0
test eax, eax
jl 0x403a4d
movzx eax, word [ebp - 0x74]
cmp eax, 0x13
jg 0x40397e
je 0x4038ca
cmp eax, 8
je 0x4038a2
cmp eax, 0x11
jne 0x403a38
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x4037f6
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0x100
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0
jbe 0x403800
push esi
lea ecx, [ebp - 0x60]
call fcn.004026b0
mov edi, dword [ebp - 0x60]
test edi, edi
jne 0x403806
lea edx, [ebp - 0x5c]
test edx, edx
je 0x4037f6
lea ecx, [ebp - 0x60]
call fcn.00403bd0
mov eax, 0x80004005
jmp 0x403a4d
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jle 0x40385c
mov edi, edi
mov eax, dword [ebp - 0x60]
mov esi, edi
shr esi, 1
add esi, eax
xor eax, eax
mov al, byte [ebp + edi + 0xa4]
push eax
call fcn.00403b60
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x403820
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
push esi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x60]
mov esi, eax
lea eax, [ebp - 0x5c]
cmp ecx, eax
je 0x403889
lea ecx, [ebp - 0x60]
call fcn.00403bd0
mov ebx, dword [ebp - 0x70]
test esi, esi
je 0x403a38
push esi
call fcn.00403460
add esp, 4
jmp 0x403a4d
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [edi]
lea edx, [ebp + 0xa4]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x40388c
call dword [0x415040]
lea ecx, [ebp + 0xa4]
push ecx
mov ebx, eax
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x403912
push edi
call fcn.00401d70
add esp, 4
test al, al
je 0x403912
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040b880
mov eax, esp
jmp 0x40391b
push edi
lea ecx, [ebp - 0x64]
call fcn.00401fc0
push ebx
push esi
lea edx, [ebp + 0xa4]
push edx
push eax
call fcn.00401e00
test eax, eax
jne 0x403940
lea ecx, [ebp - 0x64]
call fcn.00401ec0
mov eax, 0x8007000e
jmp 0x403a4d
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.00401ec0
jmp 0x403889
cmp eax, 0x4008
jne 0x403a38
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
call fcn.00403be0
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x403a1b
mov al, byte [ebp + 0xa4]
test al, al
lea esi, [ebp + 0xa4]
je 0x403a01
mov edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4039e2
cmp byte [eax], 0x30
jne 0x4039e2
mov byte [edi], 0
push eax
inc edi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x4039fc
xor edx, edx
mov byte [edi], cl
mov dl, byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4039fa
mov al, byte [esi + 1]
inc edi
inc esi
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x4039c0
mov edx, dword [ebp - 0x6c]
mov byte [edi], 0
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x68]
push edx
call fcn.00403a70
mov edi, dword [ebp - 0x60]
mov esi, eax
jmp 0x403a20
mov esi, 0xe
lea eax, [ebp - 0x5c]
cmp edi, eax
je 0x40388c
lea ecx, [ebp - 0x60]
call fcn.00403bd0
jmp 0x40388c
mov ecx, dword [ebp - 0x7c]
push ecx
mov ecx, ebx
call fcn.004028d0
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a4]
xor ecx, ebp
call fcn.0040aa71
add ebp, 0x10a8
mov esp, ebp
pop ebp
ret 0xc