joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b520
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030d18]
test rcx, rcx
je 0x14000b55b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b54e
mov rcx, qword [0x140030d18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030d18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030d28], 0
je 0x14000b64e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a9e8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140043550]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b62f
test al, 0x10
je 0x14000b62f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b5d5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000cd20
Capabilities:
Parse pe header

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

Function at 0x14000fa28
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fa97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa97
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa97
cmp dword [rcx + 0xf8], 0
je 0x14000fa97
mov ecx, ebx
call fcn.14000fb3c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f930
nop
cmp dword [rbp + 0x20], 0
jne 0x14000faf8
call fcn.14001470c
cmp eax, 1
jne 0x14000fae8
xor dl, dl
jmp 0x14000faf2
call fcn.1400146d8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fb03
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb0c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa28

Function at 0x14000fc10
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fa97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa97
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa97
cmp dword [rcx + 0xf8], 0
je 0x14000fa97
mov ecx, ebx
call fcn.14000fb3c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f930
nop
cmp dword [rbp + 0x20], 0
jne 0x14000faf8
call fcn.14001470c
cmp eax, 1
jne 0x14000fae8
xor dl, dl
jmp 0x14000faf2
call fcn.1400146d8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fb03
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb0c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa28
Function at 0x140019408
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001948f
mov rsi, rbx
cmp word [rax], bp
je 0x14001944e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019438
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019434
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016940
mov rdi, rax
test rax, rax
je 0x14001947c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020620
mov rbp, rdi
xor ecx, ecx
call fcn.140015920
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b9b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b9c6
mov al, 1
jmp 0x14001ba32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b9d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ba30
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019bac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ba30
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ba30
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ba30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ba32
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fe70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fe98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fe98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
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 [0x140222818]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.14013b880
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.140139c88
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x14022da70]
mov ecx, dword [0x140231458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400043cc
lea r8, [0x14022da40]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140004420
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013a2d0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14022da70]
call fcn.14013a0a8
cmp dword [0x14022da70], 0xffffffff
jne 0x140004398
xorps xmm0, xmm0
movups xmmword [0x14022da60], xmm0
movups xmmword [0x14022da50], xmm0
movups xmmword [0x14022da40], xmm0
lea rcx, [0x14022da40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14022da70]
call fcn.14013a048
jmp 0x140004398
Function at 0x140011e50
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 0x140011e84
test rax, rax
jne 0x140011e84
cmp dword [rsi + 0x14], 0
je 0x140011e76
xor eax, eax
jmp 0x140011e84
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
je 0x140011edb
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x140011ea4
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400156b0
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x140011ecd
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.1400156b0
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 0x140011f29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140011f0b
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400156b0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140011f1d
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 0x140011f78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x140011f5d
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.1400156b0
mov qword [rsi + 8], 0
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140011f70
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 0x1400120a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x140012155
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 0x140012159
mov rbx, qword [rsp + 0x38]
cmp qword [rsi], rbx
je 0x140012169
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140012141
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400156b0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140012161
mov qword [rsi], rbx
call fcn.140007bc0
jmp 0x140012161
mov bl, 1
jmp 0x14001216e
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.14013a2d0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140012d10
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 0x140012d30
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 0x14001349c
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140012030
test al, al
je 0x1400134cf
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.140013590
mov rbx, qword [rsi + 0x58]
test rbx, rbx
je 0x140013546
lea r14, [rsi + 0x58]
mov rdi, qword [rsi + 0x60]
cmp rbx, rdi
je 0x140013507
mov rcx, rbx
call fcn.1400128a0
add rbx, 0x18
cmp rbx, rdi
jne 0x1400134f3
mov rbx, qword [r14]
mov rdx, qword [rsi + 0x68]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x14001352f
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x14001358a
add rdx, 0x27
mov rbx, rax
mov rcx, rbx
call fcn.140139cc4
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140013554
call fcn.14014212c
mov rcx, r15
call fcn.1400135bc
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.140011f90
call fcn.140140ecc
int3
Function at 0x140013e2c
Capabilities:
Terminate process

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

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14013a5d0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14013b880
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 0x140018340
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14001828c
mov edi, 0x3f4
cmp eax, 1
jne 0x140018340
lea rcx, [rsp + 0x840]
call fcn.1401411a0
mov rdi, rax
mov rax, qword [r14 + 0x18]
cmp rax, rdi
jae 0x1400182f5
lea r9, [rsp + 0x840]
jmp 0x1400182e8
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14013b880
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 0x140018340
lea rcx, [rsp + 0x40]
call fcn.1401411a0
mov rdi, rax
mov rax, qword [r14 + 0x18]
cmp rax, rdi
jae 0x140018315
lea r9, [rsp + 0x40]
mov rcx, r14
mov rdx, rdi
call fcn.140006cf0
jmp 0x14001833e
mov rbx, r14
cmp rax, 8
jb 0x140018301
mov rbx, qword [r14]
mov qword [r14 + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x140018330
mov rbx, r14
cmp rax, 8
jb 0x140018321
mov rbx, qword [r14]
mov qword [r14 + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14013b1d0
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14013a2d0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140020910
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, ecx
mov edi, 3
call fcn.140039b40
test al, al
jne 0x14002092e
call fcn.140039b10
movzx edi, al
mov ecx, esi
mov edx, edi
call fcn.140008350
mov eax, dword [0x14022dbd0]
mov ecx, dword [0x140231458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140020970
movsxd rdx, esi
inc rdx
lea rcx, [0x14022dbc0]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140037460
lea rcx, [0x14022dbd0]
call fcn.14013a0a8
cmp dword [0x14022dbd0], 0xffffffff
jne 0x140020958
lea rcx, [0x14022dbc0]
xor edx, edx
call fcn.1400374b0
lea rcx, [0x14022dbd0]
call fcn.14013a048
jmp 0x140020958
Function at 0x140029fd6
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 [0x140222818]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x14002a0cb
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 0x14002a03b
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 0x14002a0b5
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 0x14002a0bc
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.14013a2d0
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14002b4f4
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 [0x140222818]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
je 0x14002b580
lea rax, [0x14003ddf0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1401b82c0]
lea r8, str.NtMapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.14002ab74
lea rax, [0x14003de60]
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.14002ab74
jmp 0x14002b58c
cmp qword [r12 + 0x10], 0
je 0x14002b729
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.14002a70c
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 0x14002b640
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 [0x1401b68c0]
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, [0x14022dc80]
mov r8d, 0xd8
xor edx, edx
call fcn.14013b880
mov rcx, r12
mov rdx, rdi
mov r8, r15
mov r9, rsi
call fcn.14002b9ec
mov ebx, eax
test eax, eax
jne 0x14002b72b
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 0x14002b72b
cmp qword [rsp + 0x40], 0x20
jne 0x14002b72b
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, [0x14022dc80]
mov r9d, 0xd8
call fcn.1400139ca
mov ebx, eax
jmp 0x14002b72b
xor ebx, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14013a2d0
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002c760
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 [0x140222818]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x14002c7f8
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 0x14002c7b8
add rdi, rbx
sub rsi, rbx
je 0x14002c7f8
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14002c7b0
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 0x14002c7b0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14013a2d0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret