Function at 0x438b42
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x424], eax
inc edi
mov dword [ebp - 0x438], edx
mov dword [ebp - 0x41c], edi
mov ebx, edx
mov dword [ebp - 0x434], ebx
cmp eax, 0xffffffff
je 0x438fe9
mov esi, dword [ebp + 0x10]
mov eax, 0x40aa78
test esi, esi
je 0x438b99
mov eax, 0x40a8cc
test ecx, ecx
jne 0x438ba2
mov ecx, 0x40aae0
push edi
push eax
push ecx
lea eax, [ebp - 0x454]
xor ecx, ecx
push eax
lea edx, [ebp - 0x424]
call fcn.0043645b
test eax, eax
je 0x438fdb
neg esi
sbb esi, esi
lea ecx, [esi + 0x26d9]
call fcn.0041ddf0
lea ecx, [ebp - 0x454]
call fcn.00436308
mov dword [ebp - 0x444], eax
test eax, eax
je 0x438fdb
push 0x4059f8
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x438fcf
xor ebx, ebx
push 0x3a
push esi
mov dword [ebp - 0x428], ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x438c38
xor ecx, ecx
mov word [eax], cx
inc eax
add eax, 1
je 0x438c32
mov ecx, eax
call fcn.0041f003
mov dword [ebp - 0x428], eax
jmp 0x438c38
mov dword [ebp - 0x428], ebx
push esi
push 0x40a36c
push 4
call fcn.0041e83a
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x454]
add esp, 0xc
mov edx, esi
push eax
push ebx
call fcn.00422caa
test eax, eax
je 0x438fb1
mov ecx, dword [ebp - 0x424]
mov edx, esi
mov ebx, edi
call fcn.00422ba2
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x43c], esi
call fcn.0041dc25
cmp esi, edi
jb 0x438faf
mov ecx, ebx
call fcn.0041dd92
inc ebx
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x440], ebx
call fcn.00436308
mov ebx, eax
mov dword [ebp - 0x430], ebx
test ebx, ebx
je 0x438f8f
cmp dword [ebp + 0x14], 0
jne 0x438d0f
mov eax, dword [ebp - 0x428]
mov edx, ebx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor ecx, ecx
and eax, 0xffff0001
add eax, 0xffff
push eax
mov eax, dword [ebp - 0x428]
shr eax, 1
not eax
and eax, edi
push eax
call fcn.00421540
test eax, eax
jne 0x438e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x438d04
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x41c], eax
jmp 0x438e17
lea eax, [ebp - 0x420]
xor esi, esi
push eax
push 3
push esi
push 0x401858
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x438d55
lea eax, [ebp - 0x420]
push eax
push 3
push esi
push 0x401858
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x438dc5
mov ecx, dword [ebp - 0x420]
push ebx
call fcn.0042219e
mov edx, eax
mov dword [ebp - 0x42c], edx
test edx, edx
je 0x438db0
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x438]
jne 0x438d72
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push edi
xor eax, eax
push eax
push edx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x42c]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x438db5
mov esi, 0x80004005
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x438de7
jle 0x438dd0
movzx esi, si
or esi, 0x80070000
push esi
push 0x403128
push 0x405020
push 2
call fcn.0041e83a
add esp, 0x10
jmp 0x438e11
cmp dword [0x442534], 0xffffffff
jne 0x438df9
push ecx
push 4
pop edx
call fcn.0041e30f
push 4
mov edx, 0x405064
pop ecx
call fcn.0041e767
or dword [0x442678], edi
mov esi, 0xd2af9
mov dword [ebp - 0x41c], esi
push 0x40a394
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x438f47
xor esi, esi
xor ebx, ebx
mov eax, 0x80070001
mov dword [ebp - 0x420], esi
cmp dword [ebp - 0x41c], eax
sete bl
je 0x438ea1
lea eax, [ebp - 0x420]
push eax
push edi
push esi
push 0x401858
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x438ea1
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x410
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push esi
push 0x40a3a0
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x438e95
mov ebx, edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x438f29
push esi
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41c], 0xd2af9
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x4017d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x438f07
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
xor eax, eax
push eax
push 0x40a3c4
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x420]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x40a3dc
push 4
mov dword [ebp - 0x41c], 0xd2af8
call fcn.0041e83a
mov ebx, dword [ebp - 0x430]
add esp, 0xc
jmp 0x438f82
mov ebx, dword [ebp - 0x430]
push ebx
push 0x40a41c
push 4
call fcn.0041e83a
add esp, 0xc
mov dword [ebp - 0x41c], esi
jmp 0x438f82
mov eax, dword [ebp - 0x41c]
test eax, eax
js 0x438f63
push ebx
push 0x40a41c
push 4
call fcn.0041e83a
add esp, 0xc
jmp 0x438f82
push eax
push ebx
push 0x40a43c
push 2
mov dword [ebp - 0x434], eax
call fcn.0041e83a
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x41c], eax
push ebx
call fcn.00440db7
mov esi, dword [ebp - 0x43c]
pop ecx
lea eax, [ebp - 0x454]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x438faf
mov ebx, dword [ebp - 0x440]
cmp ebx, esi
jbe 0x438c8b
xor ebx, ebx
push 0x4059f8
push ebx
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x438c03
mov ebx, dword [ebp - 0x434]
push dword [ebp - 0x444]
call fcn.00440db7
pop ecx
mov edi, dword [ebp - 0x41c]
test edi, edi
js 0x438fe9
test ebx, ebx
jne 0x438feb
mov ebx, edi
mov ecx, dword [ebp - 4]
mov eax, ebx
ret
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 0x10