Function at 0x429920
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d20ec
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5b8
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x5ac], eax
mov eax, dword [ebx + 0x10]
lea edx, [edi + 0x38]
mov dword [ebp - 0x5a4], eax
mov ecx, edx
mov dword [ebp - 0x548], 0
xor eax, eax
mov dword [ebp - 0x544], 7
mov word [ebp - 0x558], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4299a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x558]
call fcn.0040beb0
lea eax, [ebp - 0x558]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5a0]
call fcn.00408390
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040eec0
add esi, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x4299ed
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4299f2
sub ecx, edx
push ecx
push esi
mov esi, dword [ebp - 0x5a4]
mov ecx, esi
call fcn.0040e3a0
lea ecx, [ebp - 0x570]
mov byte [ebp - 4], 2
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x5a0]
push eax
call fcn.0048dbcc
mov byte [ebp - 4], 0
movzx eax, word [edi + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x598]
push 0x40
push 0
mov dword [esi + 0x1c], 0
movzx esi, word [edi + 0x18]
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x598]
push esi
push 0x4ec730
push 0x40
push eax
call fcn.00429320
lea ecx, [ebp - 0x598]
mov dword [ebp - 0x530], 0
add esp, 0x10
mov dword [ebp - 0x52c], 0xf
mov byte [ebp - 0x540], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429a98
sub ecx, edx
lea eax, [ebp - 0x598]
push ecx
push eax
lea ecx, [ebp - 0x540]
call fcn.0040e3a0
mov esi, dword [ebp - 0x5a4]
lea eax, [ebp - 0x540]
add esi, 0x24
cmp esi, eax
je 0x429ae7
mov ecx, esi
call fcn.0040e540
movups xmm0, xmmword [ebp - 0x540]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x530]
movq qword [esi + 0x10], xmm0
jmp 0x429b21
mov edx, dword [ebp - 0x52c]
cmp edx, 0x10
jb 0x429b21
mov ecx, dword [ebp - 0x540]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x429b17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a040
push edx
push ecx
call fcn.0048d8eb
add esp, 8
cmp dword [edi + 0x28], 0
je 0x429bb5
push 0x100
lea eax, [ebp - 0x320]
mov dword [ebp - 0x5a8], 0xff
push 0
push eax
mov dword [ebp - 0x5b0], 0xff
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x100
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x5c0]
push eax
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x320]
push eax
mov eax, dword [edi + 0x2c]
add eax, edi
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x429bb5
mov ecx, dword [ebp - 0x5a4]
lea eax, [ebp - 0x320]
push eax
lea ecx, [ecx + 0x3c]
call fcn.0040d920
push 0x208
lea eax, [ebp - 0x528]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
mov dword [ebp - 0x5b0], 0
cmp dword [ebp - 0x544], 8
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x558]
cmovae esi, dword [ebp - 0x558]
push 0x200
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push dword [ebp - 0x5ac]
push str.SystemCurrentControlSetServicesEventLog_s_s
push 0xfe
push eax
call fcn.0040c120
add esp, 0x14
lea eax, [ebp - 0x5a8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429c8b
lea eax, [ebp - 0x5ac]
mov dword [ebp - 0x5ac], 0x103
push eax
lea eax, [ebp - 0x528]
push eax
push 0
push 0
push str.EventMessageFile
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x429c7f
xor eax, eax
mov word [ebp - 0x528], ax
jmp 0x429c8b
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x220]
push 0xff
push eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x22
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x42a013
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x14]
add ecx, edi
push ecx
movzx ecx, word [edi + 0x1a]
push ecx
mov ecx, esi
call fcn.00429340
add esp, 8
mov dword [ebp - 0x5a8], eax
test eax, eax
je 0x42a013
lea ecx, [ebp - 0x5b0]
mov edx, eax
push ecx
mov ecx, esi
call fcn.00429400
mov edi, dword [ebp - 0x5b0]
lea ecx, [ebp - 0x5a0]
add esp, 4
test edi, edi
je 0x429d8f
push edi
call fcn.00408080
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040eec0
cmp dword [esi + 0x2c], 0x10
lea edx, [esi + 0x18]
jb 0x429d3c
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429d41
sub ecx, esi
mov esi, dword [ebp - 0x5a4]
push ecx
add esi, 0x54
push edx
mov ecx, esi
call fcn.0040e3a0
lea ecx, [ebp - 0x570]
mov byte [ebp - 4], 4
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x5a0]
push eax
call fcn.0048dbcc
push edi
mov byte [ebp - 4], 0
call fcn.004a8ee9
add esp, 4
jmp 0x429dfa
push dword [ebp - 0x5a8]
call fcn.00408080
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040eec0
cmp dword [esi + 0x2c], 0x10
lea edx, [esi + 0x18]
jb 0x429db2
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429db7
sub ecx, esi
mov esi, dword [ebp - 0x5a4]
push ecx
add esi, 0x54
push edx
mov ecx, esi
call fcn.0040e3a0
lea ecx, [ebp - 0x570]
mov byte [ebp - 4], 6
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x5a0]
push eax
call fcn.0048dbcc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5b4]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x5bc], 0x4ea3f8
mov dword [ebp - 0x5b8], 0x4ea3f9
movq xmm0, qword [ebp - 0x5bc]
mov dword [ebp - 0x52c], eax
mov eax, esi
movq qword [ebp - 0x534], xmm0
cmp ecx, 0x10
jb 0x429e36
mov eax, dword [esi]
mov edi, dword [esi + 0x10]
mov edx, esi
add eax, edi
cmp ecx, 0x10
jb 0x429e44
mov edx, dword [esi]
push eax
push edx
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x534]
call fcn.0042b610
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x429e9e
push 0x4ec4f6
push 0x4ec4f4
sub esp, 8
mov edx, esp
push 0x4ec4f6
push 0x4ec4f4
sub esp, 0xc
mov dword [edx + 4], eax
mov eax, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x5b4]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0042b680
mov edi, dword [esi + 0x10]
add esp, 0x24
mov ecx, dword [esi + 0x14]
mov edx, ecx
mov eax, dword [ebp - 0x5b4]
mov dword [ebp - 0x5bc], 0x4ec4fc
mov dword [ebp - 0x5b8], 0x4ec4fd
movq xmm0, qword [ebp - 0x5bc]
mov dword [ebp - 0x52c], eax
mov eax, esi
movq qword [ebp - 0x534], xmm0
cmp ecx, 0x10
jb 0x429ee4
mov eax, dword [esi]
mov dword [ebp - 0x5a4], edx
jmp 0x429eea
mov dword [ebp - 0x5a4], ecx
add eax, edi
mov dword [ebp - 0x5ac], esi
cmp ecx, 0x10
jb 0x429f01
mov ecx, dword [esi]
mov dword [ebp - 0x5a4], edx
jmp 0x429f07
mov ecx, dword [ebp - 0x5ac]
push eax
push ecx
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x534]
call fcn.0042b610
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x429f66
push 0x4ec4fa
push 0x4ec4f8
sub esp, 8
mov edx, esp
push 0x4ec4fa
push 0x4ec4f8
sub esp, 0xc
mov dword [edx + 4], eax
mov eax, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x5b4]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0042b680
mov ecx, dword [esi + 0x14]
add esp, 0x24
mov edi, dword [esi + 0x10]
jmp 0x429f6c
mov ecx, dword [ebp - 0x5a4]
mov eax, dword [ebp - 0x5b4]
mov dword [ebp - 0x5bc], 0x4ea1e4
mov dword [ebp - 0x5b8], 0x4ea1e5
movq xmm0, qword [ebp - 0x5bc]
mov dword [ebp - 0x52c], eax
mov eax, esi
movq qword [ebp - 0x534], xmm0
cmp ecx, 0x10
jb 0x429fa5
mov eax, dword [esi]
add eax, edi
mov edx, esi
cmp ecx, 0x10
jb 0x429fb0
mov edx, dword [esi]
push eax
push edx
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x534]
call fcn.0042b610
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x42a007
push 0x4ec4fa
push 0x4ec4f8
sub esp, 8
mov edx, esp
push 0x4ec4fa
push 0x4ec4f8
sub esp, 0xc
mov dword [edx + 4], eax
mov eax, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x5b4]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0042b680
add esp, 0x24
push dword [ebp - 0x5a8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x558]
call fcn.0040c2c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.004b0023
int3