joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c8e0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x28]
cmp r12, qword [r14 + 0x10]
jbe 0x49ca9a
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x58], 0
movups xmmword [rsp + 0x60], xmm15
movups xmmword [rsp + 0x48], xmm15
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov byte [rsp + 0x10], 0
nop dword [rax]
call fcn.00402fa0
xorps xmm15, xmm15
mov r14, qword [0x005e24d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x49c969
jmp 0x49c9b2
mov qword [rsp + 0x58], 0
movups xmmword [rsp + 0x60], xmm15
lea rdx, [0x00506040]
mov qword [rsp + 0x48], rdx
lea rdx, [0x00505850]
mov qword [rsp + 0x50], rdx
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
add rsp, 0xa0
pop rbp
ret
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rcx
inc rcx
lea rax, [0x004c4b20]
xor ebx, ebx
call fcn.00461e00
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
inc rsi
mov qword [rsp + 0x80], rsi
mov rdx, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xb8]
mov rcx, rax
xor edi, edi
mov rax, rdx
call fcn.0049d580
lea rdx, [rbx + 1]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rcx
cmp rcx, rdx
jae 0x49ca28
jmp 0x49ca2a
jmp 0x49ca43
mov rbx, rdx
mov edi, 1
lea rsi, [0x004c4b20]
call fcn.00461ee0
mov rdx, rbx
jmp 0x49ca43
lea r8, [rax + rdx*2]
lea r8, [r8 - 2]
mov word [r8], 0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rcx
movups xmmword [rsp + 0x48], xmm15
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor edi, edi
xor esi, esi
add rsp, 0xa0
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00465ca0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0049c8e0
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400018b4
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400018f8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1400039d0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400018e8
mov qword [rdi], rsi
call fcn.140007bc0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140004300
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140268998]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.140170ec0
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.14016f214
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x140276bc0]
mov ecx, dword [0x14027ace8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x1400043cc
lea r8, [0x140276b90]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140004420
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14016f860
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140276bc0]
call fcn.14016f638
cmp dword [0x140276bc0], 0xffffffff
jne 0x140004398
xorps xmm0, xmm0
movups xmmword [0x140276bb0], xmm0
movups xmmword [0x140276ba0], xmm0
movups xmmword [0x140276b90], xmm0
lea rcx, [0x140276b90]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140276bc0]
call fcn.14016f5d8
jmp 0x140004398
Function at 0x14000f490
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rax, qword [rcx]
jne 0x14000f4c4
test rax, rax
jne 0x14000f4c4
cmp dword [rsi + 0x14], 0
je 0x14000f4b6
xor eax, eax
jmp 0x14000f4c4
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
je 0x14000f51b
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x14000f4e4
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400121c0
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x14000f50d
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.1400121c0
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
mov rdx, rax
mov qword [rsi + 0x10], 0
mov rax, rcx
mov rbx, qword [rdi]
cmp rdx, rbx
je 0x14000f569
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000f54b
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400121c0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14000f55d
mov qword [rsi], rbx
call fcn.140007bc0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
mov rbp, qword [rdi + 8]
cmp rax, rbp
je 0x14000f5b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x14000f59d
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.1400121c0
mov qword [rsi + 8], 0
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14000f5b0
mov qword [rsi + 8], rbp
call fcn.140007bc0
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 rbp
pop rdi
pop rsi
ret

Function at 0x14000f6e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140268998]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14000f795
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rbp
mov rbx, rax
call rbp
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]
mov edi, eax
test eax, eax
je 0x14000f799
mov rbx, qword [rsp + 0x38]
cmp qword [rsi], rbx
je 0x14000f7a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000f781
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400121c0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14000f7a1
mov qword [rsi], rbx
call fcn.140007bc0
jmp 0x14000f7a1
mov bl, 1
jmp 0x14000f7ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14016f860
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140010350
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140010370
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 0x140010adc
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.14000f670
test al, al
je 0x140010b0f
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 r15, [rsi + 0x38]
mov rcx, r15
xor edx, edx
call fcn.140010bd0
mov rbx, qword [rsi + 0x58]
test rbx, rbx
je 0x140010b86
lea r14, [rsi + 0x58]
mov rdi, qword [rsi + 0x60]
cmp rbx, rdi
je 0x140010b47
mov rcx, rbx
call fcn.14000fee0
add rbx, 0x18
cmp rbx, rdi
jne 0x140010b33
mov rbx, qword [r14]
mov rdx, qword [rsi + 0x68]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140010b6f
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x140010bca
add rdx, 0x27
mov rbx, rax
mov rcx, rbx
call fcn.14016f250
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140010b94
call fcn.1401772c0
mov rcx, r15
call fcn.140010bfc
lea rcx, [rsi + 0x28]
call fcn.1400039d0
lea rcx, [rsi + 0x20]
call fcn.1400039d0
lea rcx, [rsi + 0x18]
call fcn.1400039d0
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14000f5d0
call fcn.1401767ac
int3
Function at 0x14001146c
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14000f670
test al, al
je 0x14001148e
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 0x140014c60
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140268998]
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 0x140014cdb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140014cdb
cmp dword [rsp + 0x38], 4
jne 0x140014cdb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14016f860
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14016fb60
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140268998]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140170ec0
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], rsi
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140014e70
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140014dbc
mov edi, 0x3f4
cmp eax, 1
jne 0x140014e70
lea rcx, [rsp + 0x840]
call fcn.140176a80
mov rdi, rax
mov rax, qword [r14 + 0x18]
cmp rax, rdi
jae 0x140014e25
lea r9, [rsp + 0x840]
jmp 0x140014e18
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140170ec0
lea rcx, [rsp + 0x840]
mov rdx, rsi
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 0x140014e70
lea rcx, [rsp + 0x40]
call fcn.140176a80
mov rdi, rax
mov rax, qword [r14 + 0x18]
cmp rax, rdi
jae 0x140014e45
lea r9, [rsp + 0x40]
mov rcx, r14
mov rdx, rdi
call fcn.140006cf0
jmp 0x140014e6e
mov rbx, r14
cmp rax, 8
jb 0x140014e31
mov rbx, qword [r14]
mov qword [r14 + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x140014e60
mov rbx, r14
cmp rax, 8
jb 0x140014e51
mov rbx, qword [r14]
mov qword [r14 + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140170810
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14016f860
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001d440
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, ecx
mov edi, 3
call fcn.140036680
test al, al
jne 0x14001d45e
call fcn.140036650
movzx edi, al
mov ecx, esi
mov edx, edi
call fcn.140008350
mov eax, dword [0x140276d00]
mov ecx, dword [0x14027ace8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x14001d4a0
movsxd rdx, esi
inc rdx
lea rcx, [0x140276cf0]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140033fa0
lea rcx, [0x140276d00]
call fcn.14016f638
cmp dword [0x140276d00], 0xffffffff
jne 0x14001d488
lea rcx, [0x140276cf0]
xor edx, edx
call fcn.140033ff0
lea rcx, [0x140276d00]
call fcn.14016f5d8
jmp 0x14001d488
Function at 0x140026b06
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 [0x140268998]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140026bfb
mov edi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x140026b6b
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, eax
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x140026be5
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x40]
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [r15]
jmp 0x140026bec
mov rbx, 0xffffffffffffffff
mov qword [r14], rbx
xor eax, eax
cmp rbx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14016f860
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140028024
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 rbx
sub rsp, 0xb0
mov r12, rcx
mov rax, qword [0x140268998]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
je 0x1400280b0
lea rax, [0x14003a930]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1401f09e0]
lea r8, str.NtMapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1400276a4
lea rax, [0x14003a9a0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1400276a4
jmp 0x1400280bc
cmp qword [r12 + 0x10], 0
je 0x140028259
mov rax, qword [r12]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r13
mov rdi, rax
mov rsi, qword [r12 + 0x10]
shl rsi, 6
lea r15, [rsi + 0x60]
mov rcx, r15
call fcn.14002723c
mov rbx, rax
mov edx, ebx
and edx, 0xfffff000
add rdx, rdi
and ebx, 0xfff
add rsi, 0x105f
and rsi, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rsi
mov r9d, 0x1000
call r13
mov rdi, rax
test rax, rax
jne 0x140028170
lea rdx, str....._sandboxwin_srcinterception.cc
lea r9, str.thunk_base
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x183
call fcn.140008430
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
add rdi, rbx
movaps xmm0, xmmword [0x1401ef010]
lea rsi, [rsp + 0x48]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x50], xmm0
movups xmmword [rsi + 0x40], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi], r15
mov dword [rsi + 0x18], 0
mov qword [rsi + 8], 0x20
lea rcx, [0x140276db0]
mov r8d, 0xd8
xor edx, edx
call fcn.140170ec0
mov rcx, r12
mov rdx, rdi
mov r8, r15
mov r9, rsi
call fcn.14002851c
mov ebx, eax
test eax, eax
jne 0x14002825b
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x14002825b
cmp qword [rsp + 0x40], 0x20
jne 0x14002825b
lea rax, [rsp + 0x3c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r12]
lea rdx, str.g_originals
lea r8, [0x140276db0]
mov r9d, 0xd8
call fcn.14001100a
mov ebx, eax
jmp 0x14002825b
xor ebx, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14016f860
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140029290
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 [0x140268998]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x140029328
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str....._base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x20]
jmp 0x1400292e8
add rdi, rbx
sub rsi, rbx
je 0x140029328
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1400292e0
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140008430
mov rcx, r12
call fcn.1400085c0
mov rcx, r12
call fcn.1400085d0
jmp 0x1400292e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016f860
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002d857
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 [0x140268998]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov dword [r12], 0xaaaaaaaa
mov qword [rsp + 0x20], r12
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002d905
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r15, qword [rbp]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002d905
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x14002d907
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016f860
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14002f592
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 0x14002f6a9
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14002f6a9
cmp word [rax + rcx + 0x14], 0x78
jb 0x14002f6a9
mov r12, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x1401ab3a5.0]
test rax, rax
je 0x14002f6a9
cmp rdi, 0xffff
jbe 0x14002f6e1
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x1401ab3a5.0]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x14002f6a9
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov rsi, r15
sub rsi, rbp
mov rax, rsi
sar rax, 2
shr rsi, 0x3f
add rsi, rax
and rsi, 0xfffffffffffffffe
mov edx, dword [rbp + rsi*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x1401ab3a5.0]
mov cl, byte [rdi]
test cl, cl
je 0x14002f67b
mov rdx, r13
cmp cl, byte [rax]
jne 0x14002f67d
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14002f66b
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14002f6bc
movzx ecx, cl
lea rdx, [rsi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, rsi
xor eax, eax
cmp rbp, r15
jne 0x14002f636
jmp 0x14002f6ab
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 [case.0x1401ab3a5.0]
sub rsi, qword [rsp + 0x20]
sar rsi, 1
movzx edi, word [rax + rsi]
add di, word [r14 + 0x10]
mov word [r12], di
mov al, 1
jmp 0x14002f6ab
Function at 0x14002f79e
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002f7d5
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14002f7d5
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14002f7d5
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret

Function at 0x140032ab0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
mov r14, rcx
mov rax, qword [0x140268998]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [0x1401ef010]
movaps xmmword [rsp + 0x2c0], xmm0
movaps xmmword [rsp + 0x2b0], xmm0
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
lea rdx, [0x1401f13ba]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9d, 0x3bb
call fcn.140007ba0
lea rcx, [rsp + 0x280]
mov rdx, rdi
xor r8d, r8d
call fcn.14001cda0
lea rbx, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140170ec0
mov word [rsp + 0x70], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x140032bcf
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140176a80
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005b20
lea rsi, [rsp + 0x50]
mov rcx, rbx
mov rdx, rsi
call fcn.140006c00
mov rcx, r14
mov rdx, rsi
call fcn.140005c70
mov rcx, rsi
call fcn.140005c00
mov rcx, rbx
call fcn.140005c00
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x280]
call fcn.14001cdb0
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14016f860
mov eax, ebx
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140032c10
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140268998]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401ef010]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x1401f13cf]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3cb
call fcn.140007ba0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14001cda0
cmp qword [rsi + 0x18], 8
jb 0x140032ca2
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14001cdb0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14016f860
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret