Function at 0x435680
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x4a0688
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4d6720]
xor eax, ebp
mov dword [ebp + 0x410], 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, dword [ebp + 0x41c]
call fcn.0041b830
test eax, eax
jne 0x4356d5
mov eax, 2
jmp 0x435b43
lea eax, [ebp - 0x20]
xor edi, edi
push eax
mov dword [ebp - 0x30], edi
call fcn.00423f40
add esp, 4
push 0x104
lea ecx, [ebp]
push ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x43572a
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435723
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x435b43
push 0xffffffffffffffff
call fcn.00433290
add esp, 4
call fcn.00468b49
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x43574e
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp]
push ecx
lea edx, [ebp - 0x14]
push str.__s___s
push edx
mov byte [ebp - 4], 1
call fcn.00404580
add esp, 0x10
call fcn.00468b49
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x435791
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0x104
mov byte [ebp - 4], 2
jl 0x435909
push 0x104
lea edx, [ebp + 0x208]
push edx
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4358d2
push esi
lea ecx, [ebp + 0x208]
push ecx
lea edx, [ebp - 0x14]
push str._s__s
push edx
call fcn.00404580
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp dword [eax - 0xc], 0x104
jl 0x435909
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
push ecx
call fcn.00429830
add esp, 8
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00401a50
lea ecx, [ebp - 0x1c]
call fcn.0041f860
lea ecx, [ebp - 0x18]
call fcn.004016e0
mov byte [ebp - 4], 4
mov eax, 0x4a7664
cmp dword [0x4d7de8], edi
jne 0x43583c
mov eax, 0x4afb64
push esi
lea edx, [ebp + 0x208]
push edx
push eax
lea eax, [ebp - 0x18]
push str._echo_off_r_nrem__THIS_FILE_WAS_CREATED_AUTOMATICALLY_BY_THE_WAKEUPONSTANDBY_UTILITY__r_nrem__IT_CONTAINS_THE_PROGRAMS_START_UP_PARAMETERS_AND__r_nrem___IS_USED_TO_RUN_IT_IN_REPETITIVE_MODE__r_nrem___For_more_information_check:_www.dennisbabkin.com_wosb___r_n_r_nrem___DO_NOT_MODIFY_OR_REMOVE_THIS_FILE__USE_THE_WAKEUPONSTANDBY_UTILITY_FOR_THAT____r_n_r_nstart__s_s__s
push eax
call fcn.00404580
add esp, 0x14
lea ecx, [ebp - 0x38]
call fcn.0046145f
mov ecx, dword [ebp - 0x24]
push 0x1042
push ecx
mov bl, 6
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0046f81e
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 7
call fcn.00424a20
add esp, 8
lea ecx, [ebp - 0x4c]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.0046f2c4
mov dword [ebp - 4], 5
jmp 0x4358bd
mov byte [ebp - 4], 4
call fcn.00461477
cmp esi, edi
jne 0x4358f1
lea ecx, [ebp - 0x18]
call fcn.0041f860
lea ecx, [ebp - 0x24]
call fcn.0041f860
lea ecx, [ebp - 0x14]
call fcn.0041f860
lea ecx, [ebp - 0x20]
call fcn.0041f860
xor eax, eax
jmp 0x435b43
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401a50
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0041f860
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
push eax
call fcn.00422880
add esp, 8
mov edx, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
lea ecx, [ebp - 0x28]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push edx
push SysReAllocString
call esi
cmp eax, edi
jne 0x435ab1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
mov eax, dword [ebp - 0x28]
mov ebx, 1
push ebx
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x435966
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], ebx
jne 0x435ab1
lea ecx, [ebp - 0x18]
call fcn.004016e0
mov eax, dword [ebp - 0x20]
push edi
lea edx, [ebp - 0x28]
push edx
push edi
push 0x20019
push edi
push edi
push edi
push eax
push SysReAllocString
mov byte [ebp - 4], 0xa
call esi
cmp eax, edi
jne 0x435a1d
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edi
push edi
push edx
push eax
mov dword [ebp - 0x1c], edi
call ebx
test eax, eax
jne 0x435a13
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jbe 0x435a13
mov edi, eax
add eax, 2
push eax
call fcn.0046083a
mov esi, eax
add esp, 4
test esi, esi
je 0x435a13
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push esi
push 0
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x435a0a
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x435a0a
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push esi
lea ecx, [ebp - 0x18]
call fcn.00401d90
push esi
call fcn.0046082f
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push str.__t_r_n
push str.__t_r_n
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00403a90
mov ecx, eax
call fcn.004039b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00401a50
push str.__t_r_n
push str.__t_r_n
lea ecx, [ebp - 0x14]
call fcn.00403a90
mov ecx, eax
call fcn.004039b0
push eax
lea ecx, [ebp - 0x14]
call fcn.00401a50
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0x14]
mov edi, dword [edx - 0xc]
push ecx
push eax
push edi
push edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x435a8e
mov dword [ebp - 0x30], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435ad4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435af7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435b1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435b40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00482b5f
add ebp, 0x414
mov esp, ebp
pop ebp
ret 4