joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ba94
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, [0x140040970]
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 0x14001baf2
cmp word [rdx], r12w
jne 0x14001baf2
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001baf8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001bc53
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001bc2e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001bb31
mov rcx, r9
jmp 0x14001bb54
cmp r9, rdx
jae 0x14001bb6b
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 0x14001bb15
jmp 0x14001bc53
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 0x14001bc28
cmp dword [rsp + 0x80], edi
je 0x14001bc28
mov rdx, r14
lea r11, [0x140040970]
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 0x14001bc01
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001bbd4
mov word [rbx], r12w
jmp 0x14001bc4f
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 0x14001bbdd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001bc4f
cmp word [rsp + 0x70], r12w
jne 0x14001bc0e
cmp rbx, rsi
je 0x14001bbce
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001c88c
cmp word [rsp + 0x70], r12w
je 0x14001bc53
mov word [rbx], r13w
jmp 0x14001bc4f
lea r11, [0x140040970]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001bc4b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001bc53
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 0x14001c4a8
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 0x14001c4da
call fcn.1400179a8
mov dword [rax], 0x16
call fcn.14001aec8
jmp 0x14001c5f9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001c5f9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001c5f9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001c509
lock or dword [rcx + 0x14], 0x10
jmp 0x14001c5f9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001c51d
call fcn.140023f08
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001aa34
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001bf40
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001c5e7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001c5b2
mov rcx, rsi
call fcn.14001aa34
cmp eax, edi
je 0x14001c59d
mov rcx, rsi
call fcn.14001aa34
cmp eax, 0xfffffffe
je 0x14001c59d
mov rcx, rsi
call fcn.14001aa34
movsxd rbx, eax
lea r14, [0x140040970]
mov rcx, rsi
sar rbx, 6
call fcn.14001aa34
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001c5a4
lea rdx, [0x14003e3e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001c5b2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001c5d6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001c5d6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001c5d6
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 0x14001c5fc
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 0x140022edc
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 0x140022f0c
xor eax, eax
jmp 0x140022fcf
mov rbp, rbx
cmp word [rax], si
je 0x140022f31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022f18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022f14
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.140020444
movsxd r14, eax
test eax, eax
jne 0x140022f6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022f05
mov rcx, r14
call fcn.14001dc20
mov rdi, rax
test rax, rax
jne 0x140022f88
xor ecx, ecx
call fcn.14001af30
jmp 0x140022f64
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.140020444
test eax, eax
jne 0x140022fb9
mov rcx, rdi
call fcn.14001af30
jmp 0x140022fc3
xor ecx, ecx
call fcn.14001af30
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 0x140022fec
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 0x140023073
mov rsi, rbx
cmp word [rax], bp
je 0x140023032
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002301c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140023018
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001dc20
mov rdi, rax
test rax, rax
je 0x140023060
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000bf10
mov rbp, rdi
xor ecx, ecx
call fcn.14001af30
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 0x140027960
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140015954
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400279ea
cmp byte [rbp - 0x21], r15b
je 0x1400279e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027a20
call fcn.14001f480
test eax, eax
jne 0x140027a0c
cmp byte [rbp - 0x21], r15b
je 0x140027a04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027a20
cmp byte [rbp - 0x21], r15b
je 0x140027a1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001543c
test eax, eax
jne 0x140027ac0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015954
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027a5f
cmp byte [rbp - 0x21], r15b
je 0x140027a94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027a94
call fcn.14001f480
test eax, eax
jne 0x140027a80
cmp byte [rbp - 0x21], r15b
je 0x140027a79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027a94
cmp byte [rbp - 0x21], r15b
je 0x140027a91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001543c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027ac0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027ac3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027ad1
mov rcx, rdi
call fcn.14001af30
cmp byte [rbp + 0x3f], r15b
je 0x140027ae0
mov rcx, qword [rbp + 0x27]
call fcn.14001af30
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029080
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.14001c88c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c88c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400291d0
cmp rax, 0xffffffffffffffff
je 0x1400291d0
xor edi, edi
test rbp, rbp
jle 0x14002917b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f1f0
mov rbx, rax
test rax, rax
jne 0x140029108
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029171
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a198
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.14001d58c
cmp eax, 0xffffffff
je 0x140029151
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029118
mov edx, r15d
mov ecx, r14d
call fcn.14001a198
jmp 0x140029171
cmp byte [rsi + 0x38], dil
je 0x140029168
cmp dword [rsi + 0x34], 5
jne 0x140029168
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029171
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af30
jmp 0x1400291e4
jns 0x1400291e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c88c
cmp rax, 0xffffffffffffffff
jne 0x14002919c
cmp byte [rsi + 0x30], dil
je 0x1400291e4
mov edi, dword [rsi + 0x2c]
jmp 0x1400291e4
mov ecx, r14d
call fcn.140018654
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400291e4
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 0x1400291e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400291dd
mov eax, dword [rsi + 0x2c]
jmp 0x1400291e2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c88c
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 0x1400556c8
Capabilities:
Get token membership

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x28
lea rax, str.S_1_5_80_123231216_2592883651_3715271367_3753151631_4175906628
xor ecx, ecx
mov qword [rbp + 0x50], rax
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, 0x6bd
jne 0x1400556fa
xor ebx, ebx
jmp 0x1400558bf
test eax, eax
je 0x14005572c
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
movzx ebx, ax
mov r12d, 0x80004005
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r12d
mov ecx, ebx
call fcn.140079c40
jmp 0x1400558bf
and dword [rbp + 0x38], 0
lea rdx, [rbp + 0x38]
call fcn.140069480
lea rdx, [0x140439858]
mov ebx, eax
lea rcx, [0x14041c6f8]
call fcn.1400edf70
test ebx, ebx
jns 0x140055771
mov ecx, ebx
call fcn.140079c40
lea rdx, [0x1404387d8]
lea rcx, [0x140423658]
call fcn.1400ed8ec
jmp 0x1400558b7
cmp dword [rbp + 0x38], 0
je 0x14005577e
xor ebx, ebx
jmp 0x1400558b7
cmp dword [0x14043f5e4], 0
je 0x1400558ab
xor r14d, r14d
lea r15, [rbp + 0x50]
mov r12d, 0x80004005
mov rcx, qword [r15]
lea rdx, [rbp + 0x48]
xor esi, esi
xor ebx, ebx
and qword [rbp + 0x48], rsi
and dword [rbp + 0x40], ebx
mov dword [rbp + 0x38], esi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x1400557dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400557c6
mov ebx, r12d
jmp 0x1400557d4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140079c40
jmp 0x1400557f7
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400557b7
mov esi, dword [rbp + 0x40]
mov dword [rbp + 0x38], esi
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp + 0x48]
call fcn.140069fec
test ebx, ebx
js 0x1400558ea
test esi, esi
jne 0x140055777
inc r14d
add r15, 8
cmp r14d, 1
jb 0x140055798
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x12]
call fcn.14006f4bc
lea rdx, [0x14043a2a8]
mov ebx, eax
lea rcx, [0x14041d048]
call fcn.1400edc30
test ebx, ebx
js 0x1400558b0
cmp dword [rbp + 0x38], esi
jne 0x140055777
lea r8, [rbp + 0x38]
lea edx, [rsi + 0x13]
call fcn.14006f4bc
mov ebx, eax
test eax, eax
jns 0x14005586c
mov ecx, eax
jmp 0x1400558b2
cmp dword [rbp + 0x38], 0
jne 0x140055777
lea r8, [rbp + 0x38]
mov edx, SafeArrayUnaccessData
call fcn.14006f4bc
mov ebx, eax
test eax, eax
js 0x140055868
cmp dword [rbp + 0x38], 0
jne 0x140055777
lea rcx, [rbp + 0x38]
call fcn.1400554cc
test eax, eax
js 0x1400558ab
cmp dword [rbp + 0x38], 0
jne 0x140055777
mov ebx, 0xc004f025
mov ecx, ebx
call fcn.140079c40
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov ecx, ebx
call fcn.140079c60
lea rdx, [0x1404380e4]
lea rcx, [0x140426390]
call fcn.1400ed5b8
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret
mov ecx, ebx
call fcn.140079c40
lea rdx, [0x14043975c]
lea rcx, [0x14042b848]
call fcn.1400ee2b8
jmp 0x1400558b7
Function at 0x14005ab54
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
and qword [rbp + 0x1f], 0
xorps xmm0, xmm0
and qword [rbp + 0x47], 0
mov rdi, rdx
mov rbx, rcx
movdqa xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x27], xmm0
lea rdx, [0x140439e70]
movdqa xmmword [rbp + 0x37], xmm1
lea rcx, [0x14041cc44]
call fcn.1400ed270
lea rax, [0x140005318]
mov qword [rbp - 0x29], 3
mov qword [rbp - 0x21], rax
lea rdx, [0x14043cb58]
lea rax, [rbp + 0x67]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x19], rax
lea rcx, [0x1404176b8]
lea rax, [rbp + 7]
mov qword [rbp - 0x11], rax
call fcn.1400ee940
xor r9d, r9d
lea rdx, [rbp - 0x29]
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x67]
test ebx, ebx
jns 0x14005ac02
mov ecx, ebx
call fcn.140079c40
jmp 0x14005ac6b
lea rdx, [0x140436e78]
lea rcx, [0x1404222cc]
call fcn.1400ee5fc
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.140079b08
mov ebx, eax
test eax, eax
jns 0x14005ac2b
mov ecx, eax
jmp 0x14005abfb
mov rcx, qword [rbp + 0x3f]
lea rdx, [rdi + 8]
call fcn.140079b08
mov ebx, eax
test eax, eax
js 0x14005ac27
mov rcx, qword [rbp + 0x47]
lea rdx, [rdi + 0x10]
call fcn.140079b08
mov ebx, eax
test eax, eax
jns 0x14005ac6b
mov ecx, eax
call fcn.140079c40
lea rdx, [0x140439810]
lea rcx, [0x14042b988]
call fcn.1400eefd4
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp + 7]
call fcn.14005a810
lea rdx, [0x14043e328]
lea rcx, [0x140420d80]
call fcn.1400eec90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005be9c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
xor ebx, ebx
mov r13, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rbx
lea rdx, [0x14043c624]
mov esi, ebx
lea rcx, [0x14041f1bc]
mov r14d, ebx
mov r15, r9
mov r12, r8
call fcn.1400eefd4
xorps xmm1, xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
movups xmmword [rbp - 1], xmm1
movups xmmword [rbp + 0xf], xmm1
movups xmmword [rbp + 0x1f], xmm1
test r15, r15
jne 0x14005bf16
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
jmp 0x14005bffc
mov rbx, qword [0x14043f520]
lea rdx, [0x14043c708]
lea rcx, [0x14041f260]
lea rsi, [rbx + 8]
call fcn.1400ed270
test rsi, rsi
je 0x14005bf4a
mov r14d, 1
mov rcx, rsi
mov edx, r14d
call fcn.140072570
lea rax, [0x1400028d8]
mov qword [rbp + 0x1f], rdi
mov qword [rbp - 0x21], rax
lea rdx, [0x14043a08c]
lea rax, [rbp + 0x7f]
mov qword [rbp + 0x27], rbx
lea rcx, [0x1404147fc]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], 3
call fcn.1400ee5fc
xor r9d, r9d
lea rax, [rbp - 1]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x29]
lea rax, [rbp - 0x31]
mov ecx, 0xb9
mov qword [rbp - 9], rax
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x7f]
test ebx, ebx
js 0x14005bf0a
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
lea r9, [rbp - 0x39]
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
lea rdx, [0x14043d1dc]
mov ebx, eax
lea rcx, [0x14041fca8]
call fcn.1400eec90
test ebx, ebx
js 0x14005bf0a
mov eax, dword [rbp - 0x39]
mov dword [r15], eax
mov ecx, ebx
call fcn.140079c60
lea rdx, [0x14043b5ec]
lea rcx, [0x140426018]
call fcn.1400ee940
lea rcx, [rbp - 1]
call fcn.1400578a0
lea rcx, [rbp - 0x31]
call fcn.1400577f4
test rsi, rsi
je 0x14005c03a
test r14d, r14d
je 0x14005c03a
mov rcx, rsi
call fcn.14007240c
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140084e08
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rax, [0x1400069d8]
mov qword [rbp - 0x39], 3
mov qword [rbp - 0x31], rax
mov r12, rdx
lea rax, [rbp - 0x49]
mov rbx, rcx
lea rdx, [0x140438688]
mov qword [rbp - 0x29], rax
lea rcx, [0x14042347c]
mov r15, r9
mov r14, r8
call fcn.1400ed5b8
xor r9d, r9d
mov qword [rbp - 0x21], rbx
lea rax, [rbp + 0x17]
mov qword [rbp - 0x19], r12
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], rax
lea ebx, [r9 + 0x50]
mov r8d, ebx
lea ecx, [rbx + 0x69]
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, dword [rbp - 0x49]
xor edi, edi
test esi, esi
jns 0x140084ec0
mov ecx, esi
call fcn.140079c40
lea rdx, [0x140438ed8]
lea rcx, [0x140423d10]
call fcn.1400edc30
jmp 0x140084fa6
lea rax, [0x140006358]
mov qword [rbp - 0x39], 3
mov qword [rbp - 0x31], rax
lea rdx, [0x14043c24c]
lea rax, [rbp - 0x45]
lea rcx, [0x14041ed2c]
mov qword [rbp - 0x29], rax
call fcn.1400ee2b8
lea rax, [rbp + 0x17]
mov qword [rbp - 0x21], r12
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x39]
lea rax, [rbp - 0x41]
mov qword [rbp - 0x19], rdi
xor r9d, r9d
mov qword [rbp + 0xf], rax
mov r8, rbx
mov qword [rbp - 0x11], r14
mov ecx, 0xb9
mov dword [rbp - 1], edi
mov dword [rbp + 3], 1
mov qword [rbp + 7], rdi
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x45]
cmp ecx, 0xc004d304
je 0x140084fa3
mov esi, ecx
test ecx, ecx
jns 0x140084f44
call fcn.140079c40
jmp 0x140084fa6
mov ebx, dword [rbp - 0x41]
mov r12d, 0xfff
mov r14d, ebx
and r14d, 0xf000
cmp r14d, 0xc000
jne 0x140084f71
mov eax, ebx
and eax, r12d
sub eax, 0x401
cmp eax, 0x95
jbe 0x140084f9e
lea rdx, [0x14043cd80]
lea rcx, [0x140417958]
call fcn.1400ed8ec
cmp r14d, 0xc000
jne 0x140084fa3
and ebx, r12d
sub ebx, 0x497
cmp ebx, 0x169
ja 0x140084fa3
mov edi, 1
mov dword [r15], edi
mov ecx, esi
call fcn.140079c60
lea rdx, [0x14043a398]
lea rcx, [0x14041d104]
call fcn.1400edf70
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14037a9a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400909c4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x270
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor eax, eax
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov qword [rsp + 0x20], rax
lea rcx, str.systemroot
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140090a2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140090a1a
mov esi, 0x80004005
jmp 0x140090b29
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140090b29
lea rdx, [rsp + 0x50]
lea rcx, str.windir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140090a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140090a10
movzx esi, ax
lea rdx, [0x14043c8d0]
or esi, 0x80070000
lea rcx, [0x14041f438]
test eax, eax
cmovle esi, eax
call fcn.1400eefd4
jmp 0x140090b29
lea rcx, [rsp + 0x20]
call fcn.140090d88
mov esi, eax
test eax, eax
jns 0x140090a8a
mov ecx, eax
jmp 0x140090b2b
lea rax, str.SPPSvc
xor esi, esi
and qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x28]
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x28], rax
lea rax, [0x140090f60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140090b0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140438d38]
mov ebx, eax
lea rcx, [0x140423b70]
call fcn.1400ee940
test ebx, ebx
jne 0x140090ae3
mov esi, 0x80004005
jmp 0x140090b04
lea rdx, [0x14043ce50]
lea rcx, [0x140417a14]
call fcn.1400eec90
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
mov ecx, esi
call fcn.140079c40
mov ecx, esi
call fcn.140079c60
test esi, esi
jns 0x140090b30
lea rdx, [0x14043e360]
lea rcx, [0x140420da8]
call fcn.1400ed270
mov ecx, esi
call fcn.140079c40
mov ecx, esi
call fcn.140079c60
cmp dword [rsp + 0x20], 0
je 0x140090b78
cmp qword [0x1404402e8], 0
je 0x140090b78
mov rbx, qword [0x140440580]
test rbx, rbx
je 0x140090b78
mov rax, qword [0x1403c1610]
mov rcx, qword [0x1404402f0]
call rax
mov rax, qword [0x1404402f0]
mov rcx, rbx
call rax
and qword [0x140440580], 0
cmp dword [rsp + 0x24], 0
je 0x140090b98
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
lea rdx, [0x14043bd7c]
lea rcx, [0x14041684c]
call fcn.1400ee5fc
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rsi
ret