Function at 0x40aac0
Capabilities:
Persist via path registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x487d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, dword [esp + 0x140]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetControlSession_ManagerEnvironment_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.Path
push ecx
mov dword [esp + 0x30], 2
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40acaa
call fcn.0042c64d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ab71
push 0x80004005
call fcn.00405940
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push 0x490428
push edx
mov dword [esp + 0x144], 0
call fcn.0040a590
mov ebp, dword [esp + 0x28]
add esp, 0xc
test esi, esi
je 0x40abca
cmp dword [ebp - 0xc], 0
jl 0x40abca
push esi
push ebp
call fcn.0045baeb
add esp, 8
test eax, eax
je 0x40abca
sub eax, ebp
cmp eax, 0xffffffff
jne 0x40ac78
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x40acfe
cmp eax, ecx
jg 0x40acfe
cmp byte [eax + ebp], 0x3b
mov bx, word [0x48fc28]
je 0x40ac01
lea edi, [esp + 0x28]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40abf4
mov word [edi], bx
mov eax, esi
mov edx, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ac05
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40ac17
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40ac38
lea eax, [esp + 0x28]
mov word [edi], bx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ac50
mov ecx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push str.Path
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40acaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
push 0x1388
push 2
push str.Environment
push 0
push 0x1a
push 0xffff
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00459426
add esp, 0x128
ret 4
push 0x80070057
call fcn.00405940
int3