joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140087d4f
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140087d7b
xor eax, eax
jmp 0x140087d80
call fcn.1400310bc
nop
add rsp, 0x38
ret

Function at 0x140087dab
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x140087dc9
add rsp, 0x28
jmp fcn.1400310bc
xor eax, eax
add rsp, 0x28
ret
Function at 0x14008dd30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14008dd60
test ecx, ecx
jne 0x14008ddb0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14008dd6c
test ecx, ecx
jne 0x14008ddb0
mov rcx, rdi
call fcn.14008dc10
movzx eax, al
test bpl, bpl
jne 0x14008ddb7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14008dda3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14008df28]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14008dda3.2
xor eax, eax
test bpl, bpl
je 0x14008dd7c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14008df09
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14008ddea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14008de69
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14008de30
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14008de4b
inc rax
dec rdi
cmp rax, 1
jne 0x14008de10
jmp 0x14008de69
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14008de4b
cmp ebx, 0x5c
je 0x14008de4b
inc rax
dec rdi
cmp rax, 1
jne 0x14008de30
jmp 0x14008de69
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14008df17
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14008de93
mov al, 9
cmp rdx, 2
je 0x14008de97
cmp rdx, 1
jne 0x14008dea7
cmp byte [r8], 0x2e
jne 0x14008dea7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14008dea7
mov al, 0xa
jmp 0x14008dea7
cmp byte [r8], 0x2e
jne 0x14008dea7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14008dda3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14008dda3.2
mov ecx, 2
jmp case.0x14008dda3.2
lea r8, str.library_std_srcpath.rs
call fcn.1400a8130
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400a8130
ud2
Function at 0x140091da0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14010f2f8]
mov ecx, 0x10
mov edx, 8
call fcn.140004e80
test rax, rax
je 0x140091e77
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140091f00]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140091e69
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x140091e46
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140004f10
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140004f10
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400a7dd0
ud2

Function at 0x140092020
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140092063
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14008f0a0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400a8070
ud2

Function at 0x140096040
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140096075
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14009607a
call fcn.140092020
nop
add rsp, 0x38
ret

Function at 0x14009c72f
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.14009a434
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14009c76a
xor eax, eax
jmp 0x14009c778
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14009c9cb
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rbp, [rsp + 0x42]
lea r13, [rsp + 0x52]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
mov qword [rsp + 0x30], r15
mov rdx, qword [r14 + 0x10]
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.14009d2c0
mov al, byte [rsp + 0x41]
cmp al, 3
je 0x14009cb2f
mov rcx, qword [rsp + 0x38]
cmp al, 2
je 0x14009cb3d
mov dl, byte [rsp + 0x40]
movzx r8d, word [rbp + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rbp]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str.C:Usersjerem.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.28.2_srciopoll_evented.rs
call fcn.140024156
mov rcx, qword [r15]
mov rdx, rdi
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14009cb4f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.140030e08
cmp al, 0xd
jne 0x14009cb09
mov rax, qword [r15 + 8]
test rax, rax
je 0x14009cb09
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14009cb81
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140030cf1
mov rbx, rax
xor ecx, ecx
call fcn.14002ffc0
test rbx, rbx
je 0x14009cafe
mov ecx, 1
mov rdx, rsi
call fcn.140030e50
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140030e08
cmp al, 0xd
jne 0x14009cb60
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.14009cffa
mov rcx, rsi
call fcn.14005aa2a
jmp 0x14009ca1c
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x14009cb70
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x14009cb70
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14009cb70
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x14009ee50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14009ee57
test al, 1
je 0x14009ee76
test al, 2
jne 0x14009ee8b
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400e4830]
mov edx, 0x23
jmp 0x14009ee9e
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400e47f0]
mov edx, 0x25
call fcn.1400a8230
ud2
Function at 0x1400a79d0
Capabilities:
Parse pe header

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

Function at 0x1400a9a26
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400a9a7b
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a9a7b
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a9a7b
mov r14, rax
xor edi, edi
jmp 0x1400a9aff
lea rcx, [0x1400d6590]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400a9b54
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a9b54
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a9b54
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1400a9b54
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400a9b54
mov r14, qword [rsp + 0x20]
mov ecx, 0x18
call fcn.1400251e3
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x14010f160], rbx
je 0x1400a9b47
mov rsi, rax
cmp qword [rbx], 0
je 0x1400a9b37
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 8
mov rcx, rbx
call fcn.140004f10
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a9b5b
ud2
Function at 0x18000be90
Capabilities:
Check if file exists
Persist via run registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x49], rdx
xor esi, esi
mov dword [rbp - 0x59], esi
cmp qword [rcx + 0x10], rsi
je 0x18000bf14
cmp qword [rcx + 0x18], 8
jb 0x18000bedd
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x18000bf14
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.180005820
nop
jmp 0x18000c0fb
cmp byte [rbx + 0x1b8], sil
je 0x18000bfbe
cmp qword [rbx + 0x1a0], rsi
je 0x18000bfbe
call fcn.18001cfc0
mov rcx, rbx
test eax, eax
je 0x18000bf7c
mov r8d, 9
lea rdx, str.C:Users_
call fcn.1800076f0
lea rdx, [rbx + 0x190]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rax
call fcn.180008ec0
mov r8d, 0xe
lea rdx, str.AppDataLocal
mov rcx, rax
call fcn.1800076f0
jmp 0x18000c0da
mov r8d, 0x1a
lea rdx, str.C:Documents_and_Settings_
call fcn.1800076f0
lea rdx, [rbx + 0x190]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rax
call fcn.180008ec0
mov r8d, 0x20
lea rdx, str.Local_SettingsApplication_Data
mov rcx, rax
call fcn.1800076f0
jmp 0x18000c0da
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
mov r8d, 0xd
lea rdx, str.Local_AppData
lea rcx, [rbp + 0x17]
call fcn.180007850
nop
mov qword [rbp + 7], 7
mov qword [rbp - 1], rsi
mov word [rbp - 0x11], si
mov r8d, 0x40
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea rcx, [rbp - 0x11]
call fcn.180007850
nop
mov qword [rbp - 0x51], 0xffffffff80000001
lea r9, [rbp + 0x17]
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call fcn.18000c920
nop
mov rdx, rax
mov rcx, rbx
call fcn.18000a370
nop
cmp qword [rbp - 0x21], 8
jb 0x18000c046
mov rcx, qword [rbp - 0x39]
call fcn.18007309c
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rsi
mov word [rbp - 0x39], si
cmp qword [rbp + 7], 8
jb 0x18000c066
mov rcx, qword [rbp - 0x11]
call fcn.18007309c
mov qword [rbp + 7], 7
mov qword [rbp - 1], rsi
mov word [rbp - 0x11], si
cmp qword [rbp + 0x2f], 8
jb 0x18000c086
mov rcx, qword [rbp + 0x17]
call fcn.18007309c
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
cmp qword [rbx + 0x10], 0
ja 0x18000c0da
lea rdx, [0x1800b26d8]
lea rcx, [rbp - 0x39]
call fcn.18000cb30
nop
mov rdx, rax
mov rcx, rbx
call fcn.18000a370
nop
cmp qword [rbp - 0x21], 8
jb 0x18000c0ca
mov rcx, qword [rbp - 0x39]
call fcn.18007309c
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rsi
mov word [rbp - 0x39], si
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.180005820
mov dword [rbp - 0x59], 1
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180073c80
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000c130
Capabilities:
Check if file exists
Persist via run registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x49], rdx
xor r12d, r12d
mov dword [rbp - 0x59], r12d
cmp qword [rcx + 0x38], r12
je 0x18000c1c1
cmp qword [rcx + 0x40], 8
jb 0x18000c184
mov rcx, qword [rcx + 0x28]
jmp 0x18000c188
add rcx, 0x28
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x18000c1c1
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsi + 0x28]
mov rcx, rbx
call fcn.180005820
nop
jmp 0x18000c36d
cmp byte [rsi + 0x1b8], r12b
je 0x18000c226
cmp qword [rsi + 0x1a0], r12
je 0x18000c226
call fcn.18001cfc0
test eax, eax
je 0x18000c34a
mov r8d, 9
lea rdx, str.C:Users_
lea rcx, [rsi + 0x28]
call fcn.1800076f0
lea rdx, [rsi + 0x190]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rax
call fcn.180008ec0
mov r8d, 0x11
lea rdx, str.AppDataLocalLow
mov rcx, rax
call fcn.1800076f0
jmp 0x18000c34a
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], r12
mov word [rbp + 0x17], r12w
mov r8d, 0x26
lea rdx, str.A520A1A4_1780_4FF6_BD18_167343C5AF16
lea rcx, [rbp + 0x17]
call fcn.180007850
nop
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
mov r8d, 0x40
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea rcx, [rbp - 0x11]
call fcn.180007850
nop
mov qword [rbp - 0x51], 0xffffffff80000001
lea r9, [rbp + 0x17]
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call fcn.18000c920
nop
mov rdx, rax
lea rcx, [rsi + 0x28]
call fcn.18000a370
nop
cmp qword [rbp - 0x21], 8
jb 0x18000c2b1
mov rcx, qword [rbp - 0x39]
call fcn.18007309c
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r12
mov word [rbp - 0x39], r12w
cmp qword [rbp + 7], 8
jb 0x18000c2d2
mov rcx, qword [rbp - 0x11]
call fcn.18007309c
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
cmp qword [rbp + 0x2f], 8
jb 0x18000c2f3
mov rcx, qword [rbp + 0x17]
call fcn.18007309c
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], r12
mov word [rbp + 0x17], r12w
cmp qword [rsi + 0x38], 0
ja 0x18000c34a
lea rdx, [0x1800b26e8]
lea rcx, [rbp - 0x39]
call fcn.18000cb30
nop
mov rdx, rax
lea rcx, [rsi + 0x28]
call fcn.18000a370
nop
cmp qword [rbp - 0x21], 8
jb 0x18000c339
mov rcx, qword [rbp - 0x39]
call fcn.18007309c
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r12
mov word [rbp - 0x39], r12w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsi + 0x28]
mov rcx, rbx
call fcn.180005820
mov dword [rbp - 0x59], 1
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180073c80
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x18000c660
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x30], rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
cmp qword [rcx + 0x178], r12
je 0x18000c6fc
cmp qword [rcx + 0x180], 8
jb 0x18000c6b9
mov rcx, qword [rcx + 0x168]
jmp 0x18000c6c0
add rcx, 0x168
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x18000c6fc
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x168]
mov rcx, rdi
call fcn.180005820
nop
jmp 0x18000c8ec
call fcn.18001cfc0
lea rdx, [rsp + 0x38]
mov rcx, rbp
test eax, eax
je 0x18000c728
call fcn.18000c130
nop
mov rdx, rax
lea rcx, [rbp + 0x168]
call fcn.18000a370
nop
jmp 0x18000c8a0
call fcn.18000be90
nop
mov rdx, rax
lea rcx, [rbp + 0x168]
call fcn.18000a370
nop
cmp qword [rsp + 0x50], 8
jb 0x18000c750
mov rcx, qword [rsp + 0x38]
call fcn.18007309c
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r12w
mov rax, qword [rsi + 0x10]
test rax, rax
jne 0x18000c798
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x168]
mov rcx, rdi
call fcn.180005820
jmp 0x18000c8ec
mov rcx, qword [rsi + 0x18]
cmp rcx, 8
jb 0x18000c7a7
mov rax, qword [rsi]
jmp 0x18000c7aa
mov rax, rsi
mov r13d, 0x5c
lea r14d, [r13 - 0x2d]
cmp r13w, word [rax]
je 0x18000c7ec
cmp rcx, 8
jb 0x18000c7c5
mov rax, qword [rsi]
jmp 0x18000c7c8
mov rax, rsi
cmp r14w, word [rax]
je 0x18000c7ec
mov r8d, 1
lea rdx, [0x1800b6ec0]
lea rcx, [rbp + 0x168]
call fcn.1800076f0
mov rcx, rax
jmp 0x18000c7f3
lea rcx, [rbp + 0x168]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
call fcn.180008ec0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x168]
call fcn.180005820
mov rcx, qword [rbp + 0x178]
dec ecx
movsxd r9, ecx
cmp qword [rbp + 0x178], r9
ja 0x18000c83a
lea rcx, str.invalid_string_position
call fcn.180072554
int3
mov rax, qword [rbp + 0x180]
cmp rax, 8
jb 0x18000c850
mov rcx, qword [rbp + 0x168]
jmp 0x18000c857
lea rcx, [rbp + 0x168]
cmp r13w, word [rcx + r9*2]
je 0x18000c87b
cmp rax, 8
jb 0x18000c86d
mov rax, qword [rbp + 0x168]
jmp 0x18000c874
lea rax, [rbp + 0x168]
cmp r14w, word [rax + r9*2]
jne 0x18000c8c6
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x168]
call fcn.18000d270
nop
mov rdx, rax
lea rcx, [rbp + 0x168]
call fcn.18000a370
nop
cmp qword [rsp + 0x50], 8
jb 0x18000c8b2
mov rcx, qword [rsp + 0x38]
call fcn.18007309c
mov word [rsp + 0x38], r12w
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x168]
mov rcx, rdi
call fcn.180005820
mov dword [rsp + 0x20], 1
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180073c80
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180019be0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.18001cfc0
test eax, eax
jne 0x180019c16
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180073c80
add rsp, 0x88
ret
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
xor eax, eax
mov dl, 2
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
lea r8d, [rax + 0x20]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x180019c8b
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
test eax, eax
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180073c80
add rsp, 0x88
ret
Function at 0x180019d70
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x500], rbx
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov edi, dword [rdx]
test edi, edi
jne 0x180019dc4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x5e]
call fcn.180073cb0
mov word [rbp + 0x1b0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1b2]
call fcn.180073cb0
mov dword [rsp + 0x54], 0x104
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
mov r8d, 0x10
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x70]
call fcn.180007850
nop
lea rcx, [rsp + 0x70]
call fcn.180019040
nop
cmp qword [rbp - 0x78], 8
jb 0x180019e56
mov rcx, qword [rsp + 0x70]
call fcn.18007309c
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
mov r8d, edi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x180019f3f
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180019f3f
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x180019ecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180019f3f
mov ecx, dword [rsp + 0x40]
call fcn.180074298
mov rdi, rax
test rax, rax
je 0x180019f3f
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8, rdi
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180019f37
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x60]
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov rcx, rdi
call fcn.180074350
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.180007850
mov dword [rsp + 0x50], 1
mov rax, rbx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.180073c80
mov rbx, qword [rsp + 0x500]
add rsp, 0x4d0
pop r12
pop rdi
pop rbp
ret
Function at 0x18001b0e0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x10], 0
jne 0x18001b0f2
xor al, al
add rsp, 0x28
ret
cmp qword [rcx + 0x18], 8
jb 0x18001b0fc
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
add rsp, 0x28
ret