joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072550
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400ece98]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
lea rdi, [rbx + 8]
mov word [rdi], r14w
xor r8d, r8d
lea rdx, [0x1400a4c88]
mov rcx, rbx
call fcn.14000c838
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r14 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x140072724
lea rax, [rsp + 0x60]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x140072607
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000c838
lea rdx, str.Microsoft_
mov rcx, rbx
call fcn.1400734c8
lea rdx, [rsi + 0x28]
mov r9, r15
xor r8d, r8d
mov rcx, rbx
call fcn.140070fe4
lea rdx, [0x1400a8e48]
mov rcx, rbx
call fcn.1400734c8
cmp qword [rbx + 0x20], 8
jb 0x14007265a
mov rcx, qword [rdi]
jmp 0x14007265d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1400726d2
cmp qword [rbx + 0x20], 8
jb 0x14007267a
mov rdx, qword [rdi]
jmp 0x14007267d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
nop dword [rax + rax]
test eax, eax
je 0x1400726d2
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000cd4c
nop
cmp qword [rsp + 0x58], 8
jb 0x140072724
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
jmp 0x140072724
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 8
jb 0x1400726e0
mov rdx, qword [rdx]
cmp qword [rbx + 0x20], 8
jb 0x1400726ea
mov rdi, qword [rdi]
lea r9, [rbp + 0x170]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [0x1400a4c88]
mov rcx, rbx
call fcn.14000c838
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.1400734c8
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400842d0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140074b60
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400ece98]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
cmp dword [0x1400ef09c], edi
mov qword [rsp + 0x20], rdi
jne 0x140074ba4
mov eax, 0x80004005
jmp 0x140074cf9
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
jbe 0x140074be5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140074cef
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140077a60
mov ebx, eax
test eax, eax
js 0x140074cea
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140074c41
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140074c41
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140074cef
mov rcx, qword [0x1400ef090]
call sub.msvcrt.dll_free
mov qword [0x1400ef090], rdi
lea rcx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
je 0x140074ca5
lea r8, str.oPackage
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140009d54
test eax, eax
js 0x140074ca5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140077a60
mov ebx, eax
test eax, eax
js 0x140074cea
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140074cd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [0x1400ef090]
call sub.msvcrt.dll_free
mov qword [0x1400ef090], rdi
xor edi, edi
jmp 0x140074cef
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400842d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140077fb0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x10], 0
lea rax, [rcx - 0x18]
neg rax
lea rdx, [rcx + 8]
mov rdi, rcx
sbb rbx, rbx
and rbx, rdx
je 0x140077fed
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xcc], 0
je 0x14007819a
mov rcx, qword [rdi + 0x78]
and dword [rdi + 0xcc], 0
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x14007802b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rdi + 0x98], 0
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x14007804c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rdi + 0xa0], 0
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x14007809f
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400c1680]
mov rax, qword [rax]
call qword [case.0x14004e05b.0]
test eax, eax
js 0x14007809f
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14004e05b.0]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14007809f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rbp + 0x10], 0
and qword [rdi + 0xa8], 0
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x1400780fa
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400c1680]
mov rax, qword [rax]
call qword [case.0x14004e05b.0]
test eax, eax
js 0x1400780fa
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14004e05b.0]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400780fa
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rbp + 0x10], 0
and qword [rdi + 0xb8], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140078155
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400c1680]
mov rax, qword [rax]
call qword [case.0x14004e05b.0]
test eax, eax
js 0x140078155
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14004e05b.0]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140078155
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rbp + 0x10], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140078176
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rdi + 0xb0], 0
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x14007819a
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x88]
call sub.msvcrt.dll_free
test rbx, rbx
je 0x1400781af
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
Function at 0x14007b250
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx - 8]
mov rdi, rcx
neg rax
lea rdx, [rcx + 8]
sbb rbx, rbx
and rbx, rdx
je 0x14007b285
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xf8], 0
je 0x14007b355
and dword [rdi + 0xf8], 0
cmp dword [rdi + 0x100], 0
je 0x14007b2ad
xor edx, edx
lea rcx, [rdi - 8]
call fcn.14007c0ac
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x14007b2ce
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rdi + 0xe8], 0
cmp dword [rdi + 0xfc], 0
je 0x14007b2ea
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xf0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xb0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xc0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x14007b32f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rdi + 0xd8], 0
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x14007b350
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
and qword [rdi + 0xe0], 0
and qword [rdi + 0x38], 0
test rbx, rbx
je 0x14007b36a
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14007b6fc
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor edi, edi
lea rdx, [rcx + 0x10]
and dword [rbp + 0x38], edi
or r15, 0xffffffffffffffff
and dword [rbp + 0x48], edi
mov rax, rcx
and dword [rbp + 0x40], edi
mov rsi, rcx
neg rax
sbb rbx, rbx
and rbx, rdx
je 0x14007b740
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x100], edi
jne 0x14007b752
mov edi, 0x802a0035
jmp 0x14007b916
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
jne 0x14007b768
mov edi, 0x80004005
jmp 0x14007b925
cmp dword [rsi + 0x104], edi
jne 0x14007b916
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14007b7e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14007b7d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14007b916
mov edi, 0x8000ffff
jmp 0x14007b916
mov rax, qword [rsi]
lea rdx, [rbp + 0x40]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x14004e05b.0]
mov edx, 1
mov rcx, rsi
call fcn.14007c0ac
mov edi, eax
test eax, eax
js 0x14007b916
jmp 0x14007b86f
mov edx, dword [rsi + 0xd4]
lea r9, [rbp + 0x48]
add rdx, qword [rsi + 0xc8]
mov r8d, r14d
and qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14007b85f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14007b916
add dword [rsi + 0xd8], r14d
mov eax, dword [rbp + 0x48]
add dword [rsi + 0xd4], eax
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14007bf24
mov r14d, dword [rbp + 0x38]
test r14d, r14d
jne 0x14007b810
mov ecx, dword [rsi + 0xd8]
mov eax, ecx
sub eax, dword [rsi + 0x54]
neg eax
sbb edi, edi
and edi, 0x802a0021
cmp ecx, dword [rsi + 0x54]
jne 0x14007b916
xor edx, edx
mov rcx, rsi
call fcn.14007c0ac
mov edi, eax
test eax, eax
js 0x14007b916
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rbp + 0x40]
lea r14, [rsi + 0xf0]
mov rcx, qword [rsi + 0xf8]
mov rdx, r14
or r15, 0xffffffffffffffff
mov dword [rbp + 0x50], eax
call fcn.140076940
mov edi, eax
test eax, eax
js 0x14007b916
mov rcx, qword [r14]
lea rdx, [rbp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x14004e05b.0]
mov edi, eax
test eax, eax
js 0x14007b916
mov eax, dword [rbp + 0x40]
cmp dword [rbp + 0x50], eax
je 0x14007b90c
mov edi, 0x80004005
jmp 0x14007b916
mov dword [rsi + 0x104], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14007b93a
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14007cf40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
lea rdi, [0x1400c1720]
mov r9d, ecx
not r9d
mov r11, rdx
cmp r8d, 8
jb 0x14007cf96
mov r10d, r8d
shr r10, 3
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x14007cf6c
add r8d, 0xfffffff8
sub r10, 1
jne 0x14007cf67
test r8d, r8d
je 0x14007cfbb
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r8d, 0xffffffff
jne 0x14007cf9b
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x14007f740
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
mov r10, rdx
shr ecx, 0x10
test rdx, rdx
jne 0x14007f87a
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x14007f83e
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xf]
add ecx, r9d
add r10, 0x10
add r9d, eax
add ecx, r9d
sub r11, 1
jne 0x14007f781
test edx, edx
je 0x14007f854
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x14007f842
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x14007f758
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret

Function at 0x1400842a0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
Function at 0x140001000
Capabilities:
Encode data using xor
Enumerate threads
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x48], rax
nop
movdqa xmm0, xmmword [0x1400022b0]
xor eax, eax
movdqu xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x30], pe_nt_image_headers64
nop word [rax + rax]
lea ecx, [rax - 0xd]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0x10
jb 0x140001040
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x31], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140001108
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [rsp + 0x40]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001020
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400010fa
cmp dword [rsp + 0x2c], esi
jne 0x1400010e8
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400010e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400010b6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001020
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140001160
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
je 0x140001183
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0xd]
xor byte [rax + rcx], dl
inc rax
cmp rax, 9
jb 0x140001170
mov byte [rcx + 0xa], 0
mov rax, rcx
ret

Function at 0x140001a7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ac6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ac6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ac6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ac6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ac6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ac8
xor al, al
add rsp, 0x28
ret
Function at 0x1400012b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400013c4
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x1400013c4
cmp word [rax + rcx + 0x14], 0x78
jb 0x1400013c4
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140047010]
test rax, rax
je 0x1400013c4
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x1400013ec
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140047010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x1400013c4
lea rsi, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov r12, rsi
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140047010]
mov cl, byte [rdi]
test cl, cl
je 0x140001399
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000139b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001389
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x1400013c8
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x140001353
xor eax, eax
jmp 0x1400013f6
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140047010]
sub r12, r15
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov rax, qword [rsp + 0x20]
mov word [rax], di
mov al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008440
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rcx], rdx
je 0x1400084f5
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 2
jae 0x1400084c9
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400084b5
mov qword [rsi], rdi
call fcn.140008550
mov r15, rax
mov r14, qword [rsp + 0x58]
cmp qword [0x140043a68], 0
je case.default.0x1400084c2
mov rcx, qword [0x140043a68]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8, rsi
mov r9, r14
call qword [0x140047010]
mov ecx, ebx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140008550
mov r8, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rsi
mov r9, rax
call fcn.140001040
mov rcx, qword [rsi]
call fcn.140001550
mov qword [rsi], 0
jmp 0x14000846f
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008538
lea rcx, [sym.plugin_container.exe_GetHandleVerifier]
cmp rax, rcx
jne 0x14000853c
xor ecx, ecx
mov dl, 1
call fcn.140009cb0
jmp 0x140008493
xor ecx, ecx
jmp 0x140008545
call qword [0x140047010]
mov rcx, rax
xor edx, edx
jmp 0x14000852e
fldcw word [rsi]
mov ah, 0xec
add eax, 0xc461490
add dword [rdi], 0x7cf28af5
mov dh, dl
jl 0x14007d593
push rdi
enter 0x342c, 0x1c
Function at 0x140009e90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140042038]
cmp ecx, 0xffffffff
je 0x140009ecb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140009ed0
call fcn.14000a410
mov eax, dword [0x140043a58]
mov ecx, dword [0x1400421a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140009f2a
lea rcx, [0x140043a58]
call fcn.14001ace8
cmp dword [0x140043a58], 0xffffffff
jne 0x140009f2a
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140043a50], rax
lea rcx, [0x140043a58]
call fcn.14001ac88
mov rdi, qword [0x140043a50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140042248]
inc rax
xor ecx, ecx
lea rdx, [0x140042250]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140009fce
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], 0
mov qword [0x140042248], r8
mov dword [rsi], r8d
mov eax, dword [rax + 0x10]
mov dword [rsi + 4], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
je 0x140009fe0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x24], eax
cmp eax, 0xff
jg 0x14000a022
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001bf90
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x140009f4d
jmp 0x140009f82
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140020000
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14001fce0
mov rcx, rdi
call fcn.14001fd80
mov eax, dword [rsi]
jmp 0x140009f9e
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140020000
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x197
mov r9, rax
call fcn.14001fce0
mov rcx, rdi
call fcn.14001fd80
jmp 0x140009fb1