joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005e60
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140038240]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov eax, dword [rcx + 0x10]
mov qword [rbp + 7], r8
test eax, eax
jne 0x140005e96
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
jmp 0x140005fd8
cmp eax, 1
jne 0x140005ec0
mov rcx, qword [rcx + 8]
xor r8d, r8d
mov qword [rsp + 0x28], r9
lea r9, [rbp + 7]
mov qword [rsp + 0x20], 8
call sub.ntdll.dll_NtQueryVirtualMemory
cdqe
jmp 0x140005fd8
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xa0], rdi
cmp eax, 2
jne 0x140005fc6
mov eax, dword [rcx]
xor edi, edi
mov dword [rbp + 0xf], eax
mov eax, edi
mov qword [rbp + 0x17], rdx
mov edx, 0x203
mov dword [rbp + 0x2f], edi
mov word [rbp - 1], di
mov qword [rbp + 0x1f], r8
mov qword [rbp + 0x27], r9
mov dword [rbp - 0x19], 0x258025f
mov dword [rbp - 0x15], 0x25a022b
mov dword [rbp - 0x11], 0x2310263
mov dword [rbp - 0xd], 0x23f0239
mov dword [rbp - 9], 0x23a0269
mov dword [rbp - 5], 0x23d023a
mov byte [rbp + 1], 1
nop dword [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x19], cx
inc rax
cmp rax, 0xc
jb 0x140005f30
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x19]
xor edx, edx
mov byte [rbp + 1], dil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140005fc6
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0xf]
lea rax, [rbp + 0xf]
mov dword [rsp + 0x28], 0x20
mov r9d, 0x20
mov qword [rsp + 0x20], rax
mov edx, 0x22241c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x1f]
mov rcx, qword [rax]
mov rax, qword [rbp + 7]
mov qword [rax], rcx
mov rax, qword [rbp + 0x27]
jmp 0x140005fc8
xor eax, eax
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140006a40
add rsp, 0xb0
pop rbp
ret

Function at 0x140006030
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2f], 0
je 0x140006053
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 3]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x2e
jb 0x140006040
mov byte [rcx + 0x2f], 0
mov rax, rcx
ret

Function at 0x140006060
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x37], 0
je 0x140006083
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 3]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x36
jb 0x140006070
mov byte [rcx + 0x37], 0
mov rax, rcx
ret
Function at 0x140006160
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140038240]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov dword [rcx], edx
mov dword [rcx + 0x10], r8d
cmp r8d, 2
jne 0x14000635b
mov qword [rsp + 0xa8], rbx
xor ebx, ebx
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400061df
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x47]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x4b]
mov dword [rbp + 0x47], 4
lea edx, [rbx + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp + 0x4b]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x1400061ee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140006277
movdqa xmm0, xmmword [str.Nqvrjlyyc_fv2rg5wsupt_zrl_KDPt4xys9]
lea rcx, [rbp + 0x37]
movdqa xmm1, xmmword [0x140028c00]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 0x37], 0x67716545
movdqu xmmword [rbp + 7], xmm1
mov dword [rbp + 0x3b], 0x784c286b
mov dword [rbp + 0x3f], 0x7f6379
mov byte [rbp + 0x43], 1
mov dword [rbp + 0x17], 0x649414d
mov dword [rbp + 0x1b], 0x4f4d474a
mov dword [rbp + 0x1f], 0x5b595f0b
mov dword [rbp + 0x23], 0x1005649
call fcn.140005980
lea rcx, [rbp - 9]
mov rbx, rax
call fcn.140006030
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, dword [0x1400414f4]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140040eb0], ecx
jg 0x140006370
xor r9d, r9d
mov qword [rbp + 0x37], 8
lea rdx, [rbp + 0x37]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [0x140040ea8]
test eax, eax
js 0x1400062c9
test byte [rbp + 0x3b], 1
je 0x1400062c9
mov al, 1
jmp 0x1400062cb
xor al, al
test al, al
jne 0x140006353
movdqa xmm0, xmmword [0x140028c20]
lea rcx, [rbp + 0x37]
movdqa xmm1, xmmword [0x140028c10]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 0x37], 0x67716545
movdqa xmm0, xmmword [0x140028be0]
movdqu xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0x3b], 0x784c286b
mov dword [rbp + 0x3f], 0x7f6379
mov byte [rbp + 0x43], 1
movdqu xmmword [rbp + 7], xmm1
mov dword [rbp + 0x27], 0x405c4657
mov dword [rbp + 0x2b], 0x1004a52
call fcn.140005980
lea rcx, [rbp - 9]
mov rbx, rax
call fcn.140006060
mov rdx, rax
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140006a40
add rsp, 0x90
pop rbp
ret
lea rcx, [0x140040eb0]
call fcn.140006acc
cmp dword [0x140040eb0], 0xffffffff
jne 0x14000629e
lea rcx, [0x140030bf8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140040eb0]
mov qword [0x140040ea8], rax
call fcn.140006a60
jmp 0x14000629e
Function at 0x1400063c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x90
mov rax, qword [0x140038240]
xor rax, rsp
mov qword [rbp + 0xf], rax
cmp dword [rcx + 0x10], 0
mov rsi, r9
mov r12, qword [rbp + 0x7f]
mov r15, r8
mov r14, rdx
mov rdi, rcx
jne 0x14000640a
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rdi + 0x10], 1
jne 0x140006427
mov rcx, qword [rdi + 8]
mov r9d, esi
mov r8, r15
mov qword [rsp + 0x20], r12
mov rdx, r14
call sub.ntdll.dll_NtReadVirtualMemory
cmp dword [rdi + 0x10], 2
jne 0x14000651a
mov eax, dword [rdi]
mov edx, 0x203
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0x258025f
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor r14, rax
mov dword [rbp - 0x2d], 0x25a022b
mov rax, rsi
mov qword [rbp - 1], r14
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0x2310263
xor edi, edi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], edi
mov eax, edi
mov word [rbp - 0x19], di
mov dword [rbp - 0x25], 0x23f0239
mov dword [rbp - 0x21], 0x23a0269
mov dword [rbp - 0x1d], 0x23d023a
mov byte [rbp - 0x17], 1
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x1400064a0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], dil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000651a
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], esi
mov r9d, 0x18
mov edx, 0x22240e
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140006a40
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400067d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x90
mov rax, qword [0x140038240]
xor rax, rsp
mov qword [rbp + 0xf], rax
cmp dword [rcx + 0x10], 0
mov rsi, r9
mov r12, qword [rbp + 0x7f]
mov r15, r8
mov r14, rdx
mov rdi, rcx
jne 0x14000681a
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [rdi + 0x10], 1
jne 0x140006837
mov rcx, qword [rdi + 8]
mov r9d, esi
mov r8, r15
mov qword [rsp + 0x20], r12
mov rdx, r14
call sub.ntdll.dll_NtWriteVirtualMemory
cmp dword [rdi + 0x10], 2
jne 0x14000692a
mov eax, dword [rdi]
mov edx, 0x203
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0x258025f
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor r14, rax
mov dword [rbp - 0x2d], 0x25a022b
mov rax, rsi
mov qword [rbp - 1], r14
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0x2310263
xor edi, edi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], edi
mov eax, edi
mov word [rbp - 0x19], di
mov dword [rbp - 0x25], 0x23f0239
mov dword [rbp - 0x21], 0x23a0269
mov dword [rbp - 0x1d], 0x23d023a
mov byte [rbp - 0x17], 1
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x1400068b0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], dil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000692a
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], esi
mov r9d, 0x18
mov edx, 0x22240a
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140006a40
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140007784
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a450
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a4f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a4ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a4a0
cmp rcx, 1
jb 0x14000a526
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a4c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000fb0c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a490
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b930
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000f7d0
int3
Function at 0x14000a5b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a5f5
xor al, al
jmp 0x14000a642
cmp word [rbx], 0
je 0x14000a60d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a600
cmp word [rsp + 0x30], 0
je 0x14000a63b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a663
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a620
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b930
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f7d0
int3
Function at 0x14000adf0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f7d0
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140031580]
lea rsi, [0x1400335c0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ae69
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a670
test al, al
je 0x14000af4f
lea rcx, [rsp + 0x20]
call fcn.140013e1c
movsxd r11, dword [0x140031580]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140031580], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000aea4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ae94
add rax, 2
test ecx, ecx
jne 0x14000ae80
test edx, edx
je 0x14000aec7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ae74
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000aeb0
cmp rax, 2
jne 0x14000aecb
cmp word [rdi + 2], 0x3a
jne 0x14000aecb
mov al, 1
jmp 0x14000af2e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000aef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aef8
mov bl, 1
jmp 0x14000aefc
test bl, bl
je 0x14000af23
cmp dword [0x140031580], 0x400
jge 0x14000af23
mov rcx, rdi
call fcn.140013e1c
movsxd rdx, dword [0x140031580]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140031580], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b930
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac90
int3
Function at 0x14000b070
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140031588]
test rcx, rcx
je 0x14000b0ab
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b09e
mov rcx, qword [0x140031588]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031588]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400355d8], 0
je 0x14000b19e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028838]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400315c0]
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 0x14000b17f
test al, 0x10
je 0x14000b17f
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 0x14000b125
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 0x14000f7c4
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 0x14000f623
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f623
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f623
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f623
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f623
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f623
cmp dword [rcx + 0xf8], 0
je 0x14000f623
mov ecx, ebx
call fcn.14000f6e0
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.14000f4b0
nop
cmp dword [rbp + 0x20], 0
je 0x14000f671
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f67c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f5b4
Function at 0x140018c70
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 0x140018cf7
mov rsi, rbx
cmp word [rax], bp
je 0x140018cb6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018ca0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018c9c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400164b0
mov rdi, rax
test rax, rax
je 0x140018ce4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d5b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400154f4
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 0x140001000
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x2250
call fcn.140002240
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2240], rax
mov r15, rdx
lea r8, [rsp + 0x28]
mov r14, rcx
xor ebx, ebx
mov edx, 0x2000
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x28]
shr ebp, 2
mov qword [rsp + 0x20], rbx
test ebp, ebp
je 0x140001145
lea rsi, [rsp + 0x30]
nop dword [rax]
mov r8d, dword [rsi]
test r8d, r8d
je 0x140001137
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001137
lea r9, [rsp + 0x28]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
lea rcx, [rsp + 0x2030]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400010e0
mov r10, qword [r14 + 8]
cmp rax, r10
mov r8, r10
cmovb r8, rax
test r8, r8
je 0x140001127
mov r9, qword [r14]
lea rcx, [rsp + 0x2030]
sub r9, rcx
lea rdx, [rsp + 0x2030]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x14000112e
add rdx, 2
sub r8, 1
jne 0x140001113
cmp r10, rax
jb 0x14000112e
jbe 0x140001174
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add rsi, 4
cmp ebx, ebp
jb 0x140001070
xor eax, eax
mov rcx, qword [rsp + 0x2240]
xor rcx, rsp
call fcn.140001550
lea r11, [rsp + 0x2250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movsxd rax, ebx
mov ecx, dword [rsp + rax*4 + 0x30]
mov rax, rdi
mov dword [r15], ecx
jmp 0x140001147
Function at 0x14002f560
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x160
mov dword [rsp + 0x178], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov ebx, 0xff
cmp eax, ebx
jbe 0x14002f5dc
mov dword [rsp + 0x20], 1
lea r9d, [rbx + 0xb]
lea r8, str.D:JenkinsworkspaceN_SentryNativeSDKexternalcrashpad_snapshotwin_system_snapshot_win.cc
lea rdx, str.unsigned_char___cdecl_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea rcx, [rsp + 0x60]
call fcn.14004b780
nop
mov dword [rsp + 0x178], 1
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rsp + 0x60]
call fcn.14004b9a0
mov eax, dword [rsp + 0x50]
cmp eax, ebx
movzx ecx, al
cmovbe ebx, ecx
movzx eax, bl
add rsp, 0x160
pop rbx
ret