joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8f2700
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9135e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8f2888
mov rax, qword [0x6d9135e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8f274c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8f27d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8f2730
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8f28bd
mov rax, qword [0x6d9135e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d9135e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8f28a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8f27ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8f2830
add dword [0x6d9135e4], 1
cmp edi, 8
jae 0x6d8f2803
test dil, 4
jne 0x6d8f2874
test edi, edi
je 0x6d8f27f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8f288f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8f27f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8f281c
jmp 0x6d8f27f8
add rsi, qword [0x6d9135e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8f27ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8f27f8
xor esi, esi
jmp 0x6d8f2757
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8f27f8
mov rax, qword [0x6d9135e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8f3010
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d9138c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d9138a0]
test rbx, rbx
je 0x6d8f3064
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8f305b
test rsi, rsi
je 0x6d8f305b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8f3040
lea rcx, [0x6d9138c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8f32a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8f32b0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8f32c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8f3301
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8f32f8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8f3303
add rax, 0x28
cmp rax, r9
jne 0x6d8f32e4
xor eax, eax
ret

Function at 0x6d8f33a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9101f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8f340d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f340d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8f340d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8f3404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8f340f
add rax, 0x28
cmp rax, r9
jne 0x6d8f33f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8f3510
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9101f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8f3530
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f3528
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8f358d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8f3584
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8f3594
add rax, 0x28
cmp rax, r9
jne 0x6d8f3570
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8f35b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d9101f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8f361e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f361e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8f361e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8f361e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8f3615
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8f3625
add rcx, 0x28
cmp rcx, rax
jne 0x6d8f3600
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8f3638
jmp 0x6d8f361e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8f3646
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8f361e
test r9d, r9d
jg 0x6d8f3630
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8f39b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x180002d00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002d28
xor eax, eax
lea r8, [0x180002bd0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800043f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004610
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800044f7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004454
mov rax, qword [0x18002b008]
cmp qword [rsp + 0x20], rax
ja 0x180004454
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004416
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004483
jmp 0x1800044f7
cmp dword [rsp + 0x50], 0x10000
jne 0x1800044da
cmp qword [rsp + 0x48], 0x10000
jb 0x1800044da
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800044c8
mov rax, qword [rsp + 0x28]
jmp 0x1800044f9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800044f2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004610
mov qword [rsp + 0x20], rax
jmp 0x180004416
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004500
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004650
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004603
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000455b
mov rax, qword [0x18002b008]
cmp qword [rsp + 0x20], rax
ja 0x18000455b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000451d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000458a
jmp 0x180004603
cmp dword [rsp + 0x50], 0x10000
jne 0x1800045e1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800045e1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800045cf
mov rax, qword [rsp + 0x28]
jmp 0x180004605
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800045fe
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004650
mov qword [rsp + 0x20], rax
jmp 0x18000451d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800046a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004c30
mov qword [rsp + 0x28], 0
cmp qword [0x18002b318], 0
jne 0x1800046e8
cmp qword [0x18002b310], 0
je 0x1800046e8
mov rax, qword [0x18002b310]
mov qword [0x18002b318], rax
cmp qword [0x18002b318], 0
je 0x18000478e
mov rax, qword [0x18002b318]
cmp qword [rax + 0x10], 0
je 0x18000478e
mov rax, qword [0x18002b318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000478e
mov rax, qword [0x18002b318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000478e
mov rax, qword [0x18002b318]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004754
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000475b
xor eax, eax
jmp 0x180004909
mov rax, qword [0x18002b318]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004909
mov rax, qword [0x18002b310]
mov qword [0x18002b318], rax
jmp 0x1800047b0
mov rax, qword [0x18002b318]
mov rax, qword [rax + 8]
mov qword [0x18002b318], rax
cmp qword [0x18002b318], 0
je 0x1800047fd
cmp qword [0x18002b318], 0
je 0x1800047fb
mov rax, qword [0x18002b318]
cmp qword [rax + 0x10], 0
je 0x1800047fb
mov rax, qword [0x18002b318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800047fb
mov rax, qword [0x18002b318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800047fb
jmp 0x18000472c
jmp 0x18000479e
mov rcx, qword [rsp + 0x60]
call fcn.180006860
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004910
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004907
mov rax, qword [rsp + 0x48]
mov qword [0x18002b318], rax
mov rax, qword [0x18002b318]
mov dword [rax], 0x52727464
mov rax, qword [0x18002b318]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002b318]
mov rcx, qword [0x18002b310]
mov qword [rax + 8], rcx
mov rax, qword [0x18002b318]
mov qword [0x18002b310], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002b318]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800048b8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800048f2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800048ae
mov rax, qword [0x18002b318]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000472c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1404c00b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1404c0237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1404c00e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404c00c7
add dl, dl
jne 0x1404c00ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404c014e
xor eax, eax
add dl, dl
jne 0x1404c00fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404c0205
add dl, dl
jne 0x1404c010e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c011b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c0128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c0135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1404c0142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1404c00d6
mov eax, 1
add dl, dl
jne 0x1404c015e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c016b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404c0153
sub eax, ebx
mov ebx, 1
jne 0x1404c01a4
mov ecx, 1
add dl, dl
jne 0x1404c0186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404c0193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404c017b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404c00d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1404c01c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404c01cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404c01b5
cmp eax, 0x7d00
jae 0x1404c01f3
cmp eax, 0x500
jb 0x1404c01ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404c00d6
cmp eax, 0x7f
ja 0x1404c01f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404c00d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1404c022a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1404c00d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001a30
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x18001b008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180001af0
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180001ae5
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180014570
add rsp, 0x88
ret

Function at 0x1800052b0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x48]
call fcn.1800055f0
mov dword [rsp + 0x24], eax
mov edx, 0x200
mov rcx, qword [rsp + 0x50]
call fcn.180005f80
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x18], 0x16
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
call fcn.1800061b0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
lea rdx, [0x180017108]
mov rcx, qword [rsp + 0x50]
call fcn.1800061f0
xor eax, eax
add rsp, 0x38
ret

Function at 0x180006630
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x58]
call fcn.1800055f0
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180006683
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x180006683
jmp 0x1800066b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8d, dword [rsp + 0x30]
mov edx, 0x23
mov rcx, qword [rsp + 0x60]
call fcn.1800062d0
mov eax, 0x1f
jmp 0x1800066c0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x21
add rsp, 0x48
ret
Function at 0x180006f70
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x180006f88
mov eax, 0xffffffff
jmp 0x180006fb0
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x180006fa4
mov dword [rsp + 0x20], 0
jmp 0x180006fac
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18000d200
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x48
mov ecx, 0x37
call fcn.18000b6d0
movzx eax, ax
mov dword [rsp + 0x34], eax
mov ecx, 0x27
call fcn.18000b6d0
movzx eax, ax
mov dword [rsp + 0x30], eax
call fcn.18000d420
cmp dword [rsp + 0x34], 1
jne 0x18000d259
cmp dword [rsp + 0x30], 1
jne 0x18000d24f
xor eax, eax
cmp eax, 1
je 0x18000d24d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000d239
jmp 0x18000d257
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
jmp 0x18000d29d
cmp dword [rsp + 0x30], 1
jne 0x18000d295
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18000d29d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret

Function at 0x180010230
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001028c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001028c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001028c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001028c
cmp dword [rcx + 0x84], 0xe
jbe 0x18001028c
cmp dword [rcx + 0xf8], 0
je 0x18001028c
mov ecx, ebx
call fcn.1800101c0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x18001d270]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.180010040
cmp dword [rsp + 0x60], 0
jne 0x1800102cf
mov ecx, ebx
call fcn.180010170
int3
add rsp, 0x40
pop rbx
ret
Function at 0x1800105c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x18001b008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1800105fc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18001491c
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1800106b8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18001071e
test ebx, ebx
jne 0x18001071e
lea ecx, [rax + 2]
call fcn.18001491c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180014570
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x180014400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x1800144bc
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x1800144b7
mov eax, 1
xchg dword [0x18177d2e0], eax
cmp eax, 1
jne 0x180014470
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x18177d2e0], eax
cmp eax, 1
je 0x180014455
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800144af
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x18177d2e0], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]