Function at 0x10023874
Capabilities:
Set registry value

Disassembly:
push 0x4c
mov eax, 0x1002c01a
call fcn.1002acc8
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], ecx
mov eax, dword [0x1002f024]
mov ebx, dword [ebp + 0xc]
cmp eax, 0x1002f024
je 0x100238b0
test byte [eax + 0x1c], 1
je 0x100238b0
cmp byte [eax + 0x19], 5
jb 0x100238b0
push ebx
push ecx
push edx
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10022d99
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
xor edx, edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.10023eb1
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023908
test byte [eax + 0x1c], 2
je 0x10023908
cmp byte [eax + 0x19], 4
jb 0x10023908
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x2e
pop ecx
call fcn.10003c37
test edi, edi
jne 0x10023945
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x58]
call fcn.100267fb
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023945
test byte [eax + 0x1c], 2
je 0x10023945
cmp byte [eax + 0x19], 4
jb 0x10023945
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x2f
pop ecx
call fcn.10003c37
push dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
call fcn.1000d343
push 0x10003138
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.1000d343
push 0x10003138
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.1000d343
mov byte [ebp - 4], 5
test edi, edi
jne 0x100239ba
test ebx, ebx
je 0x100239ba
mov ecx, ebx
call fcn.100091fe
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10009185
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x100239ba
test byte [eax + 0x1c], 2
je 0x100239ba
cmp byte [eax + 0x19], 4
jb 0x100239ba
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x31
pop ecx
call fcn.10003c19
mov ebx, 0x1002f508
lea ecx, [ebp - 0x18]
push ebx
call fcn.10009292
mov byte [ebp - 4], 6
test edi, edi
jne 0x10023d7d
lea ecx, [ebp - 0x18]
call fcn.10025af4
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023a0f
test byte [eax + 0x1c], 2
je 0x10023a0f
cmp byte [eax + 0x19], 4
jb 0x10023a0f
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x32
pop ecx
call fcn.10003c37
mov eax, dword [0x1002f024]
test edi, edi
js 0x10023d82
push ebx
lea ecx, [ebp - 0x14]
call fcn.10009292
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ebx, eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x48], ebx
jle 0x10023d72
push ebx
lea ecx, [ebp - 0x4c]
call fcn.10003dc3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d431
mov ecx, 0x10003050
call fcn.100091fe
push eax
push 0x10003050
lea ecx, [ebp - 0x14]
call fcn.10011601
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.10011601
push ecx
push ecx
push 0x2011f
push ecx
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x58]
call fcn.10005608
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023abb
test byte [eax + 0x1c], 2
je 0x10023abb
cmp byte [eax + 0x19], 4
jb 0x10023abb
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x33
pop ecx
call fcn.10003c37
test edi, edi
jne 0x10023be0
mov eax, dword [ebp - 0x30]
push 4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x40]
push 4
push edi
push 0x10003108
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023b0f
test byte [eax + 0x1c], 2
je 0x10023b0f
cmp byte [eax + 0x19], 4
jb 0x10023b0f
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x34
pop ecx
call fcn.10003c37
test edi, edi
jne 0x10023be0
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push 0x10003118
call fcn.1000565a
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023b56
test byte [eax + 0x1c], 2
je 0x10023b56
cmp byte [eax + 0x19], 4
jb 0x10023b56
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x35
pop ecx
call fcn.10003c37
test edi, edi
jne 0x10023be0
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push 0x10003120
call fcn.10003dc3
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023b9d
test byte [eax + 0x1c], 2
je 0x10023b9d
cmp byte [eax + 0x19], 4
jb 0x10023b9d
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x36
pop ecx
call fcn.10003c37
test edi, edi
jne 0x10023be0
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
push 0x1000312c
call fcn.1000565a
mov edi, eax
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023be0
test byte [eax + 0x1c], 2
je 0x10023be0
cmp byte [eax + 0x19], 4
jb 0x10023be0
push edi
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x37
pop ecx
call fcn.10003c37
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x10023bf3
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x40], eax
test edi, edi
jne 0x10023d57
push 0x1002f508
lea ecx, [ebp - 0x20]
call fcn.10009292
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.10014bdc
push dword [eax]
lea eax, [ebp - 0x20]
push 0x100030f0
push eax
call fcn.1000d18f
mov edi, dword [ebp - 0x20]
add esp, 0xc
push edi
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
jne 0x10023d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, dword [0x1002f024]
cmp edx, 0x1002f024
je 0x10023c8d
test byte [edx + 0x1c], 2
je 0x10023c8d
movzx eax, byte [edx + 0x19]
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jb 0x10023c8d
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x10003238
push 0x38
pop ecx
call fcn.10003c37
mov edx, dword [0x1002f024]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], esi
cmp edx, 0x1002f024
je 0x10023cbb
test byte [edx + 0x1c], 2
je 0x10023cbb
cmp byte [edx + 0x19], 4
jb 0x10023cbb
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x10003238
push 0x39
pop ecx
call fcn.10003c37
test esi, esi
je 0x10023d0a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x1002f024]
cmp ecx, 0x1002f024
je 0x10023cf4
test byte [ecx + 0x1c], 2
je 0x10023cf4
cmp byte [ecx + 0x19], 4
jb 0x10023cf4
push eax
push dword [ecx + 0x14]
mov edx, 0x10003238
push dword [ecx + 0x10]
push 0x3a
pop ecx
call fcn.10003c37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x24], esi
jmp 0x10023d4b
mov edx, dword [0x1002f024]
jmp 0x10023c90
push ebx
lea ecx, [ebp - 0x4c]
call fcn.10003dc3
lea ecx, [ebp - 0x58]
mov edx, dword [eax]
call fcn.10026d58
mov ecx, dword [0x1002f024]
cmp ecx, 0x1002f024
je 0x10023d4b
test byte [ecx + 0x1c], 2
je 0x10023d4b
cmp byte [ecx + 0x19], 4
jb 0x10023d4b
push eax
push dword [ecx + 0x14]
mov edx, 0x10003238
push dword [ecx + 0x10]
push 0x3b
pop ecx
call fcn.10003c37
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 8
call fcn.1000947c
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, dword [ebp - 0x48]
jl 0x10023a3d
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x10023d72
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10003dc3
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10023da2
test byte [eax + 0x1c], 1
je 0x10023da2
push dword [eax + 0x14]
mov edx, 0x10003238
push dword [eax + 0x10]
push 0x3c
pop ecx
call fcn.10003c19
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1000947c
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1000947c
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.1000947c
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1000947c
lea ecx, [ebp - 0x4c]
call fcn.10014f41
test esi, esi
je 0x10023de1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], 0
je 0x10023df0
push dword [ebp - 0x58]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call fcn.1002ac96
ret 8