Function at 0x412070
Capabilities:
Create process on windows
Create thread
Get common file path
Get file version info
Initialize winsock library
Query or enumerate registry value
Resolve dns
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6985e3
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x384], edi
call fcn.0040f080
mov eax, dword [edi + 0x20]
mov dword [0x76aa38], eax
lea eax, [ebp - 0x374]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4120cc
xor eax, eax
jmp 0x412b32
push str.time.nist.gov
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.0040fca0
add esp, 4
lea ecx, [ebp - 0x3b0]
mov esi, eax
push 0
push 0
push 8
push 1
push 1
push 0x76c
call fcn.0040a750
push 0
push 0
push 8
push 0x1a
push 0xa
push 0x7e9
lea ecx, [ebp - 0x3a4]
call fcn.0040a750
movsd xmm0, qword [ebp - 0x3a4]
movsd xmm2, qword [0x6c26b8]
comisd xmm0, xmm2
movsd qword [ebp - 0x38c], xmm0
ja 0x412183
fld qword [ebp - 0x3a4]
sub esp, 8
fstp qword [esp]
call fcn.0066b0f0
movsd xmm0, qword [ebp - 0x3a4]
add esp, 8
movsd xmm2, qword [0x6c26b8]
fstp qword [ebp - 0x38c]
movsd xmm1, qword [ebp - 0x38c]
subsd xmm0, xmm1
subsd xmm1, xmm0
movsd qword [ebp - 0x38c], xmm1
movsd xmm3, qword [ebp - 0x3b0]
comisd xmm3, xmm2
ja 0x4121cb
fld qword [ebp - 0x3b0]
sub esp, 8
fstp qword [esp]
call fcn.0066b0f0
movsd xmm0, qword [ebp - 0x3b0]
add esp, 8
movsd xmm2, qword [0x6c26b8]
fstp qword [ebp - 0x398]
movsd xmm3, qword [ebp - 0x398]
subsd xmm0, xmm3
subsd xmm3, xmm0
movsd xmm1, qword [ebp - 0x38c]
xorps xmm0, xmm0
subsd xmm1, xmm3
comisd xmm0, xmm1
ja 0x4121e8
movsd xmm2, qword [0x6c26a8]
addsd xmm2, xmm1
mulsd xmm2, qword [0x6c26b0]
movaps xmm0, xmm2
call fcn.0060a7e0
mov ecx, eax
call fcn.0060a8e0
movd xmm1, esi
cvtdq2pd xmm1, xmm1
shr esi, 0x1f
addsd xmm1, qword [esi*8 + 0x6c26c0]
comisd xmm1, xmm0
jbe 0x41223f
push 0
push 0x6c2034
push 0x6c2284
mov ecx, edi
call fcn.0042f07f
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0x6c178c
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x41250e
lea eax, [esi + esi]
call fcn.0060a4f0
mov eax, esp
push eax
push esi
push 0
push 0x6c178c
mov dword [ebp - 0x378], eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x41250e
lea eax, [ebp - 0x390]
mov dword [ebp - 0x380], 0
push eax
lea eax, [ebp - 0x380]
mov dword [ebp - 0x390], 0x34
push eax
push 0x6c17a8
push dword [ebp - 0x378]
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x41250e
mov ecx, dword [ebp - 0x380]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d_n
call fcn.00419810
mov eax, dword [ebp - 0x380]
add esp, 0x14
cmp word [eax + 0xa], 0xa
jb 0x41250e
push 0x63
lea eax, [ebp - 0xaf]
mov dword [ebp - 0x18], 0x374e4957
push 0
push eax
mov dword [ebp - 0x14], 0x4d5452
mov byte [ebp - 0xb0], 0
call fcn.006300b0
add esp, 0xc
lea eax, [ebp - 0xb0]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea eax, [ebp - 0x1b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x412b53
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x1b4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x37c]
call fcn.00402960
test al, al
jne 0x41239c
lea ecx, [ebp - 0x1b4]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412380
sub ecx, edx
lea eax, [ebp - 0x1b4]
push ecx
push eax
lea ecx, [ebp - 0x37c]
call fcn.00403730
push 0x31
lea eax, [ebp - 0x4b]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
mov dword [ebp - 0x388], 1
mov dword [ebp - 0x394], 0x32
mov byte [ebp - 0x4c], 0
call fcn.006300b0
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [ebp - 0x37c]
mov edi, eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x388]
push eax
push 0
push esi
push dword [ebp - 0x378]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test edi, edi
jne 0x4124fd
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412440
test dl, dl
je 0x41243c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412440
add eax, 2
add ecx, 2
test dl, dl
jne 0x412420
xor eax, eax
jmp 0x412445
sbb eax, eax
or eax, 1
test eax, eax
je 0x4124fd
push 8
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push esi
push dword [ebp - 0x378]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x378]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x404]
mov dword [ebp - 0x3f4], 0x44
push eax
lea eax, [ebp - 0x3f4]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1b4]
movlpd qword [ebp - 0x3f0], xmm0
push eax
movlpd qword [ebp - 0x3e8], xmm0
movlpd qword [ebp - 0x3e0], xmm0
movlpd qword [ebp - 0x3d8], xmm0
movlpd qword [ebp - 0x3d0], xmm0
movlpd qword [ebp - 0x3c8], xmm0
movlpd qword [ebp - 0x3c0], xmm0
movlpd qword [ebp - 0x3b8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [ebp - 0x384]
push 0
push 0
push 0x12
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x412503
mov edi, dword [ebp - 0x384]
lea ecx, [ebp - 0x37c]
call fcn.00402020
mov ecx, edi
call fcn.00435bab
mov eax, dword [0x6c2020]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1cc], xmm0
mov dword [ebp - 0x1cc], eax
mov ax, word [0x6c2024]
mov word [ebp - 0x1c8], ax
mov al, byte [0x6c2026]
mov dword [ebp - 0x1bc], 7
mov dword [ebp - 0x1b8], 0xf
mov byte [ebp - 0x1c6], al
mov byte [ebp - 0x1c5], 0
lea eax, [ebp - 0x1cc]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1e4]
call fcn.0040a1e0
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 2
push 0x755004
push eax
call fcn.00416ea0
add esp, 8
call fcn.00443a71
mov ecx, eax
test ecx, ecx
je 0x4125a2
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
jmp 0x4125a4
xor eax, eax
push 0x6c2020
mov ecx, eax
call fcn.00434f59
call fcn.0040fde0
push 0
lea ecx, [edi + 0xc4]
push 0x6c1027
call fcn.00403730
push 1
lea ecx, [edi + 0xd0]
push 0x6c2454
call fcn.00403730
push 1
lea ecx, [edi + 0xe0]
push 0x6c2454
call fcn.00403730
push 1
lea ecx, [edi + 0xe4]
push 0x6c2454
call fcn.00403730
push 1
lea ecx, [edi + 0xe8]
push 0x6c2454
call fcn.00403730
push 0xff00ff
push 0x120
mov ecx, edi
call fcn.004035f0
push dword [edi + 0x744]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push dword [edi + 0x20]
call esi
push dword [edi + 0x744]
push 0
push 0x80
push dword [edi + 0x20]
call esi
lea ecx, [edi + 0x3c0]
mov dword [ecx + 0x80], 0xffffff
call fcn.0041b340
lea ecx, [edi + 0x450]
mov dword [ecx + 0x80], 0xffffff
call fcn.0041b340
lea ecx, [edi + 0x690]
mov dword [ecx + 0x80], 0xffffff
call fcn.0041b340
lea ecx, [edi + 0x4e0]
mov dword [ecx + 0x80], 0xffffff
call fcn.0041b340
lea ecx, [edi + 0x570]
mov dword [ecx + 0x80], 0xff00
call fcn.0041b340
lea ecx, [edi + 0x600]
mov dword [ecx + 0x80], 0xffffff
call fcn.0041b340
push 0xff00ff
push 0x13e
push 0xff00ff
push 0x13d
lea ecx, [edi + 0x758]
call fcn.00405e70
push 0
lea ecx, [edi + 0x758]
call fcn.00404da0
push 1
push 0
lea ecx, [edi + 0x758]
call fcn.00404710
push 0xff00ff
push 0x13f
push 0xff00ff
push 0x140
lea ecx, [edi + 0xcb8]
call fcn.00405e70
push 0
lea ecx, [edi + 0xcb8]
call fcn.00404da0
push 1
push 0
lea ecx, [edi + 0xcb8]
call fcn.00404710
lea esi, [edi + 0x1218]
push 1
mov ecx, esi
call fcn.00404da0
push 5
mov ecx, esi
call fcn.004066a0
push 1
push 0xffffff
push 1
mov ecx, esi
call fcn.00406240
push 1
push 0xffffff
push 3
mov ecx, esi
call fcn.00406240
push 1
push 0xffffff
push 5
mov ecx, esi
call fcn.00406240
push 1
push 0xa0
mov ecx, esi
call fcn.00406180
push 0x6c2284
mov ecx, esi
call fcn.00434f59
lea esi, [edi + 0x1778]
push 1
mov ecx, esi
call fcn.00404da0
push 5
mov ecx, esi
call fcn.004066a0
push 1
push 0xffffff
push 1
mov ecx, esi
call fcn.00406240
push 1
push 0xffffff
push 3
mov ecx, esi
call fcn.00406240
push 1
push 0xffffff
push 5
mov ecx, esi
call fcn.00406240
push 1
push 0xa0
mov ecx, esi
call fcn.00406180
push 0x6c2284
mov ecx, esi
call fcn.00434f59
push 0xff00ff
push 0x137
push 0xff00ff
push 0x137
lea ecx, [edi + 0x1cd8]
call fcn.00405e70
push 1
lea ecx, [edi + 0x1cd8]
call fcn.00404da0
push 0
lea ecx, [edi + 0x1cd8]
call fcn.004340c0
push 1
push 0
lea ecx, [edi + 0x1cd8]
call fcn.00404710
push 0xff00ff
push 0x13a
push 0xff00ff
mov dword [edi + 0x22e0], 0
push 0x139
lea ecx, [edi + 0x2238]
call fcn.00405e70
push 1
lea ecx, [edi + 0x2238]
call fcn.00404da0
push 1
push 0
lea ecx, [edi + 0x2238]
call fcn.00404710
push 0xff00ff
push 0xd6
push 0xff00ff
push 0xd7
lea ecx, [edi + 0x37b8]
mov dword [edi + 0x3860], 0
call fcn.00405e70
push 1
lea ecx, [edi + 0x37b8]
call fcn.00404da0
push 1
push 0
lea ecx, [edi + 0x37b8]
call fcn.00404710
push 0
lea ecx, [edi + 0x37b8]
call fcn.00434fad
push 0xff00ff
push 0x13c
push 0xff00ff
push 0x13b
lea ecx, [edi + 0x3d18]
mov dword [edi + 0x3dc0], 0
call fcn.00405e70
push 1
lea ecx, [edi + 0x3d18]
call fcn.00404da0
push 1
push 0
lea ecx, [edi + 0x3d18]
call fcn.00404710
push 0xff00ff
push 0x102
push 0xff00ff
push 0x103
lea ecx, [edi + 0x4278]
mov dword [edi + 0x4320], 0
call fcn.00405e70
push 1
lea ecx, [edi + 0x4278]
call fcn.00404da0
push 1
push 0
lea ecx, [edi + 0x4278]
call fcn.00404710
push 0
lea ecx, [edi + 0x4278]
call fcn.00434fad
push 0
lea ecx, [edi + 0x1b8]
call fcn.00434fad
mov esi, 0x76af40
nop word [eax + eax]
push 0x560
call fcn.0044902e
add esp, 4
mov dword [ebp - 0x388], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4129b2
mov ecx, eax
call fcn.00403930
push 0
push 0x9e
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00406320
push 1
mov ecx, esi
call fcn.00404da0
push 4
mov ecx, esi
call fcn.004066a0
push 1
push 0x6b6b6b
push 1
mov ecx, esi
call fcn.00406240
push 1
push 0x6b6b6b
push 3
mov ecx, esi
call fcn.00406240
push 1
push 0x6b6b6b
push 5
mov ecx, esi
call fcn.00406240
push 1
push 0xa0
mov ecx, esi
call fcn.00406180
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0xad
mov ecx, esi
call fcn.004065f0
add esi, 0x560
cmp esi, 0x76e500
jl 0x412990
push 0
lea ecx, [edi + 0x570]
call fcn.00434fad
lea ecx, [edi + 0x570]
mov dword [edi + 0x5f0], 0xffffff
call fcn.0041b340
push 0x6c2020
lea ecx, [edi + 0x570]
call fcn.00434f59
push 5
lea ecx, [edi + 0x570]
call fcn.00434fad
push edi
push 0x404
lea ecx, [edi + 0x268]
call fcn.00408750
push 5
lea ecx, [edi + 0x268]
call fcn.00434fad
push 0
push 0
push edi
push 0x4104a0
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, edi
call fcn.00418b00
mov ecx, edi
call fcn.00413b50
mov ecx, dword [ebp - 0x1d0]
cmp ecx, 0xf
jbe 0x412af7
mov edx, dword [ebp - 0x1e4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412aed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b5d
push ecx
push edx
call fcn.00609c55
add esp, 8
mov ecx, dword [ebp - 0x1b8]
cmp ecx, 0xf
jbe 0x412b2d
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412b23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b5d
push ecx
push edx
call fcn.00609c55
add esp, 8
mov eax, 1
lea esp, [ebp - 0x410]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402130
call fcn.0063db7a
int3