Function at 0x10002d5d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100546ff
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2134
call fcn.10033850
mov eax, dword [0x10076098]
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 dword [ebp - 0x2128], ecx
mov dword [ebp - 0x2138], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x212c], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2124], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x213c], eax
xor ebx, ebx
mov dword [ebp - 0x211c], ebx
lea eax, [ebp - 0x2014]
push eax
call fcn.10002c02
test eax, eax
js 0x10003211
lea edx, [ebp - 0x211c]
lea ecx, [ebp - 0x2014]
call fcn.10002b3d
test eax, eax
jne 0x10002df5
mov eax, 0x80020009
jmp 0x10003211
mov ecx, dword [ebp - 0x2128]
call fcn.10002bd7
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x2128]
call fcn.10002c02
test eax, eax
js 0x10003211
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x100031c0
sub eax, 9
je 0x10003008
push 2
pop edi
sub eax, edi
je 0x10002fa6
sub eax, 0x3ff5
jne 0x100031f7
lea eax, [ebp - 0x2014]
push eax
call fcn.1003d469
pop ecx
add eax, edi
mov dword [ebp - 0x2118], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
mul edi
mov dword [ebp - 0x2134], eax
mov dword [ebp - 0x2130], edx
cmp edx, ebx
ja 0x1000322d
cmp eax, 0xffffffff
ja 0x1000322d
cmp eax, 0x100
jbe 0x10002e99
push eax
lea ecx, [ebp - 0x2118]
call fcn.100050ac
jmp 0x10002ea5
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
mov dword [ebp - 4], ebx
jmp 0x10002ec4
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x10002f7d
lea eax, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
mov dword [ebp - 0x211c], eax
je 0x10002f28
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov eax, dword [ebp - 0x211c]
movzx edx, word [eax]
cmp edx, 0x5c
jne 0x10002f1b
push 0x30
pop eax
cmp word [ecx], ax
mov eax, dword [ebp - 0x211c]
jne 0x10002f1b
xor eax, eax
mov word [esi], ax
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
jmp 0x10002f20
mov word [esi], dx
add eax, edi
add esi, 2
cmp word [eax], bx
jmp 0x10002ee0
xor eax, eax
mov word [esi], ax
mov word [esi + edi], ax
mov esi, dword [ebp - 0x2118]
mov dword [ebp - 0x2120], esi
test esi, esi
jne 0x10002f45
push 0xd
jmp 0x10002f7f
mov edi, ebx
push esi
call fcn.1003d469
pop ecx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x10002f47
push edi
mov esi, dword [ebp - 0x2120]
push esi
push 7
push ebx
push dword [ebp - 0x2124]
mov eax, dword [ebp - 0x212c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x10002f80
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x100031ea
lea ecx, [ebp - 0x2118]
call fcn.100050a3
jmp 0x100031ea
mov dword [ebp - 0x2138], ebx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x2130]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x10002fd6
or dword [ebp - 4], 0xffffffff
jmp 0x10003211
mov eax, dword [ebp - 0x2130]
mov dword [ebp - 0x2120], eax
push 4
pop edi
push edi
lea eax, [ebp - 0x2120]
push eax
push edi
push ebx
push dword [ebp - 0x2124]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
jmp 0x100031ea
lea eax, [ebp - 0x2014]
push eax
call fcn.1003d469
pop ecx
mov dword [ebp - 0x2120], eax
test al, 1
je 0x10003029
mov eax, 0x80004005
jmp 0x10003211
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2130], esi
mov dword [ebp - 0x211c], esi
mov dword [ebp - 0x2118], ebx
push 4
pop edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x2144], esi
mov dword [ebp - 0x2140], ebx
cmp esi, 0x100
jbe 0x1000306e
push esi
lea ecx, [ebp - 0x2118]
call fcn.100050ac
jmp 0x1000307a
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
mov dword [ebp - 4], edi
jmp 0x100030a5
cmp dword [ebp - 0x2118], 0
jne 0x100030d4
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x1000301f
lea ecx, [ebp - 0x2118]
call fcn.100050a3
jmp 0x1000301f
push esi
push ebx
push dword [ebp - 0x2118]
call fcn.10034760
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x211c], ebx
cmp dword [ebp - 0x2120], 0
jle 0x10003181
mov esi, dword [ebp - 0x2120]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2118]
mov dword [ebp - 0x2120], eax
movzx ecx, word [ebp + ecx*2 - 0x2014]
mov eax, ecx
mov edx, ecx
push 0x30
pop ecx
cmp ax, cx
jb 0x1000314e
cmp eax, 0x39
jbe 0x10003149
cmp eax, 0x40
jbe 0x1000314e
cmp eax, 0x46
jbe 0x10003144
cmp eax, 0x60
jbe 0x1000314e
cmp edx, 0x66
ja 0x1000314e
sub dl, 0x57
jmp 0x10003150
sub dl, 0x37
jmp 0x10003150
sub dl, 0x30
jmp 0x10003150
mov dl, bl
mov eax, dword [ebp - 0x211c]
and eax, 1
shl eax, 2
mov ecx, edi
sub ecx, eax
shl dl, cl
mov eax, dword [ebp - 0x2120]
or byte [eax], dl
mov ecx, dword [ebp - 0x211c]
inc ecx
mov dword [ebp - 0x211c], ecx
cmp ecx, esi
jl 0x100030ff
mov esi, dword [ebp - 0x2130]
push esi
push dword [ebp - 0x2118]
push 3
push ebx
push dword [ebp - 0x2124]
mov eax, dword [ebp - 0x212c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x100031ea
lea ecx, [ebp - 0x2118]
call fcn.100050a3
jmp 0x100031ea
lea eax, [ebp - 0x2014]
push eax
call fcn.1003d469
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x100031f7
mov ecx, esi
call fcn.10001fab
jmp 0x10003211
push dword [ebp - 0x213c]
mov ecx, dword [ebp - 0x2128]
call fcn.10002c02
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
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.100325c7
leave
ret 0xc
push 0x80070216
call fcn.10001f3d
int3