Function at 0x43921b
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 [0x4434f4]
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 0x4396c2
mov esi, dword [ebp + 0x10]
mov eax, 0x40aa68
test esi, esi
je 0x439272
mov eax, 0x40a8bc
test ecx, ecx
jne 0x43927b
mov ecx, 0x40aad0
push edi
push eax
push ecx
lea eax, [ebp - 0x454]
xor ecx, ecx
push eax
lea edx, [ebp - 0x424]
call fcn.00436af8
test eax, eax
je 0x4396b4
neg esi
sbb esi, esi
lea ecx, [esi + 0x26d9]
call fcn.0041dffe
lea ecx, [ebp - 0x454]
call fcn.0043699f
mov dword [ebp - 0x444], eax
test eax, eax
je 0x4396b4
push 0x4059e8
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4396a8
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 0x439311
xor ecx, ecx
mov word [eax], cx
inc eax
add eax, 1
je 0x43930b
mov ecx, eax
call fcn.0041f258
mov dword [ebp - 0x428], eax
jmp 0x439311
mov dword [ebp - 0x428], ebx
push esi
push 0x40a35c
push 4
call fcn.0041ea5f
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x454]
add esp, 0xc
mov edx, esi
push eax
push ebx
call fcn.00422ff3
test eax, eax
je 0x43968a
mov ecx, dword [ebp - 0x424]
mov edx, esi
mov ebx, edi
call fcn.0041fb3c
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x43c], esi
call fcn.0041de27
cmp esi, edi
jb 0x439688
mov ecx, ebx
call fcn.0041dfa0
inc ebx
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x440], ebx
call fcn.0043699f
mov ebx, eax
mov dword [ebp - 0x430], ebx
test ebx, ebx
je 0x439668
cmp dword [ebp + 0x14], 0
jne 0x4393e8
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.00421804
test eax, eax
jne 0x4394f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4393dd
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x41c], eax
jmp 0x4394f0
lea eax, [ebp - 0x420]
xor esi, esi
push eax
push 3
push esi
push 0x401848
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43942e
lea eax, [ebp - 0x420]
push eax
push 3
push esi
push 0x401848
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x43949e
mov ecx, dword [ebp - 0x420]
push ebx
call fcn.0042246a
mov edx, eax
mov dword [ebp - 0x42c], edx
test edx, edx
je 0x439489
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x438]
jne 0x43944b
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 0x43948e
mov esi, 0x80004005
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4394c0
jle 0x4394a9
movzx esi, si
or esi, 0x80070000
push esi
push 0x403118
push 0x405010
push 2
call fcn.0041ea5f
add esp, 0x10
jmp 0x4394ea
cmp dword [0x443534], 0xffffffff
jne 0x4394d2
push ecx
push 4
pop edx
call fcn.0041e530
push 4
mov edx, 0x405054
pop ecx
call fcn.0041e988
or dword [0x443678], edi
mov esi, 0xd2af9
mov dword [ebp - 0x41c], esi
push 0x40a384
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x439620
xor esi, esi
xor ebx, ebx
mov eax, 0x80070001
mov dword [ebp - 0x420], esi
cmp dword [ebp - 0x41c], eax
sete bl
je 0x43957a
lea eax, [ebp - 0x420]
push eax
push edi
push esi
push 0x401848
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43957a
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x410
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push esi
push 0x40a390
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43956e
mov ebx, edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x439602
push esi
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41c], 0xd2af9
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x4017c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4395e0
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
xor eax, eax
push eax
push 0x40a3b4
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 0x40a3cc
push 4
mov dword [ebp - 0x41c], 0xd2af8
call fcn.0041ea5f
mov ebx, dword [ebp - 0x430]
add esp, 0xc
jmp 0x43965b
mov ebx, dword [ebp - 0x430]
push ebx
push 0x40a40c
push 4
call fcn.0041ea5f
add esp, 0xc
mov dword [ebp - 0x41c], esi
jmp 0x43965b
mov eax, dword [ebp - 0x41c]
test eax, eax
js 0x43963c
push ebx
push 0x40a40c
push 4
call fcn.0041ea5f
add esp, 0xc
jmp 0x43965b
push eax
push ebx
push 0x40a42c
push 2
mov dword [ebp - 0x434], eax
call fcn.0041ea5f
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x41c], eax
push ebx
call fcn.00441807
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 0x439688
mov ebx, dword [ebp - 0x440]
cmp ebx, esi
jbe 0x439364
xor ebx, ebx
push 0x4059e8
push ebx
call dword [sym.imp.msvcrt.dll_wcstok]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4392dc
mov ebx, dword [ebp - 0x434]
push dword [ebp - 0x444]
call fcn.00441807
pop ecx
mov edi, dword [ebp - 0x41c]
test edi, edi
js 0x4396c2
test ebx, ebx
jne 0x4396c4
mov ebx, edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 0x10