joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f708
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x14001f795
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002cef0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x14001f7b8
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1030
call fcn.14002ce80
sub rsp, rax
mov rax, qword [0x140053890]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14001f7f4
xor eax, eax
jmp 0x14001f817
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140014a34
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14002cef0
add rsp, 0x1030
pop rbx
ret

Function at 0x14001f92c
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140053890]
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 0x14001f9a1
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0x80000000
mov ecx, 0xd
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002cef0
add rsp, 0x58
ret
Function at 0x14001fd6c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x14001fe0e
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14001ffb0]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14001fde4
lea rdx, str.CreateThread_failed
lea rcx, [0x14005e358]
call fcn.14000b580
lea rcx, [0x14005e358]
call fcn.14000b838
lea edx, [rsi + 2]
lea rcx, [0x14005e358]
call fcn.14000b554
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x108]
mov edx, dword [0x1400675e8]
test edx, edx
je 0x14001fe04
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x14001fd88
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140034780
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140034554
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034554
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140034554
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140034554
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140034554
cmp dword [rcx + 0x84], 0xe
jbe 0x140034554
cmp dword [rcx + 0xf8], esi
je 0x140034554
mov ecx, r14d
call fcn.14003469c
mov ecx, 2
call fcn.140038fe4
nop
cmp byte [0x140068050], 0
jne 0x14003461e
mov r15d, 1
mov eax, r15d
xchg dword [0x140068040], eax
test ebx, ebx
jne 0x1400345c7
mov rdi, qword [0x140053890]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140068048]
cmp rcx, rax
je 0x1400345be
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000fcc0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400681b8]
jmp 0x1400345d3
cmp ebx, r15d
jne 0x1400345d9
lea rcx, [0x1400681d0]
call fcn.140036bc0
nop
test ebx, ebx
jne 0x1400345f0
lea rdx, [0x1400425a0]
lea rcx, [0x140042580]
call fcn.140036e88
lea rdx, [0x1400425b0]
lea rcx, [0x1400425a8]
call fcn.140036e88
movzx eax, byte [0x140068050]
test esi, esi
cmove eax, r15d
mov byte [0x140068050], al
jmp 0x14003461e
mov ecx, 2
call fcn.140039038
test esi, esi
jne 0x140034635
mov ecx, r14d
call fcn.140034650
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400344e4
Function at 0x1403f7d8c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov r12b, 0x16
jmp 0x1403f8295
mov rax, qword [rsp]
bsr r11, r15
lea r11, [rbx + r11]
not r11w
setge dl
setg bpl
jmp 0x1403f7dca
mov r11, 0x62f9d159
lea rsi, [r11 + riz + 0x4f1e]
cpuid
mov rbx, rdi
sete r8b
xchg r14b, bl
jmp 0x1403f7de0
pop word [rsp + 6]
cpuid
push word [rsp + 2]
lea rsp, [rsp + 5]
mov qword [rsp + 0xf], r11
lea r9, [r12 - 0x13de477f]
jmp 0x1403f7e1d
lea rsp, [rsp + 6]
mov qword [rsp + 2], r14
mov si, 0x26ac
sub rsp, 0x1d
lea rbp, [rcx + rdx]
dec rdx
jmp 0x1403f7eaa
push qword [rsp]
mov ax, r9w
btc ebp, r9d
push qword [rsp + 7]
neg bx
pop cx
jmp 0x1403f8028

Function at 0x1403f80d4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bp, word [rsp + 0x16]
mov edi, dword [rsp + 8]
rdtsc
pop qword [rsp + 0xb]
inc edi
mov r12d, dword [rsp + 7]
jmp 0x1403f8084
mov r14, 0xffffffffb0fdc1f7
lea r11, [rcx + rcx]
xchg word [rsp + 0xf], si
mov rbp, qword [rsp + 0x15]
mov qword [rsp + 0x14], r10
pop word [rsp + 0xd]
jmp 0x1403f8046
mov cl, byte [rsp + 0x16]
sub rsp, 0x1b
pop r12
rdtsc
lea rbx, [rax + riz]
jmp 0x1403f80b5
mov rcx, qword [rsp]
sub rsp, 0xe
xchg dword [rsp + 2], esi
mov qword [rsp + 2], rcx
xchg r11, rbx
bswap rcx
jmp 0x1403f8063
push cx
mov bpl, byte [rsp + 0x18]
lea rsp, [rsp + 0x27]
mov dword [rsp], ebp
add rsp, 4
mov ax, word [rsp]
jmp 0x1403f80ed
jmp 0x1403f809c
cpuid
push r15
call fcn.1403f80d6

Function at 0x1403f863f
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov si, 0xfb0b
inc edx
xchg dl, bpl
shr ebp, cl
dec r12
xchg word [rsp + 5], r12w
jmp 0x1403f865e
jmp 0x1403f861d
xchg qword [rsp], rax
mov word [rsp + 0xa], cx
bsf r8, rsp
std
mov dword [rsp + 2], ecx
shr dl, 6
jmp 0x1403f8677
dec dl
lea rbx, [r14 + r15]
btr r8w, r10w
sub rsp, 0xa
mov r9b, 0x7e
mov sil, byte [rsp + 0xe]
jmp 0x1403f8641
mov al, byte [rsp + 9]
pop qword [rsp]
push word [rsp + 5]
lea rax, [r13*8]
jmp 0x1403f86c0
bswap rax
pop word [rsp + 4]
rcl r12w, 0xf
mov r9w, word [rsp + 3]
jmp 0x1403f86aa

Function at 0x1403f893e
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg r12d, r9d
mov word [rsp + 2], sp
mov r8b, 0x43
jmp 0x1403f89a0
push rbp
mov word [rsp + 0xb], r12w
lea r9, [rbx + rbx]
rcr rdx, 1
mov dword [rsp + 1], ebx
sub r11b, r14b
jmp 0x1403f8965
xchg r14w, bx
not r11b
not bl
mov word [rsp], di
setne r14b
neg dx
jmp 0x1403f897b
Function at 0x140001430
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov r8d, pe_nt_image_headers64
lea rdx, [0x140094680]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp eax, 0x100
jb 0x140001493
lea ecx, [rax + 1]
mov qword [rsp + 0x30], rdi
add rcx, rcx
call fcn.14003afc8
mov rdi, rax
test rax, rax
je 0x1400014b6
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
test ebx, ebx
jne 0x1400014a4
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x38]
lea rax, [0x140094680]
add rsp, 0x20
pop rsi
ret
lea rdx, str.Could_not_allocate_environment_buffer
mov ecx, 0x68
call fcn.140001360
int3
Function at 0x140002090
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
lea r14, str.pythonX
mov edx, 0x400
lea r9, str.py__ls
mov qword [rsp + 0x20], r14
mov r8, 0xffffffffffffffff
lea rcx, [0x140094a90]
lea rsi, str.environment
call fcn.140001210
lea rbx, [0x140094680]
mov r8d, pe_nt_image_headers64
mov rdx, rbx
lea rcx, [0x140094a90]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp eax, 0x100
jb 0x140002155
lea ecx, [rax + 1]
add rcx, rcx
call fcn.14003afc8
mov rbx, rax
test rax, rax
je 0x1400021ee
mov r8d, edi
lea rcx, [0x140094a90]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r9, rsi
lea rcx, str.found_configured_value__ls_ls_in__ls_n
mov r8, rbx
mov rdx, r14
call fcn.1400012c0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
test edi, edi
jne 0x140002127
xor ebx, ebx
cmp word [0x140094880], bx
je 0x14000219f
lea rsi, [0x140094880]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
lea r9, [0x140094a90]
mov rdx, r14
mov dword [rsp + 0x20], 0x400
lea rcx, str.defaults
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14000219f
lea rbx, [0x140094a90]
jmp 0x140002127
cmp word [0x14007a660], bx
je 0x1400021da
lea rsi, [0x14007a660]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
lea r9, [0x140094a90]
mov rdx, r14
mov dword [rsp + 0x20], 0x400
lea rcx, str.defaults
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x140002196
mov rdx, r14
lea rcx, str.found_no_configured_value_for__ls_n
call fcn.1400012c0
jmp 0x14000213c
lea rdx, str.Could_not_allocate_environment_buffer
mov ecx, 0x68
call fcn.140001360
int3
Function at 0x140014598
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140014383
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014383
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014383
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014383
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014383
cmp dword [rcx + 0x84], 0xe
jbe 0x140014383
cmp dword [rcx + 0xf8], 0
je 0x140014383
mov ecx, ebx
call fcn.1400144a0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400140dc
nop
cmp dword [rbp + 0x20], 0
je 0x1400143d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400143dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140014314
Function at 0x14004af24
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, [0x14007a000]
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 0x14004af82
cmp word [rdx], r12w
jne 0x14004af82
or byte [rax + r8*8 + 0x38], cl
jmp 0x14004af88
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14004b0e3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14004b0be
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14004afc1
mov rcx, r9
jmp 0x14004afe4
cmp r9, rdx
jae 0x14004affb
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 0x14004afa5
jmp 0x14004b0e3
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 0x14004b0b8
cmp dword [rsp + 0x80], edi
je 0x14004b0b8
mov rdx, r14
lea r11, [0x14007a000]
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 0x14004b091
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14004b064
mov word [rbx], r12w
jmp 0x14004b0df
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 0x14004b06d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14004b0df
cmp word [rsp + 0x70], r12w
jne 0x14004b09e
cmp rbx, rsi
je 0x14004b05e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14005a074
cmp word [rsp + 0x70], r12w
je 0x14004b0e3
mov word [rbx], r13w
jmp 0x14004b0df
lea r11, [0x14007a000]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14004b0db
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14004b0e3
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 0x14004bdb8
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 0x14004bdea
call fcn.140042f34
mov dword [rax], 0x16
call fcn.140042d58
jmp 0x14004bf09
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004bf09
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14004bf09
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14004be19
lock or dword [rcx + 0x14], 0x10
jmp 0x14004bf09
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14004be2d
call fcn.14005b67c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400456b0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14004b4c8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14004bef7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14004bec2
mov rcx, rsi
call fcn.1400456b0
cmp eax, edi
je 0x14004bead
mov rcx, rsi
call fcn.1400456b0
cmp eax, 0xfffffffe
je 0x14004bead
mov rcx, rsi
call fcn.1400456b0
movsxd rbx, eax
lea r14, [0x14007a000]
mov rcx, rsi
sar rbx, 6
call fcn.1400456b0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14004beb4
lea rdx, [0x1400782f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004bec2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14004bee6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14004bee6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14004bee6
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 0x14004bf0c
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 0x14004f638
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 0x14004f668
xor eax, eax
jmp 0x14004f72b
mov rbp, rbx
cmp word [rax], si
je 0x14004f68d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004f674
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004f670
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.14004f4e8
movsxd r14, eax
test eax, eax
jne 0x14004f6cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004f661
mov rcx, r14
call fcn.140043088
mov rdi, rax
test rax, rax
jne 0x14004f6e4
xor ecx, ecx
call fcn.14004304c
jmp 0x14004f6c0
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.14004f4e8
test eax, eax
jne 0x14004f715
mov rcx, rdi
call fcn.14004304c
jmp 0x14004f71f
xor ecx, ecx
call fcn.14004304c
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 0x14004f748
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004f7cf
mov rsi, rbx
cmp word [rax], bp
je 0x14004f78e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004f778
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004f774
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140043088
mov rdi, rax
test rax, rax
je 0x14004f7bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400100c0
mov rbp, rdi
xor ecx, ecx
call fcn.14004304c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005ea68
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005a074
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005a074
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005ebb8
cmp rax, 0xffffffffffffffff
je 0x14005ebb8
xor edi, edi
test rbp, rbp
jle 0x14005eb63
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140046f08
mov rbx, rax
test rax, rax
jne 0x14005eaf0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005eb59
mov edx, 0x8000
mov ecx, r14d
call fcn.14003cfb0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140049a8c
cmp eax, 0xffffffff
je 0x14005eb39
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005eb00
mov edx, r15d
mov ecx, r14d
call fcn.14003cfb0
jmp 0x14005eb59
cmp byte [rsi + 0x38], dil
je 0x14005eb50
cmp dword [rsi + 0x34], 5
jne 0x14005eb50
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005eb59
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004304c
jmp 0x14005ebcc
jns 0x14005ebcc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005a074
cmp rax, 0xffffffffffffffff
jne 0x14005eb84
cmp byte [rsi + 0x30], dil
je 0x14005ebcc
mov edi, dword [rsi + 0x2c]
jmp 0x14005ebcc
mov ecx, r14d
call fcn.14005080c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005ebcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005ebcc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005ebc5
mov eax, dword [rsi + 0x2c]
jmp 0x14005ebca
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005a074
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140074628
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
lea rdx, [rsp + 0x120]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140074706
lea rcx, [rsp + 0x20]
mov edx, 0x100
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x140074706
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x140074694
mov rax, r9
lea rax, [rax + 8]
inc ecx
cmp qword [rax], 0
jne 0x140074688
cmp ebx, ecx
jle 0x1400746a9
lea rdx, [0x1400d0568]
mov rcx, rdi
call fcn.140026e28
jmp 0x1400746fe
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.1400265f0
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140028890
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.1400756f8
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140026e28
mov rcx, rbx
call fcn.140024cec
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x140074715
lea rdx, [0x1400ab2d0]
mov rcx, rdi
call fcn.140026e28
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x140074728
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
lea rax, [rsp + 0x30]
mov rbx, rdx
mov edx, ecx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001edf8
add rsp, 0x240
pop rbx
ret

Function at 0x1400749b0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x140074a2a
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret

Function at 0x140074ad4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140074aeb
test al, 0x10
je 0x140074aeb
mov al, 1
jmp 0x140074aed
xor al, al
add rsp, 0x28
ret