Function at 0x104cc4
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x27
push 0
push 0
dec ecx
jne 0x104ccc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x105693
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.000143f0
lea eax, [ebp - 0x18]
call fcn.000143f0
push ebp
mov eax, 0x1056a8
call fcn.00104ba4
pop ecx
xor eax, eax
push ebp
push 0x105531
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
call fcn.00027b40
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00027578
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
call fcn.00025994
mov edx, dword [ebp - 0x40]
pop eax
call fcn.00013fb0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00027578
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
call fcn.00026a04
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x24]
pop edx
call fcn.00013ff4
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
call fcn.000145ac
call fcn.001045bc
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
call fcn.000143f0
mov dl, 1
mov eax, dword [0x46788]
call fcn.00046938
mov esi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0x1056d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x1054d1
lea eax, [ebp - 0xc]
mov edx, 0x2800
call fcn.000271f0
mov dword [ebp - 0x20], 0x27ff
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x105708
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
test ebx, ebx
jne 0x105428
cmp dword [ebp - 0x28], 1
jne 0x105362
cmp dword [ebp - 0x20], 0
jbe 0x105362
cmp dword [ebp - 0x20], 0x2800
jae 0x105362
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00014548
mov al, byte [0x10571c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
call fcn.00104b84
mov ecx, dword [ebp - 0x48]
mov edx, 0x105724
mov eax, dword [ebp - 0x18]
call fcn.0003f924
mov edx, dword [ebp - 0x2c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push ebp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.00027444
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x105730
call fcn.00013ff4
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
call fcn.000145ac
mov eax, dword [ebp - 0x4c]
call fcn.00104ba4
pop ecx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x104f0d
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x104f52
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
push ebp
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x5c]
call fcn.00027444
lea eax, [ebp - 0x5c]
mov edx, 0x105744
call fcn.00013fb0
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
call fcn.000145ac
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x68]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0001d350
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00104ab4
mov edx, dword [ebp - 0x60]
pop eax
call fcn.0001463c
mov eax, dword [ebp - 0x58]
call fcn.00104ba4
pop ecx
inc ebx
dec dword [ebp - 0x30]
jne 0x104ea7
jmp 0x104f52
push 0x105750
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6c]
call fcn.00027444
push dword [ebp - 0x6c]
push 0x10576c
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x70]
call fcn.00027444
push dword [ebp - 0x70]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00014068
push ebp
mov eax, dword [ebp - 0x2c]
call fcn.00104c34
pop ecx
push ebp
mov eax, 0x105774
call fcn.00104ba4
pop ecx
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x14]
call fcn.0001d350
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.0001c9b0
mov eax, dword [ebp - 0x74]
push eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x2c]
call fcn.0001d350
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.00104ab4
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.0001c9b0
mov edx, dword [ebp - 0x7c]
pop eax
call fcn.00014748
je 0x1054c2
cmp dword [ebp - 0x1c], 1
je 0x104fbe
cmp dword [ebp - 0x1c], 2
jne 0x1054c2
push ebp
mov eax, 0x105790
call fcn.00104ba4
pop ecx
mov eax, dword [ebp - 0x1c]
dec eax
je 0x104fd8
dec eax
je 0x10503c
jmp 0x105351
push ebp
push 0x1057ac
lea eax, [ebp - 0x90]
call fcn.000252ec
push dword [ebp - 0x90]
push 0x1057c4
call fcn.001046a4
lea edx, [ebp - 0x94]
call fcn.00027478
push dword [ebp - 0x94]
lea eax, [ebp - 0x8c]
mov edx, 4
call fcn.00014068
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
call fcn.000145ac
mov eax, dword [ebp - 0x88]
call fcn.00104ba4
pop ecx
jmp 0x105351
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x10519c
push ebp
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x9c]
call fcn.00027444
lea eax, [ebp - 0x9c]
mov edx, 0x105744
call fcn.00013fb0
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
call fcn.000145ac
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xa4]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0001d350
mov edx, dword [ebp - 0xa0]
pop eax
call fcn.0001463c
mov eax, dword [ebp - 0x98]
call fcn.00104ba4
pop ecx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x10514a
lea ecx, [ebp - 0xb4]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.0001d350
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00104ab4
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.0001c9b0
mov eax, dword [ebp - 0xa8]
push eax
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x14]
call fcn.00104ab4
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
call fcn.0001c9b0
mov edx, dword [ebp - 0xb8]
pop eax
call fcn.00014748
jne 0x10514a
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x105192
lea ecx, [ebp - 0xc4]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.0001d350
mov edx, dword [ebp - 0xc0]
mov eax, 0x1057e8
call fcn.0001495c
test eax, eax
jle 0x105192
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec ebx
cmp ebx, 0xffffffff
jne 0x10504f
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x60]
lea eax, [ebp - 0x2c]
call fcn.000143f0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x1052ef
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
lea ecx, [ebp - 0xcc]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.0001d350
mov eax, dword [ebp - 0xc8]
call fcn.00014630
test eax, eax
jle 0x1052e5
push ebp
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0xd4]
call fcn.00027444
lea eax, [ebp - 0xd4]
mov edx, 0x105744
call fcn.00013fb0
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
call fcn.000145ac
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xe0]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xe0]
lea edx, [ebp - 0xdc]
call fcn.0001d350
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call fcn.00104ab4
mov edx, dword [ebp - 0xd8]
pop eax
call fcn.0001463c
mov eax, dword [ebp - 0xd0]
call fcn.00104ba4
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.00014630
test eax, eax
jle 0x105294
lea eax, [ebp - 0x2c]
mov edx, 0x105724
call fcn.0001463c
push dword [ebp - 0x2c]
push 0x105808
lea ecx, [ebp - 0xec]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xec]
lea edx, [ebp - 0xe8]
call fcn.0001d350
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.00104ab4
push dword [ebp - 0xe4]
push 0x105808
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00014700
inc ebx
dec dword [ebp - 0x30]
jne 0x1051c6
push ebp
push 0x105814
lea eax, [ebp - 0xf8]
call fcn.000252ec
push dword [ebp - 0xf8]
push 0x1057c4
mov eax, dword [ebp - 0x2c]
call fcn.001048c8
lea edx, [ebp - 0xfc]
call fcn.00027478
push dword [ebp - 0xfc]
lea eax, [ebp - 0xf4]
mov edx, 4
call fcn.00014068
mov edx, dword [ebp - 0xf4]
lea eax, [ebp - 0xf0]
call fcn.000145ac
mov eax, dword [ebp - 0xf0]
call fcn.00104ba4
pop ecx
push ebp
mov eax, 0x105828
call fcn.00104ba4
pop ecx
jmp 0x1054c2
push 0x105844
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x100]
call fcn.00027444
push dword [ebp - 0x100]
push 0x10576c
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x104]
call fcn.00027444
push dword [ebp - 0x104]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00014068
push ebp
lea eax, [ebp - 0x108]
mov edx, dword [ebp - 0x10]
call fcn.000145ac
mov eax, dword [ebp - 0x108]
call fcn.00104c34
pop ecx
push ebp
push 0x105860
lea eax, [ebp - 0x114]
call fcn.000252ec
push dword [ebp - 0x114]
push 0x1057c4
call fcn.001046a4
lea edx, [ebp - 0x118]
call fcn.00027478
push dword [ebp - 0x118]
lea eax, [ebp - 0x110]
mov edx, 4
call fcn.00014068
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
call fcn.000145ac
mov eax, dword [ebp - 0x10c]
call fcn.00104ba4
pop ecx
jmp 0x1054c2
lea edx, [ebp - 0x11c]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x10]
mov edx, 0x105878
call fcn.00013ff4
push ebp
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 0x10]
call fcn.000145ac
mov eax, dword [ebp - 0x120]
call fcn.00104c34
pop ecx
push ebp
push 0x105860
lea eax, [ebp - 0x12c]
call fcn.000252ec
push dword [ebp - 0x12c]
push 0x1057c4
call fcn.001046a4
lea edx, [ebp - 0x130]
call fcn.00027478
push dword [ebp - 0x130]
lea eax, [ebp - 0x128]
mov edx, 4
call fcn.00014068
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x124]
call fcn.000145ac
mov eax, dword [ebp - 0x124]
call fcn.00104ba4
pop ecx
lea eax, [ebp - 0xc]
mov edx, 0x2800
call fcn.00027218
jmp 0x10550c
lea edx, [ebp - 0x134]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x10]
mov edx, 0x105894
call fcn.00013ff4
push ebp
lea eax, [ebp - 0x138]
mov edx, dword [ebp - 0x10]
call fcn.000145ac
mov eax, dword [ebp - 0x138]
call fcn.00104c34
pop ecx
cmp dword [ebp - 8], 0
je 0x10551b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
mov eax, esi
call fcn.00012ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x105547
push ebp
mov eax, 0x1058c8
call fcn.00104ba4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10569d
lea eax, [ebp - 0x138]
call fcn.000143f0
lea eax, [ebp - 0x134]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x124]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x11c]
mov edx, 4
call fcn.00013d3c
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x104]
mov edx, 5
call fcn.00013d3c
lea eax, [ebp - 0xf0]
mov edx, 7
call fcn.00014408
lea eax, [ebp - 0xd4]
call fcn.00013d18
lea eax, [ebp - 0xd0]
mov edx, 0xd
call fcn.00014408
lea eax, [ebp - 0x9c]
call fcn.00013d18
lea eax, [ebp - 0x98]
call fcn.000143f0
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.00013d3c
lea eax, [ebp - 0x88]
mov edx, 6
call fcn.00014408
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00014408
lea eax, [ebp - 0x5c]
call fcn.00013d18
lea eax, [ebp - 0x58]
call fcn.000143f0
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00013d3c
lea eax, [ebp - 0x2c]
call fcn.000143f0
lea eax, [ebp - 0x24]
call fcn.00013d18
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x10]
call fcn.00013d18
ret