Function at 0x10013940
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100198fb
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x1d0]
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x1d0], 0x90
sub esp, 0xc
mov dword [ebp - 0x1cc], 0x3d
sub eax, ecx
mov dword [ebp - 0x1c8], 0x8c
mov ebx, esp
mov dword [ebp - 0x1dc], eax
sar eax, 2
mov dword [ebp - 0x1c4], 0x83
mov dword [ebp - 0x1c0], 0x91
mov dword [ebp - 0x1bc], 0x94
mov dword [ebp - 0x1b8], 0x7e
mov dword [ebp - 0x1b4], 0x8f
mov dword [ebp - 0x1b0], 0x82
mov dword [ebp - 0x1ac], 0x99
mov dword [ebp - 0x1a8], 0x99
mov dword [ebp - 0x1a4], 0x91
mov dword [ebp - 0x1a0], 0xa6
mov dword [ebp - 0x19c], 0x9f
mov dword [ebp - 0x198], 0xa6
mov dword [ebp - 0x194], 0x9e
mov dword [ebp - 0x190], 0x99
mov dword [ebp - 0x18c], 0x99
mov dword [ebp - 0x188], 0xb7
mov dword [ebp - 0x184], 0x8e
mov dword [ebp - 0x180], 0xb1
mov dword [ebp - 0x17c], 0x9c
mov dword [ebp - 0x178], 0x81
mov dword [ebp - 0x174], 0x89
mov dword [ebp - 0x170], 0x89
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x1d8], eax
test eax, eax
je 0x10013ad1
push eax
mov ecx, ebx
call fcn.10009290
push dword [ebp - 0x1dc]
mov esi, dword [ebx]
lea eax, [ebp - 0x1d0]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1d8]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x140]
call fcn.10015790
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x164]
lea eax, [ebp - 0x140]
mov dword [ebp - 0x164], 0x8e
sub eax, ecx
mov dword [ebp - 0x160], 0x1c
mov ebx, esp
mov dword [ebp - 0x1d8], eax
sar eax, 2
mov dword [ebp - 0x15c], 0x81
mov dword [ebp - 0x158], 0x89
mov dword [ebp - 0x154], 0x81
mov dword [ebp - 0x150], 0x89
mov dword [ebp - 0x14c], 0x7e
mov dword [ebp - 0x148], 0x81
mov dword [ebp - 0x144], 0x8e
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x1dc], eax
test eax, eax
je 0x10013ba0
push eax
mov ecx, ebx
call fcn.10009290
push dword [ebp - 0x1d8]
mov esi, dword [ebx]
lea eax, [ebp - 0x164]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1dc]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x128]
call fcn.10015790
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1e4], 0xff
mov dword [ebp - 0x1e0], 0
test eax, eax
jne 0x10013c7c
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
jb 0x10013be6
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x1d4]
push ecx
push 0x20019
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10013d95
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
jb 0x10013c1d
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x1e4]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x1e0]
push ecx
push 0
push eax
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10013d89
cmp dword [ebp - 0x1e0], 1
jne 0x10013d89
lea ecx, [ebp - 0x110]
mov byte [0x1001f774], 1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013c66
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
jmp 0x10013d7f
cmp eax, 1
jne 0x10013d1e
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
jb 0x10013c9a
mov eax, dword [ebp - 0x140]
push 0
lea ecx, [ebp - 0x1d4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10013d95
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013cd0
sub ecx, edx
cmp dword [ebp - 0x114], 0x10
lea edx, [ebp - 0x128]
jb 0x10013cee
mov edx, dword [ebp - 0x128]
lea eax, [ecx + 1]
push eax
push edi
push 1
push 0
push edx
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10013d89
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013d11
sub ecx, edx
push ecx
push edi
jmp 0x10013d7f
cmp eax, 2
jne 0x10013d95
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
jb 0x10013d38
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x1d4]
push ecx
push 2
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10013d95
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
jb 0x10013d68
mov eax, dword [ebp - 0x128]
push eax
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10013d89
push eax
push 0x1001a3fc
mov ecx, 0x1001f778
call fcn.10009000
push dword [ebp - 0x1d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x114]
cmp ecx, 0x10
jb 0x10013dcb
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013dc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013e12
push ecx
push edx
call fcn.10017f6a
add esp, 8
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp ecx, 0x10
jb 0x10013e22
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10013e18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10013e18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10017f6a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017d2f
mov esp, ebp
pop ebp
ret 8