joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402ae9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
push r15
movsxd r11, dword [rdx]
mov rdi, rdx
movsxd rax, ecx
mov r10, r11
lea r8, [r11 + r11*2]
add r8, rax
imul r9, r8, 0x2c
mov r8d, 0xfffe0000
add r9, qword [rdx + 0x20]
cmp dword [rdx + 4], 0
jge 0x1402aea40
mov eax, dword [r9]
cmp eax, r8d
jb 0x1402aea31
inc eax
mov ebx, 0x7fff7fff
shr eax, 1
and eax, ebx
add eax, 0x10000
mov dword [r9], eax
xor eax, eax
jmp 0x1402aebac
mov ebx, 0x7fff7fff
cmp r11d, dword [rdx + 4]
jg 0x1402aeb8a
lea r14, [0x140000000]
mov r15d, 0x43
mov eax, dword [r9]
cmp eax, r8d
jb 0x1402aea6a
inc eax
shr eax, 1
and eax, ebx
add eax, 0x10001
mov dword [r9], eax
jmp 0x1402aea9c
cmp eax, r8d
jb 0x1402aea7f
inc eax
shr eax, 1
and eax, ebx
add eax, 0x10000
mov dword [r9 + 4], eax
movzx eax, byte [r10 + r14 + 0x41c4a0]
imul r9, rax, 0x84
add r9, qword [rdi + 0x20]
mov rax, qword [rdi + 8]
inc r11d
movsx ecx, word [rax + r10*2]
inc r10
mov eax, dword [r9 + 4]
test ecx, ecx
je 0x1402aea74
cmp eax, r8d
jb 0x1402aeabe
inc eax
shr eax, 1
and eax, ebx
add eax, 0x10001
lea edx, [rcx + 1]
xor esi, esi
mov dword [r9 + 4], eax
mov eax, dword [r9 + 8]
cmp edx, 2
seta sil
cmp eax, r8d
jb 0x1402aeae2
inc eax
shr eax, 1
and eax, ebx
add eax, 0x10000
add eax, esi
mov dword [r9 + 8], eax
cmp edx, 2
ja 0x1402aeafc
mov r9, qword [rdi + 0x20]
add r9, 0x2c
jmp 0x1402aeb6d
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, r15d
cmovg eax, r15d
xor esi, esi
dec eax
movsxd rcx, eax
movzx edx, word [r14 + rcx*4 + 0x407620]
shr edx, 1
movzx ebp, word [r14 + rcx*4 + 0x407622]
je 0x1402aeb65
add r9, 0xc
test dl, 1
je 0x1402aeb5b
mov ecx, esi
mov eax, 2
shl eax, cl
mov ecx, 0
test ebp, eax
mov eax, dword [r9]
setne cl
cmp eax, r8d
jb 0x1402aeb51
inc eax
shr eax, 1
and eax, ebx
add eax, 0x10000
add eax, ecx
mov dword [r9], eax
inc esi
add r9, 4
sar edx, 1
jne 0x1402aeb2b
mov r9, qword [rdi + 0x20]
add r9, 0x58
movzx eax, byte [r10 + r14 + 0x41c4a0]
imul rcx, rax, 0x84
add r9, rcx
cmp r11d, dword [rdi + 4]
jle 0x1402aea5c
cmp r11d, 0x10
jge 0x1402aeba7
mov ecx, dword [r9]
cmp ecx, r8d
jb 0x1402aeb9e
inc ecx
shr ecx, 1
and ecx, ebx
add ecx, 0x10000
mov dword [r9], ecx
mov eax, 1
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1402b99f0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rsp + 0x178], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], edi
jb 0x1402b9a22
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1402b9a35
mov al, 1
jmp 0x1402b9b27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1402b9b1f
mov ecx, 2
call fcn.14001ea00
test al, al
je 0x1402b9ade
cmp qword [rbx + 0x18], 8
jb 0x1402b9a64
mov rax, qword [rbx]
jmp 0x1402b9a67
mov rax, rbx
mov qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call sub.KERNEL32.dll_GetLastError
mov r9d, 2
mov dword [rsp + 0x20], eax
mov r8d, 0x238
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x48]
call fcn.14001d3a0
lea rdx, [rsp + 0x30]
mov rbx, rax
lea rcx, [rsp + 0x158]
call fcn.14002ca30
lea rcx, [rbx + 0x10]
mov rdi, rax
lea rdx, str.CreateDirectory
call fcn.14000c340
mov rcx, rax
mov rdx, rdi
call fcn.1400109e0
mov edi, 3
test dil, 2
je 0x1402b9af1
and edi, 0xfffffffd
lea rcx, [rsp + 0x48]
call fcn.14001d920
test dil, 1
je 0x1402b9b1b
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x1402b9b1b
mov rcx, qword [rsp + 0x158]
inc rdx
mov r8d, 1
call fcn.14000d830
xor al, al
jmp 0x1402b9b27
mov rcx, rbx
call fcn.1402b9d40
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1402e0100
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
Function at 0x1402b9d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rbp + 0x78], rax
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebx
jb 0x1402b9d78
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402b9e55
mov ecx, 2
call fcn.14001ea00
test al, al
je 0x1402b9e1b
cmp qword [rdi + 0x18], 8
jb 0x1402b9da5
mov rax, qword [rdi]
jmp 0x1402b9da8
mov rax, rdi
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call sub.KERNEL32.dll_GetLastError
mov r9d, 2
mov dword [rsp + 0x20], eax
mov r8d, 0x222
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x48]
call fcn.14001d3a0
lea rdx, [rsp + 0x30]
mov rbx, rax
lea rcx, [rbp + 0x58]
call fcn.14002ca30
lea rcx, [rbx + 0x10]
mov rdi, rax
lea rdx, str.GetFileAttributes
call fcn.14000c340
mov rcx, rax
mov rdx, rdi
call fcn.1400109e0
mov ebx, 3
test bl, 2
je 0x1402b9e2d
and ebx, 0xfffffffd
lea rcx, [rsp + 0x48]
call fcn.14001d920
test bl, 1
je 0x1402b9e4e
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x1402b9e4e
mov rcx, qword [rbp + 0x58]
inc rdx
mov r8d, 1
call fcn.14000d830
xor al, al
jmp 0x1402b9f13
test al, 0x10
jne 0x1402b9f11
mov ecx, 2
call fcn.14001ea00
test al, al
je 0x1402b9ef7
cmp qword [rdi + 0x18], 8
jb 0x1402b9e7b
mov rax, qword [rdi]
jmp 0x1402b9e7e
mov rax, rdi
mov qword [rsp + 0x30], rax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
mov rax, qword [rdi + 0x10]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov r9d, 2
movaps xmm0, xmmword [rsp + 0x30]
mov r8d, 0x226
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14001d270
lea rdx, [rsp + 0x30]
mov rbx, rax
lea rcx, [rbp + 0x58]
call fcn.14002ca30
lea rcx, [rbx + 8]
mov rdi, rax
lea rdx, str.GetFileAttributes
call fcn.14000c340
mov rcx, rax
mov rdx, rdi
call fcn.1400109e0
mov rcx, rax
lea rdx, str.:_not_a_directory
call fcn.14000c340
mov ebx, 0xc
test bl, 8
je 0x1402b9f09
and ebx, 0xfffffff7
lea rcx, [rsp + 0x48]
call fcn.14001d4f0
test bl, 4
jmp 0x1402b9e30
mov al, 1
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.1402e0100
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1402ba0b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x38]
mov rbp, r8
mov rbx, qword [rcx + 0x30]
mov esi, edx
jmp 0x1402ba111
cmp dword [rbx + 0x70], esi
jne 0x1402ba10d
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x1402ba0e6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402ba0f8
mov eax, 1
jmp 0x1402ba0fe
shr eax, 3
and eax, 2
test eax, eax
jne 0x1402ba10d
mov rdx, rbx
mov rcx, rbp
call fcn.1402bbf30
add rbx, 0x78
cmp rbx, rdi
jne 0x1402ba0d3
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1402ba130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
movups xmm0, xmmword [rdx]
mov rsi, qword [rcx + 0x38]
mov r14, r9
mov rbx, qword [rcx + 0x30]
mov ebp, r8d
movdqu xmmword [rax - 0x18], xmm0
mov rdi, rcx
jmp 0x1402ba179
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140333dd0
test al, al
jne 0x1402ba17e
add rbx, 0x78
cmp rbx, rsi
jne 0x1402ba164
cmp rbx, qword [rdi + 0x38]
jne 0x1402ba18b
mov eax, 1
jmp 0x1402ba1d1
cmp dword [rbx + 0x70], ebp
jne 0x1402ba1b8
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x1402ba19e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402ba1b0
mov eax, 1
jmp 0x1402ba1c6
shr eax, 3
and eax, 2
jmp 0x1402ba1c6
mov eax, 1
cmp dword [rbx + 0x70], eax
lea ecx, [rax + 3]
cmove eax, ecx
test eax, eax
jne 0x1402ba1d1
mov byte [rdi + 0x28], 1
mov qword [r14], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1402c36d0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov r15, rdx
mov r14, rcx
cmp byte [rcx + 0x54], dil
jne 0x1402c3711
mov eax, 0x3f0
jmp 0x1402c3822
lea rdx, [rcx + 0x48]
mov r8d, 2
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x20]
call fcn.1402c41c0
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x1402c373d
mov edi, dword [rsp + 0x20]
jmp 0x1402c3820
mov esi, edi
cmp dword [rbx], edi
jbe 0x1402c3818
movabs rax, 0x7878787878787879
mov ebp, esi
add rbp, rbp
test dword [rbx + rbp*8 + 0x10], 0xc0000020
jne 0x1402c3804
mov r12b, dil
test r15, r15
je 0x1402c37e2
mov r8, qword [r15]
mov r13d, edi
mov rcx, qword [r15 + 8]
sub rcx, r8
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1402c37e2
mov r9, rdi
imul rcx, r9, 0x44
add rcx, r8
call fcn.14016cc70
mov rdx, qword [rbx + rbp*8 + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1402c37df
mov r8, qword [r15]
inc r13d
mov rcx, qword [r15 + 8]
movabs rax, 0x7878787878787879
sub rcx, r8
mov r9d, r13d
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jb 0x1402c378f
jmp 0x1402c37e2
mov r12b, 1
test r12b, r12b
jne 0x1402c3804
mov rdx, qword [rbx + rbp*8 + 8]
lea rcx, [rsp + 0x30]
call fcn.1402c3530
lea rcx, [r14 + 0x30]
lea rdx, [rsp + 0x30]
call fcn.1402c1980
inc esi
movabs rax, 0x7878787878787879
cmp esi, dword [rbx]
jb 0x1402c3751
mov rcx, rbx
call fcn.1402e0e90
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402e0100
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402c4730
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.14030caf0
test al, al
je 0x1402c4762
mov rcx, qword [rbx]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rbx + 0x38]
and qword [rbx + 0x38], 0
test rdi, rdi
je 0x1402c4780
mov rcx, rdi
call fcn.1402c9e40
mov rcx, rdi
call fcn.1402dfaa0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1402c478e
call fcn.14001cb60
mov rdi, qword [rbx + 0x38]
test rdi, rdi
je 0x1402c47a7
mov rcx, rdi
call fcn.1402c9e40
mov rcx, rdi
call fcn.1402dfaa0
lea rdi, [rbx + 0x28]
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1402c47db
call fcn.14002ddc0
mov r8, qword [rsp + 0x28]
mov r9, rax
mov rcx, qword [rdi]
mov rdx, rdi
call fcn.14002e980
mov rcx, qword [rdi]
call fcn.14002e070
and qword [rdi], 0
lea rdi, [rbx + 0x20]
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1402c480f
call fcn.14002ddc0
mov r8, qword [rsp + 0x28]
mov r9, rax
mov rcx, qword [rdi]
mov rdx, rdi
call fcn.14002e980
mov rcx, qword [rdi]
call fcn.14002e070
and qword [rdi], 0
lea rdi, [rbx + 0x18]
mov rax, qword [rdi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1402c4843
call fcn.14002ddc0
mov r8, qword [rsp + 0x28]
mov r9, rax
mov rcx, qword [rdi]
mov rdx, rdi
call fcn.14002e980
mov rcx, qword [rdi]
call fcn.14002e070
and qword [rdi], 0
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14030c8c0
Function at 0x1402c4b30
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, dword [rsp + 0xa0]
lea rsi, [rcx + 0x28]
mov r13d, r9d
mov rbp, r8
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
lea eax, [r12 + r13]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
mov rcx, rsi
call fcn.140010610
mov r14, qword [rsi]
lea rax, [r14 + 1]
test rax, 0xfffffffffffffffe
jne 0x1402c4ba6
lea ebx, [r15 + 0x19]
jmp 0x1402c4cde
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r15d
lea r9, [rsp + 0x80]
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov r8, rbx
mov dword [rsp + 0x20], 7
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1402c4be4
lea ebx, [rax + 0x1a]
jmp 0x1402c4cde
mov rcx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x1402c4c0c
lea ebx, [rax + 0x1b]
jmp 0x1402c4cde
mov rsi, r12
lea rbx, [rax + r13]
xor r12d, r12d
test rbp, rbp
je 0x1402c4c4a
test rsi, rsi
je 0x1402c4c4a
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.1402e2940
mov eax, r12d
mov rcx, qword [rbx + rax*8]
test rcx, rcx
je 0x1402c4c41
sub rcx, rbp
mov qword [rbx + rax*8], rcx
inc rax
cmp rax, 0x40
jb 0x1402c4c31
mov rax, qword [rsp + 0x80]
lea r8, [0x140464f48]
mov ebp, 8
mov qword [0x140464f48], rax
mov r9d, ebp
lea rdx, str.g_shared_section
mov rcx, rdi
call fcn.1402c4dd0
mov qword [0x140464f48], r12
mov ebx, eax
test eax, eax
jne 0x1402c4cde
mov r9d, ebp
mov qword [0x140465038], r13
lea r8, [0x140465038]
mov rcx, rdi
lea rdx, str.g_shared_IPC_size
call fcn.1402c4dd0
mov qword [0x140465038], r12
mov ebx, eax
test eax, eax
jne 0x1402c4cde
mov r9d, ebp
mov qword [0x140465040], rsi
lea r8, [0x140465040]
mov rcx, rdi
lea rdx, str.g_shared_policy_size
call fcn.1402c4dd0
mov qword [0x140465040], r12
mov ebx, eax
test eax, eax
je 0x1402c4cf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xa8]
mov dword [rcx], eax
mov eax, ebx
jmp 0x1402c4d79
mov ecx, 0x38
call fcn.1402dfa60
test rax, rax
je 0x1402c4d26
mov rcx, qword [rsp + 0x88]
mov r9, qword [rdi + 0x40]
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1402c9d00
jmp 0x1402c4d29
mov rax, r12
mov rbx, qword [rdi + 0x38]
mov qword [rdi + 0x38], rax
test rbx, rbx
je 0x1402c4d46
mov rcx, rbx
call fcn.1402c9e40
mov rcx, rbx
call fcn.1402dfaa0
mov rcx, qword [rdi + 0x38]
mov r9d, 0x400
mov r8d, r13d
mov rdx, r14
call fcn.1402ca050
test al, al
jne 0x1402c4d66
mov eax, 4
jmp 0x1402c4d79
mov rcx, rdi
call fcn.14030cc30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402c4da0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14030caf0
test al, al
je 0x1402c4dbd
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x20
pop rbx
ret
Function at 0x1402cbca0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, r9
lea rax, [r11 - 0x18]
mov r14, r8
mov qword [r11 - 0x28], rax
mov r8, rbx
mov r9d, 8
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edi, edi
test eax, eax
je 0x1402cbd31
lea rax, [rsp + 0x38]
mov r9, rbx
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1402cbd0c
cmp rbx, qword [rsp + 0x38]
jne 0x1402cbd0c
mov dil, 1
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
neg eax
sbb al, al
and al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1402ccdc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x1c0
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor esi, esi
mov rdi, rcx
mov dword [rsp + 0x30], esi
lea r13d, [rsi + 1]
test dl, dl
jne 0x1402cce09
cmp qword [rcx + 0x10], rsi
jne 0x1402cce59
xor eax, eax
jmp 0x1402ccfbe
and dword [rsp + 0x28], esi
lea rax, [0x1402d48b0]
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, str.NtMapViewOfSection
lea rdx, [0x140409d60]
call fcn.1402cc540
lea rax, [0x1402d4b80]
mov dword [rsp + 0x28], r13d
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, str.NtUnmapViewOfSection
mov rcx, rdi
lea rdx, [0x140409d60]
call fcn.1402cc540
mov rax, qword [rdi]
xor edx, edx
mov r9d, 0x2000
mov dword [rsp + 0x20], r13d
mov r8d, 0x10000
mov r14, qword [rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, qword [rdi + 0x10]
mov rbx, rax
shl rbp, 6
add rbp, 0x60
mov rcx, rbp
call fcn.1402cc970
mov r15, rax
mov dword [rsp + 0x20], 0x40
mov rdx, rax
lea r8, [rbp + 0xfff]
mov rax, 0xfffffffffffff000
mov r9d, 0x1000
and rdx, rax
and r8, rax
add rdx, rbx
mov rcx, r14
and r15d, 0xfff
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x1402ccef6
lea r9, str.thunk_base
mov r8d, 0x1a8
lea rdx, str..._.._sandbox_win_src_interception.cc
lea rcx, [rsp + 0x40]
call fcn.14001d1c0
mov esi, r13d
test r13b, sil
je 0x1402ccf05
lea rcx, [rsp + 0x40]
call fcn.14001d4f0
and dword [rsp + 0x168], 0
lea rcx, [0x140465080]
add rbx, r15
mov qword [rsp + 0x150], rbp
mov r15d, 0x148
mov esi, 0x20
mov r8d, r15d
mov qword [rsp + 0x158], rsi
xor edx, edx
call fcn.1402e2e70
lea r9, [rsp + 0x150]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.1402ccba0
test eax, eax
jne 0x1402ccfbe
lea rax, [rsp + 0x38]
mov r9d, esi
lea r8, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1402ccfb9
cmp qword [rsp + 0x38], rsi
jne 0x1402ccfb9
lea rax, [rsp + 0x30]
mov r9d, esi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi]
lea r8, [0x140465080]
mov r9d, r15d
lea rdx, str.g_originals
call fcn.1402c4dd0
jmp 0x1402ccfbe
mov eax, 0x2a
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1402e0100
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x1402d0920
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov r11d, r9d
mov r10, r8
cmp ecx, 3
je 0x1402d0949
mov eax, 5
jmp 0x1402d09f8
cmp qword [r8 + 0x18], 8
jb 0x1402d0953
mov r10, qword [r8]
mov eax, dword [rsp + 0xa0]
xor ebx, ebx
mov rsi, qword [rdx]
mov rcx, r10
mov r9d, dword [rsp + 0x88]
mov edx, r11d
mov r8d, dword [rsp + 0x80]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
or rbp, 0xffffffffffffffff
mov rdi, rax
cmp rax, rbp
jne 0x1402d09ab
mov rdx, rbp
jmp 0x1402d09e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov r8, rsi
mov dword [rsp + 0x20], ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsp + 0x40]
test eax, eax
cmove rdx, rbp
mov rcx, qword [rsp + 0xa8]
mov eax, 5
cmp rdx, rbp
cmove ebx, eax
mov qword [rcx], rdx
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1402d1fe0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov rdi, qword [rsp + 0xb8]
mov r10, r9
mov r9, qword [rsp + 0x88]
mov r11, r8
mov r8, qword [rsp + 0x80]
mov ebp, edx
mov qword [rax - 0x10], rdi
mov r14, rcx
mov rax, qword [rsp + 0xb0]
mov rdx, r10
mov qword [rsp + 0x40], rax
mov rcx, r11
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor esi, esi
test eax, eax
jne 0x1402d2076
xor eax, eax
jmp 0x1402d2102
mov eax, ebp
neg eax
sbb ebx, ebx
and ebx, 0xfe3fe
add ebx, 0x101c01
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov r9, rdi
mov dword [rsp + 0x30], 1
mov rcx, rax
mov dword [rsp + 0x28], esi
mov r8, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1402d20c0
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1402d206f
neg ebp
sbb ebx, ebx
and ebx, 0xff3bc
add ebx, 0x100c43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi + 8]
lea r9, [rdi + 8]
mov dword [rsp + 0x30], 1
mov rcx, rax
mov dword [rsp + 0x28], esi
mov r8, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne sil
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x1402d2240
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x78]
mov rbx, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x1402d2285
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1402d22bd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, qword [rsp + 0x80]
mov rdx, rdi
mov r8, qword [rbx]
mov rcx, rax
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
not eax
and eax, 5
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1402d4bd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret