joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c944
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000c972
xor eax, eax
jmp 0x14000ca58
cmp qword [rcx + 0x68], 0
je 0x14000c983
call fcn.14000ca74
jmp 0x14000ca58
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c99a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c99c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c9ce
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000fb00
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000ca52
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000ca05
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000ca2e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400188d0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000ca52
cmp rsi, rbx
ja 0x14000ca0c
test rsi, rsi
je 0x14000ca52
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400188d0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000e728
Capabilities:
Parse pe header

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

Function at 0x14001d7ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d5e8
Function at 0x140025f98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000e2e0
sub rsp, rax
mov rax, qword [0x140048018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002310c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140025fe7
mov rax, rbp
jmp 0x1400260ef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x8db50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400270b8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8db50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400260eb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400260eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400270b8
test rax, rax
js 0x1400260eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400260eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400260dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400260dd
cmp byte [rcx], 0xd
jne 0x1400260c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400260d2
cmp byte [rcx + 1], 0xa
jne 0x1400260d2
inc rcx
jmp 0x1400260d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x48430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400260a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400260ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000da10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140026310
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140026326
mov al, 1
jmp 0x140026386
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140026337
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026384
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002b014
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026384
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026384
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026384
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026386
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140026458
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14008db50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400264af
cmp word [rdx], r13w
jne 0x1400264af
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400264b4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400265d9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400265fa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400264ed
mov rdx, r9
mov word [rbx], cx
jmp 0x140026514
cmp r9, r8
jae 0x140026524
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400264ce
jmp 0x1400265d9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400265ce
cmp dword [rsp + 0x80], esi
je 0x1400265ce
lea r8, [0x14008db50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400265a6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140026576
mov word [rbx], r13w
jmp 0x1400265d6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140026583
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400265d6
cmp word [rsp + 0x70], r13w
jne 0x1400265b3
cmp rbx, r14
je 0x140026570
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400270c0
cmp word [rsp + 0x70], r13w
je 0x1400265d9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14008db50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400265d3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400265d9
Function at 0x14002a500
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 0x14002a530
xor eax, eax
jmp 0x14002a5f3
mov rbp, rbx
cmp word [rax], si
je 0x14002a555
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a53c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a538
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.140028c10
movsxd r14, eax
test eax, eax
jne 0x14002a593
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a529
mov rcx, r14
call fcn.140021eb0
mov rdi, rax
test rax, rax
jne 0x14002a5ac
xor ecx, ecx
call fcn.1400210bc
jmp 0x14002a588
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.140028c10
test eax, eax
jne 0x14002a5dd
mov rcx, rdi
call fcn.1400210bc
jmp 0x14002a5e7
xor ecx, ecx
call fcn.1400210bc
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 0x14002d568
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140020d5c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002d609
cmp ebx, dword [rsp + 0x30]
je 0x14002d602
test esi, esi
je 0x14002d602
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002d5dd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002d5ea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002d5c7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002d5ee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002d60b
mov eax, 1
jmp 0x14002d60b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140030f0c
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.14001a250
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140030f96
cmp byte [rbp - 0x21], r15b
je 0x140030f91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140030fcc
call fcn.1400213c0
test eax, eax
jne 0x140030fb8
cmp byte [rbp - 0x21], r15b
je 0x140030fb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140030fcc
cmp byte [rbp - 0x21], r15b
je 0x140030fc9
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.14001cda0
test eax, eax
jne 0x14003106c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001a250
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003100b
cmp byte [rbp - 0x21], r15b
je 0x140031040
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140031040
call fcn.1400213c0
test eax, eax
jne 0x14003102c
cmp byte [rbp - 0x21], r15b
je 0x140031025
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140031040
cmp byte [rbp - 0x21], r15b
je 0x14003103d
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.14001cda0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003106c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003106f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003107d
mov rcx, rdi
call fcn.1400210bc
cmp byte [rbp + 0x3f], r15b
je 0x14003108c
mov rcx, qword [rbp + 0x27]
call fcn.1400210bc
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 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
push r9
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140004370
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov qword [rbp - 0x38], rsi
mov dword [rbp - 0x2c], esi
mov edi, esi
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor edx, edx
xor ecx, ecx
lea r8d, [rsi + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x14000440d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
lea ecx, [rsi + 5]
call fcn.14009c140
test eax, eax
je 0x140004403
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_EnumerateSessions_Error:__lu
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0x50]
lea r8, str._getUserSessionCount
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplServiceServiceMain.cpp
lea ecx, [rsi + 5]
call fcn.14000aa30
mov eax, 1
jmp 0x140004511
mov ebx, esi
cmp dword [rbp - 0x2c], ebx
jbe 0x140004505
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rbp - 0x38]
mov edx, dword [rax + rcx*8]
test edx, edx
je 0x1400044fa
test dword [rax + rcx*8 + 0x10], 0xfffffffa
jne 0x1400044fa
mov qword [rbp - 0x40], rsi
mov dword [rbp - 0x30], esi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
xor ecx, ecx
lea r8d, [rcx + 5]
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x1400044fa
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], 7
mov rdx, qword [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004490
lea rcx, [rbp - 0x28]
call fcn.14000de60
cmp qword [rbp - 0x18], 0
je 0x1400044ad
inc edi
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov qword [rbp - 0x40], rsi
mov dword [rbp - 0x30], esi
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400044fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400044f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004533
call fcn.1400ab6e0
inc ebx
cmp ebx, dword [rbp - 0x2c]
jb 0x140004420
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400ab6c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400b2bb8
int3
Function at 0x14000cb00
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 7
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14000cb50
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000de60
lea rbx, [rsp + 0x20]
mov rbp, qword [rsp + 0x38]
cmp rbp, 8
setae r14b
mov rdi, qword [rsp + 0x20]
cmovae rbx, rdi
mov rax, qword [rsp + 0x30]
cmp rax, 8
jb 0x14000cc30
add rax, 0xfffffffffffffff9
lea rsi, [rbx + rax*2]
mov rax, rbx
movzx r11d, word [str.register]
lea r12, str.register
nop dword [rax]
mov rcx, rsi
sub rcx, rax
sar rcx, 1
mov edx, 0
je 0x14000cbdc
cmp word [rax], r11w
je 0x14000cbd9
cmp rcx, 1
je 0x14000cbdc
dec rcx
add rax, 2
cmp word [rax], r11w
jne 0x14000cbc6
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x14000cc30
mov r9d, 8
mov rcx, r12
movzx edx, word [rdx]
movzx r8d, r11w
cmp dx, r11w
jb 0x14000cc22
mov r10, rax
sub r10, r12
cmp dx, r11w
ja 0x14000cc22
cmp r9, 1
je 0x14000cc28
dec r9
add rcx, 2
movzx edx, word [r10 + rcx]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x14000cc04
add rax, 2
jmp 0x14000cbb0
sub rax, rbx
sar rax, 1
jmp 0x14000cc37
mov rax, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
setne bl
test r14b, r14b
je 0x14000cc74
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000cc6c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cca0
mov rcx, rdi
call fcn.1400ab6e0
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ab6c0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r12
pop rdi
ret
call fcn.1400b2bb8
int3
Function at 0x1400141f0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rsp + 0xc8]
mov r10, r9
mov r9, qword [rsp + 0x90]
mov r11, r8
mov qword [rsp + 0x50], rax
mov rcx, rdx
mov rax, qword [rsp + 0xc0]
mov r8, r10
mov qword [rsp + 0x48], rax
mov rdx, r11
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
add rsp, 0x60
pop rbx
ret

Function at 0x140014270
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [rsp + 0xb8]
mov rcx, rdx
mov qword [rsp + 0x50], rax
xor edx, edx
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
add rsp, 0x68
ret

Function at 0x140014430
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rsp + 0xb0]
mov r10, r9
mov r9, qword [rsp + 0x80]
mov r11, r8
mov qword [rsp + 0x48], rax
mov rcx, rdx
mov rax, qword [rsp + 0xa8]
mov r8, r10
mov qword [rsp + 0x40], rax
mov rdx, r11
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
add rsp, 0x50
pop rbx
ret
Function at 0x140015800
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x14005c601.0]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x38]
mov rdi, rax
mov qword [rsp + 0x38], 0
mov r8d, 0x28
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x40]
mov rdx, rdi
call qword [case.0x14005c601.0]
test eax, eax
jne 0x1400158d5
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x14005c601.0]
mov ecx, 5
mov dword [rsp + 0x30], eax
mov esi, eax
call fcn.14009c140
test eax, eax
je 0x1400158ba
lea rax, [rsp + 0x30]
mov r9d, 0xf1
mov qword [rsp + 0x28], rax
lea r8, str.CTP::ProcessWrapper::enablePrivilegesOnCurrentProcess
lea rax, str.Failed_to_open_process_token_for_current_process.Error:__lu
mov ecx, 5
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplProcessWrapper.cpp
mov qword [rsp + 0x20], rax
call fcn.14000aa30
mov rcx, qword [rbx + 8]
mov rdx, rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14005c601.0]
mov eax, esi
jmp 0x14001598f
mov rax, qword [rbx]
lea r8, str.SeAssignPrimaryTokenPrivilege
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [case.0x14005c601.0]
mov esi, eax
test eax, eax
je 0x140015925
mov rcx, qword [rbx + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x68]
mov rdx, rdi
call qword [case.0x14005c601.0]
mov rcx, qword [rbx + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x68]
mov rdx, qword [rsp + 0x38]
call qword [case.0x14005c601.0]
mov eax, esi
jmp 0x14001598f
mov rax, qword [rbx]
lea r8, str.SeIncreaseQuotaPrivilege
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [case.0x14005c601.0]
mov esi, eax
test eax, eax
jne 0x1400158f7
mov rax, qword [rbx]
lea r8, str.SeTcbPrivilege
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [case.0x14005c601.0]
mov esi, eax
test eax, eax
jne 0x1400158f7
mov rax, qword [rbx]
lea r8, str.SeDebugPrivilege
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [case.0x14005c601.0]
mov esi, eax
test eax, eax
jne 0x1400158f7
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ab6c0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140015ef0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
xor r8d, r8d
movabs rax, 0xcbf29ce484222325
test r9, r9
je 0x140015f24
movabs r10, 0x100000001b3
movzx edx, byte [r8 + rcx]
inc r8
xor rax, rdx
imul rax, r10
cmp r8, r9
jb 0x140015f10
ret
Function at 0x14001e3c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov ecx, 8
call fcn.1400ab6e8
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140020550]
xor edx, edx
xor ecx, ecx
call fcn.1400bca28
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001e447
cmp dword [rbx + 0x200], 0
jne 0x14001e441
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x1f8], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ab6c0
add rsp, 0x50
pop rbx
ret
call fcn.1400b920c
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400a9148
int3