Function at 0x420840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aa01
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x54112c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4208d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004235b0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00404120
mov edx, dword [ebp - 0x21c]
add esp, 8
mov byte [ebp - 4], 0
mov esi, eax
cmp edx, 8
jb 0x420952
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420948
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b74
push edx
push ecx
call fcn.0048bf7f
add esp, 8
xor bl, bl
cmp esi, 0xffffffff
je 0x420b20
mov byte [ebp - 0x34d], bl
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0
push 0
push 0x20006
push 0
push 0
push str.SOFTWAREReasonReason_Antivirus
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0041b540
mov esi, dword [ebp - 0x224]
test eax, eax
jne 0x420b15
cmp dword [ebp - 0x234], 0x10
lea edi, [ebp - 0x248]
jb 0x4209ca
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x348]
mov dword [ebp - 0x34c], eax
test edi, edi
jne 0x4209ea
xor edx, edx
lea esi, [edi + 0xd]
mov dword [ebp - 0x34c], edx
jmp 0x420af0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4209f0
sub ecx, edx
lea eax, [ebp - 0x348]
push 0x80
push eax
lea eax, [ebp - 0x34c]
lea ebx, [ecx + 1]
push ebx
push eax
mov dword [ebp - 0x354], ebx
call fcn.004125a0
add esp, 0x10
push ebx
push dword [ebp - 0x34c]
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x420aa4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x420aa4
mov ebx, dword [ebp - 0x354]
push 0
push 0
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x348]
push 0x80
push eax
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.004125a0
add esp, 0x10
push esi
push dword [ebp - 0x34c]
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov esi, dword [ebp - 0x224]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x420b79
mov edx, dword [ebp - 0x34c]
test edx, edx
jne 0x420abb
lea esi, [ebx + 0xd]
jmp 0x420af0
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420ac0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.NDLDATA
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x34c]
mov esi, eax
lea eax, [ebp - 0x348]
cmp edx, eax
je 0x420b03
push edx
call fcn.004be0b8
add esp, 4
test esi, esi
mov bl, 1
mov esi, dword [ebp - 0x224]
je 0x420b15
mov bl, byte [ebp - 0x34d]
test esi, esi
je 0x420b20
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x420b56
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420b4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420b98
push edx
push ecx
call fcn.0048bf7f
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bf8d
mov esp, ebp
pop ebp
ret
call fcn.004bce09
push 0x80
lea eax, [ebp - 0x348]
push eax
push dword [ebp - 0x34c]
call fcn.00412620
add esp, 0xc
call fcn.0041b1c0
call fcn.004bce09
int3