joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140093e70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str._V_t_]
mov rdi, rax
test rax, rax
jne 0x140093eb2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140093ef9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140093f52
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140093f10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140093f93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400a735a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400a735b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140093f60
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400952a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400952ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400952ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400952ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400952ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400952ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400952ec
xor al, al
add rsp, 0x28
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
movabs dword [0x2a7397cf9246ec36], eax
pop rsi
ret 0xac27
Function at 0x140003518
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
mov rbp, rdx
mov rsi, rcx
call fcn.14008e898
test eax, eax
je 0x14000355a
cmp qword [rsi - 0x10], 0
jbe 0x140003553
lea rbx, [rsi + 0x18]
add rbx, qword [rsi - 0x18]
jmp 0x140003555
xor ebx, ebx
mov rbx, qword [rbx]
jmp 0x14000355c
xor ebx, ebx
test rsi, rsi
jne 0x140003565
xor eax, eax
jmp 0x140003572
mov edx, 0xfffc
mov rcx, rsi
call fcn.1401ccb7c
test rbx, rbx
je 0x140003608
cmp dword [rbx + 0x50], 0
je 0x140003608
lea r8, [0x140253e34]
mov rdx, rax
mov rcx, rsi
call fcn.1400964fc
lea rdi, [0x1402c8c20]
mov ecx, 0x8000
mov rdx, rdi
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
and qword [rsp + 0x38], 0
lea r15, [0x1402c6c20]
and qword [rsp + 0x30], 0
mov r9d, eax
mov dword [rsp + 0x28], 0x1000
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], r15
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, ebx
lea r8, [0x140253e38]
add rax, rsi
mov ebx, 0x10000
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r9, r15
mov rcx, rdi
call fcn.140001148
jmp 0x140003628
mov ebx, 0x10000
lea rdi, [0x1402c8c20]
mov edx, ebx
lea r8, [0x14025367c]
mov rcx, rdi
mov r9, rsi
call fcn.140001148
mov rdx, rbx
mov rcx, rdi
call fcn.1401ccb7c
cmp byte [rbp], 0x2e
mov rdx, rax
mov rcx, rdi
jne 0x140003656
lea r8, [0x140253e40]
call fcn.1400964fc
movsxd r8, eax
mov rdx, rbx
sub rdx, r8
jmp 0x14000366f
lea r8, [0x140253e34]
call fcn.1400964fc
mov rdx, rbx
lea r8d, [rax + 1]
movsxd rax, r8d
sub rdx, rax
movsxd rcx, r8d
mov r9, rbp
add rcx, rdi
lea r8, [0x14025367c]
call fcn.140001148
test r14d, r14d
je 0x1400036ea
mov rdx, rbx
mov rcx, rdi
call fcn.1401ccb7c
lea rcx, [0x140253e44]
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x20], rcx
lea r8, [0x140253e34]
mov rcx, rdi
mov r9d, 1
mov rdx, rax
call fcn.140096554
mov rsi, rax
test rax, rax
je 0x1400036d4
mov rdx, rbx
mov rcx, rax
call fcn.1401ccb7c
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.1401cc994
mov rcx, rsi
call fcn.1401ccb68
mov rbx, qword [rsp + 0x60]
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140007ff8
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor r9d, r9d
mov ecx, 0xbe0
xor r8d, r8d
xor edx, edx
call fcn.14008e944
xor edx, edx
lea rcx, str.Shcore.dll
mov r8d, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x140008074
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
test rax, rax
jne 0x140008074
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x70], 0
mov ecx, 0x18
mov dword [rbx + 0x994], 4
call fcn.14008ed94
mov rcx, rax
mov qword [rbx], rax
call fcn.1400974d8
or edi, 0x118
mov qword [rbx + 0x30], rax
xor edx, edx
mov dword [rbx + 0x90], edi
mov r8d, 0x800
lea rcx, str.Ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x1400080de
lea rdx, str.GetHostNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008113
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbx + 0x94]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx ecx, byte [rsp + 0x41]
mov edx, ecx
sub edx, 0x80
je 0x140008164
cmp edx, 0x7f
jne 0x140008169
xor ecx, ecx
jmp 0x140008169
mov edx, 0x104
lea rcx, [rsp + 0x50]
call rax
test eax, eax
jne 0x140008159
and qword [rsp + 0x38], 0
lea rax, [rbx + 0x94]
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]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400080f0
mov ecx, 3
mov dword [rbx + 0x9a4], ecx
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rbx]
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.1401c0ed0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14000cad0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, qword [0x1402c3608]
xorps xmm0, xmm0
xor eax, eax
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f8a
mov dword [0x1402e8dbc], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f03
mov dword [0x1402e8da4], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f89
mov dword [0x1402e8dac], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f8b
mov dword [0x1402e8e30], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f01
mov dword [0x1402e8d98], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f88
mov dword [0x1402e8db0], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f86
mov dword [0x1402e8db8], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f83
mov dword [0x1402e8dc0], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f85
mov dword [0x1402e8da8], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f82
mov dword [0x1402e8da0], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f84
mov dword [0x1402e8e34], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f04
mov dword [0x1402e8d9c], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
mov edx, 0x7f02
mov dword [0x1402e8db4], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c548
lea rcx, [rsp + 0x30]
mov dword [0x1402e8dc4], eax
mov dword [rsp + 0x30], 0x18
call qword [sym.imp.USER32.dll_GetCursorInfo]
mov rcx, qword [rsp + 0x38]
call fcn.14000c548
mov ecx, eax
call fcn.14000c480
mov ecx, 0x1d
mov dword [reloc.WS2_32.dll_connect], eax
call fcn.1401cd1cc
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.14008e668
mov ecx, 0x58
mov rbx, rax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 5
mov word [rbx], ax
call qword [sym.imp.WS2_32.dll_htons]
mov dl, byte [reloc.WS2_32.dll_connect]
xor r8d, r8d
mov byte [rbx + 4], dl
mov rcx, rdi
mov rdx, rbx
mov word [rbx + 2], ax
call fcn.140095944
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenThread]
and qword [rsp + 0x28], 0
lea r8, [0x14000c99c]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [0x1402c35d8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x60]
mov qword [0x1402c35f8], rax
add rsp, 0x50
pop rdi
ret
Function at 0x14000df84
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 [0x1402c3970], 0
mov rbp, r9
mov ebx, edx
mov rdi, rcx
je 0x14000e001
cmp edx, 2
jl 0x14000dfeb
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x14000dfeb
and qword [rsp + 0x28], 0
lea r8, [0x14000cde4]
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 0x14000dfeb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402c3970]
mov r8d, ebx
mov rdx, rdi
call fcn.140099098
mov eax, ebx
jmp 0x14000e026
xor esi, esi
jmp 0x14000e014
add esi, eax
mov edx, ebx
sub edx, esi
movsxd rcx, esi
add rcx, rdi
mov r9, rbp
lea r8, [0x1400018e4]
call fcn.14000d470
test eax, eax
jne 0x14000e005
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 0x14000e2bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x7580
call fcn.1401c1440
sub rsp, rax
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x7570], rax
mov rbp, qword [rcx]
xor ebx, ebx
and dword [rsp + 0x30], ebx
xor edi, edi
cmp dword [0x1402c0c64], ebx
mov r14, qword [rcx + 8]
jne 0x14000e38d
mov rcx, qword [0x1402c0c70]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x7530
movsxd rax, edi
sub r8d, edi
add rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e383
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000e383
cmp dword [0x1402c0c64], 0
jne 0x14000e383
lea esi, [rax + rdi]
jmp 0x14000e34c
add ebx, eax
mov edx, esi
movsxd rax, ebx
lea rcx, [rsp + 0x40]
sub edx, ebx
add rcx, rax
mov r9, r14
mov r8, rbp
call fcn.14000d470
test eax, eax
jne 0x14000e34a
xor edi, edi
cmp ebx, esi
cmovne edi, esi
cmp ebx, esi
cmovne eax, ebx
cmp dword [0x1402c0c64], 0
mov ebx, eax
je 0x14000e304
jmp 0x14000e38d
mov dword [0x1402c0c64], 1
xor eax, eax
mov rcx, qword [rsp + 0x7570]
xor rcx, rsp
call fcn.1401c0ed0
lea r11, [rsp + 0x7580]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000ef20
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x14000ef7b
cmp dword [0x1402c3624], 1
jne 0x14000ef4a
cmp dword [0x1402c0c64], 0
jne 0x14000ef4a
xor eax, eax
jmp 0x14000effd
mov eax, dword [rsp + 0x60]
lea r9, [0x1400018e4]
and dword [0x1402c3620], 0
mov dword [0x1402c0c68], eax
mov dword [reloc.WS2_32.dll_accept], 5
mov qword [rsp + 0x60], rdi
add rsp, 0x30
pop rdi
jmp fcn.14000ed44
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.14008e944
cmp dword [0x1402c3624], 1
lea rcx, [0x1400018e4]
mov dword [0x1402c3650], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x14000efc9
cmp dword [0x1402c0c64], 0
jne 0x14000efc9
mov rcx, rax
call fcn.1401ccb68
jmp 0x14000ef43
and qword [rsp + 0x28], 0
lea r8, [fcn.14000eb4c]
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 [0x1402c3660], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x14000f004
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1402c3970]
mov dword [0x1402c0c64], 1
test rbx, rbx
je 0x14000f043
mov rcx, rbx
call fcn.14008e898
test eax, eax
je 0x14000f03b
mov rcx, qword [rbx + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
and qword [0x1402c3970], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14000f1c4
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
mov r10d, dword [0x1402c3674]
mov esi, edx
mov r11d, dword [0x1402c365c]
mov eax, r10d
cdq
xor r9d, r9d
idiv r11d
mov eax, r10d
mov r14, r8
mov edi, edx
mov r15d, ecx
cdq
mov r8d, r10d
idiv r11d
test edx, edx
je 0x14000f20d
sub r8d, edx
add r8d, r11d
sub r8d, esi
sub r8d, dword [0x1402c3638]
test edi, edi
je 0x14000f225
mov eax, r11d
sub eax, edi
add eax, r10d
jmp 0x14000f228
mov eax, r10d
sub eax, esi
cmp r8d, eax
jge 0x14000f293
mov eax, dword [0x1402c3628]
cdq
idiv r11d
test edx, edx
je 0x14000f24a
mov eax, r11d
sub eax, edx
add eax, dword [0x1402c3628]
jmp 0x14000f250
mov eax, dword [0x1402c3628]
imul eax, r8d
add eax, r15d
imul eax, dword [0x1402c3684]
movsxd rdx, eax
mov eax, dword [0x1402c3684]
add rdx, r14
imul eax, r11d
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
jmp 0x14000f289
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx]
add rdx, 4
cmp rdx, rax
jb 0x14000f27b
inc r8d
jmp 0x14000f217
mov rsi, qword [rsp + 8]
mov eax, r9d
mov rdi, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r15, qword [rsp + 0x20]
ret
Function at 0x1400108dc
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 [0x1402bff08]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
je 0x1400109f4
cmp ecx, 6
jne 0x140010931
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 0x1400109f6
cmp ebx, 7
jne 0x14001093b
lea ecx, [rbx - 6]
jmp 0x140010921
cmp ebx, 8
jne 0x14001094b
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140010927
cmp ebx, 9
jne 0x140010981
mov qword [rsp + 0x28], rsi
lea r8, [0x14000cde4]
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 0x140010927
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010927
cmp ebx, 5
jg 0x1400109f4
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 0x1400109f4
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 0x140010a17
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401c0ed0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
sub ebx, 1
je 0x140010a66
sub ebx, 1
je 0x140010a4e
sub ebx, 1
je 0x140010a44
sub ebx, 1
je 0x140010a3d
cmp ebx, 1
jne 0x140010aa8
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140010a7f
mov ecx, 1
jmp 0x140010a32
mov dword [rsp + 0x20], 1
jmp 0x140010a52
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 0x140010a7f
mov edx, 0x80000000
test r14d, r14d
je 0x140010a77
mov ecx, 4
jmp 0x140010a79
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140010aa8
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
jmp 0x1400109f6
Function at 0x140010abc
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 0x140010b26
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140010aec
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 0x140057c9c
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rax, rdx
lea r9, [rsp + 0x30]
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x140057ea4
cmp byte [rsp + 0x50], 0
je 0x140057ea4
mov rcx, rdi
call fcn.14001cf34
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140057d08
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001c9ac
mov r14d, 0xfffffffe
lea r8, str.name
mov edx, r14d
mov rcx, rdi
call fcn.14001a088
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea r9, [rsp + 0x40]
mov ebx, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x140057dec
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140057d7a
cvtsi2sd xmm1, rcx
jmp 0x140057d8f
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rdi
call fcn.14001c8cc
lea r8, str.size
mov edx, r14d
mov rcx, rdi
call fcn.14001a088
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
test rcx, rcx
js 0x140057dbd
cvtsi2sd xmm1, rcx
jmp 0x140057dd2
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rdi
call fcn.14001c8cc
lea r8, str.free
mov edx, r14d
mov rcx, rdi
call fcn.14001a088
sub ebx, 2
je 0x140057e44
sub ebx, 1
je 0x140057e35
sub ebx, 1
je 0x140057e26
sub ebx, 1
je 0x140057e1d
mov r8d, 7
cmp ebx, 1
je 0x140057e14
lea rdx, str.UNKNOWN
jmp 0x140057e51
lea rdx, str.RAMDISK
jmp 0x140057e51
lea rdx, str.CDROM
jmp 0x140057e3c
lea rdx, str.REMOTE
mov r8d, 6
jmp 0x140057e51
lea rdx, str.FIXED
mov r8d, 5
jmp 0x140057e51
lea rdx, str.REMOVABLE
mov r8d, 9
mov rcx, rdi
call fcn.14001c9ac
lea r8, [0x140253618]
mov edx, r14d
mov rcx, rdi
call fcn.14001a088
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x140057c6c]
mov rcx, rdi
call fcn.14001d154
lea r8, str.toString
mov edx, r14d
mov rcx, rdi
call fcn.14001a088
mov eax, 1
jmp 0x140057ea6
xor eax, eax
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1401c0ed0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rbp
ret