joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409be0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov al, byte [ecx + 0x354]
push esi
test al, al
push edi
je 0x409d03
add ecx, 0x7e
push str.Winlogon
push ecx
call fcn.004014c0
add esp, 8
test eax, eax
jne 0x409d03
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x409d03
push 0x24
push str.Client32
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x409c69
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push eax
push esi
call ebx
cmp dword [ebp - 0x30], 4
jne 0x409cf6
push str.NSMWClass
lea ecx, [ebp - 0x18]
call section..text
push 0
push 0
push 0x496
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004011a0
lea ecx, [ebp - 0x34]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x409ce7
lea edx, [ebp - 0x34]
push edx
push esi
call ebx
mov eax, dword [ebp - 0x30]
xor edi, edi
cmp eax, 1
je 0x409ce4
cmp edi, 0x1e
jge 0x409ce4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x34]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x30]
inc edi
cmp eax, 1
jne 0x409cc4
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00401140
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x409d20
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28c]
push eax
push 0x20000012
call fcn.0040aab0
mov edx, dword [esi]
push 0
push 0
push 0
push 0xdf
push 4
mov ecx, esi
call dword [edx + 4]
push 0x1c
call fcn.0040e3e0
add esp, 4
test eax, eax
je 0x409d77
mov ecx, dword [esi + 0x28c]
mov dword [eax + 4], 0
mov dword [eax + 0x10], ecx
lea ecx, [esi + 0xac]
mov dword [eax], 0x419444
mov dword [eax + 0x18], ecx
jmp 0x409d79
xor eax, eax
push 0x68
push 0
mov ecx, eax
mov dword [esi + 0x2c4], eax
call fcn.0040caa0
test eax, eax
mov dword [0x420eec], eax
je 0x409ded
mov cl, byte [esi + 0xfc]
test cl, cl
jne 0x409dbf
push 0x1d
call fcn.004063d0
mov edx, dword [0x420eec]
add esp, 4
push eax
push 0x3f2
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x420eec]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x420eec]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x420eec]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
ret
Function at 0x409fa0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push esi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 8], eax
jne 0x409fc7
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea edi, [esi + 4]
push 0x20
push edi
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x40a04c
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40a010
mov edx, dword [esi]
push 0
push 0
push edi
push 0xc9
push 4
mov ecx, esi
call dword [edx + 4]
mov dword [ebp - 4], 1
jmp 0x40a045
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa4]
push str.Error_stopping_service__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0xa4]
mov ecx, esi
push 0
push 0
push eax
push 0xcf
push 1
call dword [edx + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a0b0
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push esi
push edi
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push str.DelUS.bat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a200
lea eax, [ebp - 0x15c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x260]
push 0x5c
push eax
call fcn.00401450
add esp, 8
lea ecx, [ebp - 0x260]
mov byte [eax], 0
lea edx, [ebp - 0x15c]
push str.DelUS.bat
push ecx
lea eax, [ebp - 0x15c]
push edx
push eax
lea ecx, [ebp - 0x648]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s__r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x648]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x648]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x58]
lea edx, [ebp - 0x10]
rep stosd dword es:[edi], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x58]
push edx
push eax
push 0x41c0d0
push 0
push 0x44
push 0
push 0
push 0
push str.DelUS.bat
push 0
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a200
mov ecx, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push ecx
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, dword [ebp - 0x10]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
push ecx
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a210
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
push 9
push esi
call fcn.0040bff0
add esp, 0xc
mov ecx, 0x50
xor eax, eax
lea edi, [ebp - 0x244]
push 0
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push str.Delete_package_files
push 0xcf
push 1
mov ecx, esi
call dword [eax + 4]
push 0x41d964
push ebx
lea ecx, [ebp - 0x104]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi]
add esp, 0x10
lea eax, [ebp - 0x104]
mov ecx, esi
push 0
push 0
push eax
push 0xcf
push 1
call dword [edx + 4]
lea ecx, [ebp - 0x244]
lea edx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a2c2
mov eax, dword [esi]
push 0
push 0
push str.No_files_found
push 0xcf
push 1
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test byte [ebp - 0x244], 0x10
jne 0x40a312
lea ecx, [ebp - 0x218]
lea edx, [ebp - 0x104]
push ecx
push ebx
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a312
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x104]
push eax
push ecx
push 0xa
push esi
call fcn.0040bff0
add esp, 0x10
lea edx, [ebp - 0x244]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a2c2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40a349
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0xb
push esi
call fcn.0040bff0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40aab0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push 0x104
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.PCIRISVR.ST
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
mov ecx, edx
push 2
push eax
and ecx, 3
push 1
lea eax, [ebp - 0x108]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ab46
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x108]
push eax
push ecx
push 0x10
push ebx
call fcn.0040bff0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 4]
push 0
push edx
lea eax, [ebp + 8]
push 4
push eax
push esi
mov dword [ebp - 4], 0
call edi
lea ecx, [ebp - 4]
push 0
push ecx
lea edx, [ebp + 0xc]
push 4
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ab90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418dd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x2f
push ecx
mov dword [ebp - 0x14], ecx
mov byte [ebx], 0
call fcn.0040bff0
mov edi, str.SYSTEMCurrentControlSetServicesClient32
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x520]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x520]
push ecx
push str.Open_key__s
push esi
call fcn.00406270
add esp, 0xc
lea edx, [ebp + 8]
lea eax, [ebp - 0x520]
push edx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ac55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx
push 0x30
push esi
call fcn.0040bff0
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40aca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryValueEx
push 0x30
push esi
call fcn.0040bff0
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ac3d
lea eax, [ebp - 0x120]
push eax
push str.Client_installed_at__s
push esi
call fcn.00406270
mov al, byte [ebp - 0x120]
add esp, 0xc
cmp al, 0x22
mov dword [ebp - 4], 0
lea edi, [ebp - 0x11f]
je 0x40acd5
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [ebp - 0x120]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004016b0
lea ecx, [ebp - 0x120]
push str.client32.exe
push ecx
call fcn.004118a0
add esp, 0xc
test eax, eax
je 0x40ac3d
mov edx, eax
lea ecx, [ebp - 0x120]
sub edx, ecx
push 0x20
push eax
mov byte [edx + ebx - 1], 0
call fcn.00401310
mov edx, dword [ebp + 0xc]
add esp, 8
test edx, edx
je 0x40ad5f
test eax, eax
je 0x40ad5f
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x14]
push edx
push str.Path___s
push ecx
call fcn.00406270
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ad8b
cmp byte [ecx + ebx - 1], 0x5c
jne 0x40ad8b
mov byte [ecx + ebx - 1], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40adb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
mov ebx, ecx
mov eax, str.TRUE
jne 0x40adcf
mov eax, str.FALSE
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push edi
push esi
push str.RIService::BackupFile___s_____s___bBackup____s__
push ebx
call fcn.00406270
mov al, byte [ebx + 0xfc]
add esp, 0x14
test al, al
je 0x40afa6
mov eax, dword [ebp + 0x10]
push edi
test eax, eax
push esi
je 0x40ae01
push 0x32
jmp 0x40ae03
push 0x33
push ebx
call fcn.0040bff0
add esp, 0x10
lea edi, [ebx + 0xfc]
push 0x5c
push edi
call fcn.00401450
add esp, 8
test eax, eax
jne 0x40ae38
push edi
push 0x34
push ebx
call fcn.0040bff0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc eax
push eax
push esi
lea eax, [ebp - 0x104]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x208]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
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 - 0x208]
push ecx
call fcn.00401450
add esp, 0x18
test eax, eax
jne 0x40aea8
lea edx, [ebp - 0x208]
push edx
push 0x34
push ebx
call fcn.0040bff0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [eax + 1]
mov edi, 0x41dafc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40af2f
lea ecx, [ebp - 0x104]
push ecx
push 0x32
push ebx
call fcn.0040bff0
add esp, 0xc
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x104]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40af89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x208]
lea eax, [ebp - 0x104]
push edx
push eax
push 0xe
push ebx
call fcn.0040bff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x104]
push edx
push 0x33
push ebx
call fcn.0040bff0
add esp, 0xc
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x208]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40af94
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x104]
push eax
lea edx, [ebp - 0x208]
push ecx
push edx
push 0xe
push ebx
call fcn.0040bff0
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x104]
push ecx
push 0x35
jmp 0x40af9d
lea eax, [ebp - 0x104]
push eax
push 0x36
push ebx
call fcn.0040bff0
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40afc0
Capabilities:
Copy file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push 0x3e
push esi
call fcn.0040bff0
mov cl, byte [esi + 0xfc]
lea eax, [esi + 0xfc]
add esp, 8
test cl, cl
jne 0x40affe
push 0x40
push esi
call fcn.0040bff0
add esp, 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x104]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [ebp - 0x104]
push 0x5c
push edx
call fcn.00401450
add esp, 8
test eax, eax
jne 0x40b041
lea eax, [ebp - 0x104]
push eax
push 0x34
push esi
call fcn.0040bff0
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
inc eax
push eax
push ecx
lea edx, [ebp - 0x208]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x104]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40b09f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x208]
lea eax, [ebp - 0x104]
push edx
push eax
push 0xe
push esi
call fcn.0040bff0
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x208]
lea edx, [ebp - 0x104]
push ecx
push edx
push 0x3f
push esi
call fcn.0040bff0
add esp, 0x10
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40b0d0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x820
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push 0x41
push ebx
call fcn.0040bff0
mov eax, dword [ebp + 8]
add esp, 8
cmp byte [eax], 0
jne 0x40b12c
push 0x42
push ebx
call fcn.0040bff0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, str.SYSTEMCurrentControlSetServicesClient32
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x82c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x82c]
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 - 0x14]
push ecx
push 3
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b19e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx
push 0x30
push ebx
call fcn.0040bff0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x42c]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
push 0
push str.ImagePath
push eax
mov dword [ebp - 0x18], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b1ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryValueEx
push 0x30
push ebx
call fcn.0040bff0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b189
lea edx, [ebp - 0x42c]
push str.client32.exe
push edx
mov dword [ebp - 4], 0
call fcn.004118a0
push 0x20
push eax
call fcn.00401310
mov edi, dword [ebp + 8]
lea edx, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 - 0x42c]
push ecx
push 0x43
push ebx
call fcn.0040bff0
lea edi, [ebp - 0x42c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebp - 0x42c]
push ecx
push edx
push 1
push eax
mov eax, dword [ebp - 0x14]
push str.ImagePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40b288
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegSetValueEx
push 0x30
push ebx
call fcn.0040bff0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebx]
push 0
push 0
push str.SetClientParams._Finished
push 0xcf
push 1
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [ebp + 8]
push eax
push 0x44
push ebx
call fcn.0040bff0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov al, byte [0x420de4]
push esi
test al, al
push edi
jne 0x40c04f
push 0x104
push 0x420de4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x2e
push 0x420de4
call fcn.00401450
add esp, 8
test eax, eax
je 0x40c180
lea edx, [eax + 1]
mov edi, 0x41d9a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov eax, 2
test ecx, ecx
je 0x40c060
mov eax, 4
push 0
push 0x80
push eax
push 0
push 1
push 0x40000000
push 0x420de4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x40c180
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c179
push ebx
push 0x100
call fcn.0040e3e0
mov esi, eax
push 0x100
mov dword [ebp - 0xc], esi
call fcn.0040e3e0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov ebx, eax
push 0x100
push esi
push ecx
call fcn.00401ec0
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 8]
push edx
call fcn.00411be7
lea eax, [ebp - 8]
push eax
call fcn.00411a87
push eax
call fcn.004119b1
add esp, 0xc
push eax
push str._.19s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp + 0x10]
mov edi, ebx
xor eax, eax
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
add ecx, ebx
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov edi, 0x41de48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040f9ad
push ebx
call fcn.0040f9ad
mov esi, dword [ebp - 4]
add esp, 8
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c220
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c261
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.deldir
push ecx
call esi
mov edx, dword [ebp - 4]
push str.deldll
push edx
call esi
pop esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret