joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012b00
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.1400548d0
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x98
call fcn.140052828
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x140092560]
mov ecx, dword [0x140094580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140012bcc
lea r8, [0x140092530]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140012c20
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140052800
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140092560]
call fcn.140052eb4
cmp dword [0x140092560], 0xffffffff
jne 0x140012b98
xorps xmm0, xmm0
movups xmmword [0x140092550], xmm0
movups xmmword [0x140092540], xmm0
movups xmmword [0x140092530], xmm0
lea rcx, [0x140092530]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140092560]
call fcn.140052e54
jmp 0x140012b98

Function at 0x1400137e0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rax, qword [rcx]
jne 0x140013815
test rax, rax
jne 0x140013815
cmp dword [rsi + 0x14], 0
je 0x140013807
xor eax, eax
jmp 0x140013815
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
je 0x14001386c
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x140013835
call fcn.14000c0a0
mov rcx, qword [rsi]
call fcn.140017320
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x14001385e
call fcn.14000c0a0
mov rcx, qword [rsi + 8]
call fcn.140017320
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
mov rdx, rax
mov qword [rsi + 0x10], 0
mov rax, rcx
mov r14, qword [rdi]
cmp rdx, r14
je 0x1400138ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14001389c
call fcn.14000c0a0
mov rcx, qword [rsi]
call fcn.140017320
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400138ae
mov qword [rsi], r14
call fcn.14000c0a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
mov r14, qword [rdi + 8]
cmp rax, r14
je 0x140013909
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x1400138ee
call fcn.14000c0a0
mov rcx, qword [rsi + 8]
call fcn.140017320
mov qword [rsi + 8], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140013901
mov qword [rsi + 8], r14
call fcn.14000c0a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140013a30
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x140013ae9
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], 0
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r14
mov rbx, rax
call r14
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x140013aed
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x140013afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140013ad5
call fcn.14000c0a0
mov rcx, qword [rsi]
call fcn.140017320
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140013af5
mov qword [rsi], r14
call fcn.14000c0a0
jmp 0x140013af5
mov bl, 1
jmp 0x140013afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052800
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140014d90
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140015a9c
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400139c0
test al, al
je 0x140015acf
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rdi, [rsi + 0x30]
mov rcx, rdi
xor edx, edx
call fcn.140015b6a
mov rbx, qword [rsi + 0x50]
test rbx, rbx
je 0x140015b25
lea r14, [rsi + 0x50]
mov r15, qword [rsi + 0x58]
cmp rbx, r15
je 0x140015b07
mov rcx, rbx
call fcn.140014970
add rbx, 0x18
cmp rbx, r15
jne 0x140015af3
mov rbx, qword [r14]
mov rdx, qword [rsi + 0x60]
sub rdx, rbx
mov rcx, rbx
call fcn.140050040
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140015b33
call fcn.14005cc70
mov rcx, rdi
call fcn.140015b96
lea rcx, [rsi + 0x28]
call fcn.140003f40
lea rcx, [rsi + 0x20]
call fcn.140003f40
lea rcx, [rsi + 0x18]
call fcn.140003f40
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140013920
Function at 0x140016954
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400139c0
test al, al
je 0x140016976
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140017900
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov edi, r9d
mov rsi, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
je 0x140017965
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140017998
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400179a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x1400179a4
call fcn.14000c0a0
jmp 0x1400179a6
or edi, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140017998
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x38], 0
test r14, r14
jne 0x140017a15
jmp 0x140017a39
mov byte [rsi], 0
jmp 0x140017a81
xor ebx, ebx
jmp 0x1400179ae
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
or edi, 8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rbx
mov edx, edi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov r14, qword [rsp + 0x38]
cmovne r15, r14
mov qword [rsp + 0x30], r15
test r15, r15
je 0x140017a67
lea rax, [rbx + 1]
cmp rax, 2
jae 0x140017a9e
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140017a31
mov qword [rsp + 0x38], r14
call fcn.14000c0a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x38]
call fcn.140002f7c
mov rax, qword [rsp + 0x38]
inc rax
cmp rax, 2
jb 0x140017a81
call fcn.14000c0a0
mov rcx, qword [rsp + 0x38]
jmp 0x140017a7c
mov byte [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140017a81
call fcn.14000c0a0
mov rcx, rbx
call fcn.140017320
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052800
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14000c0a0
mov rcx, rbx
call fcn.140017320
jmp 0x14001797c
Function at 0x140018560
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
or r8d, 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14001861e
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14001861e
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400185e3
mov qword [rsp + 0x30], rbx
call fcn.14000c0a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.140002f7c
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, 2
jb 0x140018621
call fcn.14000c0a0
mov rcx, qword [rsp + 0x30]
call fcn.140017320
jmp 0x140018621
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052800
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140018640
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x140091088]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rdx
or r9d, 8
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140018701
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140018701
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400186c6
mov qword [rsp + 0x30], rbx
call fcn.14000c0a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.140002f7c
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, 2
jb 0x140018704
call fcn.14000c0a0
mov rcx, qword [rsp + 0x30]
call fcn.140017320
jmp 0x140018704
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052800
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001cef0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400925d8]
mov ecx, dword [0x140094580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001cf25
lea rcx, [0x1400925c8]
add rsp, 0x28
jmp fcn.140033d40
lea rcx, [0x1400925d8]
call fcn.140052eb4
cmp dword [0x1400925d8], 0xffffffff
jne 0x14001cf15
xorps xmm0, xmm0
movups xmmword [0x1400925c8], xmm0
lea rcx, [0x1400925c8]
xor edx, edx
call fcn.140033dd0
lea rcx, [0x1400925d8]
call fcn.140052e54
jmp 0x14001cf15
Function at 0x140026e7c
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, qword [rsp + 0xc8]
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140026f76
mov edi, dword [rsp + 0xc0]
mov r11d, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov eax, dword [rsp + 0xa8]
mov r10d, dword [rsp + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x140026ee2
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, r10d
mov r9d, eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x140026f60
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r15d, r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb r15, r15
or r15, qword [rbx]
jmp 0x140026f67
mov r15, 0xffffffffffffffff
mov qword [r14], r15
xor eax, eax
cmp r15, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052800
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140028d06
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0xb0], rax
test dl, dl
je 0x140028d93
lea rax, [0x14003b184]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x140078340]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140028424
lea rax, [0x14003b1ec]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140028424
jmp 0x140028d9e
cmp qword [rsi + 0x10], 0
je 0x140028f14
mov rax, qword [rsi]
mov rdi, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, rdi
xor edx, edx
mov r9d, 0x2000
call r13
mov r14, rax
mov r12, qword [rsi + 0x10]
shl r12, 6
lea rbx, [r12 + 0x60]
mov rcx, rbx
call fcn.14002803c
mov r15, rax
mov edx, r15d
and edx, 0xfffff000
add rdx, r14
and r15d, 0xfff
add r12, 0x105f
and r12, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
mov r8, r12
mov r9d, 0x1000
call r13
mov r14, rax
test rax, rax
je 0x140028f3c
add r14, r15
movaps xmm0, xmmword [0x140076960]
lea r15, [rsp + 0x50]
movups xmmword [r15 + 0x10], xmm0
movups xmmword [r15 + 0x50], xmm0
movups xmmword [r15 + 0x40], xmm0
movups xmmword [r15 + 0x30], xmm0
movups xmmword [r15 + 0x20], xmm0
mov qword [r15], rbx
mov dword [r15 + 0x18], 0
mov qword [r15 + 8], 0x20
lea rcx, [0x140092680]
mov r8d, 0xd8
xor edx, edx
call fcn.1400548d0
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.14002920a
mov ebp, eax
test eax, eax
jne 0x140028f16
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x50]
mov r9d, 0x20
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x140028f16
cmp qword [rsp + 0x40], 0x20
jne 0x140028f16
lea rax, [rsp + 0x3c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea rdx, str.g_originals
lea r8, [0x140092680]
mov r9d, 0xd8
call fcn.1400164ce
mov ebp, eax
jmp 0x140028f16
xor ebp, ebp
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140052800
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str....._sandboxwin_srcinterception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x48]
mov rcx, r12
mov r8d, 0x182
call fcn.140001100
mov rcx, r12
call fcn.140001220
jmp 0x140028e26
Function at 0x14002a880
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14002a8fb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14002a8fb
cmp dword [rsp + 0x38], 4
jne 0x14002a8fb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052800
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14002a920
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140052fe0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400548d0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14002aa90
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14002a9dc
mov edi, 0x3f4
cmp eax, 1
jne 0x14002aa90
lea rcx, [rsp + 0x840]
call fcn.14005d058
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14002aa45
lea r9, [rsp + 0x840]
jmp 0x14002aa38
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400548d0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14002aa90
lea rcx, [rsp + 0x40]
call fcn.14005d058
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14002aa65
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.1400076a0
jmp 0x14002aa8e
mov rbx, rsi
cmp rax, 8
jb 0x14002aa51
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x14002aa80
mov rbx, rsi
cmp rax, 8
jb 0x14002aa71
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140054a90
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140052800
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002bdd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x14002be64
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea rbx, str....._base_rand_util_win.cc
lea r14, str.success
lea r15, [rsp + 0x20]
nop word cs:[rax + rax]
cmp rsi, r13
mov r12d, 0xffffffff
cmovb r12, rsi
mov rcx, rdi
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14002be46
add rdi, r12
sub rsi, r12
jne 0x14002be20
jmp 0x14002be64
mov rcx, r15
mov rdx, rbx
mov r8d, 0x53
mov r9, r14
call fcn.140001100
mov rcx, r15
call fcn.140001220
jmp 0x14002be3c
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140052800
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002f7e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov dword [r15], 0xaaaaaaaa
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002f88f
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x28]
mov qword [r12], rax
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002f88f
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
jmp 0x14002f891
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052800
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400329ae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140032ac7
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140032ac7
cmp word [rax + rcx + 0x14], 0x78
jb 0x140032ac7
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.0I_a_]
test rax, rax
je 0x140032ac7
cmp rdi, 0xffff
jbe 0x140032b00
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.0I_a_]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x140032ac7
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov r12, r15
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.0I_a_]
mov cl, byte [rdi]
test cl, cl
je 0x140032a98
mov rdx, r13
cmp cl, byte [rax]
jne 0x140032a9a
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140032a88
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140032ada
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, r12
xor eax, eax
cmp rbp, r15
jne 0x140032a52
jmp 0x140032ac9
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.0I_a_]
sub r12, qword [rsp + 0x20]
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov word [rsi], di
mov al, 1
jmp 0x140032ac9