Function at 0x43d420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d0a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x43d446
invalid
movsx eax, byte [ebp + 8]
push eax
call fcn.0042b7d4
add esp, 4
test eax, eax
je 0x43d7ae
mov cl, byte [ebp + 0xb]
xor ebx, ebx
mov byte [ebp - 0x38], cl
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004017b0
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerDriveIcons
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDriveIcons
lea ecx, [ebp - 0x38]
call fcn.00412ff0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x43d4a1
mov eax, 0x48e810
lea edx, [ebp - 0x18]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push ebx
push 0x20006
push 1
push ebx
push ebx
push eax
push reloc.WSOCK32.dll_bind
call esi
cmp eax, ebx
jne 0x43d744
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
push eax
push 1
call fcn.0043deb0
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x43d4e0
mov eax, 0x48e810
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push 0x20006
push 1
push ebx
push ebx
push eax
push edx
call esi
cmp eax, ebx
jne 0x43d75a
mov edi, str.DefaultIcon
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x38]
push ebx
call fcn.00401850
test al, al
je 0x43d545
mov edi, dword [ebp - 0x34]
mov ecx, ebx
mov eax, ecx
mov esi, str.DefaultIcon
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x38]
call fcn.004099d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x43d551
mov eax, 0x48e810
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push 0
push ecx
push 0
push 0x20006
push 1
push 0
push 0
push eax
push edx
call esi
test eax, eax
jne 0x43d770
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.004017b0
mov edi, str._SystemRoot__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x28]
push ebx
call fcn.00401850
test al, al
je 0x43d5c4
mov edi, dword [ebp - 0x24]
mov ecx, ebx
mov edx, ecx
mov esi, str._SystemRoot__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call fcn.004099d0
mov eax, dword [0x492cd4]
lea ecx, [ebp - 0x28]
push eax
push 0
push 0x4cba18
mov byte [ebp - 4], 1
call fcn.00412f10
mov edi, 0x4b3b88
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4b3b88
lea ecx, [ebp - 0x28]
call fcn.0041d2b0
mov ecx, dword [0x492cd4]
push ecx
push 0
push 0x4cba28
lea ecx, [ebp - 0x28]
call fcn.00412f10
mov edi, 0x4b7b08
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x492cd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [ebp - 0x20]
sub edx, ecx
cmp edx, esi
ja 0x43d635
call fcn.0047ac24
test esi, esi
jbe 0x43d675
mov eax, dword [ebp - 0x20]
push 0
lea ecx, [ebp - 0x28]
lea ebx, [eax + esi]
push ebx
call fcn.00401850
test al, al
je 0x43d675
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, esi
mov esi, 0x4b7b08
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call fcn.004099d0
mov eax, dword [0x492cd4]
mov edx, dword [ebp - 0x20]
sub eax, edx
cmp eax, 1
ja 0x43d689
call fcn.0047ac24
mov eax, dword [ebp - 0x20]
xor edi, edi
push edi
lea ecx, [ebp - 0x28]
lea esi, [eax + 1]
push esi
call fcn.00401850
test al, al
je 0x43d6b3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add edx, ecx
push esi
lea ecx, [ebp - 0x28]
mov byte [edx], 0
call fcn.004099d0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
cmp eax, edi
mov esi, edx
je 0x43d6e3
mov cl, byte [eax - 1]
test cl, cl
je 0x43d6d8
cmp cl, 0xff
je 0x43d6d8
push edi
push edx
lea ecx, [ebp - 0x28]
call fcn.00401850
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x43d6e3
mov byte [eax - 1], 0xff
mov eax, dword [ebp - 0x24]
push esi
push eax
mov eax, dword [ebp - 0x10]
push 2
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
je 0x43d716
mov al, byte [ecx - 1]
test al, al
je 0x43d70c
cmp al, 0xff
je 0x43d70c
dec al
mov byte [ecx - 1], al
jmp 0x43d716
dec ecx
push ecx
call fcn.00486808
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edi
cmp ecx, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
je 0x43d788
mov al, byte [ecx - 1]
test al, al
je 0x43d738
cmp al, 0xff
je 0x43d738
dec al
mov byte [ecx - 1], al
jmp 0x43d788
dec ecx
push ecx
call fcn.00486808
add esp, 4
jmp 0x43d788
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004017b0
jmp 0x43d78a
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004017b0
jmp 0x43d78a
push 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004017b0
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x43d79a
push eax
call esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x43d7a4
push eax
call esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x43d7ae
push eax
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4