joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140175dc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x140175e5d
xor eax, eax
cmp r8d, 4
jl 0x140175e11
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x140175e58
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x140175e51
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x140175e49
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x140175e41
add rax, 4
test r8d, r8d
jle 0x14017603a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x140175e58
inc rax
test r8d, r8d
jg 0x140175e20
jmp 0x14017603a
add eax, 3
jmp 0x140176035
add eax, 2
jmp 0x140176035
inc eax
jmp 0x140176035
jmp 0x140176035
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x140175f76
add rax, 0x10
cmp rax, r10
jbe 0x140175e80
mov eax, r8d
test al, 7
je 0x14017603a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x14017603a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x14017602c
mov ecx, 0x20
jmp 0x14017602f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x14017601d
mov r8d, 0x20
jmp 0x140176021
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x140176035
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x14017c6c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x14017c711
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x14017c93b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x14017c705
inc edx
cmp edx, r9d
jl 0x14017c6e5
jmp 0x14017c93b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [0x140291e90]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x14017c87b
add rax, 0x10
cmp rax, r8
jb 0x14017c758
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x14017c93b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140004300
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.1401e0c20
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.140172d74
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x14027e8c0]
mov ecx, dword [0x1402829b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x1400043cc
lea r8, [0x14027e890]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140004420
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140173230
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14027e8c0]
call fcn.1401730a0
cmp dword [0x14027e8c0], 0xffffffff
jne 0x140004398
xorps xmm0, xmm0
movups xmmword [0x14027e8b0], xmm0
movups xmmword [0x14027e8a0], xmm0
movups xmmword [0x14027e890], xmm0
lea rcx, [0x14027e890]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14027e8c0]
call fcn.140173034
jmp 0x140004398

Function at 0x14000f500
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 0x14000f534
test rax, rax
jne 0x14000f534
cmp dword [rsi + 0x14], 0
je 0x14000f526
xor eax, eax
jmp 0x14000f534
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
je 0x14000f58b
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x14000f554
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.140012230
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x14000f57d
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.140012230
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 0x14000f5d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000f5bb
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.140012230
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14000f5cd
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 0x14000f628
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x14000f60d
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.140012230
mov qword [rsi + 8], 0
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14000f620
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 0x14000f750
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14000f805
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 0x14000f809
mov rbx, qword [rsp + 0x38]
cmp qword [rsi], rbx
je 0x14000f819
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000f7f1
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.140012230
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14000f811
mov qword [rsi], rbx
call fcn.140007bc0
jmp 0x14000f811
mov bl, 1
jmp 0x14000f81e
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.140173230
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400103c0
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 0x1400103e0
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 0x140010b4c
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.14000f6e0
test al, al
je 0x140010b7f
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.140010c40
mov rbx, qword [rsi + 0x58]
test rbx, rbx
je 0x140010bf6
lea r14, [rsi + 0x58]
mov rdi, qword [rsi + 0x60]
cmp rbx, rdi
je 0x140010bb7
mov rcx, rbx
call fcn.14000ff50
add rbx, 0x18
cmp rbx, rdi
jne 0x140010ba3
mov rbx, qword [r14]
mov rdx, qword [rsi + 0x68]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140010bdf
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x140010c3a
add rdx, 0x27
mov rbx, rax
mov rcx, rbx
call fcn.140172db0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140010c04
call fcn.14017afa0
mov rcx, r15
call fcn.140010c6c
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.14000f640
call fcn.14017a8e4
int3
Function at 0x1400114dc
Capabilities:
Terminate process

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

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

Function at 0x14001ce30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, ecx
mov edi, 3
call fcn.140035fe0
test al, al
jne 0x14001ce4e
call fcn.140035fb0
movzx edi, al
mov ecx, esi
mov edx, edi
call fcn.140008350
mov eax, dword [0x14027ea00]
mov ecx, dword [0x1402829b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x14001ce90
movsxd rdx, esi
inc rdx
lea rcx, [0x14027e9f0]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140033990
lea rcx, [0x14027ea00]
call fcn.1401730a0
cmp dword [0x14027ea00], 0xffffffff
jne 0x14001ce78
lea rcx, [0x14027e9f0]
xor edx, edx
call fcn.1400339e0
lea rcx, [0x14027ea00]
call fcn.140173034
jmp 0x14001ce78
Function at 0x1400264f6
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 [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x1400265eb
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 0x14002655b
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 0x1400265d5
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 0x1400265dc
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.140173230
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140027a14
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 [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
je 0x140027aa0
lea rax, [0x14003a290]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1401f59b0]
lea r8, str.NtMapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.140027094
lea rax, [0x14003a300]
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.140027094
jmp 0x140027aac
cmp qword [r12 + 0x10], 0
je 0x140027c49
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.140026c2c
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 0x140027b60
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 [0x1401f3fe0]
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, [0x14027eab0]
mov r8d, 0xd8
xor edx, edx
call fcn.1401e0c20
mov rcx, r12
mov rdx, rdi
mov r8, r15
mov r9, rsi
call fcn.140027f0c
mov ebx, eax
test eax, eax
jne 0x140027c4b
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 0x140027c4b
cmp qword [rsp + 0x40], 0x20
jne 0x140027c4b
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, [0x14027eab0]
mov r9d, 0xd8
call fcn.14001107a
mov ebx, eax
jmp 0x140027c4b
xor ebx, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140173230
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140028c80
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 [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x140028d18
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str....._base_rand_util_win.cc
lea r15, [0x1401f5ad0]
lea r12, [rsp + 0x20]
jmp 0x140028cd8
add rdi, rbx
sub rsi, rbx
je 0x140028d18
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140028cd0
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 0x140028cd0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140173230
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002d247
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 [0x1402708c0]
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 0x14002d2f5
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 0x14002d2f5
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x14002d2f7
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140173230
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14002ef82
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 0x14002f099
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14002f099
cmp word [rax + rcx + 0x14], 0x78
jb 0x14002f099
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.0x1401ad3ca.0]
test rax, rax
je 0x14002f099
cmp rdi, 0xffff
jbe 0x14002f0d1
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x1401ad3ca.0]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x14002f099
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.0x1401ad3ca.0]
mov cl, byte [rdi]
test cl, cl
je 0x14002f06b
mov rdx, r13
cmp cl, byte [rax]
jne 0x14002f06d
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14002f05b
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14002f0ac
movzx ecx, cl
lea rdx, [rsi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, rsi
xor eax, eax
cmp rbp, r15
jne 0x14002f026
jmp 0x14002f09b
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.0x1401ad3ca.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 0x14002f09b