Function at 0x1000572d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.1002ade0
mov eax, dword [0x1002f538]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2120], ecx
lea ecx, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 8]
push ecx
mov ecx, eax
mov dword [ebp - 0x2114], eax
mov dword [ebp - 0x210c], edi
mov dword [ebp - 0x2110], ebx
call fcn.10003dc3
test eax, eax
js 0x10005ac3
xor eax, eax
push esi
mov esi, eax
push dword [esi*8 + 0x100016c0]
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100057ae
inc esi
cmp esi, 4
jb 0x10005786
mov eax, 0x80020009
jmp 0x10005ac2
mov ecx, dword [ebp - 0x2114]
movzx esi, word [esi*8 + 0x100016c4]
call fcn.100065c4
mov ecx, dword [ebp - 0x2114]
lea eax, [ebp - 0x2004]
push eax
call fcn.10005df1
test eax, eax
js 0x10005ac2
mov eax, esi
sub eax, 8
je 0x10005a8c
sub eax, 9
je 0x1000594d
push 2
pop ebx
sub eax, ebx
je 0x100058f1
sub eax, 0x3ff5
jne 0x10005aab
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, si
jne 0x10005810
sub ecx, edx
mov dword [ebp - 0x2108], esi
sar ecx, 1
lea eax, [ecx + 2]
mul ebx
cmp edx, esi
ja 0x10005ad5
cmp eax, 0xffffffff
ja 0x10005ad5
cmp eax, 0x100
jbe 0x10005855
push eax
lea ecx, [ebp - 0x2108]
call fcn.100052b1
mov esi, dword [ebp - 0x2108]
jmp 0x10005861
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x100058d0
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x100058ab
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x1000589c
push 0x30
pop edx
cmp word [eax], dx
jne 0x1000589c
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x100058a1
mov word [esi], cx
add edi, ebx
xor eax, eax
add esi, 2
cmp word [edi], ax
jne 0x10005875
mov ecx, dword [ebp - 0x210c]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2110]
call fcn.100056aa
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x100058d3
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x10005a9e
lea ecx, [ebp - 0x2108]
call fcn.1000529b
jmp 0x10005a9e
xor ebx, ebx
lea eax, [ebp - 0x210c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x210c], ebx
push eax
mov dword [ebp - 0x211c], ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x210c]
push 4
mov dword [ebp - 0x2118], eax
lea eax, [ebp - 0x2118]
push eax
push 4
push ebx
push dword [ebp - 0x2110]
push dword [edi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea ecx, [ebp - 0x211c]
mov edi, eax
call fcn.10005711
jmp 0x10005a9e
lea ebx, [ebp - 0x2004]
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x10005958
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x100059c5
mov eax, ebx
xor ecx, ecx
cdq
sub eax, edx
mov dword [ebp - 0x2108], ecx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2118], esi
cmp esi, 0xffffffff
ja 0x10005ad5
cmp esi, 0x100
jbe 0x100059aa
push esi
lea ecx, [ebp - 0x2108]
call fcn.100052b1
mov eax, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x100059b6
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x100059cf
lea ecx, [ebp - 0x2108]
call fcn.1000529b
mov eax, 0x80004005
jmp 0x10005ac2
push esi
push ecx
push eax
call sub.msvcrt.dll_memset
xor ecx, ecx
add esp, 0xc
mov edi, ecx
test ebx, ebx
jle 0x10005a51
mov eax, edi
cdq
sub eax, edx
movzx edx, word [ebp + edi*2 - 0x2004]
sar eax, 1
add eax, dword [ebp - 0x2108]
mov dword [ebp - 0x211c], eax
mov eax, edx
cmp eax, 0x30
jb 0x10005a2a
cmp eax, 0x39
jbe 0x10005a25
cmp eax, 0x40
jbe 0x10005a2a
cmp eax, 0x46
jbe 0x10005a20
add eax, 0xffffff9f
cmp eax, 5
ja 0x10005a2a
sub dl, 0x57
jmp 0x10005a2c
sub dl, 0x37
jmp 0x10005a2c
sub dl, 0x30
jmp 0x10005a2c
mov dl, cl
mov eax, edi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x211c]
shl dl, cl
push 0
pop ecx
or byte [eax], dl
inc edi
cmp edi, ebx
jl 0x100059e2
mov esi, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x210c]
push esi
push dword [ebp - 0x2108]
push 3
push ecx
push dword [ebp - 0x2110]
push dword [eax]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x10005a9e
lea ecx, [ebp - 0x2108]
call fcn.1000529b
jmp 0x10005a9e
push ecx
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
push ebx
call fcn.1000565a
mov edi, eax
test edi, edi
je 0x10005aab
mov ecx, edi
call fcn.10005de1
jmp 0x10005ac2
push dword [ebp - 0x2120]
mov ecx, dword [ebp - 0x2114]
call fcn.10005df1
test eax, eax
js 0x10005ac2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10029f60
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x80070057
call fcn.10005aee
int3