joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400af3f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400af406
mov al, 1
jmp 0x1400af466
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400af417
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400af464
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400afe04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400af464
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400af464
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400af464
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400af466
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400aff14
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.1400a7ad0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a7ad0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b0064
cmp rax, 0xffffffffffffffff
je 0x1400b0064
xor edi, edi
test rbp, rbp
jle 0x1400b000f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400abed0
mov rbx, rax
test rax, rax
jne 0x1400aff9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b0005
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a9190
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.1400aa910
cmp eax, 0xffffffff
je 0x1400affe5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400affac
mov edx, r15d
mov ecx, r14d
call fcn.1400a9190
jmp 0x1400b0005
cmp byte [rsi + 0x38], dil
je 0x1400afffc
cmp dword [rsi + 0x34], 5
jne 0x1400afffc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400b0005
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400abf48
jmp 0x1400b0078
jns 0x1400b0078
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a7ad0
cmp rax, 0xffffffffffffffff
jne 0x1400b0030
cmp byte [rsi + 0x30], dil
je 0x1400b0078
mov edi, dword [rsi + 0x2c]
jmp 0x1400b0078
mov ecx, r14d
call fcn.1400afe04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b0078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400b0078
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b0071
mov eax, dword [rsi + 0x2c]
jmp 0x1400b0076
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a7ad0
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 0x1400b38f4
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 0x1400b3924
xor eax, eax
jmp 0x1400b39e7
mov rbp, rbx
cmp word [rax], si
je 0x1400b3949
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b3930
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b392c
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.1400b08b0
movsxd r14, eax
test eax, eax
jne 0x1400b3987
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b391d
mov rcx, r14
call fcn.1400acb2c
mov rdi, rax
test rax, rax
jne 0x1400b39a0
xor ecx, ecx
call fcn.1400abf48
jmp 0x1400b397c
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.1400b08b0
test eax, eax
jne 0x1400b39d1
mov rcx, rdi
call fcn.1400abf48
jmp 0x1400b39db
xor ecx, ecx
call fcn.1400abf48
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 0x1400b3a04
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 0x1400b3a8b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b3a4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b3a34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b3a30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400acb2c
mov rdi, rax
test rax, rax
je 0x1400b3a78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bb150
mov rbp, rdi
xor ecx, ecx
call fcn.1400abf48
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 0x1400b518c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b51ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009cc7c
or eax, 0xffffffff
jmp 0x1400b51ae
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400b7af8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400e2700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400b7b42
call fcn.14009cce8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14009cd08
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140099e70
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140091720
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400b7b4d
lea eax, [rbx + 1]
jmp 0x1400b7b2f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400b7b2d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400b7b2f
Function at 0x1400b8f94
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.14009cd28
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b901e
cmp byte [rbp - 0x21], r15b
je 0x1400b9019
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b9054
call fcn.1400ac1f0
test eax, eax
jne 0x1400b9040
cmp byte [rbp - 0x21], r15b
je 0x1400b9038
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b9054
cmp byte [rbp - 0x21], r15b
je 0x1400b9051
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.1400a5578
test eax, eax
jne 0x1400b90f4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14009cd28
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b9093
cmp byte [rbp - 0x21], r15b
je 0x1400b90c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b90c8
call fcn.1400ac1f0
test eax, eax
jne 0x1400b90b4
cmp byte [rbp - 0x21], r15b
je 0x1400b90ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b90c8
cmp byte [rbp - 0x21], r15b
je 0x1400b90c5
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.1400a5578
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b90f4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b90f7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b9105
mov rcx, rdi
call fcn.1400abf48
cmp byte [rbp + 0x3f], r15b
je 0x1400b9114
mov rcx, qword [rbp + 0x27]
call fcn.1400abf48
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 0x1800024e0
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180005e80
mov rdi, qword [0x18001fd50]
cmp dword [rdi + 0x20], 0
je 0x18000252c
mov rcx, qword [0x18001fd60]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x180002693
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.180005e80
mov rcx, qword [rdi + 0x24]
lea rdx, [rsp + 0x230]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x1800026d5
lea rcx, str.shlwapi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.PathIsRelativeW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000263b
lea rcx, [rsp + 0x230]
call rax
test eax, eax
je 0x18000263b
mov rcx, qword [0x18001fd60]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, str.shlwapi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.PathRemoveFileSpecW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800025df
lea rcx, [rsp + 0x20]
call rax
lea rcx, str.shlwapi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.PathAddBackslashW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002608
lea rcx, [rsp + 0x20]
call rax
lea rcx, str.shlwapi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.PathAppendW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002693
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call rax
jmp 0x180002693
lea rcx, [rsp + 0x230]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180002643
lea rax, [rsp + 0x230]
sub rcx, rax
sar rcx, 1
cmp rcx, 0x104
ja 0x180002693
mov qword [rsp + 0x450], rsi
pushfq
pop rax
btr rax, 0xa
push rax
popfq
add rcx, rcx
lea rdi, [rsp + 0x20]
lea rsi, [rsp + 0x230]
rep movsb byte [rdi], byte [rsi]
mov rsi, qword [rsp + 0x450]
lea rcx, str.shlwapi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.PathCanonicalizeW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800026bf
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rax
mov eax, 1
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret
mov rbx, qword [rsp + 0x458]
xor eax, eax
add rsp, 0x440
pop rdi
ret
Function at 0x180003590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
push r12
push r14
push r15
sub rsp, 0x248
xor ebx, ebx
mov r15d, edx
cmp dword [0x18001fd80], ebx
mov r12, r8
mov r14, rcx
jne 0x1800035f1
lea rcx, str.ntdll
mov dword [0x18001fd90], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800035e7
lea rcx, [0x18001fd90]
call rax
mov dword [0x18001fd80], 1
mov eax, dword [0x18001fd94]
mov qword [rsp + 0x270], rbp
mov qword [rsp + 0x278], rsi
mov qword [rsp + 0x240], rdi
lea ecx, [rax + rax*4]
mov eax, dword [0x18001fd98]
lea edx, [rax + rcx*2]
cmp edx, 0x3e
jbe 0x1800036f3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.kernel32
mov dword [rsp + 0x20], ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetProcessMitigationPolicy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800036f3
mov r9d, 4
lea r8, [rsp + 0x20]
mov rcx, rdi
lea edx, [r9 + 3]
call rax
test eax, eax
je 0x1800036f3
mov eax, dword [rsp + 0x20]
and eax, 1
je 0x1800036f3
mov edi, ebx
call fcn.1800033f0
mov rbp, rax
test rax, rax
je 0x1800036eb
mov edx, 5
mov dword [rsp + 0x288], ebx
lea r9, [rsp + 0x288]
mov rcx, rax
lea r8d, [rdx + 0x3b]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
pushfq
pop rcx
btr rcx, 0xa
push rcx
popfq
mov r8d, dword [rsp + 0x288]
lea rsi, [0x18001eb08]
mov rdi, rbp
lea r9, [rsp + 0x288]
mov ecx, 5
mov edx, 5
rep movsb byte [rdi], byte [rsi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 1
test edi, edi
je 0x180003789
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.180005e80
lea r9, [rsp + 0x288]
mov dword [rsp + 0x288], ebx
lea r8, [rsp + 0x30]
mov ecx, r15d
call fcn.1800032b0
test eax, eax
je 0x180003789
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x180003789
mov ebp, dword [rsp + 0x288]
lea r9, [rsp + 0x20]
add rbp, rax
mov dword [rsp + 0x20], ebx
mov rcx, rbp
mov r8d, 0x40
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test rbp, rbp
je 0x180003780
test r14, r14
je 0x180003780
pushfq
pop rax
btr rax, 0xa
push rax
popfq
mov rdi, rbp
mov rsi, r14
mov rcx, r15
rep movsb byte [rdi], byte [rsi]
mov qword [r12], rbp
mov ebx, 1
mov rdi, qword [rsp + 0x240]
mov eax, ebx
mov rsi, qword [rsp + 0x278]
mov rbp, qword [rsp + 0x270]
add rsp, 0x248
pop r15
pop r14
pop r12
pop rbx
ret
Function at 0x180003af0
Capabilities:
Acquire debug privileges
Link many functions at runtime

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x40
mov ebx, ecx
xor r15d, r15d
lea rcx, str.kernel32
mov qword [rsp + 0x70], r15
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.OpenProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003d04
mov r8d, ebx
mov qword [rsp + 0x38], rsi
xor edx, edx
mov ecx, 0x400
call rax
mov rsi, rax
test rax, rax
je 0x180003cf4
lea rcx, str.advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003ceb
lea r8, [rsp + 0x70]
mov rcx, rsi
lea edx, [r15 + 8]
call rax
test eax, eax
je 0x180003ceb
lea rcx, str.advapi32
mov qword [rsp + 0x78], r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.LookupPrivilegeValueW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003cd6
lea r8, [rsp + 0x78]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call rax
test eax, eax
je 0x180003cd6
mov rbx, qword [rsp + 0x70]
lea rcx, str.advapi32
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x68], r15d
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003c17
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
lea edx, [r15 + 3]
mov rcx, rbx
xor r8d, r8d
call rax
mov ebx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [rsp + 0x68]
lea rcx, str.advapi32
mov r14, qword [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003cb3
lea rcx, [rsp + 0x68]
mov r9d, ebp
mov qword [rsp + 0x20], rcx
mov r8, rbx
mov rcx, r14
mov edx, 3
call rax
test eax, eax
je 0x180003cb3
mov r8d, dword [rbx]
mov edx, r15d
test r8d, r8d
je 0x180003cb3
mov rax, qword [rsp + 0x78]
lea rcx, [rbx + 4]
mov r9d, dword [rsp + 0x7c]
cmp dword [rcx + 4], r9d
jne 0x180003ca1
cmp dword [rcx], eax
je 0x180003cae
inc edx
add rcx, 0xc
cmp edx, r8d
jb 0x180003c97
jmp 0x180003cb3
mov edi, 1
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
test rbx, rbx
je 0x180003cd6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180003ceb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x40
pop r15
pop rdi
pop rbx
ret
mov eax, edi
add rsp, 0x40
pop r15
pop rdi
pop rbx
ret
Function at 0x18000c7e0
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 0x18000c810
xor eax, eax
jmp 0x18000c8d3
mov rbp, rbx
cmp word [rax], si
je 0x18000c835
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000c81c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000c818
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.18000c730
movsxd r14, eax
test eax, eax
jne 0x18000c873
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000c809
mov rcx, r14
call fcn.18000d5c8
mov rdi, rax
test rax, rax
jne 0x18000c88c
xor ecx, ecx
call fcn.18000ad98
jmp 0x18000c868
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.18000c730
test eax, eax
jne 0x18000c8bd
mov rcx, rdi
call fcn.18000ad98
jmp 0x18000c8c7
xor ecx, ecx
call fcn.18000ad98
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 0x213761500
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movzx edi, word [section..rdata]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rsi, r8
mov r8, r9
movq xmm1, rcx
mov rcx, rdx
mov rax, qword [rax + 0x20]
mov rbp, qword [rax]
mov rbx, qword [rbp - 0x10]
lea r9, [rbp - 0x10]
cmp rbp, rbx
je 0x21376158d
nop word [rax + rax]
mov rax, qword [r9 + 0x60]
lea r10, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x213761582
mov edx, 0xe0e
nop dword [rax]
mov r11d, edx
add r10, 2
shl r11d, 6
add edx, r11d
add edx, eax
movzx eax, word [r10 - 2]
test ax, ax
jne 0x213761560
cmp edx, 0x18cf5f14
je 0x2137615fd
mov r9, rbx
mov rbx, qword [r9]
cmp rbp, rbx
jne 0x213761548
xor eax, eax
movq xmm0, rax
mov rdx, rsi
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], 0
mov r9, qword [rsp + 0xc0]
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.2137616a0
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, dword [r9 + 0x40]
mov rax, qword [r9 + 0x30]
cmp edx, 2
je 0x21376158d
sub edx, 3
lea rdx, [rax + rdx + 1]
nop word [rax + rax]
cmp word [rax], di
je 0x21376158f
add rax, 1
cmp rax, rdx
jne 0x213761618
jmp 0x21376158d
Function at 0x2137616e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x2137617c4
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
mov r10d, 8
movzx r9d, byte [rax + 0x1e]
lea r11, [0x213799180]
movzx r8d, byte [rax + 0x1d]
lea rbx, [0x213799068]
movzx edx, byte [rax + 0x1c]
jmp 0x213761789
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
shr edx, 3
movzx r8d, byte [r11 + r8]
xor cl, byte [rbx + rdx]
movzx r9d, byte [r11 + r9]
mov edx, ecx
xor dl, byte [rax]
add r10d, 1
add rax, 4
xor r8b, byte [rax - 3]
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x2137617c0
mov ecx, r10d
and ecx, 7
je 0x213761730
cmp ecx, 4
jne 0x21376175e
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x21376175e
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x213761707