joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f7a70
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [rcx + 0x20], 0
mov rbx, rcx
jne 0x1400f7adf
add rcx, 0x40
mov qword [rsp + 0x1e8], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x20], 0
jne 0x1400f7acd
mov ecx, 0x202
mov dword [rbx + 0x20], 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x1400f7acd
mov dword [rbx], 1
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140113910
add rsp, 0x1d0
pop rbx
ret
Function at 0x1400f9b30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov r8d, gethostbyname
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400f9b7e
mov ecx, 0x5a4d
mov rax, qword [rsp + 0x28]
cmp word [rax], cx
je 0x1400f9b5d
xor eax, eax
jmp 0x1400f9b7e
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
je 0x1400f9b6e
xor eax, eax
jmp 0x1400f9b7e
cmp word [rcx + rax + 0x14], 0
jne 0x1400f9b7a
xor eax, eax
jmp 0x1400f9b7e
jmp 0x1400f9b7e
add rsp, 0x58
ret

Function at 0x1400f9bd0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, gethostbyname
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1400f9bfe
xor al, al
jmp 0x1400f9c3c
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1400f9c0f
xor al, al
jmp 0x1400f9c3c
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1400f9c36
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1400f9c36
mov al, 1
jmp 0x1400f9c3c
xor al, al
jmp 0x1400f9c3c
add rsp, 0x50
pop rbx
ret
Function at 0x1400fa050
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140312860], eax
je 0x1400fa077
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbx
ret
mov eax, dword [0x140312878]
test eax, eax
jne 0x1400fa1db
test rsi, rsi
je 0x1400fa0a1
cmp qword [rsi], 0
jne 0x1400fa0ad
mov dword [0x140312878], 6
mov qword [0x140312880], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbx
ret
mov qword [rsp + 0x40], rbp
mov ecx, gethostbyname
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r14
call fcn.1400dba80
mov rdi, rax
test rax, rax
jne 0x1400fa0d6
lea ebx, [rax + 8]
jmp 0x1400fa1ab
mov rbp, qword [rsi]
test rbx, rbx
je 0x1400fa129
movzx eax, byte [rbx]
cmp al, 0xff
jne 0x1400fa109
cmp byte [rbx + 1], 0x25
jne 0x1400fa109
movsxd r14, dword [rbx + 2]
lea rdx, [rbx + 6]
add rdx, r14
mov rcx, rbx
call fcn.1400f9bd0
test al, al
je 0x1400fa129
mov rbx, qword [r14 + rbx + 6]
jmp 0x1400fa129
cmp al, 0xeb
jne 0x1400fa129
movsx rax, byte [rbx + 1]
add rbx, 2
add rbx, rax
cmp byte [rbx], 0xe9
jne 0x1400fa129
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
movzx ecx, byte [rbp + 0x1f]
mov r14, qword [rbp + 0x20]
sub r14, rcx
lea eax, [rcx - 1]
cmp eax, 0x1e
ja 0x1400fa19d
cmp qword [rbp + 0x28], rbx
jne 0x1400fa19d
mov edx, ecx
mov dword [rsp + 0x50], 0
mov rcx, r14
lea r9, [rsp + 0x50]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400fa16e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400fa1ab
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x18], r14
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x140312890]
mov qword [rdi], rax
xor eax, eax
mov qword [0x140312890], rdi
jmp 0x1400fa1cc
cmp dword [0x140312864], 0
mov ebx, 9
jne 0x1400fa1b1
mov dword [0x140312878], ebx
test rdi, rdi
je 0x1400fa1c3
mov edx, gethostbyname
mov rcx, rdi
call fcn.1401139ac
mov qword [0x140312880], rsi
mov eax, ebx
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x1400fa1f0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140312860], eax
je 0x1400fa20c
mov eax, 0x10dd
add rsp, 0x28
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x140312890]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x20], rdi
test rbx, rbx
je 0x1400fa2a8
nop dword [rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x30]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x1f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [rbx + 8], esi
jne 0x1400fa290
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1400fa290
mov rcx, rdx
and rcx, 0xffffffffffff0000
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x20], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, gethostbyname
mov rcx, rbx
call fcn.1401139ac
mov rbx, rdi
test rdi, rdi
jne 0x1400fa230
mov rbx, qword [0x140312868]
mov qword [0x140312890], rsi
test rbx, rbx
je 0x1400fa2e2
nop dword [rax + rax]
lea r9, [rsp + 0x38]
mov edx, 0x10000
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400fa2c0
mov rdi, qword [0x140312888]
test rdi, rdi
je 0x1400fa312
nop
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.1401139ac
mov rdi, rbx
test rbx, rbx
jne 0x1400fa2f0
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x140312888], rsi
mov dword [0x140312860], esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x28
ret

Function at 0x1400fa340
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x140312860], 0
je 0x1400fa357
mov eax, 0x10dd
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x140312860], ecx
jne 0x1400fa34d
xor eax, eax
mov qword [rsp + 0x20], rbx
mov rbx, qword [0x140312868]
mov dword [0x140312864], eax
mov qword [0x140312890], rax
mov qword [0x140312888], rax
mov dword [0x140312878], eax
mov qword [0x140312880], rax
test rbx, rbx
je 0x1400fa3c2
nop
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400fa3a0
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400fa7b0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x140312878]
mov rdi, rcx
test eax, eax
jne 0x1400fa853
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x1400fa7da
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rbx
call fcn.1400dba80
mov rbx, rax
test rax, rax
jne 0x1400fa7f6
lea edi, [rax + 8]
jmp 0x1400fa819
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1400fa837
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1401139ac
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x140312878], edi
mov qword [0x140312880], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x140312888]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x140312888], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400faaf0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rdi, rcx
lea rdx, [rsp + 0x250]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140141ad0
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call fcn.140141ad0
lea rdx, [rsp + 0x30]
mov rcx, rdi
sub rdx, rdi
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400fab60
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.1401424ec
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x30]
test rax, rax
je 0x1400fac23
mov byte [rax], 0
lea rax, [rsp + 0x140]
dec rax
nop
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400faba0
xor edx, edx
nop dword [rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400fabb0
lea rcx, [rsp + 0x140]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400fabd0
movzx eax, word [0x1402869a8]
xor edx, edx
mov word [rcx], ax
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x20]
call fcn.1400f8070
mov rbx, qword [rsp + 0x20]
cmp byte [rbx], 0
je 0x1400fac23
mov edx, 0x5c
mov rcx, rbx
call fcn.1401424ec
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x1400fab90
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x250]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x388]
add rsp, 0x370
pop rdi
ret
Function at 0x1400facd0
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x380], rax
xor ebx, ebx
lea rdx, [rsp + 0x160]
sub rdx, rcx
mov rdi, rcx
mov rax, rcx
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1400fad02
mov edx, 0x5c
lea rcx, [rsp + 0x160]
call fcn.1401421b8
test rax, rax
je 0x1400fad29
mov byte [rax], bl
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400fadb5
mov qword [rsp + 0x3a8], rsi
mov esi, 1
nop
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x20]
test eax, eax
cmovne ebx, esi
xor edx, edx
call fcn.140141ad0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400fad70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x3a8]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x390
pop rdi
ret

Function at 0x1400fadf0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x298
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x280], rax
cmp byte [rcx], 0
mov edi, edx
mov rbx, rcx
je 0x1400faf11
mov qword [rsp + 0x290], r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 0x104
lea rcx, [rsp + 0x170]
mov rdx, rbx
call fcn.1400f7fd0
mov edx, 0x5c
lea rcx, [rsp + 0x170]
call fcn.1401421b8
mov r14, rax
test rax, rax
je 0x1400faf09
test edi, edi
jne 0x1400faef7
mov qword [rsp + 0x2b8], rbp
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x2c0], rsi
lea rcx, [rsp + 0x170]
xor esi, esi
mov dword [rax + 1], 0x2a2e2a
mov ebp, esi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x1400faedc
mov ebx, dword [rsp + 0x30]
lea rcx, [rsp + 0x30]
shr ebx, 4
xor edx, edx
mov r8d, pe_nt_image_headers64
not ebx
call fcn.140141ad0
lea eax, [rbp + 1]
and ebx, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmove eax, ebp
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400fae95
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
mov rbp, qword [rsp + 0x2b8]
setne sil
xor esi, 1
mov rsi, qword [rsp + 0x2c0]
je 0x1400faf09
lea rcx, [rsp + 0x170]
mov byte [r14], 0
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140113910
add rsp, 0x298
pop rdi
pop rbx
ret
Function at 0x1400fb030
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.140141ad0
lea rdx, [rsp + 0x40]
mov byte [rbx], 0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor eax, eax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rax
or r9d, 0xffffffff
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], edi
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x1400fbcb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [0x140285c9d]
mov rbx, rcx
call fcn.1400f82d0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400fbd94
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.140141ad0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProductID
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400fbd89
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400f82d0
lea r8, [0x140285c9d]
mov rcx, rbx
lea rdx, [0x14020d4bc]
call fcn.1400f92d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140113910
add rsp, 0x160
pop rbx
ret
Function at 0x1400fc1f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x20a0
call fcn.140114010
sub rsp, rax
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x2080], rax
mov esi, edx
mov rbx, rcx
test rcx, rcx
jne 0x1400fc22f
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400fc24c
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov byte [rsp + 0x30], 0
jmp 0x1400fc260
mov r8d, 0x50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rsp + 0x20d0]
mov rax, rcx
shr rax, 0x10
test ax, ax
jne 0x1400fc2a2
movzx edx, cx
lea r8, [rsp + 0x80]
mov rcx, qword [0x140312348]
mov r9d, 0x2000
call qword [sym.imp.USER32.dll_LoadStringA]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20d0], rax
mov edx, 0x4000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400fc327
mov qword [rsp + 0x2098], rbp
lea rbp, [rsp + 0x20d8]
call fcn.1400131a0
mov r9, qword [rsp + 0x20d0]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
or rcx, 1
call fcn.14014ec44
bts esi, 0x10
lea r8, [rsp + 0x30]
mov r9d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x2098]
mov eax, ebx
jmp 0x1400fc32a
or eax, 0xffffffff
mov rcx, qword [rsp + 0x2080]
xor rcx, rsp
call fcn.140113910
add rsp, 0x20a0
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400fc350
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [rsp + 0x20], 9
sete al
add rsp, 0x58
ret

Function at 0x1400fc770
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400fc818
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r9d, 1
mov dword [rsp + 0x20], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140113910
add rsp, 0x58
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140113910
add rsp, 0x58
ret
Function at 0x1400fc830
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400fc998
cmp byte [rdx], 0
je 0x1400fc998
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test ebx, ebx
je 0x1400fc8a8
test eax, eax
je 0x1400fc8b0
lea rax, [rsp + 0x48]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400fc973
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x1a0], rbp
lea r8, [rsp + 0x60]
xor ebp, ebp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400fc954
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.1400fc830
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400fc98e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1400fc900
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbp, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140113910
add rsp, 0x170
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400fc96b
mov eax, gethostbyname
jmp 0x1400fc973
Function at 0x1400fc9a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rsi, r8
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
test rdx, rdx
je 0x1400fcb83
test r8, r8
je 0x1400fcb83
mov rax, qword [0x14030b570]
mov qword [rbp - 0x18], rax
mov r8, rdx
lea rdx, str.SystemCurrentControlSetServices_sParameters
lea rcx, [rbp - 0x18]
call fcn.1400f88e0
mov rdi, qword [rbp + 0x60]
test r14, r14
je 0x1400fcaba
cmp byte [r14], r15b
je 0x1400fcaba
mov eax, dword [rbp + 0x58]
mov dword [rbp + 0x38], eax
mov r8, qword [rbp - 0x18]
test r8, r8
je 0x1400fcb6e
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x20], r15
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x20]
mov rdx, 0xffffffff80000002
mov rcx, r14
call fcn.1400fcd10
mov r14d, eax
test eax, eax
jne 0x1400fca8b
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r14d, eax
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400fca9a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14d, r14d
jne 0x1400fcb6e
mov rcx, rdi
test rcx, rcx
je 0x1400fcab0
mov eax, dword [rbp + 0x38]
mov dword [rcx], eax
mov ebx, 1
jmp 0x1400fcb76
mov qword [rbp - 0x20], r15
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x18]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400fcb5b
mov rax, qword [rbp + 0x58]
mov dword [rbp + 0x38], eax
test eax, eax
jne 0x1400fcb18
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400fcb5b
jmp 0x1400fcb47
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x1400fcb5b
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400fcb58
mov ebx, 1
test rdi, rdi
je 0x1400fcb5b
mov eax, dword [rbp + 0x38]
mov dword [rdi], eax
jmp 0x1400fcb5b
mov ebx, r15d
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400fcb6a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400fcb76
test rdi, rdi
je 0x1400fcb76
mov dword [rdi], r15d
lea rcx, [rbp - 0x18]
call fcn.1400f81a0
mov eax, ebx
jmp 0x1400fcb85
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fcba0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov r14d, r9d
mov rbp, r8
mov rdi, rcx
xor ebx, ebx
test rdx, rdx
je 0x1400fccf0
test r8, r8
je 0x1400fccf0
mov rax, qword [0x14030b570]
mov qword [r11 - 0x38], rax
mov r8, rdx
lea rdx, str.SystemCurrentControlSetServices_sParameters
lea rcx, [r11 - 0x38]
call fcn.1400f88e0
test rdi, rdi
je 0x1400fcc4b
cmp byte [rdi], bl
je 0x1400fcc4b
mov esi, 1
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], r14d
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9, rbp
mov r8, qword [rsp + 0x50]
mov rdx, 0xffffffff80000002
mov rcx, rdi
call fcn.1400fd010
test eax, eax
jne 0x1400fcce2
mov ebx, esi
jmp 0x1400fcce2
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x98], ebx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400fccd1
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 1
test eax, eax
cmove ebx, esi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400fcce2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x50]
call fcn.1400f81a0
mov eax, ebx
jmp 0x1400fccf2
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret