joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b72b0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
mov esi, r14d
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x1400b73fb
movzx r10d, r14w
mov edi, r14d
mov r8, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + r8]
call fcn.1400b7790
test al, al
jne 0x1400b7496
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x1400b738b
cmp edx, dword [rbx + 0x60]
jl 0x1400b738b
cmp edx, dword [rbx + 0x64]
jg 0x1400b738b
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400b738b
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1400b738b
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1400b73ae
test byte [r9 + 0x18], 8
je 0x1400b73ae
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1400b73bf
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1400b8160
test al, al
jne 0x1400b7496
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400b73e2
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc esi
add rdi, 2
inc r10w
cmp esi, eax
jl 0x1400b7314
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1400b749a
test rdx, rdx
je 0x1400b749a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1400b7438
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1400b743b
mov r10, r14
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1400b7456
dec r11d
add r11d, eax
jmp 0x1400b746d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1400b8480
test al, al
jne 0x1400b7496
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1400b8480
test al, al
jne 0x1400b7496
mov rdx, qword [rsi]
add di, bp
jne 0x1400b7420
jmp 0x1400b749e
mov al, 1
jmp 0x1400b74a9
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
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 0x1400bd5a0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400bd5bc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bd610
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bd735
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400bd735
test rax, rax
je 0x1400bd735
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400bd735
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400bd6aa
lea rax, [0x1400bd790]
jmp 0x1400bd703
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400bd735
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bd723
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400bd6d0
lea rax, [0x1400bd760]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400bd74a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400d7f54
Capabilities:
Parse pe header

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

Disassembly:
mov r9, rcx
mov r10, rdx
mov rdx, qword [r8 + 0x1b8]
mov ecx, 0x3020100
mov dword [r8 + 0x1c4], ecx
mov r11, r8
mov eax, 1
add ecx, 0x4040404
mov dword [r8 + rax*4 + 0x1c4], ecx
inc rax
cmp rax, rdx
jbe 0x1400db181
xor r8d, r8d
test r10, r10
je 0x1400db1e3
nop
movzx eax, byte [r9]
or r8, rax
movzx ecx, byte [rax + r11 + 0x1c4]
mov byte [r9], cl
mov byte [r11 + 0x1c3], cl
nop word [rax + rax]
movzx ecx, byte [rax + r11 + 0x1c3]
mov rdx, rax
sub rax, 1
mov byte [rdx + r11 + 0x1c4], cl
jns 0x1400db1c0
inc r9
sub r10, 1
jne 0x1400db1a0
shr r8, 2
mov qword [r11 + 0x1b8], r8
ret

Function at 0x1400df570
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.1400df5e0
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea rdx, str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to:_bzip2_devel_sourceware.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks._n_n
mov rcx, rax
mov r8d, edi
call fcn.1400c1240
cmp edi, 0x3ef
jne 0x1400df5c6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
call fcn.1400c1240
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000205c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str._MSI_TEST
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400020be
movzx eax, word [rsp + 0x20]
lea rdx, [rsp + 0x20]
test eax, eax
je 0x1400020bc
mov ecx, dword [0x14000fbb0]
and eax, 0x1f
lea rdx, [rdx + 2]
bts ecx, eax
movzx eax, word [rdx]
test eax, eax
jne 0x1400020a5
mov dword [0x14000fbb0], ecx
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140008df0
add rsp, 0xb8
ret
Function at 0x140005264
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1400052af
cmp al, 6
jb 0x1400052af
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400052af
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400052af
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x14000a610]
add rsp, 0x38
ret
Function at 0x1400086a4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
xor r15d, r15d
mov r12d, 0x5c
test rbx, rbx
je 0x140008728
cmp word [rbx], r15w
je 0x140008728
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x140008728
cmp word [rbx], 0x7f
jae 0x140008717
cmp word [rbx + 2], 0x3a
je 0x140008812
cmp word [rbx], r12w
jne 0x140008728
cmp word [rbx + 2], r12w
je 0x140008812
cmp byte [0x1400100da], r15b
mov ebp, r15d
jne 0x1400087a9
cmp byte [0x14000fdc4], r15b
je 0x1400087a9
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x140008812
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x105
test rax, rax
jne 0x14000877b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, r15d
jmp 0x140008794
mov edx, esi
lea rcx, [rsp + 0x20]
call qword [0x14000a610]
mov edi, eax
test eax, eax
jne 0x140008796
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400087bd
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x140008812
lea ecx, [rdi + 2]
cmp ecx, esi
ja 0x140008812
mov ecx, edi
lea eax, [rdi + 1]
mov r8, rbx
mov rdx, rsi
mov word [rsp + rcx*2 + 0x20], r12w
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x20], r15w
call fcn.14000118c
test eax, eax
js 0x140008812
lea r8, str..DLL
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.14000118c
test eax, eax
js 0x140008812
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x140008814
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140008df0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140009240
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000928c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009284
cmp dword [rcx + 0x3c], edx
jl 0x140009284
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009284
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000928c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001460
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 0x140001574
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001574
cmp word [rax + rcx + 0x14], 0x78
jb 0x140001574
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 [0x140067010]
test rax, rax
je 0x140001574
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x14000159c
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140067010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x140001574
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 [0x140067010]
mov cl, byte [rdi]
test cl, cl
je 0x140001549
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000154b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001539
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140001578
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x140001503
xor eax, eax
jmp 0x1400015a6
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x140067010]
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 0x140001d40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rcx], rdx
je 0x140001df5
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 0x140001dc9
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140001db5
mov qword [rsi], rdi
call fcn.140001e50
mov r15, rax
mov r14, qword [rsp + 0x58]
cmp qword [0x140063628], 0
je 0x140001e01
mov rcx, qword [0x140063628]
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 [0x140067010]
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.140001e50
mov r8, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rsi
mov r9, rax
call fcn.140008c40
mov rcx, qword [rsi]
call fcn.140008b80
mov qword [rsi], 0
jmp 0x140001d6f
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 0x140001e38
lea rcx, [sym.firefox.exe_GetHandleVerifier]
cmp rax, rcx
jne 0x140001e3c
xor ecx, ecx
mov dl, 1
call fcn.140002160
jmp 0x140001d93
xor ecx, ecx
jmp 0x140001e45
call qword [0x140067010]
mov rcx, rax
xor edx, edx
jmp 0x140001e2e
Function at 0x140002340
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140061030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140061080]
cmp ecx, 0xffffffff
je 0x14000237b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140002380
call fcn.140002520
mov eax, dword [0x140063618]
mov ecx, dword [0x1400614b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400023da
lea rcx, [0x140063618]
call fcn.14002a4ec
cmp dword [0x140063618], 0xffffffff
jne 0x1400023da
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140063610], rax
lea rcx, [0x140063618]
call fcn.14002a48c
mov rdi, qword [0x140063610]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140061e08]
inc rax
xor ecx, ecx
lea rdx, [0x140061e10]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14000247e
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], 0
mov qword [0x140061e08], 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 0x140002490
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x24], eax
cmp eax, 0xff
jg 0x1400024d2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002b660
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x1400023fd
jmp 0x140002432
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140039640
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.140039320
mov rcx, rdi
call fcn.1400393c0
mov eax, dword [rsi]
jmp 0x14000244e
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.140039640
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.140039320
mov rcx, rdi
call fcn.1400393c0
jmp 0x140002461
Function at 0x140004e10
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 [0x140061030]
xor rax, rsp
mov qword [rsp + 0x50], rax
test r8, r8
je 0x140004f71
mov ebp, r9d
test r9d, r9d
je 0x140004f71
mov rbx, r8
mov edi, edx
mov eax, dword [0x140063b04]
mov ecx, dword [0x1400614b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004f81
mov r15d, ebp
cmp r15, rbx
ja 0x140004fce
xor eax, eax
mov rcx, rbx
sub rcx, r15
cmovae rax, rcx
cmp rax, 0x100001
mov r13d, 0x100000
cmovae r13, rax
mov r12d, dword [0x140063b00]
mov eax, dword [0x140063b10]
mov ecx, dword [0x1400614b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140004efb
lea rcx, [0x140063b10]
call fcn.14002a4ec
cmp dword [0x140063b10], 0xffffffff
jne 0x140004efb
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x140063b08], rax
lea rcx, [0x140063b10]
call fcn.14002a48c
mov rax, qword [0x140063b08]
add r15, rbx
cmp rax, r15
cmovb r15, rax
mov ecx, edi
cmp r15, rcx
jb 0x140004f71
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 0x140004f71
test rax, rax
je 0x140004fc3
cmp r12, 0xffffffffffffffff
je 0x140004fc3
mov qword [rsi], r12
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002b660
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 0x140004f52
lea rcx, [0x140063b04]
call fcn.14002a4ec
cmp dword [0x140063b04], 0xffffffff
jne 0x140004e71
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140063b00], eax
lea rcx, [0x140063b04]
call fcn.14002a48c
jmp 0x140004e71
int3
mov r13d, 0x100000
jmp 0x140004e99
Function at 0x1400051c0
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 [0x140061030]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400053be
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 0x140005288
cmp ecx, dword [rdi + 0x10]
jae 0x1400053be
mov eax, dword [0x140063af4]
mov ecx, dword [0x1400614b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000533c
mov edx, dword [0x140063af0]
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 0x1400053be
mov eax, dword [0x140063af4]
mov ecx, dword [0x1400614b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000537d
mov eax, dword [0x140063af0]
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 0x1400052d3
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 0x1400052fd
test rdx, rdx
je 0x140005300
test r9, r9
je 0x140005300
test eax, eax
je 0x140005300
test cl, cl
je 0x140005300
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.14002b660
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140063af4]
call fcn.14002a4ec
cmp dword [0x140063af4], 0xffffffff
jne 0x14000522e
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140063af0], eax
lea rcx, [0x140063af4]
call fcn.14002a48c
jmp 0x14000522e
lea rcx, [0x140063af4]
call fcn.14002a4ec
cmp dword [0x140063af4], 0xffffffff
jne 0x14000527b
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140063af0], eax
lea rcx, [0x140063af4]
call fcn.14002a48c
jmp 0x14000527b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x140005325