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

Disassembly:
jmp 0x140021b40
mov rax, rcx
neg rcx
test rax, 7
je 0x140021b5d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140021bb8
test al, 7
jne 0x140021b50
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140021b71
mov rdx, qword [rax - 8]
test dl, dl
je 0x140021be2
test dh, dh
je 0x140021bdc
shr rdx, 0x10
test dl, dl
je 0x140021bd6
test dh, dh
je 0x140021bd0
shr rdx, 0x10
test dl, dl
je 0x140021bca
test dh, dh
je 0x140021bc4
shr edx, 0x10
test dl, dl
je 0x140021bbe
test dh, dh
jne 0x140021b71
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400026ee
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14001b934
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400870c8]
mov ecx, 2
lea r8, [0x1400870c0]
lea rdx, str.FlsGetValue
call fcn.14001b404
mov ecx, ebx
test rax, rax
je 0x14001b96e
add rsp, 0x20
pop rbx
jmp qword [0x1400a7020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000282e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140064538
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140064568
xor eax, eax
jmp 0x14006462b
mov rbp, rbx
cmp word [rax], si
je 0x14006458d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140064574
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140064570
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140003198
movsxd r14, eax
test eax, eax
jne 0x1400645cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140064561
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x1400645e4
xor ecx, ecx
call fcn.14000116d
jmp 0x1400645c0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140003198
test eax, eax
jne 0x140064615
mov rcx, rdi
call fcn.14000116d
jmp 0x14006461f
xor ecx, ecx
call fcn.14000116d
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x14000283d
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14001b884
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140087088]
xor ecx, ecx
lea r8, [0x140087080]
lea rdx, str.FlsAlloc
call fcn.14001b404
test rax, rax
je 0x14001b8bd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a7020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400028b5
Capabilities:
Get geographical location

Disassembly:
jmp 0x140059034
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400886e8]
mov rbp, rcx
lea r8, [0x1400886e0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140058554
test rax, rax
je 0x140059094
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a7030]
jmp 0x1400590ae
xor edx, edx
mov rcx, rbp
call fcn.1400021e4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400028c9
Capabilities:
Terminate process

Disassembly:
jmp 0x14000c71c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029ff
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004e120
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004de7c

Function at 0x140002b94
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007c770
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007c798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007c798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002ea0
Capabilities:
Parse pe header

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

Function at 0x140003111
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14007c6b0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x14007c6f1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x14007c6e5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x14007c6f3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x14007c6d3
xor eax, eax
ret
Function at 0x1400032fb
Capabilities:
Terminate process

Disassembly:
jmp 0x140057840
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14005785a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003986
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a71
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14001b98c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400870e8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400870e0]
call fcn.14001b404
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14001b9cc
call qword [0x1400a7020]
jmp 0x14001b9d2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003b07
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400741a4
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140002121
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007422e
cmp byte [rbp - 0x21], r15b
je 0x140074229
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140074264
call fcn.140003ea4
test eax, eax
jne 0x140074250
cmp byte [rbp - 0x21], r15b
je 0x140074248
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140074264
cmp byte [rbp - 0x21], r15b
je 0x140074261
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140004070
test eax, eax
jne 0x140074304
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140002121
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400742a3
cmp byte [rbp - 0x21], r15b
je 0x1400742d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400742d8
call fcn.140003ea4
test eax, eax
jne 0x1400742c4
cmp byte [rbp - 0x21], r15b
je 0x1400742bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400742d8
cmp byte [rbp - 0x21], r15b
je 0x1400742d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140004070
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140074304
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140074307
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140074315
mov rcx, rdi
call fcn.14000116d
cmp byte [rbp + 0x3f], r15b
je 0x140074324
mov rcx, qword [rbp + 0x27]
call fcn.14000116d
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140003bf7
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004e110
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004de7c
Function at 0x14000d4c4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000d4c4
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d50e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d50e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d50e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d50e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d50e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d510
xor al, al
add rsp, 0x28
ret
Function at 0x140072710
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140072726
mov al, 1
jmp 0x140072786
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140072737
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140072784
mov ecx, dword [rcx + 0x18]
nop
call fcn.140003e54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140072784
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140072784
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140072784
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140072786
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000155c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], ebx
xor r8d, r8d
lea edi, [rbx + 0x42]
jmp 0x1400015a0
test rbx, rbx
je 0x140001589
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
mov rbx, rax
mov rdx, rax
lea r9, [rsp + 0x30]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140001579
xor edi, edi
test rbx, rbx
je 0x140001602
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400015f7
lea rax, [rbx + 0x18]
mov edx, ecx
mov rcx, qword [rax - 0x10]
test cl, 1
je 0x1400015ed
cmp qword [rax - 8], 0x200000
jne 0x1400015ed
test rdi, rdi
jne 0x1400015ed
cmp dword [rax], 0x546e6f43
jne 0x1400015ed
mov rdi, rcx
and rdi, 0xfffffffffffffffe
add rax, 0x18
sub rdx, 1
jne 0x1400015c6
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140001610
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140001657
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001657
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rbx, rax
test rax, rax
je 0x140001657
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x140001659
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001660
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140001000
test eax, eax
js 0x1400016bf
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400016bf
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400016bf
mov edx, 0x3e8
call fcn.140001100
mov rbx, rax
test rax, rax
je 0x1400016bf
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov qword [0x140004118], rbx
jmp 0x1400016c1
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001764
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400017ac
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400017ac
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rbx, rax
test rax, rax
je 0x1400017ac
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x1400017ae
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400017b4
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8d, 0x20
lea r9, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov dword [r11 - 0x38], r8d
mov edi, ecx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0x20]
mov ecx, 0x400
mov r8d, 0xb1127cfc
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140001809
xor eax, eax
jmp 0x140001831
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
je 0x14000182e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001805
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001e40
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140001a1c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140001ae7
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140001ae7
cmp qword [rdi + 0x10], rbx
je 0x140001ae7
cmp qword [rdi + 0x18], rbx
je 0x140001ae7
cmp qword [rdi + 0x20], rbx
je 0x140001ae7
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001ae0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001ae0
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [0x140004118]
test rcx, rcx
je 0x140001ad9
mov rdx, qword [rdi + 0x10]
call fcn.140001b64
test rax, rax
je 0x140001ad9
mov rdx, qword [rdi + 0x18]
lea r9, [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x38], rbx
and ecx, 0xfff
mov r8d, 0x1000
sub r8, rcx
mov rcx, qword [rdi + 0x20]
cmp r8, rcx
cmovae r8, rcx
mov rcx, rax
call fcn.140001974
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140001aec
mov eax, 0xc0000001
jmp 0x140001aec
mov eax, 0xc0000225
jmp 0x140001aec
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001d4c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140001e12
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140001e12
cmp qword [rdi + 0x10], rbx
je 0x140001e12
cmp qword [rdi + 0x18], rbx
je 0x140001e12
cmp qword [rdi + 0x20], rbx
je 0x140001e12
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001e0b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001e0b
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [0x140004118]
test rcx, rcx
je 0x140001e04
mov rdx, qword [rdi + 0x10]
call fcn.140001b64
test rax, rax
je 0x140001e04
mov rdx, qword [rdi + 0x18]
lea r9, [rsp + 0x38]
mov rcx, rax
mov r8d, 0x1000
and ecx, 0xfff
sub r8, rcx
mov rcx, qword [rdi + 0x20]
cmp r8, rcx
cmovae r8, rcx
mov rcx, rax
call fcn.140001cbc
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x140001e17
mov eax, 0xc0000001
jmp 0x140001e17
mov eax, 0xc0000225
jmp 0x140001e17
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017820
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 [0x140054018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140017700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140017868
test al, al
je 0x140017868
cmp qword [rsi + 0x58], 0
je 0x140017884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14001790d
mov rcx, rdi
call fcn.140017710
mov r14, rax
mov rbp, qword [0x140054c18]
test rbp, rbp
jne 0x1400178cb
lea rcx, [0x14004c3fe]
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 [0x140054c18], 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 0x140017866
test dword [rsp + 0x38], 0x1000000
jne 0x140017866
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.140017710
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 0x140017984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
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 0x140017866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400179a4
xor eax, eax
jmp 0x1400179b1
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.1400176a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400179e0
mov bpl, 1
jmp 0x140017868

Function at 0x140017a40
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 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.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
jp 0x1400a13a6
invalid
movsb byte [rdi], byte [rsi]
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001af70]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001af80]
mov dword [rax], 1
mov rax, qword [0x14001af90]
mov dword [rax], 1
mov rax, qword [0x14001af60]
mov dword [rax], 1
mov rax, qword [0x14001ae00]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001af50]
mov dword [0x14001e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001af10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001aef0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001ad90]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001980
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]