joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2f30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400a2fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1404166f4]
mov rbx, rcx
test esi, esi
jle 0x1400a30d0
mov rax, qword [0x1404166f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400a2feb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400a3075
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400a2fd0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400a30f2
mov rax, qword [0x1404166f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1404166f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a30d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400a306e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400a3080
add dword [0x1404166f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1404166f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a306e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400a2ff8
mov rax, qword [0x1404166f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400a3660
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140416760]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140416740]
test rbx, rbx
je 0x1400a36bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400a36b3
test rsi, rsi
je 0x1400a36b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a3698
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400a38d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400a38e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400a38f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400a3900
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400a394d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400a3944
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400a394f
add rax, 0x28
cmp rax, r9
jne 0x1400a3930
xor eax, eax
ret

Function at 0x1400a3950
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400a39e0
mov rdx, qword [0x1403b7130]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400a39ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400a39ce
cmp word [rax + 0x18], 0x20b
jne 0x1400a39ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400a39e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400a39b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400a39e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400a39b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400a39f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403b7130]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400a3a10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400a3a18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400a3a10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400a3a6d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400a3a64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400a3a10
add rax, 0x28
cmp rax, r9
jne 0x1400a3a50
xor eax, eax
ret

Function at 0x1400a3a70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403b7130]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400a3a8f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400a3a98
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400a3a8f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400a3ab0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1403b7130]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400a3ad0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400a3ad8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400a3ad0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400a3b20
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400a3b17
test rcx, rcx
je 0x1400a3ad0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400a3b08
xor eax, eax
ret

Function at 0x1400a3b30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403b7130]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400a3b4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400a3b58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400a3b70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403b7130]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400a3b90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400a3b98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400a3b90
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400a3b90
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400a3be4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400a3bf0
add rdx, 0x28
cmp r9, rdx
jne 0x1400a3bd0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400a3c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1403b7130]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400a3c22
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400a3c30
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400a3c22
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400a3c22
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400a3c22
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400a3c85
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400a3c98
add rdx, 0x28
cmp rdx, r10
jne 0x1400a3c70
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400a3ca7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400a3cb7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400a3c8e
test ecx, ecx
jg 0x1400a3ca0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180001440
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x60
call fcn.180025560
sub rsp, rax
mov rsi, rcx
mov ebx, r8d
lea rcx, [rsp + 0x30]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, ebx
div dword [rsp + 0x58]
xor r8d, r8d
mov rcx, rdi
mov r9d, eax
imul r9d, dword [rsp + 0x58]
lea edx, [r8 + 4]
sub ebx, r9d
lea rax, [rbx + 0x108]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edx, edx
mov qword [rsi + 8], rax
test rax, rax
lea rcx, [rbx + rax]
mov rbx, qword [rsp + 0x70]
cmove rcx, rdx
mov rax, rsi
mov qword [rsi], rcx
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x180001810
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x80
call fcn.180025560
sub rsp, rax
xor edi, edi
mov r14d, 1
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov r8d, r14d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18000192e
mov qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x90], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x18000191d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor r9d, r9d
mov qword [rsp + 0x20], 0x40
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x180001906
mov r8d, dword [rax + 0x3c]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.180001440
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1800018f6
cmp dword [rax + 0x1c], 0
jne 0x1800018eb
movzx ebx, r14b
jmp 0x1800018f6
test byte [rax + 0x5e], 0x40
movzx ebx, bl
cmovne ebx, r14d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180001906
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x18000191d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
lea r11, [rsp + 0x80]
movzx eax, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1800022e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x30
call fcn.180025560
sub rsp, rax
xor edi, edi
lea r9, [rsp + 0x48]
lea r8d, [rax - 0x21]
mov qword [rsp + 0x20], rdi
lea rdx, str.BlockedDllList
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.180002640
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 1]
mov rcx, rbx
lea rdx, [0x180027c8c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x180034bfd], dil
je 0x180002360
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 0x16]
mov rcx, rbx
lea rdx, str.BlocklistInitFailed1_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x180034bfe], dil
je 0x180002389
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov r8d, 0x18
lea rdx, str.User32BeforeBlocklist1_n
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800023a0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x80
call fcn.180025560
sub rsp, rax
xor ebx, ebx
lea r8d, [rax - 0x7f]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800024a8
mov qword [rsp + 0x28], rbx
lea r8d, [rbx + 2]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
mov qword [rsp + 0x90], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x180002497
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor r9d, r9d
mov qword [rsp + 0x20], 0x40
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x180002478
mov r8d, dword [rax + 0x3c]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.180001440
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x180002468
mov ebx, dword [rax + 8]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180002478
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x18000248f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rdi, qword [rsp + 0x98]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rbp
ret
Function at 0x1800037d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 0x28
call fcn.180025560
sub rsp, rax
movsxd r8, r8d
add rsp, 0x28
jmp 0x1800037f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x20]
mov eax, 0x120
call fcn.180025560
sub rsp, rax
mov rbx, r8
mov esi, edx
mov edi, ecx
test r8, r8
jle 0x180003983
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0xedb88320
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x2c], 4
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x10
mov dword [rsp + 0x38], 0x20
mov dword [rsp + 0x3c], 0x40
mov dword [rsp + 0x40], 0x80
mov dword [rsp + 0x44], 0x100
mov dword [rsp + 0x48], 0x200
mov dword [rsp + 0x4c], 0x400
mov dword [rsp + 0x50], 0x800
mov dword [rsp + 0x54], 0x1000
mov dword [rsp + 0x58], 0x2000
mov dword [rsp + 0x5c], 0x4000
mov dword [rsp + 0x60], 0x8000
mov dword [rsp + 0x64], 0x10000
mov dword [rsp + 0x68], 0x20000
mov dword [rsp + 0x6c], 0x40000
mov dword [rsp + 0x70], 0x80000
mov dword [rsp + 0x74], 0x100000
mov dword [rsp + 0x78], 0x200000
mov dword [rsp + 0x7c], 0x400000
mov dword [rbp - 0x80], 0x800000
mov dword [rbp - 0x7c], 0x1000000
mov dword [rbp - 0x78], 0x2000000
mov dword [rbp - 0x74], 0x4000000
mov dword [rbp - 0x70], 0x8000000
mov dword [rbp - 0x6c], 0x10000000
mov dword [rbp - 0x68], 0x20000000
mov dword [rbp - 0x64], 0x40000000
call fcn.180003d00
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.180003d00
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.180003d00
test bl, 1
je 0x180003956
mov edx, edi
lea rcx, [rbp - 0x60]
call fcn.180003d40
mov edi, eax
sar rbx, 1
je 0x180003981
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.180003d00
test bl, 1
je 0x18000397c
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180003d40
mov edi, eax
sar rbx, 1
jne 0x180003936
xor edi, esi
lea r11, [rsp + 0x120]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800037f0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 0x28
call fcn.180025560
sub rsp, rax
movsxd r8, r8d
add rsp, 0x28
jmp 0x1800037f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x20]
mov eax, 0x120
call fcn.180025560
sub rsp, rax
mov rbx, r8
mov esi, edx
mov edi, ecx
test r8, r8
jle 0x180003983
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0xedb88320
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x2c], 4
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x10
mov dword [rsp + 0x38], 0x20
mov dword [rsp + 0x3c], 0x40
mov dword [rsp + 0x40], 0x80
mov dword [rsp + 0x44], 0x100
mov dword [rsp + 0x48], 0x200
mov dword [rsp + 0x4c], 0x400
mov dword [rsp + 0x50], 0x800
mov dword [rsp + 0x54], 0x1000
mov dword [rsp + 0x58], 0x2000
mov dword [rsp + 0x5c], 0x4000
mov dword [rsp + 0x60], 0x8000
mov dword [rsp + 0x64], 0x10000
mov dword [rsp + 0x68], 0x20000
mov dword [rsp + 0x6c], 0x40000
mov dword [rsp + 0x70], 0x80000
mov dword [rsp + 0x74], 0x100000
mov dword [rsp + 0x78], 0x200000
mov dword [rsp + 0x7c], 0x400000
mov dword [rbp - 0x80], 0x800000
mov dword [rbp - 0x7c], 0x1000000
mov dword [rbp - 0x78], 0x2000000
mov dword [rbp - 0x74], 0x4000000
mov dword [rbp - 0x70], 0x8000000
mov dword [rbp - 0x6c], 0x10000000
mov dword [rbp - 0x68], 0x20000000
mov dword [rbp - 0x64], 0x40000000
call fcn.180003d00
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.180003d00
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.180003d00
test bl, 1
je 0x180003956
mov edx, edi
lea rcx, [rbp - 0x60]
call fcn.180003d40
mov edi, eax
sar rbx, 1
je 0x180003981
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.180003d00
test bl, 1
je 0x18000397c
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180003d40
mov edi, eax
sar rbx, 1
jne 0x180003936
xor edi, esi
lea r11, [rsp + 0x120]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180007a60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x20
call fcn.180025560
sub rsp, rax
xor eax, eax
mov rbx, r9
mov dword [r9], eax
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
mov r14d, 0x40000000
mov ecx, dword [rsi + 0x1c]
mov r8d, edi
sub r8d, eax
mov edx, eax
cmp r8d, r14d
cmova r8d, r14d
add rdx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov edx, eax
test eax, eax
jle 0x180007ac5
mov eax, dword [rbx]
add eax, edx
mov dword [rbx], eax
cmp eax, edi
jb 0x180007a9a
test edx, edx
jns 0x180007aee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edx, 0xffffffff
mov rcx, rsi
mov r8, rax
call fcn.180006e00
mov eax, 0xffffffff
jmp 0x180007af9
jne 0x180007af7
mov dword [rsi + 0x50], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18000ede0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180025560
sub rsp, rax
test dl, 8
je 0x18000ee01
mov rdx, r8
lea ecx, [rax - 0x27]
add rsp, 0x28
jmp sym.mozglue.dll_calloc
mov rcx, r8
add rsp, 0x28
jmp sym.mozglue.dll_malloc

Function at 0x18000f0d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180025560
sub rsp, rax
mov rax, rdx
mov rdx, rcx
mov rcx, rax
add rsp, 0x28
jmp fcn.180014e30
Function at 0x180011500
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.180025560
sub rsp, rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 9
jae 0x180011620
cmp rbx, 9
jae 0x1800115e2
lea r9, [rdx - 1]
xor edx, edx
mov rax, r9
shr rax, 1
or r9, rax
mov rax, r9
shr rax, 2
or r9, rax
mov rax, r9
shr rax, 4
or r9, rax
mov rax, r9
shr rax, 8
or r9, rax
mov rax, r9
shr rax, 0x10
or r9, rax
mov rax, r9
shr rax, 0x20
or rax, r9
inc rax
shr rax, 5
bsf r8d, eax
je 0x180011588
inc r8d
jmp 0x18001158b
mov r8d, edx
lea rcx, [rbx - 1]
mov rax, rcx
shr rax, 1
or rcx, rax
mov rax, rcx
shr rax, 2
or rcx, rax
mov rax, rcx
shr rax, 4
or rcx, rax
mov rax, rcx
shr rax, 8
or rcx, rax
mov rax, rcx
shr rax, 0x10
or rcx, rax
mov rax, rcx
shr rax, 0x20
or rax, rcx
inc rax
shr rax, 5
bsf ecx, eax
je 0x1800115d9
lea edx, [rcx + 1]
cmp r8d, edx
je 0x1800116f0
mov ecx, dword [0x180034668]
mov qword [rsp + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1800115fd
call fcn.180012d10
lfence
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
cmp rdi, 0x800
ja 0x180011752
call fcn.180010f10
jmp 0x180011757
cmp rdi, 0x200
ja 0x180011649
lea rax, [r8 - 9]
cmp rax, 0x1f7
ja 0x1800115e2
lea rcx, [rdx + 0xf]
lea rax, [r8 + 0xf]
xor rcx, rax
test rcx, 0xfffffffffffffff0
jmp 0x1800115dc
cmp rdi, 0x800
ja 0x18001171c
lea rax, [r8 - 0x201]
cmp rax, 0x5ff
ja 0x1800115e2
lea r8, [rdx - 1]
mov rax, r8
lea rdx, [rbx - 1]
shr rax, 1
or r8, rax
mov rax, r8
shr rax, 2
or r8, rax
mov rax, r8
shr rax, 4
or r8, rax
mov rax, r8
shr rax, 8
or r8, rax
mov rax, r8
shr rax, 0x10
or r8, rax
mov rax, rdx
shr rax, 1
or rdx, rax
mov rax, rdx
shr rax, 2
or rdx, rax
mov rax, rdx
shr rax, 4
or rdx, rax
mov rax, rdx
shr rax, 8
or rdx, rax
mov rax, rdx
shr rax, 0x10
or rdx, rax
mov rax, r8
shr rax, 0x20
mov rcx, rdx
shr rcx, 0x20
or rax, r8
or rcx, rdx
cmp rax, rcx
jne 0x1800115e2
cmp rdi, rbx
jae 0x180011709
sub rbx, rdi
lea rcx, [rsi + rdi]
mov r8, rbx
mov edx, 0xe5
call sub.VCRUNTIME140.dll_memset
mov rax, rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rax, [r8 - 0x801]
cmp rax, 0xfd7ff
ja 0x1800115e2
lfence
call fcn.1800117b0
test eax, eax
jne 0x1800115e2
mov rax, rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call fcn.180010e80
mov rbp, rax
test rax, rax
je 0x180011791
cmp rdi, rbx
mov rdx, rsi
mov rcx, rbp
cmovb rbx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rsi
mov rcx, rsi
and edx, 0xfffff
je 0x180011789
call fcn.180010b90
jmp 0x18001178e
call fcn.1800146b0
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180012ce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180025560
sub rsp, rax
mov ecx, dword [0x180034668]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x180012d07
add rsp, 0x28
jmp fcn.180012d10
add rsp, 0x28
ret