joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006840
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140006868
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000688e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006890
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400068e9
test ecx, ecx
jle 0x1400068c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400068e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400068e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140006910
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140006932
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006948
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006964
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006966
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400069a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140006a3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400069dd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140006a1e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140006a3e
cmp rbx, rax
ja 0x1400069f0
test rbx, rbx
je 0x140006a3e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140006ea0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140006ecd
xor eax, eax
jmp 0x140007039
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006f07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006f07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140007039
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000702c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006f4a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140006f75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007031
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006fe4
sub eax, 1
je 0x140006fe4
cmp eax, 2
jne 0x14000702c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007031
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007012
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000702c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007031
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000a690
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140007700
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400077d3
cmp byte [rcx + 0x71], 0
je 0x1400077d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400077cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007794
sub eax, 1
je 0x140007798
cmp eax, 2
jne 0x1400077cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a690
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400077c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400077cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000777c
xor al, al
jmp 0x14000777c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a690
add rsp, 0x60
pop rbx
ret

Function at 0x140009b48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140009b82
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140009b87
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140009bd0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c5a0]
cmp byte [rcx + rax], 0
je 0x140009bd0
dec r8
sub rdx, 1
jne 0x140009bb6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000b248
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140111880
mov rax, rcx
neg rcx
test rax, 7
je 0x14011189d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401118f8
test al, 7
jne 0x140111890
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401118b1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140111922
test dh, dh
je 0x14011191c
shr rdx, 0x10
test dl, dl
je 0x140111916
test dh, dh
je 0x140111910
shr rdx, 0x10
test dl, dl
je 0x14011190a
test dh, dh
je 0x140111904
shr edx, 0x10
test dl, dl
je 0x1401118fe
test dh, dh
jne 0x1401118b1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140072a68
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a4720
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a40a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a475f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401aa020]
jmp 0x1400a4769
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140072ba3
Capabilities:
Terminate process

Disassembly:
jmp 0x14007d830
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x140197040]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1401a90f6]
call fcn.140074390
nop
mov rcx, qword [rbp + 0x120]
call fcn.1400742dc
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14007d8e8
mov edx, 8
lea rcx, [rbp + 0x28]
call fcn.140072f5e
mov r8d, dword [rbp + 4]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.140071a0f
nop
lea rcx, [rbp + 0x28]
call fcn.1400728f6
test rax, rax
je 0x14007d8de
lea rcx, [rbp + 0x28]
call fcn.1400728f6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
lea rcx, [rbp + 0x28]
call fcn.1400738a5
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x140162840]
call fcn.140073a85
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400728f1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140072bda
Capabilities:
Query environment variable

Disassembly:
jmp 0x140123470
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401232a0
lea rcx, [rsp + 0x40]
call fcn.140123420
movzx eax, al
test eax, eax
jne 0x1401234b8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401232d0
mov rax, qword [rsp + 0x70]
jmp 0x140123689
lea rcx, [rsp + 0x40]
call fcn.1401233f0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140123390
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401233f0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400736a7
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012355e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401232d0
mov rax, qword [rsp + 0x80]
jmp 0x140123689
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140072964
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140072833
lea rcx, [rsp + 0x48]
call fcn.1400724d7
movzx eax, al
test eax, eax
jne 0x1401235c5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400717da
lea rcx, [rsp + 0x40]
call fcn.1401232d0
mov rax, qword [rsp + 0x88]
jmp 0x140123689
lea rcx, [rsp + 0x48]
call fcn.140072edc
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401233f0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400736a7
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012365b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400717da
lea rcx, [rsp + 0x40]
call fcn.1401232d0
mov rax, qword [rsp + 0xa0]
jmp 0x140123689
lea rcx, [rsp + 0x48]
call fcn.140072810
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400717da
lea rcx, [rsp + 0x40]
call fcn.1401232d0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140072be4
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a4650
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400a4020
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a4691
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401aa020]
jmp 0x1400a4697
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140072c66
Capabilities:
Get geographical location

Disassembly:
jmp 0x14011b110
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14011a040
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14011b177
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401aa030]
jmp 0x14011b199
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140072473
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140072c75
Capabilities:
Terminate process

Disassembly:
jmp 0x140082520
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140072da1
Capabilities:
Get token membership

Disassembly:
jmp 0x14007d570
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140197040]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1401a90f6]
call fcn.140074390
nop
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov byte [rbp + 0x44], 0
mov byte [rbp + 0x45], 0
mov byte [rbp + 0x46], 0
mov byte [rbp + 0x47], 0
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x49], 5
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x44]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14007d679
lea r8, [rbp + 4]
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14007d66e
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
cmp dword [rbp + 4], 1
jne 0x14007d65b
mov dword [rbp + 0x114], 1
jmp 0x14007d665
mov dword [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
jmp 0x14007d67b
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x1401627a0]
call fcn.140073a85
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400728f1
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140072e82
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013ac30
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140197040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14013ac56
jmp 0x14013acd3
mov rcx, qword [rbp + 0x30]
call fcn.140072720
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14013ac6f
jmp 0x14013acd3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14013ac8c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140071942
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140071d34
test eax, eax
jne 0x14013acd3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400728f1
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140073350
Capabilities:
Parse pe header

Disassembly:
jmp 0x140083050
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140083070
xor al, al
jmp 0x1400830f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140083083
xor al, al
jmp 0x1400830f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400830ad
xor al, al
jmp 0x1400830f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400830c1
xor al, al
jmp 0x1400830f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400830d3
xor al, al
jmp 0x1400830f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400830ef
xor al, al
jmp 0x1400830f1
mov al, 1
add rsp, 0x38
ret

Function at 0x1400734d6
Capabilities:
Create process on windows

Disassembly:
jmp 0x14007d700
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140197040]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1401a90f6]
call fcn.140074390
nop
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x18]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_Files__x86_Steam_steam.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14007d7c1
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x140162900]
call fcn.140073a85
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400728f1
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400734ea
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x14007eee0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [0x140197040]
xor rax, rbp
mov qword [rbp + 0x398], rax
lea rcx, [0x1401a90f6]
call fcn.140074390
nop
call fcn.140072da1
movzx eax, al
test eax, eax
jne 0x14007ef4f
mov eax, 1
jmp 0x14007f12c
lea rdx, str.AnyDesk.exe
lea rcx, [rbp + 0x2c8]
call fcn.1400721c1
lea rcx, [rbp + 0x2c8]
call fcn.1400742dc
mov dword [rbp + 4], eax
lea rcx, [rbp + 0x2c8]
call fcn.140073bfc
nop
cmp dword [rbp + 4], 0
je 0x14007ef91
call fcn.1400734d6
nop
xor eax, eax
jmp 0x14007f12c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rbp + 0x24]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x14007efb5
cmp dword [rbp + 0x24], 2
je 0x14007efbf
mov eax, 1
jmp 0x14007f12c
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rcx + rax]
lea rcx, [rbp + 0x68]
call fcn.1400721c1
nop
lea rdx, str.Spotify.exe
lea rcx, [rbp + 0xa8]
call fcn.1400721c1
nop
lea rcx, [rbp + 0xa8]
call fcn.1400742dc
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
jne 0x14007f033
mov dword [rbp + 0x304], 1
lea rcx, [rbp + 0xa8]
call fcn.140073bfc
lea rcx, [rbp + 0x68]
call fcn.140073bfc
mov eax, dword [rbp + 0x304]
jmp 0x14007f12c
lea rdx, [rbp + 0x68]
mov ecx, dword [rbp + 0xe4]
call fcn.14007380f
movzx eax, al
test eax, eax
je 0x14007f107
mov r8, 0xffffffffffffffff
lea rdx, [0x140162e5c]
lea rcx, [rbp + 0x68]
call fcn.1400730da
inc rax
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rbp + 0x108]
lea rcx, [rbp + 0x68]
call fcn.140071b63
nop
lea rdx, [rbp + 0x108]
mov ecx, dword [rbp + 0xe4]
call fcn.140073d3c
movzx eax, al
test eax, eax
je 0x14007f0fa
lea rdx, [0x140162e60]
lea rcx, [rbp + 0x328]
call fcn.1400721c1
lea rcx, [rbp + 0x328]
call fcn.140072ba3
lea rcx, [rbp + 0x328]
call fcn.140073bfc
nop
mov dword [rbp + 0x364], 0
lea rcx, [rbp + 0x108]
call fcn.140073bfc
lea rcx, [rbp + 0xa8]
call fcn.140073bfc
lea rcx, [rbp + 0x68]
call fcn.140073bfc
mov eax, dword [rbp + 0x364]
jmp 0x14007f12c
lea rcx, [rbp + 0x108]
call fcn.140073bfc
nop
mov dword [rbp + 0x384], 1
lea rcx, [rbp + 0xa8]
call fcn.140073bfc
lea rcx, [rbp + 0x68]
call fcn.140073bfc
mov eax, dword [rbp + 0x384]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140162160]
call fcn.140073a85
mov rax, rdi
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.1400728f1
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret