joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000cf40
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp qword [rcx + 0x60], 0xffffffffffffffff
je 0x180003327
mov eax, dword [rcx + 0x38]
shr eax, 5
test al, 1
jne 0x180003327
mov eax, dword [rcx + 0x38]
shr eax, 7
test al, 1
jne 0x180003327
mov rdx, rcx
mov rcx, qword [rcx + 0x60]
jmp 0x18000cf40
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x500
mov rax, qword [0x180259640]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x180258c90]
mov rbx, rdx
mov rdi, rcx
cmp rax, 0xffffffffffffffff
jne 0x18000cf9e
xor edx, edx
lea rcx, str.kernel32
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
lea rdx, str.QueueUserAPC2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180258c90], rax
test rax, rax
je 0x18000cffa
mov rcx, rbx
call fcn.180003620
test al, al
jne 0x18000d048
mov dl, 1
mov rcx, rbx
call fcn.180003680
mov r9d, 0x10001
lea rcx, [0x18000cbe0]
mov r8, rbx
mov rdx, rdi
call qword [0x180258c90]
test eax, eax
jne 0x18000d048
xor edx, edx
mov rcx, rbx
call fcn.180003680
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x18000d048
mov qword [0x180258c90], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18000d048
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x40100003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000d03f
mov eax, dword [rsp + 0x50]
test eax, eax
jns 0x18000d03f
test eax, 0x18000000
jne 0x18000d03f
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [0x180260970]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180061200
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
ret

Function at 0x18000d1d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x18000d1e4
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000d290
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x18000d2b9
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret

Function at 0x18000d2d0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rdx
mov qword [rsp + 0x28], 0
mov r8, rcx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x18000d305
add rsp, 0x30
pop rbx
ret
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18000e4f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x180259640]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movzx ebx, r8b
mov rdi, rdx
mov r8d, 0x40
lea rdx, [rsp + 0x50]
call fcn.18000e120
mov r8d, 0x11
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r11d, eax
lea ecx, [rax - 1]
cmp ecx, 0xf
ja 0x18000e5b8
xor ecx, ecx
mov r9d, ecx
test eax, eax
je 0x18000e5b1
lea r10, [rsp + 0x20]
movzx r8d, word [r10]
lea eax, [r8 - 0x30]
test bl, bl
je 0x18000e574
cmp ax, 9
ja 0x18000e5b8
lea rcx, [rcx + rcx*4]
lea rcx, [rcx - 0x18]
lea rcx, [r8 + rcx*2]
jmp 0x18000e5a5
shl rcx, 4
cmp ax, 9
ja 0x18000e584
add rcx, 0xffffffffffffffd0
jmp 0x18000e5a2
lea eax, [r8 - 0x61]
cmp ax, 5
ja 0x18000e594
add rcx, 0xffffffffffffffa9
jmp 0x18000e5a2
lea eax, [r8 - 0x41]
cmp ax, 5
ja 0x18000e5b8
add rcx, 0xffffffffffffffc9
add rcx, r8
inc r9d
add r10, 2
cmp r9d, r11d
jb 0x18000e554
mov qword [rdi], rcx
mov al, 1
jmp 0x18000e5ba
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180061200
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x180012320
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x180259640]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x18001240f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x18001240f
mov rdx, qword [rsp + 0x70]
test r14, r14
je 0x1800123ea
xorps xmm0, xmm0
test rdx, rdx
js 0x180012391
cvtsi2ss xmm0, rdx
jmp 0x1800123a9
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x180219f28]
test rdi, rdi
js 0x1800123c3
cvtsi2ss xmm0, rdi
jmp 0x1800123db
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
xor eax, eax
test rbx, rbx
je 0x180012401
cmp rdx, rdi
jbe 0x1800123fb
mov qword [rbx], rax
jmp 0x180012401
sub rdi, rdx
mov qword [rbx], rdi
test rsi, rsi
je 0x1800124d8
jmp 0x1800124d5
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x28]
jae 0x1800124b2
test r14, r14
je 0x1800124a1
mov rcx, rdx
xorps xmm0, xmm0
sub rcx, qword [rsp + 0x50]
js 0x18001244b
cvtsi2ss xmm0, rcx
jmp 0x180012460
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x180219f28]
test rdx, rdx
js 0x18001247a
cvtsi2ss xmm0, rdx
jmp 0x180012492
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
test rbx, rbx
je 0x1800124a9
mov qword [rbx], rdx
test rsi, rsi
je 0x1800124d8
xor eax, eax
jmp 0x1800124d5
test r14, r14
je 0x1800124be
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
test rbx, rbx
je 0x1800124cb
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
test rsi, rsi
je 0x1800124d8
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180061200
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
Function at 0x180012500
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x180259640]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
test rcx, rcx
je 0x180012538
mov byte [rcx], 0
xor ebx, ebx
mov rbp, 0xffffffffffffffff
mov r15d, ebx
mov dword [rsp + 0x30], ebx
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x180012610
cmp dword [rsp + 0x30], ebx
je 0x180012610
mov r9d, 0x90
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x100]
xor ecx, ecx
lea edx, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x180012610
mov eax, dword [rsp + 0x110]
mov rdx, rbp
bt eax, 9
mov rcx, rbp
mov rsi, rbp
cmovb rdx, qword [rsp + 0x178]
bt eax, 8
cmovb rcx, qword [rsp + 0x170]
test al, 1
cmovne rsi, qword [rsp + 0x120]
cmp rdx, rbp
jne 0x1800125d9
cmp rcx, rbp
jne 0x1800125d9
cmp rsi, rbp
je 0x180012610
cmp rdx, rcx
mov dword [rsp + 0x40], 0x40
cmovb rcx, rdx
cmp rcx, rsi
cmovb rsi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rbp, qword [rsp + 0x48]
mov r15, qword [rsp + 0x68]
cmp rsi, rbp
mov r14, qword [rsp + 0x50]
cmovb rbp, rsi
cmp rbp, 0xffffffffffffffff
mov rsi, rbx
cmovne rsi, rbp
test r15, r15
jne 0x180012649
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x88]
test rsi, rsi
cmovne r14, rsi
cmp r15, r14
cmovae rbx, rsi
test rbx, rbx
je 0x180012669
test rdi, rdi
je 0x180012664
mov byte [rdi], 1
mov rax, rbx
jmp 0x18001269b
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0xc0], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0xc8]
cmp qword [rsp + 0xe8], rax
cmovb rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.180061200
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1800126f0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x180259640]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180061200
add rsp, 0x78
ret
Function at 0x180012950
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov dword [0x1802615f0], eax
mov eax, dword [rsp + 0x24]
mov dword [0x1802615f4], eax
mov eax, dword [rsp + 0x48]
mov dword [0x1802615f8], eax
mov dword [rsp + 0x60], ebx
mov byte [0x1802615fd], bl
call fcn.180013b40
test al, al
je 0x1800129be
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
je 0x1800129be
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1800129be
inc eax
mov byte [0x1802615fd], 1
mov dword [0x180261680], eax
mov byte [0x1802615fe], bl
mov word [rsp + 0x60], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessGroupAffinity]
mov edi, 1
test eax, eax
jne 0x1800129fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800129fb
movzx eax, word [rsp + 0x60]
jmp 0x180012a02
mov eax, edi
mov word [rsp + 0x60], ax
cmp ax, di
seta cl
call fcn.180013a30
test al, al
je 0x180012a2b
call fcn.180012730
test al, al
je 0x180012a2b
cmp dword [0x180261684], edi
seta al
mov byte [0x1802615fe], al
jmp 0x180012a32
movzx eax, byte [0x1802615fe]
test al, al
je 0x180012a80
mov r9d, dword [0x180261688]
test r9, r9
je 0x180012b03
lea r8, [0x180261600]
nop dword [rax]
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
inc rbx
mov rax, qword [rdx]
bts rax, rcx
mov qword [rdx], rax
cmp rbx, r9
jb 0x180012a50
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x180012b03
mov r9, qword [rsp + 0x60]
lea r8, [0x180261600]
nop dword [rax]
test r9, rdi
je 0x180012ad1
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rcx
mov qword [rdx], rax
rol rdi, 1
test r9, rdi
je 0x180012af6
lea rdx, [rbx + 1]
mov rax, rdx
and edx, 0x3f
shr rax, 6
lea rcx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rdx
mov qword [rcx], rax
rol rdi, 1
add rbx, 2
cmp rbx, 0x40
jb 0x180012ab0
mov rbx, qword [rsp + 0x70]
mov al, 1
add rsp, 0x50
pop rdi
ret
Function at 0x1800653b0
Capabilities:
Parse pe header

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

Function at 0x18007b360
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x38
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call fcn.1800940f0
mov rbx, rax
lea rcx, [0x1801314a8]
add rcx, 0xc
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x28]
call fcn.180094130
mov rsi, rax
lea rcx, [0x1801312d0]
add rcx, 0xc
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], 0x20
lea rcx, [rsp + 0x28]
call fcn.180094130
mov rdx, rax
mov rcx, rsi
mov esi, dword [rbx + 8]
mov r8d, esi
call fcn.18007b480
mov rdi, rax
mov edx, esi
lea rcx, [0x18017fb18]
call fcn.180004af0
mov rbp, rax
xor ecx, ecx
test esi, esi
jle 0x18007b442
test rdi, rdi
je 0x18007b41c
cmp dword [rdi + 8], esi
jl 0x18007b41c
cmp dword [rbp + 8], esi
jl 0x18007b41c
nop dword [rax]
mov edx, ecx
movzx eax, byte [rbx + rdx + 0x10]
movzx r8d, byte [rdi + rdx + 0x10]
xor eax, r8d
mov byte [rbp + rdx + 0x10], al
inc ecx
cmp esi, ecx
jg 0x18007b400
jmp 0x18007b442
mov eax, ecx
movzx eax, byte [rbx + rax + 0x10]
cmp ecx, dword [rdi + 8]
jae 0x18007b46f
mov edx, ecx
movzx edx, byte [rdi + rdx + 0x10]
xor eax, edx
cmp ecx, dword [rbp + 8]
jae 0x18007b46f
mov edx, ecx
mov byte [rbp + rdx + 0x10], al
inc ecx
cmp esi, ecx
jg 0x18007b41c
lea rcx, [0x18014bd78]
cmp qword [rcx - 8], 0
jne 0x18007b474
mov rcx, qword [0x1802585e0]
mov rcx, qword [rcx + 8]
mov rdx, rbp
cmp dword [rcx], ecx
call fcn.1800d64b0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rsi
pop rdi
ret
call fcn.18009b7a0
call fcn.180001698
jmp 0x18007b450

Function at 0x18007f560
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180006650
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1800066a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x18007f62c
mov dword [rdi + 0x70], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rdi, rax
jmp 0x18007f616
Function at 0x18007f730
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180006650
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1800066a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x18007f7fc
mov dword [rdi + 0x70], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rdi, rax
jmp 0x18007f7e6

Function at 0x1800868d0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.180006650
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.1800066a0
test ebx, ebx
jne 0x180086944
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x18008696b
lea rcx, [0x1801523b8]
call fcn.1800049d0
mov rbx, rax
mov rcx, rbx
call fcn.180099dd0
mov rcx, rbx
call fcn.180004f50
lea rcx, [0x180151c90]
call fcn.1800049d0
mov rbx, rax
mov rcx, rbx
call fcn.180096150
mov rcx, rbx
call fcn.180004f50
int3
Function at 0x180086e20
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x180086e3d
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.1800d3ce0
mov ecx, eax
test ecx, ecx
jne 0x180086eca
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.1800d3bb0
mov ecx, eax
lea rdx, [0x18012f800]
xor r8d, r8d
call fcn.1800bc5d0
mov rcx, rax
call fcn.180004f50
int3

Function at 0x18008a4a0
Capabilities:
Get session user name

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rcx
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov rcx, qword gs:[0x58]
mov eax, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rcx + rax*8]
mov rsi, qword [rdx]
test rsi, rsi
je 0x18008a5bb
mov qword [rbp - 0x50], rsi
jmp 0x18008a51c
cmp dword [rsi + 0x70], 0xea
jne 0x18008a59c
mov edx, dword [rbp - 0x3c]
test edx, edx
jl 0x18008a5b6
mov rbx, qword [rbp + 0x10]
cmp edx, dword [rbx + 0x18]
jbe 0x18008a51c
sub edx, dword [rbx + 8]
mov rcx, rbx
call fcn.1800b5950
mov qword [rbp + 0x10], rbx
mov rdi, qword [rbx + 0x10]
lea r14, [rbp - 0x3c]
mov qword [rbp - 0x48], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r8, r14
mov qword [rbp - 0x5c], r8
mov rdx, rdi
mov qword [rbp - 0x64], rdx
mov ecx, 2
mov dword [rbp - 0x54], ecx
lea rcx, [rbp - 0x90]
call fcn.180006650
mov r8, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov ecx, dword [rbp - 0x54]
call sub.Secur32.dll_GetUserNameExW
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1800066a0
movzx ebx, bl
call sub.KERNEL32.dll_GetLastError
xor edx, edx
mov qword [rbp - 0x48], rdx
mov rsi, qword [rbp - 0x50]
mov dword [rsi + 0x70], eax
test ebx, ebx
je 0x18008a4f0
mov ecx, dword [rbp - 0x3c]
mov rbx, qword [rbp + 0x10]
mov dword [rbx + 8], ecx
jmp 0x18008a5a5
xor ecx, ecx
mov rbx, qword [rbp + 0x10]
mov dword [rbx + 8], ecx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1800d1380
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rsi, rax
jmp 0x18008a4ea
Function at 0x18009d130
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp qword [rbx], 0
jne 0x18009d15a
lea rcx, [0x18017fea0]
mov edx, 0x55
call fcn.180004af0
mov rdx, rax
mov rcx, rbx
call fcn.180004c50
xor eax, eax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
cmp dword [rax + 8], 0x50
jbe 0x18009d1c8
mov dword [rax + 0x150], 0x67452301
mov rax, qword [rbx]
cmp dword [rax + 8], 0x51
jbe 0x18009d1c8
mov dword [rax + 0x154], 0xefcdab89
mov rax, qword [rbx]
cmp dword [rax + 8], 0x52
jbe 0x18009d1c8
mov dword [rax + 0x158], 0x98badcfe
mov rax, qword [rbx]
cmp dword [rax + 8], 0x53
jbe 0x18009d1c8
mov dword [rax + 0x15c], 0x10325476
mov rax, qword [rbx]
cmp dword [rax + 8], 0x54
jbe 0x18009d1c8
mov dword [rax + 0x160], 0xc3d2e1f0
add rsp, 0x20
pop rbx
ret
call fcn.18009b7a0
int3

Function at 0x1800d15c0
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, r8
mov rsi, r9
mov rdi, qword [rbp + 0x30]
mov qword [rbp - 0x40], rdi
test rdx, rdx
je 0x1800d1604
add rdx, 0xc
mov r14, rdx
jmp 0x1800d1607
xor r14d, r14d
mov qword [rbp - 0x48], r14
test rcx, rcx
je 0x1800d1619
add rcx, 0xc
mov r15, rcx
jmp 0x1800d161c
xor r15d, r15d
mov qword [rbp - 0x50], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], rdi
mov edi, dword [rbp + 0x38]
mov dword [rsp + 0x28], edi
mov rcx, r15
mov qword [rbp - 0x58], rcx
mov rdx, r14
mov qword [rbp - 0x60], rdx
mov r8, rbx
mov qword [rbp - 0x68], r8
mov r9, rsi
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.180006650
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CopyFileExW
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.1800066a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
mov rax, qword gs:[0x58]
mov ecx, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1800d16d5
mov dword [rdi + 0x70], esi
movzx eax, bl
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rdi, rax
jmp 0x1800d16bb