Function at 0x40caf0
Capabilities:
Check if file exists
Check os version
Copy file
Create process on windows
Delete registry value
Get common file path
Get file attributes
Persist via run registry key
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x12d8
call fcn.0057ed50
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
call fcn.00433b40
call fcn.00433d10
mov ecx, esi
call fcn.0040aca0
mov ecx, esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x90], ebx
call fcn.0040bb80
mov ecx, esi
call fcn.0040c430
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40cbba
cmp dword [ebp - 0x18c], 2
jne 0x40cbba
mov eax, dword [ebp - 0x198]
mov edi, 1
cmp eax, 6
mov dword [ebp - 0x34], edi
jb 0x40cbba
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0x7c], edi
call fcn.0040c700
add esp, 4
push reloc.WSOCK32.dll_bind
call fcn.0040c700
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x74], 4
je 0x40cc2f
mov eax, dword [0x67a050]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x64]
push ecx
push edx
push ebx
push ebx
push 0x650184
push eax
call edi
test eax, eax
jne 0x40cbec
mov ecx, dword [ebp - 0x64]
mov dword [esi + 0x1c], ecx
mov ecx, dword [0x67a050]
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x64]
push edx
push eax
push ebx
push ebx
push 0x650170
push ecx
call edi
test eax, eax
jne 0x40cc7a
cmp dword [ebp - 0x64], ebx
je 0x40cc7a
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x88]
push edx
push eax
lea ecx, [esi + 4]
call fcn.00409e30
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x3c], ecx
jmp 0x40cc7a
mov ecx, dword [0x67a050]
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x64]
push edx
push eax
push ebx
push ebx
push 0x650170
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cc55
mov edx, dword [ebp - 0x64]
mov dword [esi + 0x1c], edx
cmp dword [esi + 0x1c], ebx
je 0x40cc7a
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x88]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00409e30
xor edx, edx
cmp eax, ebx
sete dl
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x84]
xor eax, eax
cmp ecx, ebx
sete al
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40cd8c
lea ecx, [ebp - 0x1c]
mov edi, 1
push ecx
push 0x20019
push ebx
push 0x64ee70
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ccec
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x64]
push edx
push eax
push ebx
push ebx
push 0x650158
push ecx
mov dword [ebp - 0x74], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cce2
mov edi, dword [ebp - 0x64]
mov dword [esi + 0x1c], edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x1c], ebx
jne 0x40cd48
mov edx, dword [0x67a050]
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x64]
push eax
push ecx
push ebx
push ebx
push 0x650148
push edx
mov dword [ebp - 0x74], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40cd40
mov eax, 1
push 4
mov dword [esi + 0x1c], eax
mov ecx, dword [0x67a050]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 4
push ebx
push 0x650148
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40cd43
mov dword [esi + 0x1c], edi
cmp dword [esi + 0x1c], ebx
je 0x40cd8c
lea edx, [ebp - 0x38]
mov ecx, esi
push edx
call fcn.0040e740
mov edi, dword [ebp - 0x38]
xor ecx, ecx
cmp eax, ebx
lea eax, [ebp - 0x18]
sete cl
push 4
xor edx, edx
push eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x67a050]
cmp edi, ebx
push 4
push ebx
sete dl
push 0x650184
push ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x78], ebx
jne 0x40cd9a
cmp dword [ebp - 0x54], ebx
je 0x40cfab
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x50], 1
call fcn.004be2e0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004bea30
cmp eax, ebx
jne 0x40cf43
lea ecx, [ebp - 0x18]
call fcn.004be320
lea ecx, [ebp - 0x18]
call fcn.004be980
lea ecx, [ebp - 0x18]
call fcn.004bec00
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x5c], bx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00413770
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x60]
push edx
push eax
mov ecx, esi
call fcn.00412d40
cmp eax, ebx
je 0x40ce6d
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x40ce69
cmp ebx, dword [esi + 0x28]
jge 0x40ce6d
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + ebx*4]
cmp eax, dword [edx + 8]
jne 0x40cf25
xor edi, edi
mov eax, dword [esi + 0x24]
mov eax, dword [eax + ebx*4]
cmp edi, dword [eax + 0x1c]
jge 0x40ce6d
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x40ce37
lea ecx, [ebp - 0x5c]
mov edx, dword [eax + 0x18]
lea esi, [edi + edi*8]
shl esi, 2
push ecx
mov eax, dword [edx + esi]
push eax
call fcn.00580edc
add esp, 8
test eax, eax
jne 0x40cf1c
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + esi + 8]
test ecx, ecx
je 0x40ce6d
mov byte [ebp - 0x21], 0
mov al, byte [ebp - 0x21]
xor ebx, ebx
xor edi, edi
test al, al
je 0x40ced9
cmp dword [ebp - 0x34], ebx
jne 0x40ced9
mov ecx, dword [0x6754d4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x67a8ec]
mov eax, dword [0x67aa5c]
push edx
push eax
lea ecx, [ebp - 0x1c]
push 0x65013c
push ecx
mov byte [ebp - 4], 3
call fcn.00593b08
mov edx, dword [0x67aa98]
mov eax, dword [ebp - 0x1c]
add esp, 0x10
push 0x50004
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40cec9
mov edi, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0059ad3d
cmp edi, ebx
jne 0x40cf2b
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x40]
cmp eax, ebx
mov dword [ebp - 0x50], ebx
jne 0x40cf07
lea ecx, [ebp - 0x1c]
push 4
push ecx
mov dword [esi + 0x1c], ebx
mov edx, dword [0x67a050]
push 4
push ebx
push 0x650170
push edx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
mov ecx, esi
call fcn.004128b0
mov dword [0x679a6c], 1
jmp 0x40cf35
mov esi, dword [ebp - 0x40]
inc edi
jmp 0x40ce22
inc ebx
jmp 0x40ce0c
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.00416110
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x40cf9f
cmp dword [ebp - 0x34], ebx
jne 0x40cf9f
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
push ecx
push 1
lea ecx, [ebp - 0x18]
call fcn.004bea70
mov ecx, dword [0x67a050]
mov edx, dword [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push ebx
push 0x650130
push ecx
mov dword [ebp - 0x1c], edx
call edi
mov ecx, dword [0x67a050]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push ebx
push 0x650124
push ecx
mov dword [ebp - 0x1c], edx
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004be310
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x34]
cmp eax, ebx
je 0x40d51a
cmp dword [ebp - 0x3c], ebx
jne 0x40d0d6
cmp dword [ebp - 0x54], ebx
jne 0x40d0d6
cmp edi, ebx
jne 0x40d500
lea edx, [ebp - 0x2a0]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40d0bd
mov eax, dword [0x6754d4]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2a0]
push 0x64fa14
push ecx
lea edx, [ebp - 0x14]
push 0x64fa0c
push edx
mov byte [ebp - 4], 8
call fcn.00593b08
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push eax
call edi
cmp eax, 0xffffffff
jne 0x40d0ae
lea ecx, [ebp - 0x2a0]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40d0ae
lea edx, [ebp - 0x5a0]
lea eax, [ebp - 0x4a0]
push edx
lea ecx, [ebp - 0x3a0]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x2a0]
push edx
push eax
call fcn.0057f33c
add esp, 0x14
lea ecx, [ebp - 0x3a0]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x2a0]
push 0x64fa14
push ecx
push edx
push 0x64f9d4
push eax
call fcn.0057f2ea
add esp, 0x14
lea ecx, [ebp - 0x2a0]
push ecx
call edi
cmp eax, 0xffffffff
je 0x40d0ae
mov edx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x2a0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov edi, dword [ebp - 0x34]
cmp dword [ebp - 0x88], ebx
je 0x40d51e
lea ecx, [esi + 4]
call fcn.0040a360
jmp 0x40d51e
mov eax, dword [0x67a050]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x8c]
push ecx
push edx
push ebx
push ebx
push 0x64fb3c
push eax
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d13d
cmp dword [ebp - 0x8c], 1
jne 0x40d13d
cmp edi, ebx
jne 0x40d13d
mov eax, dword [ebp - 0x78]
cmp eax, ebx
mov eax, 0x67aaac
jne 0x40d11d
mov eax, 0x67aaa8
mov ecx, dword [0x67aab4]
mov eax, dword [eax]
push 0x50004
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40d13d
mov dword [ebp - 0x3c], ebx
jmp 0x40d142
cmp dword [ebp - 0x3c], ebx
jne 0x40d14b
cmp dword [ebp - 0x54], ebx
je 0x40d4fc
cmp edi, ebx
mov dword [ebp - 0x18], ebx
je 0x40d490
cmp dword [ebp - 0x54], ebx
je 0x40d4be
mov ecx, esi
call fcn.00411490
cmp dword [ebp - 0x7c], ebx
jne 0x40d1a4
push 1
mov ecx, esi
call fcn.0040e890
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [0x679a68], 1
mov ecx, esi
je 0x40d197
call fcn.0040e090
mov dword [ebp - 0x14], ebx
jmp 0x40d4a4
call fcn.0040dfd0
mov dword [ebp - 0x14], ebx
jmp 0x40d4a4
xor edx, edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x2c], bx
mov edi, dword [0x67a008]
mov byte [ebp - 4], 4
cmp edi, ebx
jne 0x40d1c3
mov edi, 0x67a00c
mov eax, 0x64f030
test eax, eax
je 0x40d2e7
cmp edi, ebx
je 0x40d2e7
mov ecx, 0x650108
test ecx, ecx
je 0x40d2e7
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x48], bx
call fcn.004028e0
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x6c], bx
call fcn.00401fc0
push 0x650108
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x5c], bx
call fcn.00401fc0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.00401fb0
push eax
call fcn.0057e90a
add esp, 4
lea ecx, [ebp - 0x70]
mov ebx, eax
call fcn.00401fb0
push eax
call fcn.0057e90a
add edi, ebx
lea ebx, [eax + edi + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005970d9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x30], edx
je 0x40d2be
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x60]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x70]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401fb0
push eax
mov eax, dword [ebp - 0x30]
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00401070
mov edx, dword [ebp - 0x30]
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
cmp edx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xcc], 0x3c
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xc0], 0x6500fc
jne 0x40d31b
lea edx, [ebp - 0x2c]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xac], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov dword [ebp - 0xb8], 0x6500e8
jne 0x40d357
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d47b
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x40d371
lea eax, [ebp - 0x2c]
push ebx
push eax
mov ecx, esi
call fcn.0040c5d0
test al, al
je 0x40d47b
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0xcc]
push eax
call ebx
test eax, eax
je 0x40d475
mov ecx, dword [ebp - 0x94]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x18], edi
call esi
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40d3cd
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x3c]
mov dword [0x679a68], edi
test eax, eax
jne 0x40d47b
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xcc], 0x3c
test eax, eax
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xc0], 0x6500fc
je 0x40d41a
mov dword [ebp - 0xbc], eax
jmp 0x40d423
lea edx, [ebp - 0x2c]
mov dword [ebp - 0xbc], edx
xor eax, eax
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xac], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xb8], 0x6500d0
call ebx
test eax, eax
je 0x40d469
mov ecx, dword [ebp - 0x94]
push 0xffffffffffffffff
push ecx
call esi
mov dword [ebp - 0x90], 1
jmp 0x40d47b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x40d4a4
cmp dword [ebp - 0x3c], ebx
je 0x40d4be
mov edx, dword [ebp - 0x78]
lea ecx, [esi + 4]
push edx
call fcn.00408980
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d4be
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40d4c5
mov dword [0x679a64], 1
jmp 0x40d4c5
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x67a050]
xor eax, eax
push 4
test ecx, ecx
lea ecx, [ebp - 0x8c]
push ecx
push 4
push 0
push 0x64fb3c
setne al
push edx
mov dword [ebp - 0x8c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x34]
xor ebx, ebx
cmp edi, ebx
je 0x40d51e
cmp dword [ebp - 0x14], ebx
je 0x40d50e
mov ecx, esi
call fcn.0040e090
jmp 0x40d51a
cmp dword [ebp - 0x7c], ebx
jne 0x40d51a
mov ecx, esi
call fcn.0040dfd0
cmp edi, ebx
jne 0x40d574
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x6500a0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d574
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x650090
push ecx
call edi
mov edx, dword [ebp - 0x14]
push 0x650088
push edx
call edi
mov eax, dword [ebp - 0x14]
push 0x650078
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x34]
mov ecx, esi
call fcn.00411570
cmp dword [0x679a64], ebx
je 0x40d5c8
mov eax, dword [0x67a050]
lea edx, [ebp - 0x20]
push 4
push edx
push 4
push ebx
push 0x65006c
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [0x67aab4]
mov edx, dword [0x67aa60]
push 0x50030
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b5f0
add esp, 4
cmp edi, ebx
jne 0x40d5d1
cmp dword [ebp - 0x50], ebx
jne 0x40d618
mov edx, dword [0x67a050]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
push ecx
push ebx
push ebx
push 0x65006c
push edx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d840
mov eax, dword [0x67a050]
mov edi, dword [ebp - 0x38]
push 0x65006c
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40d840
mov ecx, dword [0x67a050]
push 0x65006c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [0x67a050]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x1c]
xor esi, esi
push edx
push eax
push esi
push esi
push 0x650130
push ecx
xor ebx, ebx
mov dword [ebp - 0x78], 4
call edi
test eax, eax
jne 0x40d65a
mov esi, dword [ebp - 0x1c]
mov ecx, dword [0x67a050]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x650124
push ecx
mov dword [ebp - 0x78], 4
call edi
test eax, eax
jne 0x40d689
mov eax, dword [ebp - 0x1c]
cmp eax, 1
mov ebx, eax
je 0x40d692
cmp esi, 1
jne 0x40d840
lea ecx, [ebp - 0x18]
mov edi, 1
call fcn.004be2e0
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x50]
push edx
push eax
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.004bea70
cmp ebx, edi
jne 0x40d6c1
cmp dword [ebp - 0x54], 0xffffffff
jne 0x40d6c1
xor edi, edi
cmp esi, 1
jne 0x40d6cc
cmp dword [ebp - 0x50], 0xffffffff
je 0x40d6d4
test edi, edi
jne 0x40d7df
mov ecx, dword [0x67aa98]
mov edx, dword [0x67aa88]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [ebp - 0x40]
lea ecx, [edi + 4]
call fcn.00409910
mov ecx, dword [0x67a050]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push 0x650170
push ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x3c]
mov dword [edi + 0x1c], 0
call fcn.004be2e0
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x50]
push edx
push eax
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004bea70
mov edi, 1
cmp ebx, edi
mov eax, edi
jne 0x40d755
cmp dword [ebp - 0x54], 0xffffffff
jne 0x40d755
xor eax, eax
cmp esi, edi
jne 0x40d75f
cmp dword [ebp - 0x50], 0xffffffff
je 0x40d763
test eax, eax
jne 0x40d7ce
mov edx, dword [0x67a050]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
push 0
push 0x65005c
push edx
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x67aa98]
mov ecx, dword [0x67aa84]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.0040b5f0
add esp, 4
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.004be310
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004be310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x80], edi
mov byte [ebp - 4], 9
call fcn.004be310
jmp 0x40d834
mov eax, dword [ebp - 0x50]
push 0x50000
cmp eax, 1
jne 0x40d7fb
mov edx, dword [0x67aa98]
mov eax, dword [0x67aa58]
push edx
push eax
jmp 0x40d809
mov ecx, dword [0x67aa98]
mov edx, dword [0x67aa80]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x67a050]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push 0x650170
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004be310
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x40d891
mov ecx, dword [0x67a050]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x80]
push edx
push eax
push 0
push 0
push 0x65005c
push ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d934
mov edx, dword [0x67a050]
mov edi, dword [ebp - 0x80]
push 0x65005c
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40d934
push 0
lea ecx, [ebp - 0x12e8]
call fcn.004e2250
lea ecx, [ebp - 0x12e8]
mov byte [ebp - 4], 0xb
call fcn.00596cd3
lea ecx, [ebp - 0x5a4]
mov byte [ebp - 4], 0x13
call fcn.0059ad3d
lea ecx, [ebp - 0x1158]
mov byte [ebp - 4], 0x12
call fcn.0054a0f0
lea ecx, [ebp - 0x1160]
mov byte [ebp - 4], 0x11
call fcn.0059ad3d
lea ecx, [ebp - 0x119c]
mov byte [ebp - 4], 0x10
call fcn.005a29d1
lea ecx, [ebp - 0x11d8]
mov byte [ebp - 4], 0xf
call fcn.005a29d1
lea ecx, [ebp - 0x1214]
mov byte [ebp - 4], 0xe
call fcn.005a29d1
lea ecx, [ebp - 0x1250]
mov byte [ebp - 4], 0xd
call fcn.005a2849
lea ecx, [ebp - 0x128c]
mov byte [ebp - 4], 0xc
call fcn.005a2881
lea ecx, [ebp - 0x12e8]
mov byte [ebp - 4], 0
call fcn.00596914
mov ebx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.0040f790
mov ecx, ebx
call fcn.00411490
mov ecx, ebx
call fcn.0040dfb0
xor esi, esi
cmp eax, esi
jne 0x40d97d
push esi
push esi
mov ecx, ebx
call fcn.00410030
push esi
push esi
mov ecx, ebx
call fcn.00410d40
push esi
push esi
mov ecx, ebx
call fcn.00410db0
push esi
push esi
mov ecx, ebx
call fcn.00410420
mov ecx, ebx
call fcn.0040dfc0
cmp dword [ebx + 0x1c], esi
je 0x40d98d
push 1
mov ecx, ebx
call fcn.00416b90
jmp 0x40d9a0
mov ecx, ebx
call fcn.00412860
cmp eax, esi
jne 0x40d9a0
push esi
mov ecx, ebx
call fcn.004128b0
cmp dword [0x67a044], esi
je 0x40d9af
mov ecx, ebx
call fcn.00417120
cmp dword [ebp - 0x34], esi
je 0x40de9f
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x88]
lea edi, [ebx + 4]
push eax
push ecx
mov ecx, edi
call fcn.00409e30
cmp eax, esi
je 0x40dc15
cmp dword [ebp - 0x7c], esi
jne 0x40d9e9
mov ecx, edi
call fcn.00409910
jmp 0x40deab
xor eax, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], si
mov edi, dword [0x67a008]
mov byte [ebp - 4], 0x14
cmp edi, esi
jne 0x40da08
mov edi, 0x67a00c
mov edx, 0x64f030
test edx, edx
je 0x40db3c
cmp edi, esi
je 0x40db3c
mov ecx, 0x650108
test ecx, ecx
je 0x40db3c
push esi
push edx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], esi
mov word [ebp - 0x5c], si
call fcn.004028e0
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
mov word [ebp - 0x6c], si
call fcn.00401fc0
push 0x650108
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov word [ebp - 0x48], si
call fcn.00401fc0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x17
call fcn.00401070
mov eax, dword [ebp - 0x70]
cmp eax, esi
jne 0x40da86
lea eax, [ebp - 0x6c]
mov ebx, dword [ebp - 0x4c]
cmp ebx, esi
jne 0x40da90
lea ebx, [ebp - 0x48]
mov edi, dword [ebp - 0x58]
push eax
call fcn.0057e90a
mov edx, eax
push ebx
mov dword [ebp - 0x20], edx
call fcn.0057e90a
mov edx, dword [ebp - 0x20]
add edi, edx
lea ebx, [eax + edi + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005970d9
mov edx, eax
add esp, 0xc
cmp edx, esi
mov dword [ebp - 0x30], edx
je 0x40db12
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x4c]
cmp eax, esi
mov edx, eax
jne 0x40dae2
lea edx, [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
cmp ecx, esi
jne 0x40daec
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x60]
cmp eax, esi
jne 0x40daf6
lea eax, [ebp - 0x5c]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x30]
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call fcn.00401070
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x15
call fcn.00401070
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x14
call fcn.00401070
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
cmp eax, esi
jne 0x40db43
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40dc09
mov eax, dword [ebp - 0x30]
cmp eax, esi
jne 0x40db5d
lea eax, [ebp - 0x2c]
push esi
push eax
mov ecx, ebx
call fcn.0040c5d0
test al, al
je 0x40dc09
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xcc], 0x3c
cmp eax, esi
mov dword [ebp - 0xc8], 0x40
mov dword [ebp - 0xc0], 0x6500fc
je 0x40dbaa
mov dword [ebp - 0xbc], eax
jmp 0x40dbb3
lea edx, [ebp - 0x2c]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xac], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xb8], 0x6500d0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40dbff
mov ecx, dword [ebp - 0x94]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x90], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00401070
cmp dword [ebp - 0x7c], esi
je 0x40de9f
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push 0x650050
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40dc43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40dc7e
call fcn.00434b10
neg eax
sbb eax, eax
lea edx, [ebp - 0x20]
and eax, 0x100
push edx
add eax, 0x20019
push eax
push esi
push 0x650024
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40de9f
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x48], si
mov edi, dword [0x67a008]
mov byte [ebp - 4], 0x18
cmp edi, esi
jne 0x40dc9d
mov edi, 0x67a00c
mov ecx, 0x64f030
test ecx, ecx
je 0x40ddce
cmp edi, esi
je 0x40ddce
mov edx, 0x650108
test edx, edx
je 0x40ddce
push esi
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], esi
mov word [ebp - 0x5c], si
call fcn.004028e0
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x2c], si
call fcn.00401fc0
push 0x650108
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
mov word [ebp - 0x6c], si
call fcn.00401fc0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x1b
call fcn.00401070
mov eax, dword [ebp - 0x30]
cmp eax, esi
jne 0x40dd1b
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x70]
cmp ebx, esi
jne 0x40dd25
lea ebx, [ebp - 0x6c]
mov edi, dword [ebp - 0x58]
push eax
call fcn.0057e90a
mov edx, eax
push ebx
mov dword [ebp - 0x20], edx
call fcn.0057e90a
mov ecx, dword [ebp - 0x20]
add edi, ecx
lea ebx, [eax + edi + 3]
lea edi, [ebx + ebx]
push edi
call fcn.005970d9
mov edx, eax
add esp, 0xc
cmp edx, esi
mov dword [ebp - 0x4c], edx
je 0x40dda7
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x70]
cmp eax, esi
mov edx, eax
jne 0x40dd77
lea edx, [ebp - 0x6c]
mov ecx, dword [ebp - 0x30]
cmp ecx, esi
jne 0x40dd81
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x60]
cmp eax, esi
jne 0x40dd8b
lea eax, [ebp - 0x5c]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x4c]
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1a
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
call fcn.00401070
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x18
call fcn.00401070
mov eax, dword [ebp - 0x4c]
cmp eax, esi
jne 0x40ddd5
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40de93
mov eax, dword [ebp - 0x4c]
cmp eax, esi
jne 0x40ddef
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
push 1
push eax
call fcn.0040c5d0
test al, al
je 0x40de93
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x108], 0x3c
cmp eax, esi
mov dword [ebp - 0x104], 0x40
mov dword [ebp - 0xfc], 0x6500fc
je 0x40de3e
mov dword [ebp - 0xf8], eax
jmp 0x40de47
lea edx, [ebp - 0x48]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], 3
mov dword [ebp - 0xe8], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0xf4], 0x65000c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40de93
mov ecx, dword [ebp - 0xd0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00401070
cmp dword [ebp - 0x90], esi
je 0x40d7bd
mov edx, dword [0x67aab4]
mov eax, dword [0x67aa60]
push 0x50030
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b5f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret