joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044c61
Capabilities:
Get hostname

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
lea r8, [rbp - 0xc]
mov dword [r8], 0
mov ecx, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x180044d62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x180044d62
mov ecx, dword [rbp - 0xc]
inc ecx
add rcx, rcx
lea rdx, [0x180008798]
call fcn.180049f88
lea rdi, [rbp - 8]
mov rcx, rdi
mov rdx, rax
call fcn.180044da2
mov qword [rbp - 0x18], rdi
mov eax, 0x6f6e7692
cmp eax, 0x3609f393
je 0x180044cf6
cmp eax, 0x6f6e7692
jne 0x180044cd6
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov eax, 0x3609f393
jmp 0x180044cd6
cmp qword [rbp - 0x20], 0
je 0x180044d59
lea rdi, [rbp - 8]
mov rcx, rdi
call fcn.180044e46
lea rbx, [rbp - 0xc]
mov r8d, dword [rbx]
inc r8d
mov rcx, rax
xor edx, edx
call fcn.18004aad0
mov rcx, rdi
call fcn.180044e46
mov ecx, 1
mov rdx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x180044d59
lea rcx, [rbp - 8]
call fcn.180044e46
mov rcx, rsi
mov rdx, rax
call fcn.18001e89c
lea rcx, [rbp - 8]
call fcn.180044f0c
jmp 0x180044d71
lea rcx, [rbp - 8]
call fcn.180044f0c
lea rdx, [0x1800074a2]
mov rcx, rsi
call fcn.18001e89c
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x180046710
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x10
mov qword [rcx + 0x10], 0
mov qword [rsp], rcx
mov rax, qword [rsp]
mov qword [rsp + 8], rax
mov edx, 0x20c7c699
mov r8d, 0xb7a43b5a
mov ecx, 0x6f1bd712
cmp edx, 0x20c7c698
jle 0x18004677f
cmp edx, 0x6f1bd712
je 0x180046796
cmp edx, 0x57ddd594
je 0x1800467f4
cmp edx, 0x20c7c699
jne 0x180046739
mov edx, dword [0x18006e2f4]
lea eax, [rdx - 1]
imul eax, edx
test al, 1
mov edx, 0xb1f99d7b
cmove edx, ecx
cmp dword [0x18006e2f0], 0xa
cmovl edx, ecx
jmp 0x180046739
cmp edx, 0xb1f99d7b
je 0x1800467d4
cmp edx, 0xb7a43b5a
jne 0x180046739
mov edx, 0x57ddd594
jmp 0x180046739
mov rax, qword [rsp + 8]
mov dword [rax], 0x67452301
mov rax, qword [rsp]
mov dword [rax + 4], 0xefcdab89
mov eax, dword [0x18006e2f4]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
mov edx, 0xb1f99d7b
cmove edx, r8d
cmp dword [0x18006e2f0], 0xa
cmovl edx, r8d
jmp 0x180046739
mov rax, qword [rsp + 8]
mov dword [rax], 0x67452301
mov rax, qword [rsp]
mov dword [rax + 4], 0xefcdab89
mov edx, 0x6f1bd712
jmp 0x180046739
mov rax, qword [rsp]
mov dword [rax + 8], 0x98badcfe
mov rax, qword [rsp]
mov dword [rax + 0xc], 0x10325476
add rsp, 0x10
ret
Function at 0x180051990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180049b60
sub rsp, rax
mov rax, qword [0x180003348]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180057300
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800519df
mov rax, rbp
jmp 0x180051ae7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6ce40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005819c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6ce40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180051ae3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180051ae3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005819c
test rax, rax
js 0x180051ae3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180051ae3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180051ad5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180051ad5
cmp byte [rcx], 0xd
jne 0x180051abb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180051aca
cmp byte [rcx + 1], 0xa
jne 0x180051aca
inc rcx
jmp 0x180051aca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180051a9d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180051ae7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180062110
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180058248
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18006ce40]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800582a6
cmp word [rdx], r12w
jne 0x1800582a6
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800582ac
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180058407
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800583e2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800582e5
mov rcx, r9
jmp 0x180058308
cmp r9, rdx
jae 0x18005831f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1800582c9
jmp 0x180058407
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800583dc
cmp dword [rsp + 0x80], edi
je 0x1800583dc
mov rdx, r14
lea r11, [0x18006ce40]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800583b5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180058388
mov word [rbx], r12w
jmp 0x180058403
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180058391
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180058403
cmp word [rsp + 0x70], r12w
jne 0x1800583c2
cmp rbx, rsi
je 0x180058382
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800581a4
cmp word [rsp + 0x70], r12w
je 0x180058407
mov word [rbx], r13w
jmp 0x180058403
lea r11, [0x18006ce40]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800583ff
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180058407
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180058c5c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x180058c8e
call fcn.180056040
mov dword [rax], 0x16
call fcn.18005053c
jmp 0x180058dad
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180058dad
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180058dad
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180058cbd
lock or dword [rcx + 0x14], 0x10
jmp 0x180058dad
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180058cd1
call fcn.18005f884
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180057300
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1800586f4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180058d9b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180058d66
mov rcx, rsi
call fcn.180057300
cmp eax, edi
je 0x180058d51
mov rcx, rsi
call fcn.180057300
cmp eax, 0xfffffffe
je 0x180058d51
mov rcx, rsi
call fcn.180057300
movsxd rbx, eax
lea r14, [0x18006ce40]
mov rcx, rsi
sar rbx, 6
call fcn.180057300
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180058d58
lea rdx, [0x180003630]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180058d66
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180058d8a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180058d8a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180058d8a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180058db0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18005b798
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005b7c8
xor eax, eax
jmp 0x18005b88b
mov rbp, rbx
cmp word [rax], si
je 0x18005b7ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005b7d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005b7d0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18005b6e8
movsxd r14, eax
test eax, eax
jne 0x18005b82b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005b7c1
mov rcx, r14
call fcn.18005609c
mov rdi, rax
test rax, rax
jne 0x18005b844
xor ecx, ecx
call fcn.180056060
jmp 0x18005b820
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18005b6e8
test eax, eax
jne 0x18005b875
mov rcx, rdi
call fcn.180056060
jmp 0x18005b87f
xor ecx, ecx
call fcn.180056060
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001c70
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140026280]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x40]
mov rsi, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001cb4
mov eax, 0xffffdcd8
jmp 0x140001e3b
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x140001e25
shr ax, 8
cmp al, 1
jne 0x140001e25
xor ecx, ecx
mov qword [rsp + 0x228], rbp
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebp, 2
xor r8d, r8d
mov edx, ebp
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, rbx
mov qword [0x14002d080], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rdi
mov word [0x14002d8b0], bp
mov dword [0x14002d8b4], eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov edx, 4
mov rcx, rsi
mov word [0x14002d8b2], ax
call fcn.140001b90
mov dword [0x14002d090], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [0x14002d080]
lea rbx, [0x14002d8b0]
xorps xmm0, xmm0
mov dword [0x14002d094], eax
xor eax, eax
mov dword [rsp + 0x28], sendto
xor r9d, r9d
mov qword [0x14002d8f0], rax
mov r8d, sendto
mov qword [0x14002d8f8], rax
lea rdx, [0x14002d090]
mov dword [0x14002d900], eax
mov dword [0x14002d098], 0
mov dword [0x14002d09c], 0xaf3c2828
movups xmmword [0x14002d8c0], xmm0
mov qword [rsp + 0x20], rbx
movups xmmword [0x14002d8d0], xmm0
movups xmmword [0x14002d8e0], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14002d080]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14002d4a0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, 0x400
mov dword [rsp + 0x30], sendto
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rbp, qword [rsp + 0x228]
test eax, eax
jns 0x140001e10
mov eax, 0xffffdcdb
jmp 0x140001e3b
lea rdx, [0x14002d090]
lea rcx, [0x14002d4a0]
call fcn.140001b60
jmp 0x140001e3b
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffdcd9
mov qword [0x14002d080], 0xffffffffffffffff
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400031e0
add rsp, 0x1f0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001e80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140026280]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x14002d080], 0
movsx edi, dx
movsx ebx, cx
ja 0x140001eb3
mov eax, 0xffffdcd8
jmp 0x140001fa6
inc dword [0x14002d098]
mov dword [0x14002d09c], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x14002d8d0]
mov rcx, qword [0x14002d080]
lea rdx, [0x14002d090]
mov dword [0x14002d8c4], ebx
xor r9d, r9d
mov dword [0x14002d8c8], edi
mov r8d, 0x48
movups xmm0, xmmword [0x14002d8c0]
mov dword [0x14002d094], eax
lea rax, [0x14002d8b0]
movaps xmmword [0x14002d0b0], xmm1
movsd xmm1, qword [0x14002d8f0]
movaps xmmword [0x14002d0a0], xmm0
movups xmm0, xmmword [0x14002d8e0]
mov dword [rsp + 0x28], sendto
movsd qword [0x14002d0d0], xmm1
movaps xmmword [0x14002d0c0], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x14002d080]
lea rdx, [0x14002d4a0]
xor eax, eax
mov dword [rsp + 0x30], sendto
mov qword [0x14002d8c4], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov r8d, 0x400
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140001f93
mov eax, 0xffffdcdb
jmp 0x140001fa6
lea rdx, [0x14002d090]
lea rcx, [0x14002d4a0]
call fcn.140001b60
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400031e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140003db0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003dfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003dfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003dfa
cmp dword [rcx + 0x84], 0xe
jbe 0x140003dfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003dfc
xor al, al
add rsp, 0x28
ret
Function at 0x140001bb0
Capabilities:
Lock the desktop

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x140001bcb
mov al, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001be3
xor ecx, ecx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetNtMessage
jmp 0x140001bea
mov ecx, eax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetWin32Message
lea r9, str.Unable_to_lock_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001c1a
lea r8, [0x140166310]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140001c47
call fcn.1400d9400
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret

Function at 0x140001c60
Capabilities:
Shutdown system

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140001c7f
mov al, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001c97
xor ecx, ecx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetNtMessage
jmp 0x140001c9e
mov ecx, eax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetWin32Message
lea r9, str.Unable_to_log_off_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001cce
lea r8, [0x140166310]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140001cfb
call fcn.1400d9400
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140001ed0
Capabilities:
Shutdown system

Disassembly:
mov rax, rsp
push r14
push r15
sub rsp, 0x78
mov qword [rax + 0x10], rbp
mov r14d, edx
mov qword [rax + 0x20], rsi
mov r15, rcx
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov r12d, 5
mov qword [rax - 0x28], r13
xor eax, eax
lock cmpxchg qword [0x14018d8b0], r12
je 0x140001f14
lea rcx, [0x14018d8b0]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfAcquireQueuedLockShared
mov rsi, qword [0x140191a30]
lea rax, str.EnableWarnings
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x38], 0x1c
mov qword [rsp + 0x40], rax
call qword [rsi + 0x10]
mov edx, dword [rsi + 0x18]
xor r13d, r13d
mov rcx, qword [rsi + 0x20]
dec edx
mov ebp, eax
btr ebp, 0x1f
and edx, ebp
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x140001f8e
nop
mov ebx, dword [rsi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rsi + 0x30]
cmp dword [rbx], ebp
jne 0x140001f84
lea rdi, [rbx + 8]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [rsi + 8]
test al, al
jne 0x140001fe2
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140001f60
mov ebx, dword [rsp + 0xa0]
mov rdi, r13
mov rsi, qword [rsp + 0xa8]
mov rax, r12
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x98]
lock cmpxchg qword [0x14018d8b0], r13
mov r13, qword [rsp + 0x60]
je 0x140001fcc
lea rcx, [0x14018d8b0]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfReleaseQueuedLockShared
test rdi, rdi
mov rdi, qword [rsp + 0x70]
jne 0x140001ff1
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
test rdi, rdi
je 0x140001f8e
cmp dword [rdi], 1
jne 0x140001f8e
mov ebx, dword [rdi + 0x28]
jmp 0x140001f98
test ebx, ebx
je 0x14000201b
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, r15
lea rdx, str.restart
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowConfirmMessage
test al, al
je 0x1400020be
or r14d, 2
xor edx, edx
mov ecx, r14d
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140002041
mov al, 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002054
xor ecx, ecx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetNtMessage
jmp 0x14000205b
mov ecx, eax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetWin32Message
lea r9, str.Unable_to_restart_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, r15
test rax, rax
jne 0x140002091
lea r8, [0x140166310]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
xor al, al
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop r14
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400020be
call fcn.1400d9400
mov rbx, qword [rsp + 0x90]
xor al, al
add rsp, 0x78
pop r15
pop r14
ret
Function at 0x1400020e0
Capabilities:
Shutdown system

Disassembly:
mov rax, rsp
push rbp
push r15
sub rsp, 0x78
mov qword [rax + 0x10], rsi
mov ebp, edx
mov qword [rax + 0x20], rdi
mov r15, rcx
mov qword [rax - 0x18], r12
mov r12d, 5
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
xor eax, eax
lock cmpxchg qword [0x14018d8b0], r12
je 0x140002122
lea rcx, [0x14018d8b0]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfAcquireQueuedLockShared
mov rsi, qword [0x140191a30]
lea rax, str.EnableWarnings
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x38], 0x1c
mov qword [rsp + 0x40], rax
call qword [rsi + 0x10]
mov edx, dword [rsi + 0x18]
xor r13d, r13d
mov rcx, qword [rsi + 0x20]
dec edx
mov r14d, eax
btr r14d, 0x1f
and edx, r14d
mov r8d, dword [rcx + rdx*4]
cmp r8d, 0xffffffff
je 0x14000219f
nop
mov ebx, dword [rsi]
add ebx, 8
imul ebx, r8d
add rbx, qword [rsi + 0x30]
cmp dword [rbx], r14d
jne 0x140002195
lea rdi, [rbx + 8]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [rsi + 8]
test al, al
jne 0x1400021f3
mov r8d, dword [rbx + 4]
cmp r8d, 0xffffffff
jne 0x140002170
mov ebx, dword [rsp + 0xa0]
mov rdi, r13
mov r14, qword [rsp + 0x60]
mov rax, r12
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x98]
lock cmpxchg qword [0x14018d8b0], r13
mov r13, qword [rsp + 0x68]
je 0x1400021da
lea rcx, [0x14018d8b0]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhfReleaseQueuedLockShared
test rdi, rdi
mov rdi, qword [rsp + 0xa8]
jne 0x140002202
mov ecx, 0xc0000225
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
test rdi, rdi
je 0x14000219f
cmp dword [rdi], 1
jne 0x14000219f
mov ebx, dword [rdi + 0x28]
jmp 0x1400021a9
test ebx, ebx
je 0x14000222c
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, r15
lea rdx, str.shut_down
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowConfirmMessage
test al, al
je 0x1400022d2
mov ecx, ebp
xor edx, edx
or ecx, 8
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1400022e4
or ebp, 1
xor edx, edx
mov ecx, ebp
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1400022e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002269
xor ecx, ecx
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetNtMessage
jmp 0x140002270
mov ecx, eax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetWin32Message
lea r9, str.Unable_to_shut_down_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, r15
test rax, rax
jne 0x1400022a5
lea r8, [0x140166310]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
xor al, al
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rbp
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhShowMessage
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400022d2
call fcn.1400d9400
xor al, al
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rbp
ret
mov rbx, qword [rsp + 0x90]
mov al, 1
add rsp, 0x78
pop r15
pop rbp
ret