joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c760
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2b0
mov rax, qword [0x14007e010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], 1
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x20], 1
cmp qword [rdx + 0x10], r14
jne 0x14005c7c4
mov rdx, qword [rdx + 0x18]
jmp 0x14005c924
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14005c916
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x8c]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14005c811
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x38]
call fcn.14006cc40
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005c83b
mov rcx, qword [rbx]
lea r8, [rsp + 0x38]
mov r10, qword [rsp + 0x50]
cmp r10, 8
setae r11b
mov r9, qword [rsp + 0x38]
cmovae r8, r9
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rbx + 0x10]
jne 0x14005c889
test rdx, rdx
je 0x14005c884
sub r8, rcx
nop dword [rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14005c889
add rcx, 2
sub rdx, 1
jne 0x14005c870
mov dil, 1
jmp 0x14005c88c
xor dil, dil
test r11b, r11b
je 0x14005c8c2
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14005c8ba
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c90f
mov rcx, r9
call fcn.14006d744
test dil, dil
je 0x14005c8fc
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x14005c8ef
mov eax, dword [rsp + 0x68]
mov dword [rdx], eax
add qword [rsi + 8], 4
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14005c7e8
lea r8, [rsp + 0x68]
mov rcx, rsi
call fcn.14006cde0
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14005c7e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14005c95b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005c956
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005c996
mov rcx, r8
call fcn.14006d744
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rax, rsi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14006d2a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14006df40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006df8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006df8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006df8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006df8a
cmp dword [rcx + 0x84], 0xe
jbe 0x14006df8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006df8c
xor al, al
add rsp, 0x28
ret
Function at 0x140001788
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
xor eax, eax
xor esi, esi
mov rdx, qword gs:[0x60]
mov r11, rcx
xor ecx, ecx
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea rbx, [rsp + 0x20]
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov ecx, 0xc
rep stosd dword [rdi], eax
mov rax, qword [rdx + 0x18]
mov r10, qword [rax + 0x20]
lea r12, [rax + 0x20]
cmp r10, r12
je 0x14000189a
mov r9, qword [r10 + 0x50]
test r9, r9
je 0x140001892
mov edx, 0x40
mov rcx, rbx
lea rdi, [rsp + 0x70]
call fcn.1400016b8
mov rdx, r9
mov rcx, rbx
mov r8d, 0x40
call fcn.1400015f2
xor eax, eax
mov ecx, 0x3c
xor edx, edx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov eax, esi
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x170]
mov ecx, 0x3c
mov qword [rsp + 0x160], rdx
rep stosd dword [rdi], eax
mov qword [rsp + 0x168], rdx
mov rcx, rbp
mov rdx, r11
call fcn.140001661
test rax, rax
je 0x14000189a
lea rdi, [rsp + 0x160]
mov rdx, rbx
mov rcx, rdi
call fcn.140001661
test rax, rax
je 0x14000189a
mov rcx, rbp
call fcn.140001677
mov rcx, rdi
mov r9, rax
call fcn.140001677
mov rcx, r9
mov rdx, rax
call fcn.140001695
test eax, eax
jne 0x140001892
mov rax, qword [r10 + 0x20]
jmp 0x14000189c
mov r10, qword [r10]
jmp 0x1400017d3
xor eax, eax
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001bb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007920
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007920
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140001d50
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001cf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c50
mov rcx, rbx
call fcn.140002670
mov rdi, rax
test rax, rax
je 0x140001d72
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400027b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d00
add dword [0x14000e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001bb0
nop dword [rax]
xor esi, esi
jmp 0x140001c78
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001bb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001bb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400022e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000233c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002333
test rsi, rsi
je 0x140002333
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002318
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002670
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002690
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002698
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002690
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400026ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400026e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002690
add rax, 0x28
cmp rax, r9
jne 0x1400026d0
xor eax, eax
ret

Function at 0x1400026f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000270f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002718
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000270f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400027b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400027cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400027d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007ff0
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
call fcn.1400019a0
call fcn.140001582
call fcn.140001582
lea rcx, [rsp + 0x48]
movabs rax, 0x75466d6574737953
movabs rdx, 0x33306e6f6974636e
mov qword [rsp + 0xae], rax
movabs rax, 0x3233495041564441
mov qword [rsp + 0x48], rax
movabs rax, 0x6c6c642e323349
mov qword [rsp + 0xb6], rdx
mov word [rsp + 0xbe], 0x32
mov qword [rsp + 0x4d], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
call fcn.140001582
lea rdx, [rsp + 0xae]
mov rcx, rbx
mov r12, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call r12
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x40], rdx
mov r13, rax
mov dword [rsp + 0x34], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, 0x66
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.140001450
mov edx, eax
or eax, 0xffffffff
test edx, edx
je 0x140008259
movabs rax, 0x32336c656e72654b
lea rcx, [rsp + 0x55]
mov qword [rsp + 0x55], rax
movabs rax, 0x6c6c642e32336c
mov qword [rsp + 0x5a], rax
call fcn.140001788
mov rbp, rax
call fcn.140001582
lea rdx, [rsp + 0x62]
mov rcx, rbp
movabs rax, 0x416c617574726956
mov qword [rsp + 0x62], rax
movabs rax, 0x636f6c6c416c61
mov qword [rsp + 0x67], rax
call r12
mov r9d, 4
mov r8d, 0x1000
xor ecx, ecx
mov edx, dword [0x140009010]
call rax
mov rbx, rax
call fcn.140001582
mov rdi, rbx
mov ecx, dword [0x140009010]
mov rsi, qword [rsp + 0x40]
rep movsb byte [rdi], byte [rsi]
movabs rdi, 0x64616572685465
call fcn.140001582
call fcn.140001582
lea rdx, [rsp + 0x6f]
mov rcx, rbp
movabs rax, 0x6854657461657243
mov qword [rsp + 0x6f], rax
mov qword [rsp + 0x74], rdi
call r12
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [rsp + 0x20], 4
call rax
mov rsi, rax
call fcn.140001582
mov eax, dword [0x140009010]
lea rcx, [rsp + 0x98]
lea rdx, section..data
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x9c], eax
call r13
xor eax, eax
lea rdx, [rsp + 0x89]
mov rcx, rbp
mov dword [rsp + 0x3c], eax
movabs rax, 0x506c617574726956
mov qword [rsp + 0x89], rax
movabs rax, 0x746365746f7250
mov qword [rsp + 0x90], rax
call r12
lea r9, [rsp + 0x3c]
mov r8d, 0x20
mov rcx, rbx
mov edx, dword [0x140009010]
call rax
call fcn.140001582
lea rdx, [rsp + 0x7c]
mov rcx, rbp
movabs rax, 0x6854656d75736552
mov qword [rsp + 0x7c], rax
mov qword [rsp + 0x81], rdi
call r12
mov rcx, rsi
call rax
call fcn.140001582
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140006820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140006700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140006868
test al, al
je 0x140006868
cmp qword [rsi + 0x58], 0
je 0x140006884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400365a0
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14000690d
mov rcx, rdi
call fcn.140006710
mov r14, rax
mov rbp, qword [0x14003f2b0]
test rbp, rbp
jne 0x1400068cb
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x14003f2b0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140006866
test dword [rsp + 0x38], 0x1000000
jne 0x140006866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140006984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140006866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400069a4
xor eax, eax
jmp 0x1400069b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400066a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400069e0
mov bpl, 1
jmp 0x140006868
Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xchg esp, eax
cmp byte [rdi + 0x382fc93f], ch
adc dword [rsi - 0x18010b3], ecx
pop rsp
xor ch, byte [rdi + 0x396e63a6]
invalid
mov ah, 0xc4
jne 0x140078c56
invalid
fcmovnb st(0), st(7)
add esp, eax
xor eax, 0x6398072a
insd dword [rdi], dx
cmp al, 0xce
add ah, byte [0xdebd7dae]
invalid
mov ch, 0x9e
insb byte [rdi], dx
mov edi, 0x9163727a
push 0xffffffffffffffbe
mov bl, 0x93
add ebp, ecx
mov edi, 0xf0ff8149
jl 0x140078cce
invalid
invalid
mov esi, edx
jb 0x140078c8b
dec dword [rdi]
jne 0x140078c87
mov word [rcx + 0x7b], cs
in al, dx
sbb eax, 0x9b37769f
jns 0x140078d27
loope 0x140078cec
pop rbp
out 0x46, eax
out dx, al
int3
xor eax, 0x6eeff65f
xchg edi, eax
invalid
idiv byte [rdi + rdx*2 - 0x43]
invalid

Function at 0x140006b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140006b98
add rdi, rbx
sub rsi, rbx
je 0x140006bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140006b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.1400016f0
mov rcx, r12
call fcn.1400017f0
jmp 0x140006b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400365a0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140018990
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x10], r11
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x10], 0
jne 0x140018a3b
mov dword [rsp + 0x40], 0x1ef9259
xor eax, eax
cmp eax, 1
je 0x140018a36
call fcn.140004430
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140018a36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x48]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x1ef9259
mov dword [rsp + 0x28], 0x1e
lea rax, [0x1400275e0]
mov qword [rsp + 0x20], rax
lea r9, [0x140027630]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [r10 + 0x30]
jmp 0x140018b89
call fcn.14000b9a0
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x10]
mov rcx, rax
call fcn.140001130
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140018acb
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x40], eax
xor eax, eax
cmp eax, 1
je 0x140018ac6
call fcn.140004430
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140018ac6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x50]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x20
lea rax, [0x1400276a0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400276f0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [r10 + 0x30]
jmp 0x140018b89
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
lea r8, [0x140018ea0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
jne 0x140018b7f
mov dword [rsp + 0x40], 0x24f9246
xor eax, eax
cmp eax, 1
je 0x140018b7d
call fcn.140004430
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140018b7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x58]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x24f9246
mov dword [rsp + 0x28], 0x24
lea rax, [0x140027760]
mov qword [rsp + 0x20], rax
lea r9, [0x1400277b0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [r10 + 0x30]
jmp 0x140018b89
xor eax, eax
test eax, eax
jne 0x1400189a1
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x140023eb7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140038020]
jne 0x1400239da
rol rcx, 0x10
test cx, 0xffff
jne 0x1400239d6
repz ret
ror rcx, 0x10
jmp 0x140023e10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140038420]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140038518]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140023e95
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140038420]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140023eb7
mov rax, qword [rsp + 0x88]
mov qword [0x140038518], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400384b8], rax
mov rax, qword [0x140038518]
mov qword [0x140038390], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400384a0], rax
mov dword [0x140038380], 0xc0000409
mov dword [0x140038384], 1
mov rax, qword [0x140038020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140038028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140038418], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400275d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140038418], 0
jne 0x140023f3e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov edx, 0x1cd
mov r8d, 0x40
lea rcx, [0x140003040]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtTestAlert
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea rcx, [0x140003040]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400010a0
add rsp, 0x30
pop rbx
ret

Function at 0x14000197c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019c8
xor al, al
add rsp, 0x28
ret