Function at 0x10003d98
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f7a5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.1000aff0
mov eax, dword [0x10016050]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x1120], 0
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x112c], ebx
call fcn.10004616
test eax, eax
js 0x10004234
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.10003b7f
pop ecx
pop ecx
test eax, eax
jne 0x10003e2d
mov eax, 0x80020009
jmp 0x10004234
call fcn.10004cf8
lea eax, [ebp - 0x1014]
mov ecx, esi
call fcn.10004616
test eax, eax
js 0x10004234
movzx eax, word [ebp - 0x1120]
sub eax, 8
je 0x100041e9
sub eax, 9
je 0x10004092
dec eax
dec eax
je 0x10003f98
sub eax, 0x3ff5
jne 0x10004221
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
add eax, 2
mov dword [ebp - 0x1118], ecx
mov dword [ebp - 4], ecx
mov byte [ebp - 4], 1
cmp ecx, ecx
ja 0x10003e9b
cmp eax, 0xffffffff
jbe 0x10003ea5
push 0x80070216
call fcn.10005628
cmp eax, 0x100
jbe 0x10003ec3
push eax
lea eax, [ebp - 0x1118]
push eax
call fcn.10003c2b
jmp 0x10003ecf
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov edi, dword [ebp - 0x1118]
test edi, edi
je 0x10003f73
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x10003f2d
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x10003f0c
cmp byte [eax], 0x30
jne 0x10003f0c
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x10003f28
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10003f26
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x10003f2d
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x10003ef2
mov word [edi], 0
mov edi, dword [ebp - 0x1118]
mov ebx, edi
test edi, edi
jne 0x10003f42
push 0xd
jmp 0x10003f75
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10003f44
mov eax, dword [ebp - 0x1128]
push esi
push ebx
push 7
push 0
push dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x10003f76
push 0xe
pop esi
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x1000420e
lea eax, [ebp - 0x1118]
call fcn.10003c15
jmp 0x1000420e
xor edi, edi
mov dword [ebp - 0x111c], edi
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1120]
inc eax
push ecx
mov dword [ebp - 0x1120], eax
call fcn.10003c63
pop ecx
test eax, eax
js 0x10004088
mov ebx, dword [ebp - 0x1120]
cmp ebx, 0x400
jg 0x10003ff7
push ebx
call fcn.10003cc6
pop ecx
test al, al
je 0x10003ff7
mov eax, ebx
call fcn.1000cc00
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000400a
mov eax, ebx
lea esi, [ebp - 0x111c]
call fcn.10003d32
mov edi, dword [ebp - 0x111c]
push 3
shr ebx, 1
push ebx
lea ecx, [ebp - 0x1014]
push ecx
mov esi, eax
call fcn.10003c93
test eax, eax
je 0x10004084
lea ecx, [ebp - 0x1124]
push ecx
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1124]
push 4
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
mov eax, dword [ebp - 0x1128]
push 4
push ebx
push dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp edi, ebx
je 0x1000420e
push edi
mov edi, dword [edi]
call fcn.10008f7e
pop ecx
test edi, edi
jne 0x10004069
jmp 0x1000420e
push edi
mov edi, dword [edi]
call fcn.10008f7e
pop ecx
test edi, edi
jne 0x1000407b
mov eax, 0x8007000e
jmp 0x10004234
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x111c], eax
test al, 1
je 0x100040b3
mov eax, 0x80004005
jmp 0x10004234
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1118], eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, eax
ja 0x10003e9b
cmp edi, 0xffffffff
ja 0x10003e9b
cmp edi, 0x100
jbe 0x10004109
push edi
lea eax, [ebp - 0x1118]
push eax
call fcn.10003d75
jmp 0x10004115
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
xor esi, esi
cmp dword [ebp - 0x1118], esi
jne 0x10004139
lea eax, [ebp - 0x1114]
test eax, eax
je 0x100040a9
lea eax, [ebp - 0x1118]
call fcn.10003d5f
jmp 0x100040a9
push edi
push esi
push dword [ebp - 0x1118]
call fcn.10008e70
add esp, 0xc
cmp dword [ebp - 0x111c], esi
jle 0x100041ac
mov cl, byte [ebp + esi - 0x1014]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1118]
cmp cl, 0x30
jl 0x10004190
cmp cl, 0x39
jle 0x1000418b
cmp cl, 0x40
jle 0x10004190
cmp cl, 0x46
jle 0x10004186
lea edx, [ecx - 0x61]
cmp dl, 5
ja 0x10004190
lea edx, [ecx - 0x57]
jmp 0x10004192
lea edx, [ecx - 0x37]
jmp 0x10004192
lea edx, [ecx - 0x30]
jmp 0x10004192
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x111c]
jl 0x10004151
mov eax, dword [ebp - 0x1128]
mov eax, dword [eax]
push edi
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x112c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x1000420e
lea eax, [ebp - 0x1118]
call fcn.10003d5f
jmp 0x1000420e
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x1000421b
mov eax, esi
call fcn.10004607
jmp 0x10004234
mov esi, dword [ebp - 0x1134]
mov eax, dword [ebp - 0x1130]
mov ecx, esi
call fcn.10004616
test eax, eax
js 0x10004234
xor eax, eax
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.1000715b
leave
ret 8