Function at 0x430d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464500
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x430dac
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x483094
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407020
test al, al
jne 0x430ddb
push 0
push 0x483094
lea ecx, [ebp - 0x10]
call fcn.004076f0
push 0x20019
push 0x483064
push SysReAllocString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
xor esi, esi
call fcn.0040e570
mov edi, dword [ebp - 0x2c]
test eax, eax
jne 0x430ec9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x483204
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430e2d
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x430e34
cmp eax, 2
je 0x430e34
xor ebx, ebx
jmp 0x430ed8
mov eax, dword [ebp - 0x18]
shr eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
call fcn.00445a72
mov esi, eax
add esp, 4
test esi, esi
je 0x430ec9
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.0043e860
add esp, 0xc
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x483134
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430ec9
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x430e88
cmp eax, 2
jne 0x430ec9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x430e9f
test al, 1
jne 0x430ec9
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x430ea4
jmp 0x430ec9
xor eax, eax
mov word [esi], ax
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430eb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004076f0
mov ebx, esi
test esi, esi
je 0x430ed8
push esi
call fcn.00445a6d
add esp, 4
xor eax, eax
test esi, esi
cmove eax, ebx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x430ef5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x2c], edi
mov esi, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x28], 0
cmp dword [esi - 0xc], 0
jne 0x431010
push 0x20119
push str.http_shellopencommand
push SysReAllocString
lea ecx, [ebp - 0x2c]
call fcn.0040e570
mov edi, dword [ebp - 0x2c]
test eax, eax
jne 0x431010
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x483208
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
je 0x430f52
xor eax, eax
jmp 0x430f6e
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x430f67
cmp eax, 2
je 0x430f67
mov ebx, dword [ebp - 0x18]
jmp 0x431010
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor ecx, ecx
mov ebx, dword [ebp - 0x18]
test ecx, ecx
jne 0x431010
add eax, eax
mov dword [ebp - 0x1c], eax
add eax, 2
push eax
mov dword [ebp - 0x20], eax
call fcn.00445a72
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43101d
push dword [ebp - 0x20]
push 0
push ebx
call fcn.0043e860
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0
push 0x483258
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x431010
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x430fd3
cmp eax, 2
jne 0x431010
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430fea
test al, 1
jne 0x431010
shr eax, 1
cmp word [ebx + eax*2 - 2], 0
je 0x430fef
jmp 0x431010
xor eax, eax
mov word [ebx], ax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430ff4
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004076f0
mov esi, dword [ebp - 0x10]
test ebx, ebx
je 0x43101d
push ebx
call fcn.00445a6d
add esp, 4
mov ebx, dword [esi - 0xc]
test ebx, ebx
jns 0x43102e
push 0x80070057
call fcn.004012a0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x43104b
push ebx
lea ecx, [ebp - 0x10]
call fcn.00407690
mov esi, dword [ebp - 0x10]
lea eax, [ebx + 1]
push eax
push esi
call fcn.00445a1d
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x431024
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [esi - 0xc], eax
jl 0x431112
push str.iexplore.exe
push esi
call fcn.0043e2b2
add esp, 8
test eax, eax
je 0x431112
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x431112
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x4310a7
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
push str.Internet_Explorer
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00407020
test al, al
jne 0x4310d6
push 0x11
push str.Internet_Explorer
mov ecx, ebx
call fcn.004076f0
add esi, 0xfffffff0
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4310f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4310fe
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi - 0xc], 0
jl 0x431179
push str.firefox.exe
push esi
call fcn.0043e2b2
add esp, 8
test eax, eax
je 0x431144
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x431144
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
push str.Firefox
call fcn.00406700
jmp 0x4310d6
cmp dword [esi - 0xc], 0
jl 0x431179
push str.chrome.exe
push esi
call fcn.0043e2b2
add esp, 8
test eax, eax
je 0x431179
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x431179
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
push str.Chrome
call fcn.00406700
jmp 0x4310d6
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407630
mov ebx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4310d9