joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039b60
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 [0x1412e0ad0]
mov rcx, qword [0x1412e0bb8]
test rcx, rcx
jne 0x140039bac
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140039c7a
mov rcx, rax
mov qword [0x1412e0bb8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140039c7a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003a0b0]
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 0x140039c6c
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
mov rsi, qword [rbp - 0x18]
je 0x140039c45
cmp qword [rax + 0x10], 0x11
jae 0x140039c2e
mov r8, qword [rbp - 0x20]
jmp 0x140039c36
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1412e0bb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1412e0bb8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
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.1400506a0
ud2
Function at 0x14003aba0
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 0x14003abdf
mov rax, qword [rbp - 0x20]
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, [0x1400286c0]
mov qword [rbp - 0x28], rax
lea rax, [0x1412cf7b0]
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, [0x1412cf7e8]
lea rcx, [rbp - 0x60]
call fcn.140050770
ud2

Function at 0x14003d3f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003d547
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003d428
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003d50a
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003d529
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d48b
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003d4b4
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
jmp 0x14003d4f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x14003d4bc
cmp eax, 0x3e5
jne 0x14003d4f0
lea rax, [rsp + 0x30]
jmp 0x14003d4ca
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14003d4f6
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400220b0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14003d500
cmp rax, 1
je 0x14003d472
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003d47c
mov r8d, 0x10
mov rcx, rbx
call fcn.1400505e0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003d435
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400505e0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003d435
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140051a40
ud2

Function at 0x1400469bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400467b8
Function at 0x14006dd20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14006dd2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006dd3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14006dd25
lea eax, [rcx + 1]
jmp 0x14006dd4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006dd5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14006dd44
sub eax, 3
jb 0x14006dd7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14006ddcd
sar eax, 1
movsxd rbp, eax
jb 0x14006ddb4
jmp 0x14006dd8c
add ebx, ebx
jne 0x14006dd8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14006ddb4
inc ecx
add ebx, ebx
jne 0x14006dd9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14006ddb4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14006ddad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006dd9c
add ecx, 2
jmp 0x14006ddb9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14006dce2
jmp 0x14006dd2d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3ee00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14006de1d
cmp rsi, rcx
jae 0x14006de25
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14006de04
cmp al, 0x8f
ja 0x14006de04
cmp byte [rsi - 2], 0xf
je 0x14006de0a
sub al, 0xe8
cmp al, 1
ja 0x14006ddee
cmp rsi, rcx
jae 0x14006de25
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14006ddf4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14006de25
lodsb al, byte [rsi]
jmp 0x14006de04
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6a000]
mov eax, dword [rdi]
or eax, eax
je 0x14006de82
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6e45c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14006de32
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14006de7c
mov qword [rbx], rax
add rbx, 8
jmp 0x14006de52
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14006debc
cmp al, 0xef
ja 0x14006deae
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14006de8e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14006de9d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14006df10
sub rsp, 0xffffffffffffff80
jmp 0x140016480
Function at 0x1400a0890
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400a089d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400a08ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400a0895
lea eax, [rcx + 1]
jmp 0x1400a08bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400a08ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400a08b4
sub eax, 3
jb 0x1400a08ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400a093d
sar eax, 1
movsxd rbp, eax
jb 0x1400a0924
jmp 0x1400a08fc
add ebx, ebx
jne 0x1400a08fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a0924
inc ecx
add ebx, ebx
jne 0x1400a090a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a0924
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400a091d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400a090c
add ecx, 2
jmp 0x1400a0929
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400a0852
jmp 0x1400a089d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3cc00
mov dl, 0xc
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400a0989
cmp rsi, rcx
jae 0x1400a0991
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400a0970
cmp al, 0x8f
ja 0x1400a0970
cmp byte [rsi - 2], 0xf
je 0x1400a0976
sub al, 0xe8
cmp al, 1
ja 0x1400a095a
cmp rsi, rcx
jae 0x1400a0991
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400a0960
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400a0991
lodsb al, byte [rsi]
jmp 0x1400a0970
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x9e000]
mov eax, dword [rdi]
or eax, eax
je 0x1400a09ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa00b4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400a099e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400a09e8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400a09be
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x20f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400a0a46
sub rsp, 0xffffffffffffff80
jmp 0x14001bc30
Function at 0x1400058c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x18
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x118]
mov dword [rsp], eax
cmp dword [rsp], 6
jb 0x140005904
mov eax, dword [0x7ffe0004]
mov rcx, qword [0x7ffe0320]
imul rcx, rax
mov rax, rcx
shr rax, 0x18
jmp 0x14000591a
mov eax, dword [0x7ffe0000]
mov ecx, dword [0x7ffe0004]
imul rax, rcx
shr rax, 0x18
add rsp, 0x18
ret
Function at 0x1400072f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x18]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
jmp 0x140007372
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x140007405
mov eax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
lea rcx, str..text
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x1400073b3
inc rcx
test dl, dl
jne 0x1400073a0
xor eax, eax
jmp 0x1400073b8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140007400
mov eax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov eax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x10]
mov eax, dword [rdx + rax + 0x10]
mov dword [rcx], eax
mov dword [rsp + 4], 1
jmp 0x140007405
jmp 0x14000736a
mov eax, dword [rsp + 4]
add rsp, 0x28
ret

Function at 0x140009900
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x10
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 8]
mov rax, qword [rax + 0x10]
mov qword [rsp], rax
mov rax, qword [rsp]
mov rax, qword [rax + 0x30]
cmp qword [rsp + 0x30], rax
jb 0x14000996f
mov rax, qword [rsp]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp]
add rax, qword [rcx + 0x30]
cmp qword [rsp + 0x30], rax
jae 0x14000996f
mov rax, qword [rsp]
mov rax, qword [rax + 0x30]
jmp 0x140009987
mov rax, qword [rsp]
mov rax, qword [rax]
mov qword [rsp], rax
mov rax, qword [rsp + 0x18]
cmp qword [rsp], rax
jne 0x140009940
xor eax, eax
add rsp, 0x28
ret
Function at 0x140009990
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x1400099e4
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x20], rax
je 0x140009a2f
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
cmp qword [rax + 0x30], rcx
jne 0x140009a02
jmp 0x1400099d7
xor r8d, r8d
mov edx, dword [rsp + 0x68]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x30]
call fcn.140009a40
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140009a26
jmp 0x1400099d7
mov rax, qword [rsp + 0x30]
jmp 0x140009a31
xor eax, eax
add rsp, 0x58
ret
Function at 0x140009a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.140009e10
test eax, eax
jne 0x140009a6e
xor eax, eax
jmp 0x140009c54
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x88
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 0
je 0x140009abc
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x140009ac3
xor eax, eax
jmp 0x140009c54
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], 0
cmp dword [rsp + 0x98], 0
je 0x140009bdd
mov dword [rsp + 0x20], 0
jmp 0x140009b6f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140009bdb
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1400119b0
cmp dword [rsp + 0x98], eax
jne 0x140009bd9
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140009bdb
jmp 0x140009b65
jmp 0x140009c0a
movzx eax, word [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
sub eax, dword [rcx + 0x10]
mov eax, eax
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140009c16
xor eax, eax
jmp 0x140009c54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jb 0x140009c4f
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x28], rax
jae 0x140009c4f
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.140009ea0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x88
ret
Function at 0x140009c60
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x80]
call fcn.140012058
test rax, rax
je 0x140009cc6
mov dword [rsp + 0x28], 1
jmp 0x140009cce
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140009d07
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140009d05
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x140009e02
jmp 0x140009d2f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140009d2f
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x140009e02
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x20], rax
jne 0x140009cd6
cmp dword [rsp + 0x88], 0
jne 0x140009d59
xor eax, eax
jmp 0x140009e02
xor edx, edx
lea rcx, [0x14001af18]
call fcn.140009c60
xor r8d, r8d
mov edx, 0xa301ecda
mov rcx, rax
call fcn.140009a40
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140009d88
xor eax, eax
jmp 0x140009e02
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsnlen
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
shl eax, 1
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
add eax, 2
mov word [rsp + 0x32], ax
mov qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x50]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x140009dfd
xor eax, eax
jmp 0x140009e02
mov rax, qword [rsp + 0x58]
add rsp, 0x70
pop rdi
ret

Function at 0x140009e10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x140009e25
xor eax, eax
jmp 0x140009e92
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140009e42
xor eax, eax
jmp 0x140009e92
mov rax, qword [rsp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x140009e6c
xor eax, eax
jmp 0x140009e92
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x16]
mov word [rsp], ax
movzx eax, word [rsp]
and eax, 0x2000
cmp eax, 0x2000
je 0x140009e8d
xor eax, eax
jmp 0x140009e92
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000a700
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x38
mov r8d, 1
lea rdx, [0x14001afa0]
xor ecx, ecx
call fcn.140009fd0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000a755
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Could_not_enable_SeDebugPrivilege._Are_you_elevated_
mov rcx, rax
call fcn.140001060
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x14001b000]
mov rcx, rax
call fcn.140001060
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14000b5e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x118
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 6
ja 0x14000b615
mov dword [rsp], 0x400
jmp 0x14000b61c
mov dword [rsp], 0x1000
mov eax, dword [rsp]
bts eax, 7
add rsp, 0x28
ret

Function at 0x14000b630
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x118
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 6
ja 0x14000b665
mov dword [rsp], 0x400
jmp 0x14000b66c
mov dword [rsp], 0x1000
mov eax, dword [rsp]
or eax, 0x10
add rsp, 0x28
ret

Function at 0x14000c8c0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rax, str.SeDebugPrivilege
mov qword [rsp + 0x28], rax
lea rax, str.SeAssignPrimaryTokenPrivilege
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x50]
lea rcx, [0x14001b498]
call fcn.14000c950
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000c93a
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Could_not_impersonate_SYSTEM
mov rcx, rax
call fcn.140001060
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x14001b4d0]
mov rcx, rax
call fcn.140001060
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14000c950
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x58]
mov qword [rax], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rax, [0x14001b308]
mov qword [rsp + 0x30], rax
lea rax, [0x14001b330]
mov qword [rsp + 0x38], rax
mov r9d, 1
mov r8d, 2
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.14000a550
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000c9ca
jmp 0x14000ca1c
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.14000c270
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000c9f0
jmp 0x14000ca1c
mov rcx, qword [rsp + 0x28]
call fcn.14000c880
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000ca07
jmp 0x14000ca1c
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
jne 0x14000ca35
cmp qword [rsp + 0x28], 0
je 0x14000ca35
mov rcx, qword [rsp + 0x28]
call fcn.140010685
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret
Function at 0x140012bf0
Capabilities:
Parse pe header

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

Function at 0x140014760
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014788
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014788
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret