Function at 0x121720
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x121728
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x12229f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00014314
lea eax, [ebp - 0x20]
call fcn.00014314
push ebp
mov eax, 0x1222b4
call fcn.00121600
pop ecx
xor eax, eax
push ebp
push 0x12211b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
call fcn.0002b6e4
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0002b220
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
call fcn.00027f5c
mov edx, dword [ebp - 0x40]
pop eax
call fcn.00013ed4
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0002b220
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
call fcn.00029474
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x24]
pop edx
call fcn.00013f18
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x24]
call fcn.000144c4
call fcn.00120f50
mov esi, eax
lea eax, [ebp - 0x1c]
call fcn.00014314
xor eax, eax
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x47630]
call fcn.000477e0
mov dword [ebp - 0x28], eax
mov eax, 0x2800
call fcn.00019248
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x12210a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
push 0x1222dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x12208a
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x122314
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
call fcn.00018af4
mov ebx, eax
test ebx, ebx
jne 0x121fb9
cmp dword [ebp - 0x14], 1
jne 0x121eaf
cmp dword [ebp - 0xc], 0
jbe 0x121eaf
mov eax, dword [ebp - 0x2c]
call fcn.00018ad0
cmp eax, dword [ebp - 0xc]
jbe 0x121eaf
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.00018adc
mov al, byte [0x122328]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
call fcn.001215e0
mov ecx, dword [ebp - 0x48]
mov edx, 0x122330
mov eax, dword [ebp - 0x20]
call fcn.00041fec
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push ebp
lea edx, [ebp - 0x50]
mov eax, 0x122334
call fcn.00031d88
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
cdq
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.0002b0cc
mov edx, dword [ebp - 0x54]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
call fcn.000144c4
mov eax, dword [ebp - 0x4c]
call fcn.00121600
pop ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x121996
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x1219f1
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.0002b0cc
lea eax, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x60]
mov eax, 0x122340
call fcn.00031d88
mov edx, dword [ebp - 0x60]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
call fcn.000144c4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x6c]
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.0001f01c
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00121510
mov edx, dword [ebp - 0x64]
pop eax
call fcn.00014554
mov eax, dword [ebp - 0x58]
call fcn.00121600
pop ecx
inc ebx
dec dword [ebp - 0x30]
jne 0x121922
jmp 0x1219f1
lea edx, [ebp - 0x70]
mov eax, 0x122344
call fcn.00031d88
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x74]
call fcn.0002b0cc
push dword [ebp - 0x74]
lea edx, [ebp - 0x78]
mov eax, 0x122358
call fcn.00031d88
push dword [ebp - 0x78]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x7c]
call fcn.0002b0cc
push dword [ebp - 0x7c]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00013f8c
push ebp
mov eax, dword [ebp - 0x1c]
call fcn.00121690
pop ecx
push ebp
lea edx, [ebp - 0x84]
mov eax, 0x12235c
call fcn.00031d88
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
call fcn.000144c4
mov eax, dword [ebp - 0x80]
call fcn.00121600
pop ecx
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x10]
call fcn.0001f01c
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.0001e5f8
mov eax, dword [ebp - 0x88]
push eax
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x1c]
call fcn.0001f01c
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00121510
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
call fcn.0001e5f8
mov edx, dword [ebp - 0x90]
pop eax
call fcn.00014660
je 0x1220d8
cmp esi, 1
je 0x121a8f
cmp esi, 2
jne 0x1220d8
push ebp
mov eax, 0x12236c
call fcn.00121600
pop ecx
dec esi
je 0x121aaa
dec esi
je 0x121b30
jmp 0x121e9e
push ebp
lea edx, [ebp - 0xa4]
mov eax, 0x122380
call fcn.00031d88
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa8]
call fcn.0002782c
push dword [ebp - 0xa8]
lea edx, [ebp - 0xac]
mov eax, 0x122390
call fcn.00031d88
push dword [ebp - 0xac]
call fcn.00121060
lea edx, [ebp - 0xb0]
call fcn.0002b100
push dword [ebp - 0xb0]
lea eax, [ebp - 0xa0]
mov edx, 4
call fcn.00013f8c
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
call fcn.000144c4
mov eax, dword [ebp - 0x9c]
call fcn.00121600
pop ecx
jmp 0x121e9e
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x121caf
push ebp
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0xb8]
call fcn.0002b0cc
lea eax, [ebp - 0xb8]
push eax
lea edx, [ebp - 0xbc]
mov eax, 0x122340
call fcn.00031d88
mov edx, dword [ebp - 0xbc]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
call fcn.000144c4
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xc4]
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.0001f01c
mov edx, dword [ebp - 0xc0]
pop eax
call fcn.00014554
mov eax, dword [ebp - 0xb4]
call fcn.00121600
pop ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x121c5a
lea ecx, [ebp - 0xd4]
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
call fcn.0001f01c
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.00121510
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.0001e5f8
mov eax, dword [ebp - 0xc8]
push eax
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0x10]
call fcn.00121510
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call fcn.0001e5f8
mov edx, dword [ebp - 0xd8]
pop eax
call fcn.00014660
jne 0x121c5a
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x121ca5
lea ecx, [ebp - 0xe4]
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0xe0]
call fcn.0001f01c
mov edx, dword [ebp - 0xe0]
mov eax, 0x1223b4
call fcn.00014874
test eax, eax
jle 0x121ca5
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec ebx
cmp ebx, 0xffffffff
jne 0x121b44
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x60]
lea eax, [ebp - 0x1c]
call fcn.00014314
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x121e1a
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
lea ecx, [ebp - 0xec]
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xec]
lea edx, [ebp - 0xe8]
call fcn.0001f01c
mov eax, dword [ebp - 0xe8]
call fcn.00014548
test eax, eax
jle 0x121e10
push ebp
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0xf4]
call fcn.0002b0cc
lea eax, [ebp - 0xf4]
push eax
lea edx, [ebp - 0xf8]
mov eax, 0x122340
call fcn.00031d88
mov edx, dword [ebp - 0xf8]
pop eax
call fcn.00013ed4
mov edx, dword [ebp - 0xf4]
lea eax, [ebp - 0xf0]
call fcn.000144c4
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x104]
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x104]
lea edx, [ebp - 0x100]
call fcn.0001f01c
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xfc]
call fcn.00121510
mov edx, dword [ebp - 0xfc]
pop eax
call fcn.00014554
mov eax, dword [ebp - 0xf0]
call fcn.00121600
pop ecx
mov eax, dword [ebp - 0x1c]
call fcn.00014548
test eax, eax
jle 0x121dbe
lea eax, [ebp - 0x1c]
mov edx, 0x122330
call fcn.00014554
push dword [ebp - 0x1c]
push 0x1223d4
lea ecx, [ebp - 0x110]
mov edx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0001f01c
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00121510
push dword [ebp - 0x108]
push 0x1223d4
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00014618
inc ebx
dec dword [ebp - 0x30]
jne 0x121cdb
push ebp
lea edx, [ebp - 0x11c]
mov eax, 0x1223d8
call fcn.00031d88
push dword [ebp - 0x11c]
lea eax, [ebp - 0x120]
call fcn.0002782c
push dword [ebp - 0x120]
lea edx, [ebp - 0x124]
mov eax, 0x122390
call fcn.00031d88
push dword [ebp - 0x124]
mov eax, dword [ebp - 0x1c]
call fcn.001212e0
lea edx, [ebp - 0x128]
call fcn.0002b100
push dword [ebp - 0x128]
lea eax, [ebp - 0x118]
mov edx, 4
call fcn.00013f8c
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
call fcn.000144c4
mov eax, dword [ebp - 0x114]
call fcn.00121600
pop ecx
push ebp
mov eax, 0x1223ec
call fcn.00121600
pop ecx
jmp 0x1220d8
lea edx, [ebp - 0x12c]
mov eax, 0x122400
call fcn.00031d88
push dword [ebp - 0x12c]
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x130]
call fcn.0002b0cc
push dword [ebp - 0x130]
lea edx, [ebp - 0x134]
mov eax, 0x122358
call fcn.00031d88
push dword [ebp - 0x134]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x138]
call fcn.0002b0cc
push dword [ebp - 0x138]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00013f8c
push ebp
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 8]
call fcn.000144c4
mov eax, dword [ebp - 0x13c]
call fcn.00121690
pop ecx
push ebp
lea edx, [ebp - 0x148]
mov eax, 0x122414
call fcn.00031d88
push dword [ebp - 0x148]
lea eax, [ebp - 0x14c]
call fcn.0002782c
push dword [ebp - 0x14c]
lea edx, [ebp - 0x150]
mov eax, 0x122390
call fcn.00031d88
push dword [ebp - 0x150]
call fcn.00121060
lea edx, [ebp - 0x154]
call fcn.0002b100
push dword [ebp - 0x154]
lea eax, [ebp - 0x144]
mov edx, 4
call fcn.00013f8c
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x140]
call fcn.000144c4
mov eax, dword [ebp - 0x140]
call fcn.00121600
pop ecx
jmp 0x1220d8
lea edx, [ebp - 0x158]
mov eax, ebx
call fcn.0002b100
mov eax, dword [ebp - 0x158]
push eax
lea edx, [ebp - 0x15c]
mov eax, 0x122424
call fcn.00031d88
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 8]
pop ecx
call fcn.00013f18
push ebp
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 8]
call fcn.000144c4
mov eax, dword [ebp - 0x160]
call fcn.00121690
pop ecx
push ebp
lea edx, [ebp - 0x16c]
mov eax, 0x122414
call fcn.00031d88
push dword [ebp - 0x16c]
lea eax, [ebp - 0x170]
call fcn.0002782c
push dword [ebp - 0x170]
lea edx, [ebp - 0x174]
mov eax, 0x122390
call fcn.00031d88
push dword [ebp - 0x174]
call fcn.00121060
lea edx, [ebp - 0x178]
call fcn.0002b100
push dword [ebp - 0x178]
lea eax, [ebp - 0x168]
mov edx, 4
call fcn.00013f8c
mov edx, dword [ebp - 0x168]
lea eax, [ebp - 0x164]
call fcn.000144c4
mov eax, dword [ebp - 0x164]
call fcn.00121600
pop ecx
jmp 0x1220d8
lea edx, [ebp - 0x17c]
mov eax, ebx
call fcn.0002b100
mov eax, dword [ebp - 0x17c]
push eax
lea edx, [ebp - 0x180]
mov eax, 0x122438
call fcn.00031d88
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 8]
pop ecx
call fcn.00013f18
push ebp
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 8]
call fcn.000144c4
mov eax, dword [ebp - 0x184]
call fcn.00121690
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x122111
cmp dword [ebp - 0x18], 0
je 0x1220f4
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
call fcn.00019258
mov eax, dword [ebp - 0x28]
call fcn.00012f14
ret