joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027be0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140027c26
mov r15, rbx
test r15, r15
je 0x140027d02
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140027c82
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140027c71
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1401e56b0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140027c02
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x140027d1e
lea rcx, [r13*8]
call fcn.1401a9d88
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140027ce4
lea r15, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x140027d02
mov r10, qword [r14 + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140027ccc
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140027d04
add rbx, 0xfffffffffffffff8
jne 0x140027cf7
ud2
test r12, r12
je 0x140027c02
mov rcx, r12
call fcn.1401a9dc4
mov r15, qword [rsi + 0x10]
jmp 0x140027c02
call fcn.1401e9820
int3

Function at 0x140028120
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1402e9848]
cmp ecx, 0xffffffff
je 0x1400281fa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400281fa
mov eax, dword [0x140334c60]
mov ecx, dword [0x1402ea130]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140028204
mov rbx, qword [0x140334c58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140028249
mov rax, qword [0x140333448]
inc rax
xor ecx, ecx
lea rdx, [0x140333450]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140028256
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140334c50]
inc ecx
mov dword [0x140334c50], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140333448], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140028246
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14000ff40
jmp 0x14002814a
lea rcx, [0x140334c60]
call fcn.1401aa170
cmp dword [0x140334c60], 0xffffffff
jne 0x14002816f
mov ecx, 8
call fcn.1401a9d88
mov qword [rax], 0
mov qword [0x140334c58], rax
lea rcx, [0x140334c60]
call fcn.1401aa094
jmp 0x14002816f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140028187
inc rcx
cmp rcx, 0x100
jne 0x14002819a
jmp 0x1400281e0
Function at 0x14002bf30
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1401e5d50
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14002c1e0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140299a90]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14002c740
movsx rax, byte [rdi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002bfca
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002c093
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r14, [rsp + 0x68]
lea r15, [rsp + 0x38]
xor r12d, r12d
cmp byte [rsp + 0x68], 0
je 0x14002c123
mov ebp, dword [rsp + 0x6c]
test bpl, 1
jne 0x14002c126
test bpl, 0x10
jne 0x14002c0e2
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x14002c020
mov rcx, qword [rsp + 0x50]
call r13
test eax, eax
jne 0x14002c0db
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
mov rdx, r15
call fcn.14002c740
cmp byte [rsp + 0x67], 0
jns 0x14002c060
mov rcx, qword [rsp + 0x50]
call fcn.1401a9dc4
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movsx rax, byte [rsp + 0x67]
mov rcx, rax
test rax, rax
jns 0x14002c087
mov rcx, qword [rsp + 0x58]
mov r12d, ebp
test rcx, rcx
jne 0x14002bfee
test al, al
jns 0x14002c0a1
mov rcx, qword [rsp + 0x50]
call fcn.1401a9dc4
lea rcx, [rsp + 0x68]
call fcn.14002c160
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x14002c0c5
call fcn.1401ac870
int3
mov eax, ebp
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14002c03d
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x14002c03d
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.14002bf30
test eax, eax
jne 0x14002c158
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x14002c110
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002c03d
jmp 0x14002c02b
int3
mov ecx, ebp
and ecx, 0x10
shr ecx, 4
mov dl, byte [rsp + 0x37]
not dl
test dl, cl
jne 0x14002c0db
test al, al
jns 0x14002c143
mov rcx, qword [rsp + 0x50]
jmp 0x14002c148
lea rcx, [rsp + 0x50]
mov edx, ebp
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002c007
mov ebp, eax
jmp 0x14002c03d
Function at 0x14002e680
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1401ac810
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1401e5d50
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002e714
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14002e73b
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.14002e7a0
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x14002e72e
call fcn.1401ac870
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x14002e783
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1401e5d50
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14002e78a
lea rdx, [rsp + 0x40]
jmp 0x14002e70a
mov eax, 0x3f4
jmp 0x14002e714
mov eax, 0xea
jmp 0x14002e714

Function at 0x14002f1a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14002f28e
cmp qword [rsi], 0
jne 0x14002f28e
cmp dword [rsi + 0x14], 0
jne 0x14002f28e
cmp qword [rsi + 8], 0
jne 0x14002f28e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14002f210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002f260
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002f208
mov qword [rsi], r14
call fcn.140113f90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14002f24a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002f276
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002f242
mov qword [rsi + 8], r14
call fcn.140113f90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140113f90
mov rcx, qword [rsi]
call fcn.140192790
mov qword [rsi], 0
jmp 0x14002f1f6
call fcn.140113f90
mov rcx, qword [rsi + 8]
call fcn.140192790
mov qword [rsi + 8], 0
jmp 0x14002f22f
mov rcx, rsi
call fcn.140250e90
mov rax, qword [rsi]
jmp 0x14002f1da
Function at 0x14002fac0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14002fae6
call fcn.140113f90
cmp qword [rsi], rbx
je 0x14002fb15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002fb22
cmp r14, 2
jb 0x14002fb0d
mov qword [rsi], rbx
call fcn.140113f90
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140113f90
mov rcx, qword [rsi]
call fcn.140192790
mov qword [rsi], 0
jmp 0x14002faff

Function at 0x140030810
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x1400309a5
mov rbx, r9
mov edi, r8d
mov ebp, edx
mov rsi, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov r14, qword [rsi]
cmp r14, rax
je 0x140030898
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140030984
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14003088c
mov qword [rsi], r15
call fcn.140113f90
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 1
jbe 0x1400309ac
xor r15d, r15d
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_145
xor edx, edx
call fcn.1401e5d50
test ebp, ebp
jne 0x14003095f
mov ecx, 0xff
mov r15d, 0x408
mov dword [rsp + 0x58], 1
mov eax, r15d
mov dword [rsp + 0x2c], ecx
mov r15d, ecx
test rbx, rbx
je 0x1400308f2
or eax, 0x100
mov qword [rsp + 0xa0], rbx
or eax, 0x2000
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, 9
mov r9d, Ordinal_145
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x14003099d
not edi
and r15d, edi
lea r8, [rsp + 0x2c]
mov dword [r8], r15d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x14003099d
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140030974
call fcn.1401ac870
int3
cmp ebp, 1
jne 0x1400309d3
mov ecx, reloc.WLDAP32.dll_Ordinal_216
mov r15d, 8
jmp 0x1400308ce
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140113f90
mov rcx, qword [rsi]
call fcn.140192790
mov qword [rsi], 0
jmp 0x14003087a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140030945
mov eax, 0x4df
jmp 0x140030945
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401ac870
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xc8
cmp ebp, 2
je 0x1400308d6
mov eax, 0
cmp ebp, 3
je 0x1400308e0
jmp 0x1400308fb
Function at 0x140032b90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x1402db040]
xor rdx, rsp
mov qword [rsp + 0x40], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x38]
mov qword [r8], rdx
or r9d, 8
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140032c70
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140032c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140032c6c
call fcn.140113f90
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi], 0
mov bpl, 1
test rbx, rbx
je 0x140032c45
cmp rbx, 0xffffffffffffffff
je 0x140032c77
call fcn.140113f90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi], rbx
call fcn.140113f90
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], bpl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140032c60
call fcn.1401ac870
int3
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x140032c0b
mov byte [rsi], 0
xor ebp, ebp
jmp 0x140032c45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140032c3d
Function at 0x1400337a0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [rdx]
test rbx, rbx
je 0x140033852
lea r14, [rsp + 0x38]
mov qword [r14], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov r15, rax
call r12
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rbx
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140033946
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x140033852
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140033915
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003384a
mov qword [rsi], r14
call fcn.140113f90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400338e2
lea r14, [rsp + 0x38]
mov qword [r14], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov r15, rax
call r12
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rbx
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140033946
mov r14, qword [rsp + 0x38]
cmp qword [rsi + 8], r14
je 0x1400338e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14003392e
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400338da
mov qword [rsi + 8], r14
call fcn.140113f90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140033907
call fcn.1401ac870
int3
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140113f90
mov rcx, qword [rsi]
call fcn.140192790
mov qword [rsi], 0
jmp 0x140033838
call fcn.140113f90
mov rcx, qword [rsi + 8]
call fcn.140192790
mov qword [rsi + 8], 0
jmp 0x1400338c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400338f0
Function at 0x14003b300
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b3cf
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14003b397
cmp eax, 0xffffffff
je 0x14003b3a8
mov eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x14003b389
call fcn.1401ac870
int3
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x14003b3ab
mov eax, dword [rsp + 0x2c]
jmp 0x14003b370
int3
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x14003b363
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
setne al
neg rax
jmp 0x14003b372

Function at 0x14003b950
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10040
call fcn.1401ac810
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x10038], rax
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rax
mov r8, rdi
call fcn.140158cd0
test rsi, rsi
je 0x14003ba2b
lea rbx, [rsp + 0x3a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1401e5d50
cmp byte [rsp + 0x37], 0
jns 0x14003b9c4
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14003b9f3
cmp eax, 0x7fff
jae 0x14003ba50
mov edx, eax
lea rcx, [rsp + 0x3a]
mov r8, rsi
call fcn.140160240
cmp byte [rsp + 0x37], 0
jns 0x14003ba04
mov rcx, qword [rsp + 0x20]
call fcn.1401a9dc4
mov rcx, qword [rsp + 0x10038]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x14003ba1e
call fcn.1401ac870
int3
mov eax, ebx
add rsp, 0x10040
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x37], 0
js 0x14003ba39
lea rcx, [rsp + 0x20]
jmp 0x14003ba3e
mov rcx, qword [rsp + 0x20]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14003b9f3
int3

Function at 0x14003c0e0
Capabilities:
Check if file exists

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov al, byte [rcx + 8]
cmp al, byte [rdx + 8]
je 0x14003c10b
test al, al
jne 0x14003c11e
test rsi, rsi
je 0x14003c11c
mov rcx, rsi
call fcn.14002fac0
mov byte [rsi + 8], 1
add rsp, 0x20
pop rsi
ret
test al, al
je 0x14003c105
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14003c130
ud2
mov rcx, rsi
call fcn.140032a80
mov byte [rsi + 8], 0
jmp 0x14003c105
Function at 0x14003c130
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14003c155
call fcn.140113f90
cmp qword [rsi], rbx
je 0x14003c184
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003c191
cmp r14, 2
jb 0x14003c17c
mov qword [rsi], rbx
call fcn.140113f90
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140113f90
mov rcx, qword [rsi]
call fcn.140192790
mov qword [rsi], 0
jmp 0x14003c16e

Function at 0x14003d830
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14003d877
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003d891
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003d86f
mov qword [rsi], rdi
call fcn.140113f90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x14003d8a7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140113f90
mov rcx, qword [rsi]
call fcn.140192790
mov qword [rsi], 0
jmp 0x14003d85d
int3
Function at 0x140043c10
Capabilities:
Get token privileges

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
movdqa xmmword [rsp + 0x60], xmm8
movdqa xmmword [rsp + 0x50], xmm7
movdqa xmmword [rsp + 0x40], xmm6
mov rdi, rcx
mov rax, qword [0x1402db040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rcx]
lea r15, [rsp + 0x34]
mov dword [r15], 0
mov qword [rsp + 0x20], r15
mov rcx, r14
mov edx, 3
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140043e70
mov ebx, dword [rsp + 0x34]
test ebx, ebx
je 0x140043e70
mov rcx, rbx
call fcn.1401a9d88
mov rsi, rax
xor eax, eax
mov rcx, rsi
add rcx, rax
je 0x140043e69
mov byte [rcx], 0
inc rax
cmp rbx, rax
jne 0x140043c89
mov qword [rsp + 0x20], r15
mov rcx, r14
mov edx, 3
mov r8, rsi
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140043e6b
cmp ebx, 0x10
jb 0x140043e74
mov ecx, dword [rsi]
lea rax, [rcx*4]
lea rdx, [rax + rax*2]
add rdx, 4
cmp rdx, rbx
ja 0x140043e74
test ecx, ecx
je 0x140043e06
lea rax, [rax + rax*2]
add rax, 0xfffffffffffffff4
movabs rcx, 0xaaaaaaaaaaaaaaab
mul rcx
movq xmm0, rdx
shr rdx, 3
add rdx, 4
and rdx, 0xfffffffffffffffc
pshufd xmm0, xmm0, 0x44
psrlq xmm0, 3
lea rax, [rsi + 0x30]
xor ecx, ecx
movdqa xmm1, xmmword [0x1402a0ec0]
movdqa xmm2, xmmword [0x1402a0ed0]
movdqa xmm3, xmmword [0x14028ff90]
pxor xmm0, xmm3
pcmpeqd xmm4, xmm4
movq xmm5, rcx
pshufd xmm5, xmm5, 0x44
movdqa xmm6, xmm5
por xmm6, xmm2
pxor xmm6, xmm3
movdqa xmm7, xmm6
pcmpgtd xmm7, xmm0
pcmpeqd xmm6, xmm0
pshufd xmm8, xmm6, 0xf5
pand xmm8, xmm7
pshufd xmm6, xmm7, 0xf5
por xmm6, xmm8
movd r8d, xmm6
not r8d
test r8b, 1
je 0x140043d8f
mov dword [rax - 0x24], 4
pxor xmm6, xmm4
pextrw r8d, xmm6, 4
test r8b, 1
je 0x140043da6
mov dword [rax - 0x18], 4
por xmm5, xmm1
pxor xmm5, xmm3
movdqa xmm6, xmm5
pcmpgtd xmm6, xmm0
pcmpeqd xmm5, xmm0
pshufd xmm7, xmm5, 0xf5
pand xmm7, xmm6
pshufd xmm5, xmm6, 0xf5
por xmm5, xmm7
pxor xmm5, xmm4
pextrw r8d, xmm5, 0
test r8b, 1
je 0x140043de3
mov dword [rax - 0xc], 4
pextrw r8d, xmm5, 4
test r8b, 1
je 0x140043df5
mov dword [rax], 4
add rcx, 4
add rax, 0x30
cmp rdx, rcx
jne 0x140043d43
mov rcx, qword [rdi]
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor edx, edx
mov r8, rsi
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
setne dil
test rsi, rsi
je 0x140043e34
mov rcx, rsi
call fcn.1401a9dc4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x140043e4b
call fcn.1401ac870
int3
mov eax, edi
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
test rsi, rsi
jne 0x140043e78
xor edi, edi
jmp 0x140043e34
xor edi, edi
jmp 0x140043e27
mov rcx, rsi
call fcn.1401a9dc4
jmp 0x140043e70