Function at 0x10001920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100205f1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.1000f410
mov eax, dword [0x1002e678]
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 - 0x1128], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x112c], ebx
mov dword [ebp - 0x1120], 0
call fcn.10003340
test eax, eax
js 0x10001d37
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.10004c40
add esp, 8
test eax, eax
jne 0x100019c1
mov eax, 0x80020009
jmp 0x10001d37
mov ecx, esi
call fcn.100048e0
lea eax, [ebp - 0x1014]
push eax
mov ecx, esi
call fcn.10003340
test eax, eax
js 0x10001d37
movzx eax, word [ebp - 0x1120]
cmp eax, 0x13
jg 0x10001c1a
je 0x10001b44
cmp eax, 8
je 0x10001b2c
cmp eax, 0x11
jne 0x10001d21
lea ebx, [ebp - 0x1014]
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10001a10
sub ebx, ecx
mov dword [ebp - 0x1018], ebx
test bl, 1
jne 0x10001a93
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1120], esi
mov dword [ebp - 0x111c], 0
mov dword [ebp - 4], 4
push esi
lea ecx, [ebp - 0x111c]
mov byte [ebp - 4], 5
call fcn.10001db0
jmp 0x10001a74
mov eax, dword [ebp - 0x111c]
test eax, eax
jne 0x10001a9d
lea eax, [ebp - 0x1118]
test eax, eax
je 0x10001a93
lea ecx, [ebp - 0x111c]
call fcn.10003260
mov eax, 0x80004005
jmp 0x10001d37
push esi
push 0
push eax
call fcn.1000fc30
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x10001ae9
nop
movzx eax, byte [ebp + edi - 0x1014]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x111c]
push eax
call fcn.10002d70
mov edx, edi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
inc edi
add esp, 4
or byte [esi], al
cmp edi, ebx
jl 0x10001ab0
mov esi, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1124]
push esi
push dword [ebp - 0x111c]
push 3
push 0
push dword [ebp - 0x112c]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1118]
cmp dword [ebp - 0x111c], eax
je 0x10001d0c
lea ecx, [ebp - 0x111c]
call fcn.10003260
jmp 0x10001d0c
push 1
lea eax, [ebp - 0x1014]
push eax
push ebx
mov ecx, edi
call fcn.10004820
mov edi, eax
jmp 0x10001d12
mov dword [ebp - 0x1124], 0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001b60
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1120], eax
lea eax, [ebp - 0x1120]
push eax
call fcn.100012a0
add esp, 0xc
test eax, eax
js 0x10001c05
mov esi, dword [ebp - 0x1120]
cmp esi, 0x400
jg 0x10001bb1
push esi
call fcn.10004cf0
add esp, 4
test al, al
je 0x10001bb1
mov eax, esi
call fcn.1000f3e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10001bbd
push esi
lea ecx, [ebp - 0x1124]
call fcn.10001d60
push 3
shr esi, 1
push esi
lea ecx, [ebp - 0x1014]
push ecx
push eax
call fcn.10001f00
test eax, eax
je 0x10001c05
lea ecx, [ebp - 0x1018]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x1018]
mov ecx, edi
push ebx
call fcn.100047a0
lea ecx, [ebp - 0x1124]
mov edi, eax
call fcn.10001340
jmp 0x10001d0c
lea ecx, [ebp - 0x1124]
call fcn.10001340
mov eax, 0x8007000e
jmp 0x10001d37
cmp eax, 0x4008
jne 0x10001d21
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001c30
sub ecx, edx
add ecx, 2
mov dword [ebp - 0x111c], 0
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x111c]
mov byte [ebp - 4], 1
call fcn.10001db0
jmp 0x10001c71
mov esi, dword [ebp - 0x111c]
test esi, esi
je 0x10001cf2
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x10001ccc
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x10001caa
cmp byte [eax], 0x30
jne 0x10001caa
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x10001cc7
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10001cc5
mov al, byte [edi + 1]
inc edi
inc esi
test al, al
je 0x10001ccc
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x10001c90
mov ecx, dword [ebp - 0x1124]
mov word [esi], 0
push dword [ebp - 0x111c]
push dword [ebp - 0x112c]
call fcn.100047c0
mov esi, dword [ebp - 0x111c]
mov edi, eax
jmp 0x10001cf7
mov edi, 0xe
lea eax, [ebp - 0x1118]
cmp esi, eax
je 0x10001d0c
lea ecx, [ebp - 0x111c]
call fcn.10003260
mov esi, dword [ebp - 0x1128]
test edi, edi
je 0x10001d21
push edi
call fcn.10002350
add esp, 4
jmp 0x10001d37
push dword [ebp - 0x1134]
mov ecx, esi
call fcn.10003340
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1144]
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.1000ef85
mov esp, ebp
pop ebp
ret 0xc