joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007fb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007feb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008010
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002e0c0], 0
jne 0x140008028
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007fde
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d392]
mov qword [rsp + 0x20], 0
lea rdi, [0x14002e0e0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400080f4
test al, 0x10
je 0x140007ff4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007ff4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x1400080a0
jmp 0x140007ff4

Function at 0x14000eef0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.1400152d0
sub rsp, rax
mov eax, dword [0x1400320e0]
mov rsi, rcx
test eax, eax
je 0x14000ef90
xor ebx, ebx
lea rdi, [0x1400300e0]
test eax, eax
jg 0x14000ef2c
jmp 0x14000ef40
add rbx, 1
cmp dword [0x1400320e0], ebx
jle 0x14000ef40
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000ef20
jmp 0x14000ef77
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000ef55
cmp word [rsi + 2], 0x3a
je 0x14000ef77
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000efe0
movsxd rbx, dword [0x1400320e0]
cmp ebx, 0x3ff
jle 0x14000eff8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007870
test al, al
je 0x14000f01a
movsxd rbx, dword [0x1400320e0]
mov rcx, rdi
lea rdi, [0x1400300e0]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x1400320e0]
add eax, 1
mov dword [0x1400320e0], eax
jmp 0x14000ef11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000ef64
xor eax, eax
jmp 0x14000ef7c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x1400320e0], 1
mov rdx, rax
lea rax, [0x1400300e0]
mov qword [rax + rbx*8], rdx
jmp 0x14000ef77
mov rcx, rbx
call fcn.140007ef0
nop
nop word cs:[rax + rax]
nop
Function at 0x140013fb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001af00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001af00
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140014c82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140032208]
test eax, eax
je 0x140014d1a
lea rax, [0x1400321e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140032210]
mov qword [rbp - 8], rax
jmp 0x140014cfe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140014cf2
cmp qword [rbp - 0x10], 0
je 0x140014cf2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014cb8
lea rax, [0x1400321e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014d1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140014e20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140014e48
mov eax, 0
jmp 0x140014e96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140014e71
mov eax, 0
jmp 0x140014e96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140014e91
mov eax, 0
jmp 0x140014e96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140014e9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140014f1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140014f11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140014f11
mov rax, qword [rbp - 8]
jmp 0x140014f2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140014ee4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400038f8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, rdx
mov rdi, rcx
call fcn.14009abf8
xor r14d, r14d
test eax, eax
je 0x14000393b
cmp qword [rdi - 0x10], r14
jbe 0x140003933
lea rbx, [rdi + 0x18]
add rbx, qword [rdi - 0x18]
jmp 0x140003936
mov rbx, r14
mov rbx, qword [rbx]
jmp 0x14000393e
mov rbx, r14
test rdi, rdi
jne 0x140003948
mov rax, r14
jmp 0x140003955
mov edx, 0xfffc
mov rcx, rdi
call fcn.1401d6600
test rbx, rbx
je 0x1400039e9
cmp dword [rbx + 0x50], r14d
je 0x1400039e9
lea r8, [0x140259bec]
mov rdx, rax
mov rcx, rdi
call fcn.1400a2ebc
lea rsi, [0x1402ed800]
mov ecx, 0x8000
mov rdx, rsi
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x38], r14
mov r8, rsi
mov qword [rsp + 0x30], r14
mov r9d, eax
lea r14, [0x1402eb800]
mov dword [rsp + 0x28], 0x1000
xor edx, edx
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, ebx
lea r8, [0x140259bf0]
add rax, rdi
mov ebx, 0x10000
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r9, r14
mov rcx, rsi
call fcn.140001138
jmp 0x140003a09
mov ebx, 0x10000
lea rsi, [0x1402ed800]
mov edx, ebx
lea r8, [0x14025935c]
mov rcx, rsi
mov r9, rdi
call fcn.140001138
mov rdx, rbx
mov rcx, rsi
call fcn.1401d6600
cmp byte [rbp], 0x2e
mov rdx, rax
mov rcx, rsi
jne 0x140003a2e
lea r8, [0x140259bf8]
call fcn.1400a2ebc
jmp 0x140003a3c
lea r8, [0x140259bec]
call fcn.1400a2ebc
inc eax
movsxd rcx, eax
lea r8, [0x14025935c]
sub rbx, rcx
mov r9, rbp
mov rdx, rbx
add rcx, rsi
call fcn.140001138
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400085b8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x38], 0
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400085df
and qword [rdx], 0
mov r8, qword [rcx + 0x38]
lea r12, [0x1402e9800]
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140259e1c]
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.1401d3e00
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400087ae
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.1401d476c
mov r9, qword [rbp + 0x38]
lea rcx, [0x1402ec800]
mov r8d, reloc.WS2_32.dll_recv
lea r15d, [r8 - 0xf]
mov edx, r15d
call fcn.1401d6bcc
mov rax, qword [0x1402ec800]
cmp rax, qword [0x1402e1a50]
jne 0x1400087a5
mov rax, qword [0x1402ec808]
cmp rax, qword [0x1402e1a58]
jne 0x1400087a5
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 0x15]
mov r8d, r15d
call fcn.1401d476c
mov r9, qword [rbp + 0x38]
lea r8d, [r15 + 3]
mov edx, r15d
lea rcx, [rbp + 0x30]
call fcn.1401d6bcc
cmp rax, 4
jne 0x1400087a5
mov ecx, dword [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 5]
sub edx, eax
mov dword [rbp + 0x30], eax
mov r8d, r15d
call fcn.1401d476c
movsxd rdx, dword [rbp + 0x30]
mov eax, 0xffffffff
mov rcx, rdx
cmp rdx, rax
jae 0x1400086f5
cmp rax, rdx
je 0x1400086f5
mov eax, 0xffffffe7
cmp rdx, rax
jae 0x1400086f5
add rcx, 0x18
call fcn.1401d6c94
mov edx, dword [rbp + 0x30]
jmp 0x1400086f7
xor eax, eax
movsxd rdx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call fcn.14009a9c8
mov rdi, rax
test rbx, rbx
je 0x140008713
mov qword [rbx], rax
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov r9, qword [rbp + 0x38]
mov rcx, rdi
call fcn.1401d6bcc
movsxd rcx, dword [rbp + 0x30]
cmp rax, rcx
jne 0x1400087a5
test rbx, rbx
jne 0x1400087a5
mov rcx, qword [rsi + 0x38]
lea rdx, str..msh
and qword [rbp + 0x40], rbx
call fcn.1400038f8
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x1000
mov r8, rax
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x14025b7b0]
mov rdx, r12
lea rcx, [rbp + 0x40]
call fcn.1401d3e00
mov r9, qword [rbp + 0x40]
test r9, r9
je 0x14000879d
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov rcx, rdi
call fcn.1401d55a4
mov rcx, qword [rbp + 0x40]
call fcn.1401d43b0
mov rcx, rdi
call fcn.14009aab0
mov rcx, qword [rbp + 0x38]
call fcn.1401d43b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008964
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1402e0ed0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor r9d, r9d
mov ecx, 0xe00
xor r8d, r8d
xor edx, edx
call fcn.14009acac
xor edx, edx
lea rcx, str.Shcore.dll
mov r8d, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x1400089e3
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x1400089e3
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x78], 0
mov ecx, 0x18
mov dword [rbx + 0xb9c], 4
call fcn.14009b100
mov rcx, rax
mov qword [rbx], rax
call fcn.1400a40fc
or edi, 0x118
mov qword [rbx + 0x30], rax
xor edx, edx
mov dword [rbx + 0x298], edi
mov r8d, 0x800
lea rcx, str.Ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x140008a4f
lea rdx, str.GetHostNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008a96
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
lea rcx, [rbx + 0x29c]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
test rdi, rdi
je 0x140008a6f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx edx, byte [rsp + 0x41]
mov ecx, edx
sub ecx, 0x80
je 0x140008ae7
cmp ecx, 0x7f
je 0x140008ade
mov dword [rbx + 0xbac], edx
jmp 0x140008af1
mov edx, 0x104
lea rcx, [rsp + 0x50]
call rax
test eax, eax
jne 0x140008a61
and qword [rsp + 0x38], 0
lea rax, [rbx + 0x29c]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 0xff
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140008a61
and dword [rbx + 0xbac], 0
jmp 0x140008af1
mov dword [rbx + 0xbac], 3
mov rax, qword [rbx]
mov edx, reloc.WS2_32.dll_recv
test rax, rax
lea rcx, [rax + 0x9a8]
mov rax, rbx
cmove rcx, rdx
mov qword [rcx], rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401cce50
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14000f03c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x1402e84d8], 0
mov rbp, r9
mov ebx, edx
mov rdi, rcx
je 0x14000f0b9
cmp edx, 2
jl 0x14000f0a3
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x14000f0a3
and qword [rsp + 0x28], 0
lea r8, [0x14000def0]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000f0a3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402e84d8]
mov r8d, ebx
mov rdx, rdi
call fcn.1400a5d08
mov eax, ebx
jmp 0x14000f0de
xor esi, esi
jmp 0x14000f0cc
add esi, eax
mov edx, ebx
sub edx, esi
movsxd rcx, esi
add rcx, rdi
mov r9, rbp
lea r8, [0x140001a2c]
call fcn.14000e744
test eax, eax
jne 0x14000f0bd
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f37c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x7580
call fcn.1401cd3c0
sub rsp, rax
mov rax, qword [0x1402e0ed0]
xor rax, rsp
mov qword [rsp + 0x7570], rax
mov rsi, qword [rcx]
xor r15d, r15d
mov rbp, qword [rcx + 8]
mov edi, r15d
mov ebx, r15d
mov dword [rsp + 0x30], r15d
jmp 0x14000f43e
mov rcx, qword [0x1402e1a70]
lea rdx, [rsp + 0x40]
mov r8d, 0x7530
movsxd rax, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r15
add rdx, rax
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000f44d
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000f44d
cmp dword [0x1402e1a64], r15d
jne 0x14000f44d
add ebx, eax
mov r14d, ebx
jmp 0x14000f40f
add edi, eax
mov edx, ebx
movsxd rax, edi
lea rcx, [rsp + 0x40]
sub edx, edi
add rcx, rax
mov r9, rbp
mov r8, rsi
call fcn.14000e744
test eax, eax
jne 0x14000f40d
cmp edi, ebx
mov eax, r15d
cmove ebx, r15d
cmp edi, r14d
cmovne eax, edi
mov edi, eax
cmp dword [0x1402e1a64], r15d
je 0x14000f3c6
jmp 0x14000f457
mov dword [0x1402e1a64], 1
xor eax, eax
mov rcx, qword [rsp + 0x7570]
xor rcx, rsp
call fcn.1401cce50
lea r11, [rsp + 0x7580]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140010038
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x140010093
cmp dword [0x1402e7f74], 1
jne 0x140010062
cmp dword [0x1402e1a64], 0
jne 0x140010062
xor eax, eax
jmp 0x140010115
mov eax, dword [rsp + 0x60]
lea r9, [0x140001a2c]
and dword [0x1402e7f70], 0
mov dword [0x1402e1a68], eax
mov dword [reloc.WS2_32.dll_accept], 5
mov qword [rsp + 0x60], rdi
add rsp, 0x30
pop rdi
jmp fcn.14000fe30
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.14009acac
cmp dword [0x1402e7f74], 1
lea rcx, [0x140001a2c]
mov dword [0x1402e7fa4], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x1400100e1
cmp dword [0x1402e1a64], 0
jne 0x1400100e1
mov rcx, rax
call fcn.1401d5838
jmp 0x14001005b
and qword [rsp + 0x28], 0
lea r8, [fcn.14000fc2c]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x1402e7fb8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x14001011c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1402e84d8]
mov dword [0x1402e1a64], 1
test rbx, rbx
je 0x14001015b
mov rcx, rbx
call fcn.14009abf8
test eax, eax
je 0x140010153
mov rcx, qword [rbx + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
and qword [0x1402e84d8], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140010304
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r15
mov r10d, dword [0x1402e7fc8]
mov ebp, edx
mov r11d, dword [0x1402e7fb0]
mov eax, r10d
cdq
xor r13d, r13d
idiv r11d
mov r15, r8
mov r12d, ecx
mov r9d, r13d
mov ebx, edx
test edx, edx
je 0x14001034f
mov r8d, r11d
sub r8d, edx
add r8d, r10d
jmp 0x140010352
mov r8d, r10d
sub r8d, ebp
sub r8d, dword [0x1402e7f8c]
test ebx, ebx
je 0x14001036a
mov eax, r11d
sub eax, ebx
add eax, r10d
jmp 0x14001036d
mov eax, r10d
sub eax, ebp
cmp r8d, eax
jge 0x1400103fb
mov eax, dword [0x1402e7f78]
cdq
idiv r11d
test edx, edx
je 0x140010393
mov eax, r11d
sub eax, edx
add eax, dword [0x1402e7f78]
jmp 0x140010399
mov eax, dword [0x1402e7f78]
imul eax, r8d
mov rdi, r13
add eax, r12d
imul eax, dword [0x1402e7fd8]
movsxd rdx, eax
mov eax, dword [0x1402e7fd8]
add rdx, r15
imul eax, r11d
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
lea rcx, [rcx*4 + 3]
shr rcx, 2
cmp rdx, rax
cmova rcx, r13
test rcx, rcx
je 0x1400103f3
imul r9d, r9d, 0x1000193
inc rdi
xor r9d, dword [rdx]
lea rdx, [rdx + 4]
cmp rdi, rcx
jb 0x1400103dd
inc r8d
jmp 0x14001035c
mov rbx, qword [rsp + 0x18]
mov eax, r9d
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
pop r15
pop r13
ret
Function at 0x140011a84
Capabilities:
Create thread
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1402e0ed0]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
jne 0x140011abb
xor eax, eax
jmp 0x140011c45
cmp ebx, 6
jne 0x140011adc
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea ecx, [rbx - 2]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x140011c45
cmp ebx, 7
jne 0x140011ae6
lea ecx, [rbx - 6]
jmp 0x140011acc
cmp ebx, 8
jne 0x140011af6
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140011ad2
cmp ebx, 9
jne 0x140011b2c
mov qword [rsp + 0x28], rsi
lea r8, [0x14000def0]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140011ad2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011ad2
cmp ebx, 5
jg 0x140011ab4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x20]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011ab4
lea r8, [rbp - 0x14]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rbp - 0x18], 1
mov dword [rbp - 0xc], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140011ba8
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011ab4
sub ebx, 1
je 0x140011bf7
sub ebx, 1
je 0x140011bdf
sub ebx, 1
je 0x140011bd5
sub ebx, 1
je 0x140011bce
cmp ebx, 1
jne 0x140011c39
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140011c10
mov ecx, 1
jmp 0x140011bc3
mov dword [rsp + 0x20], 1
jmp 0x140011be3
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x1e]
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x140011c10
mov edx, 0x80000000
test r14d, r14d
je 0x140011c08
mov ecx, 4
jmp 0x140011c0a
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140011c39
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0xc], esi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, 1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401cce50
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140011c68
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rdx
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareOpen_SourceMeshAgent2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ecx, ecx
test eax, eax
jne 0x140011cd2
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140011c98
mov rcx, qword [rsp + 0x40]
lea rdx, str.KeyStore
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x14005d8d8
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1402e0ed0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rax, rdx
lea r9, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x14005da8b
cmp byte [rsp + 0x50], 0
je 0x14005da8b
mov rcx, rbx
call fcn.14001e3fc
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001df1c
mov esi, 0xfffffffe
lea r8, str.name
mov edx, esi
mov rcx, rbx
call fcn.14001b4b0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea r9, [rsp + 0x40]
mov edi, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x14005d9ea
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
test rcx, rcx
jns 0x14005d99e
addsd xmm1, qword [0x1402c0538]
mov rcx, rbx
call fcn.14001dd4c
lea r8, str.size
mov edx, esi
mov rcx, rbx
call fcn.14001b4b0
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x14005d9d1
addsd xmm1, qword [0x1402c0538]
mov rcx, rbx
call fcn.14001dd4c
lea r8, str.free
mov edx, esi
mov rcx, rbx
call fcn.14001b4b0
sub edi, 2
je 0x14005da33
sub edi, 1
je 0x14005da2a
sub edi, 1
je 0x14005da21
sub edi, 1
je 0x14005da18
mov rcx, rbx
cmp edi, 1
je 0x14005da0f
lea rdx, str.UNKNOWN
jmp 0x14005da3d
lea rdx, str.RAMDISK
jmp 0x14005da3d
lea rdx, str.CDROM
jmp 0x14005da3a
lea rdx, str.REMOTE
jmp 0x14005da3a
lea rdx, str.FIXED
jmp 0x14005da3a
lea rdx, str.REMOVABLE
mov rcx, rbx
call fcn.14001df1c
lea r8, [0x1402592e8]
mov edx, esi
mov rcx, rbx
call fcn.14001b4b0
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14005d8a8]
mov rcx, rbx
call fcn.14001e6b4
lea r8, str.toString
mov edx, esi
mov rcx, rbx
call fcn.14001b4b0
mov eax, 1
jmp 0x14005da8d
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401cce50
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret