joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407644]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401ea8
mov rax, qword [0x00407648]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401d6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401df5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401d50
mov rcx, rbx
call fcn.004029c0
test rax, rax
mov r12, rax
je 0x401edd
mov rax, qword [0x00407648]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402af0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407648]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401ec0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401dee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401e50
add dword [0x00407644], 1
cmp edi, 8
jae 0x401e23
test dil, 4
jne 0x401e94
test edi, edi
je 0x401e18
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401eaf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401e18
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401e3c
jmp 0x401e18
add rsi, qword [0x00407648]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401dee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402ed0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401e18
xor esi, esi
jmp 0x401d77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401e18
mov rax, qword [0x00407648]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00402ed0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402ed0
nop
nop dword [rax]

Function at 0x402630
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407900]
test rbx, rbx
je 0x402684
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40267b
test rsi, rsi
je 0x40267b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402660
lea rcx, [0x00407920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4029c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402a2d
mov rcx, r8
call fcn.004028a0
test eax, eax
je 0x402a2d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a2f
add rax, 0x28
cmp rax, r9
jne 0x402a10
xor eax, eax
add rsp, 0x28
ret

Function at 0x402ed0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00402d70
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.00402d70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001540
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 0x140001654
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001654
cmp word [rax + rcx + 0x14], 0x78
jb 0x140001654
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 [0x140068010]
test rax, rax
je 0x140001654
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x14000167c
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x140001654
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 [0x140068010]
mov cl, byte [rdi]
test cl, cl
je 0x140001629
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000162b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001619
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140001658
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x1400015e3
xor eax, eax
jmp 0x140001686
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140068010]
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 0x140004360
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x50], rax
test r8, r8
je 0x1400044c1
mov ebp, r9d
test r9d, r9d
je 0x1400044c1
mov rbx, r8
mov edi, edx
mov eax, dword [0x140064b04]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400044d1
mov r15d, ebp
cmp r15, rbx
ja 0x14000451e
xor eax, eax
mov rcx, rbx
sub rcx, r15
cmovae rax, rcx
cmp rax, 0x100001
mov r13d, 0x100000
cmovae r13, rax
mov r12d, dword [0x140064b00]
mov eax, dword [0x140064b10]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14000444b
lea rcx, [0x140064b10]
call fcn.14002de38
cmp dword [0x140064b10], 0xffffffff
jne 0x14000444b
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x140064b08], rax
lea rcx, [0x140064b10]
call fcn.14002ddd8
mov rax, qword [0x140064b08]
add r15, rbx
cmp rax, r15
cmovb r15, rax
mov ecx, edi
cmp r15, rcx
jb 0x1400044c1
mov rdx, r13
neg rdx
lea rax, [r12 - 1]
and rax, rdx
add rax, r13
xor edx, edx
sub r15, rcx
cmovae rdx, r15
neg r12
and r12, rdx
sub r12, rax
jbe 0x1400044c1
test rax, rax
je 0x140004513
cmp r12, 0xffffffffffffffff
je 0x140004513
mov qword [rsi], r12
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002ef70
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400044a2
lea rcx, [0x140064b04]
call fcn.14002de38
cmp dword [0x140064b04], 0xffffffff
jne 0x1400043c1
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140064b00], eax
lea rcx, [0x140064b04]
call fcn.14002ddd8
jmp 0x1400043c1
int3
mov r13d, 0x100000
jmp 0x1400043e9
Function at 0x140004710
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x14000490e
mov rdi, rcx
mov ebp, dword [rcx + 0x18]
shl ebp, 7
mov edx, ebp
or edx, 0x7f
mov ecx, dword [rcx + 0x14]
cmp edx, ecx
jb 0x1400047d8
cmp ecx, dword [rdi + 0x10]
jae 0x14000490e
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000488c
mov edx, dword [0x140064af0]
mov ecx, dword [rdi + 0x14]
add rcx, qword [rdi + 8]
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000490e
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400048cd
mov eax, dword [0x140064af0]
add dword [rdi + 0x14], eax
mov rax, qword [rdi + 8]
mov ecx, ebp
add rcx, rax
lea r9, [rsp + 0x30]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [r9 + 0x18], xmm0
mov dword [r9 + 0x28], 0x80
mov byte [r9 + 0x2c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140004823
mov eax, dword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov cl, byte [rsp + 0x5c]
test r8, r8
je 0x14000484d
test rdx, rdx
je 0x140004850
test r9, r9
je 0x140004850
test eax, eax
je 0x140004850
test cl, cl
je 0x140004850
inc dword [rdi + 0x18]
mov qword [rsi], r8
mov dword [rsi + 8], eax
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r9
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x20], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x30], eax
mov byte [rsi + 0x34], cl
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002ef70
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140064af4]
call fcn.14002de38
cmp dword [0x140064af4], 0xffffffff
jne 0x14000477e
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ddd8
jmp 0x14000477e
lea rcx, [0x140064af4]
call fcn.14002de38
cmp dword [0x140064af4], 0xffffffff
jne 0x1400047cb
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ddd8
jmp 0x1400047cb
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x140004875
Function at 0x140006f40
Capabilities:
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r9
mov r14, r8
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
xor eax, esp
mov qword [rsp + 0x50], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007055
lea rcx, [0x140064af4]
call fcn.14002de38

Function at 0x14000cb00
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rcx], rdx
je 0x14000cbb5
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 0x14000cb89
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14000cb75
mov qword [rsi], rdi
call fcn.14000cc10
mov r15, rax
mov r14, qword [rsp + 0x58]
cmp qword [0x140064628], 0
je case.default.0x14000cb82
mov rcx, qword [0x140064628]
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 [0x140068010]
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.14000cc10
mov r8, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rsi
mov r9, rax
call fcn.140001040
mov rcx, qword [rsi]
call fcn.140001c00
mov qword [rsi], 0
jmp 0x14000cb2f
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 0x14000cbf8
lea rcx, [sym.firefox.exe_GetHandleVerifier]
cmp rax, rcx
jne 0x14000cbfc
xor ecx, ecx
mov dl, 1
call fcn.14000e4b0
jmp 0x14000cb53
xor ecx, ecx
jmp 0x14000cc05
call qword [0x140068010]
mov rcx, rax
xor edx, edx
jmp 0x14000cbee
xchg rax, r11
retfq 0x129f
imul esi, dword [r8 - 0x4b0d36b6], 0x9ddfa6d6
sub eax, 0xffd88ad6
Function at 0x14000e690
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140062080]
cmp ecx, 0xffffffff
je 0x14000e6cb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14000e6d0
call fcn.14000ec10
mov eax, dword [0x140064618]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14000e72a
lea rcx, [0x140064618]
call fcn.14002de38
cmp dword [0x140064618], 0xffffffff
jne 0x14000e72a
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140064610], rax
lea rcx, [0x140064618]
call fcn.14002ddd8
mov rdi, qword [0x140064610]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140062e08]
inc rax
xor ecx, ecx
lea rdx, [0x140062e10]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14000e7ce
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], 0
mov qword [0x140062e08], 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 0x14000e7e0
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x24], eax
cmp eax, 0xff
jg 0x14000e822
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002ef70
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x14000e74d
jmp 0x14000e782
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140039be0
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.1400398c0
mov rcx, rdi
call fcn.140039960
mov eax, dword [rsi]
jmp 0x14000e79e
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140039be0
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.1400398c0
mov rcx, rdi
call fcn.140039960
jmp 0x14000e7b1
Function at 0x140011040
Capabilities:
Encode data using base64

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x6c], 0
je 0x140011081
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
jne 0x14001106b
mov rcx, rsi
mov r8, rax
add rsp, 0x20
pop rsi
jmp fcn.140011090
mov r8d, 0x44
mov rcx, rdx
mov rdx, rax
call sub.ntdll.dll_memcpy
add qword [rsi + 8], 0x44
add rsp, 0x20
pop rsi
ret

Function at 0x140011090
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov r13, qword [rsi + 8]
sub r13, rcx
sar r13, 2
movabs r9, 0xf0f0f0f0f0f0f0f1
mov rax, rdx
sub rax, rcx
movabs rdx, 0x7878787878787879
imul rdx
mov r15, rdx
imul r13, r9
inc r13
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
sar rdx, 2
imul rdx, r9
mov rax, rdx
shr rax, 1
movabs rcx, 0x3c3c3c3c3c3c3c3
mov r9, rcx
sub r9, rax
add rax, rdx
cmp rax, r13
cmovbe rax, r13
cmp rdx, r9
cmova rax, rcx
cmp rax, rcx
ja 0x1400111f8
mov r12, r8
mov rcx, r15
shr rcx, 0x3f
sar r15, 5
add r15, rcx
mov rcx, rax
shl rcx, 6
lea rbx, [rcx + rax*4]
cmp rax, 0x3d
jae 0x1400111fd
test rax, rax
je 0x140011217
mov rcx, rbx
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
mov rax, r15
shl rax, 6
lea rbp, [rax + r15*4]
lea rcx, [r14 + rbp]
mov r8d, 0x44
mov rdx, r12
call sub.ntdll.dll_memcpy
mov r15, qword [rsi]
mov r12, qword [rsi + 8]
cmp r12, rdi
jne 0x14001121f
cmp r15, rdi
je 0x1400111aa
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.ntdll.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x140011189
mov rdi, qword [rsi]
test rdi, rdi
je 0x1400111cb
mov rdx, qword [rsi + 0x10]
sub rdx, rdi
cmp rdx, 0x1000
jae 0x14001127d
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
mov qword [rsi], r14
mov rax, r13
shl rax, 6
lea rax, [rax + r13*4]
add rax, r14
mov qword [rsi + 8], rax
add rbx, r14
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400336d0
lea rcx, [rbx + 0x27]
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140011154
xor r14d, r14d
jmp 0x140011154
cmp r15, rdi
je 0x140011249
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.ntdll.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x140011227
mov r12, qword [rsi + 8]
cmp r12, rdi
je 0x1400111a7
lea r15, [r14 + rbp]
add r15, 0x44
mov r8d, 0x44
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_memcpy
add rdi, 0x44
add r15, 0x44
cmp rdi, r12
jne 0x14001125a
jmp 0x1400111a7
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14001129a
add rdx, 0x27
mov rdi, rax
jmp 0x1400111c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140011f90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140062080]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140011fce
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140011fc7
call fcn.14000ec10
jmp 0x140011fae
Function at 0x1400145b0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov ebx, edx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13, qword [rcx + 0x10]
mov eax, edx
cmp r13, rax
ja 0x14001476a
mov rsi, rcx
lea rdi, [rcx + 8]
cmp rax, 0x21
mov r14d, 0x20
cmovae r14, rax
mov rbx, r14
sub rbx, r13
jbe 0x140014647
mov rcx, qword [rsi + 0x18]
sub rcx, r13
mov rax, r13
cmp rcx, rbx
jb 0x14001478a
test rbx, rbx
jle 0x140014641
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
add r14, rcx
sub r14, r13
add rax, rdx
inc rax
cmp r14, rax
cmovbe r14, rax
sub r14, rcx
xor edx, edx
mov r8, r14
call sub.ntdll.dll_memset
mov rax, qword [rsi + 0x10]
add rax, rbx
mov r14, rax
mov qword [rsi + 0x10], r14
mov r12, qword [rsi]
cmp qword [r12], 0
mov qword [rsp + 0x38], rdi
je 0x1400147ef
mov r14, qword [rsi + 0x40]
add r14, r13
mov r15, qword [rsi + 8]
add r15, r13
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400147a6
add rbx, r14
cmp rbx, r14
jbe 0x1400147ef
mov eax, dword [0x140064af0]
mov qword [rsp + 0x28], rax
dec eax
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x40]
mov rbp, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov qword [rsp + 0x40], 0
mov r9, rbx
sub r9, r14
mov rcx, qword [r12]
mov qword [rsp + 0x20], rdi
mov rdx, r14
mov r8, r15
call rbp
test eax, eax
je 0x1400147f6
mov rax, qword [rsp + 0x40]
lea rbx, [rax + r13]
add rax, r13
inc rax
mov rdi, qword [rsi + 0x10]
mov r14, rax
sub r14, rdi
jbe 0x14001475e
mov rcx, qword [rsi + 0x18]
sub rcx, rdi
mov rax, rdi
cmp rcx, r14
jae 0x140014726
mov rcx, qword [rsp + 0x38]
mov rdx, r14
call fcn.140014840
test al, al
je 0x140014825
mov rax, qword [rsi + 0x10]
test r14, r14
jle 0x14001475b
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
lea r8, [rbx + rax]
add r8, rdx
sub r8, rdi
inc r8
add rax, rdx
inc rax
cmp r8, rax
cmovbe r8, rax
sub r8, rcx
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [rsi + 0x10]
add rax, r14
mov qword [rsi + 0x10], rax
mov rax, qword [rsi + 8]
mov byte [rax + rbx], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002ef70
mov eax, ebx
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
mov rdx, rbx
call fcn.140014840
test al, al
je 0x140014830
mov rax, qword [rsi + 0x10]
jmp 0x140014610
lea rcx, [0x140064af4]
mov rbp, r12
call fcn.14002de38
cmp dword [0x140064af4], 0xffffffff
jne 0x140014691
lea r12, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r12 + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ddd8
mov r12, rbp
jmp 0x140014691
xor eax, eax
jmp 0x1400146e8
mov rdx, qword [rsp + 0x30]
mov rax, rdx
not rax
and rax, rbx
mov rcx, rbx
sub rcx, qword [rsp + 0x28]
test ebx, edx
cmovne rcx, rax
xor eax, eax
mov rbx, rcx
cmp rcx, r14
ja 0x1400146bb
jmp 0x1400146e8
int3
int3
Function at 0x140017d50
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140017e06
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140017de0
mov r14, qword [rsi + 8]
mov edi, dword [0x140064af0]
shl rbx, 4
xor r15d, r15d
lea r12, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x140017dd7
mov rdx, qword [r14 + r15 + 8]
mov r9d, dword [r14 + r15]
mov qword [rsp + 0x20], r12
mov r8, rdi
call r13
add r15, 0x10
cmp rbx, r15
jne 0x140017db8
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002ef70
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064af4]
call fcn.14002de38
cmp dword [0x140064af4], 0xffffffff
jne 0x140017d92
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ddd8
jmp 0x140017d92