joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003ff0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004580
mov qword [rsp + 0x28], 0
cmp qword [0x18000c378], 0
jne 0x180004038
cmp qword [0x18000c370], 0
je 0x180004038
mov rax, qword [0x18000c370]
mov qword [0x18000c378], rax
cmp qword [0x18000c378], 0
je 0x1800040de
mov rax, qword [0x18000c378]
cmp qword [rax + 0x10], 0
je 0x1800040de
mov rax, qword [0x18000c378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800040de
mov rax, qword [0x18000c378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800040de
mov rax, qword [0x18000c378]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800040a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800040ab
xor eax, eax
jmp 0x180004259
mov rax, qword [0x18000c378]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004259
mov rax, qword [0x18000c370]
mov qword [0x18000c378], rax
jmp 0x180004100
mov rax, qword [0x18000c378]
mov rax, qword [rax + 8]
mov qword [0x18000c378], rax
cmp qword [0x18000c378], 0
je 0x18000414d
cmp qword [0x18000c378], 0
je 0x18000414b
mov rax, qword [0x18000c378]
cmp qword [rax + 0x10], 0
je 0x18000414b
mov rax, qword [0x18000c378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000414b
mov rax, qword [0x18000c378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000414b
jmp 0x18000407c
jmp 0x1800040ee
mov rcx, qword [rsp + 0x60]
call fcn.1800061b0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004260
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004257
mov rax, qword [rsp + 0x48]
mov qword [0x18000c378], rax
mov rax, qword [0x18000c378]
mov dword [rax], 0x52727464
mov rax, qword [0x18000c378]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000c378]
mov rcx, qword [0x18000c370]
mov qword [rax + 8], rcx
mov rax, qword [0x18000c378]
mov qword [0x18000c370], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000c378]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004208
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004242
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800041fe
mov rax, qword [0x18000c378]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000407c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140002ca0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov r12, r9
mov rsi, r8
mov r14, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, qword [r8 + 8]
mov eax, dword [rbx + 0x84]
add rbx, 0x90
cmp eax, 1
jbe 0x140002ef5
mov ecx, dword [rsi]
mov ebp, ebx
sub ebp, ecx
cmp eax, 1
jbe 0x140002f00
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002f22
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea r15, [rsp + 0x40]
mov rcx, rdi
mov r8d, 8
mov r9, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002e77
cmp dword [rsp + 0x40], 8
jne 0x140002e77
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, qword [rbx]
cmp eax, ecx
jne 0x140002ea8
shr rcx, 0x20
shr rax, 0x20
cmp eax, ecx
jne 0x140002ea8
mov eax, ebp
lea rsi, sym.firefox.exe_Ordinal_0
and rsi, 0xfffffffffffffffc
add rsi, rax
lea rcx, [rsp + 0x50]
mov r8d, 8
mov rdx, rsi
mov r9, r12
int3
mov rax, rdi
add rax, 1
cmp rax, 2
jb 0x140002e55
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140045f60
mov rax, r14
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x16
mov dword [r14 + 0xc], ecx
jmp 0x140002e3f
mov byte [rsi + 0x18], 1
jmp 0x140002da7
xor ebp, ebp
cmp eax, 1
ja 0x140002cf2
mov byte [r14 + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rax
movabs rax, 0x800700c10000003d
mov qword [r14 + 8], rax
jmp 0x140002e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x44
mov dword [r14 + 0xc], ecx
jmp 0x140002e3f
Function at 0x1400032e0
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, rcx
lea rdx, [0x14004bd46]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x1400033a5
mov r14, rax
mov rcx, qword [rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r15, rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov ebp, dword [rbx + 0xc]
mov dword [rdi], ebp
mov eax, dword [rbx + 8]
mov dword [rdi + 4], eax
lea rcx, [rdi + 8]
mov rdx, qword [rbx]
mov r8, r15
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test rdi, rdi
je 0x14000338f
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov rcx, r14
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400070b0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r9d
cmp qword [r8 + 0x18], 7
jbe 0x1400070d7
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor edi, edi
mov rdx, r8
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000711f
mov byte [rsi + 0x10], dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140045f60
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str.z:_task_1579288126_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x4e
mov dword [rsi + 0xc], ecx
mov dil, 1
jmp 0x140007104
Function at 0x140007150
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov r14d, r9d
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x70]
call fcn.140006d80
cmp byte [rsp + 0x80], 1
je 0x14000740c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
je 0x1400073eb
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400073eb
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400073eb
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
jne 0x1400073eb
mov edx, dword [rax + rcx + 0x50]
cmp edx, 0x148
jb 0x1400073eb
add edx, 0xffffffff
add rdx, rax
je 0x1400073eb
mov ebp, dword [rax + rcx + 8]
lea rdx, [rsp + 0x58]
mov rcx, rdi
int3
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140045f60
mov rax, rsi
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x800700c100000021
mov qword [rsi + 8], rax
jmp 0x14000726a
movups xmm0, xmmword [rsp + 0x70]
jmp 0x140007418
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
jmp 0x14000726a

Function at 0x140007bb0
Capabilities:
Get token membership
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x3c], 0x44
lea r8, [rsp + 0x40]
lea rdi, [rsp + 0x3c]
mov ecx, 0x1a
xor edx, edx
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140007c8a
lea rbx, [rsp + 0x40]
lea r8, [rsp + 0x38]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140007cd5
cmp dword [rsp + 0x38], 0
je 0x140007cf0
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea r8, str.EnableLUA
mov rcx, 0xffffffff80000002
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140007cf9
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_toolkit_xre_WinTokenUtils.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x26
jmp 0x140007cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x14
mov byte [rsi + 0x10], 1
lea rdx, str.z:_task_1579288126_build_src_toolkit_xre_WinTokenUtils.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], ecx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140045f60
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x19
jmp 0x140007ca3
mov byte [rsi + 0x10], 0
mov byte [rsi], 0
jmp 0x140007cb7
cmp dword [rsp + 0x3c], 0
mov byte [rsi + 0x10], 0
sete byte [rsi]
jmp 0x140007cb7
Function at 0x14000bff0
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x848
mov qword [rsp + 0x868], rdx
mov qword [rsp + 0x870], r8
mov qword [rsp + 0x878], r9
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x840], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000c080
lea rsi, [rsp + 0x868]
mov qword [rsp + 0x38], rsi
call fcn.140001a90
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
lea r9, str._n_nBROWSERBROWSERBROWSERBROWSER_n__debug_me____lu_n_n
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
mov byte [rsp + 0x83f], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, [0x14004b2de]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
je 0x14000c0d8
mov rsi, rax
lea rdi, [rsp + 0x868]
mov qword [rsp + 0x40], rdi
call fcn.140001a90
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
lea r8, str._n_nBROWSERBROWSERBROWSERBROWSER_n__debug_me____lu_n_n
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x848
pop rdi
pop rsi
ret
Function at 0x1400151e0
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r15, r9
mov r14, rdx
movzx eax, byte [r8]
movabs rdx, 0xcbf29ce484222325
xor rdx, rax
movabs rax, 0x100000001b3
imul rdx, rax
movzx ebx, byte [r8 + 1]
xor rbx, rdx
imul rbx, rax
movzx edx, byte [r8 + 2]
xor rdx, rbx
imul rdx, rax
movzx ebx, byte [r8 + 3]
xor rbx, rdx
imul rbx, rax
and rbx, qword [rcx + 0x30]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x18]
lea r9, [rbx + rbx]
shl rbx, 4
mov rdx, qword [rsi + rbx]
mov rbx, rdi
cmp rdx, rdi
je 0x140015267
lea rax, [r9*8]
or rax, 8
mov rax, qword [rsi + rax]
mov rbx, qword [rax]
mov eax, dword [r8]
nop word [rax + rax]
cmp rdx, rbx
je 0x1400152a7
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x140015270
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
mov qword [rdx], rax
mov rax, qword [r15]
mov rdx, qword [r15 + 8]
mov qword [rax + 8], rdx
add qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, r15
call fcn.1400147b0
xor eax, eax
mov r15, rbx
jmp 0x140015310
mov rbx, qword [r15]
cmp rbx, rdx
je 0x1400152e4
mov rax, qword [r15 + 8]
mov qword [rax], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rdx + 8]
mov qword [rax], r15
mov rax, qword [rdx + 8]
mov rdi, qword [rbx + 8]
mov qword [rdx + 8], rdi
mov rdi, qword [r15 + 8]
mov qword [rbx + 8], rdi
mov qword [r15 + 8], rax
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x18]
lea rbx, [rsi + r9*8]
mov rax, qword [rsi + r9*8]
cmp rax, rdi
jne 0x140015326
mov qword [rbx], r15
shl r9, 3
or r9, 8
add r9, qword [rcx + 0x18]
mov rbx, r9
mov rdi, r15
mov qword [rbx], rdi
int3
mov qword [r14], r15
mov byte [r14 + 8], al
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, r15
cmp rax, rdx
je 0x140015306
or r9, 1
mov rax, qword [rsi + r9*8]
mov rax, qword [rax]
mov qword [rsi + r9*8], rax
cmp rax, r15
je 0x140015309
mov rax, qword [rcx + 0x18]
lea rbx, [rax + r9*8]
mov rax, qword [rax + r9*8]
mov rdi, qword [rax + 8]
jmp 0x140015306
Function at 0x140016280
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
mov rax, rdx
movzx edx, byte [r8]
movabs rdi, 0xcbf29ce484222325
xor rdi, rdx
movabs rdx, 0x100000001b3
imul rdi, rdx
movzx esi, byte [r8 + 1]
xor rsi, rdi
imul rsi, rdx
movzx edi, byte [r8 + 2]
xor rdi, rsi
imul rdi, rdx
movzx esi, byte [r8 + 3]
xor rsi, rdi
imul rsi, rdx
and rsi, qword [rcx + 0x30]
mov r11, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
lea r10, [rsi + rsi]
add r10, 1
shl rsi, 4
mov rdx, qword [r9 + rsi]
mov r8d, dword [r8]
mov rcx, rdx
nop word [rax + rax]
mov rsi, rdx
cmp rdx, r11
je 0x1400162ff
mov rsi, qword [r9 + r10*8]
mov rsi, qword [rsi]
cmp rsi, rcx
je 0x140016344
cmp dword [rcx + 0x10], r8d
je 0x14001630f
mov rcx, qword [rcx]
jmp 0x1400162f0
mov rsi, rcx
nop word cs:[rax + rax]
nop dword [rax]
mov rdi, rdx
cmp rdx, r11
je 0x14001632f
mov rdi, qword [r9 + r10*8]
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x14001633f
cmp r8d, dword [rsi + 0x10]
jne 0x14001633f
mov rsi, qword [rsi]
jmp 0x140016320
cmp rcx, rsi
jne 0x14001634a
mov rcx, r11
mov rsi, r11
mov qword [rax], rcx
mov qword [rax + 8], rsi
pop rdi
pop rsi
ret

Function at 0x140017590
Capabilities:
Encode data using xor

Disassembly:
push rsi
xor eax, eax
test rcx, rcx
je 0x140013495
test edx, edx
jle 0x140013495
mov r8d, edx
and r8d, 3
mov r11d, edx
shr r11d, 2
je 0x140013416
lea r10d, [r11 - 1]
test dl, 4
jne 0x140013399
mov r9d, r11d
mov rsi, rcx
jmp 0x1400133c1
movzx r9d, word [rcx]
add r9d, edx
movzx eax, word [rcx + 2]
shl eax, 0xb
xor eax, r9d
shl r9d, 0x10
xor r9d, eax
lea rsi, [rcx + 4]
mov edx, r9d
shr edx, 0xb
add edx, r9d
mov r9d, r10d
lea r10, [r10*4]
cmp r11d, 1
je 0x14001340f
nop
movzx eax, word [rsi]
add eax, edx
movzx edx, word [rsi + 2]
shl edx, 0xb
xor edx, eax
shl eax, 0x10
xor eax, edx
mov edx, eax
shr edx, 0xb
add edx, eax
movzx eax, word [rsi + 4]
add eax, edx
movzx edx, word [rsi + 6]
shl edx, 0xb
xor edx, eax
shl eax, 0x10
xor eax, edx
mov edx, eax
shr edx, 0xb
add edx, eax
add rsi, 8
add r9d, 0xfffffffe
jg 0x1400133d0
add rcx, r10
add rcx, 4
cmp r8d, 1
je 0x140013444
cmp r8d, 2
je 0x140013456
cmp r8d, 3
jne 0x140013469
movzx eax, word [rcx]
add edx, eax
movsx eax, byte [rcx + 2]
shl eax, 0x12
xor eax, edx
mov ecx, edx
shl ecx, 0x10
xor eax, ecx
mov edx, eax
shr edx, 0xb
jmp 0x140013467
movsx eax, byte [rcx]
add edx, eax
mov eax, edx
shl eax, 0xa
xor eax, edx
mov edx, eax
shr edx, 1
jmp 0x140013467
movzx eax, word [rcx]
add edx, eax
mov eax, edx
shl eax, 0xb
xor eax, edx
mov edx, eax
shr edx, 0x11
add edx, eax
lea eax, [rdx*8]
xor eax, edx
mov ecx, eax
shr ecx, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add ecx, eax
mov edx, ecx
shl edx, 0x19
xor edx, ecx
mov eax, edx
shr eax, 6
add eax, edx
pop rsi
ret
cmp rdx, 0x7fffffff
jbe 0x14001759c
xor eax, eax
ret
jmp 0x140013360
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
int3

Function at 0x140017b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140017bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140017b98
add rdi, rbx
sub rsi, rbx
je 0x140017bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140017b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140013500
mov rcx, r12
call fcn.140013600
jmp 0x140017b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001c2d0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x148
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ecx, dword [0x140054070]
cmp ecx, 0xffffffff
je 0x14001c30a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14001c30f
call fcn.14001c4f0
mov eax, dword [0x140056468]
mov ecx, dword [0x140054298]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001c3e7
mov rbx, qword [0x140056460]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [0x140054c50]
add rcx, 1
mov r8d, 0x100
lea rax, [0x140054c60]
movzx edi, cl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
jne 0x14001c42d
lea rcx, [rax + rdx*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140054c50], rdi
mov dword [rsi], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x2c], eax
cmp eax, 0xffffffff
je 0x14001c454
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x14001c49d
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140056468]
int3
lea edx, [rcx + 1]
movzx edi, dl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
je 0x14001c36d
add rcx, 2
add r8, 0xfffffffffffffffe
jne 0x14001c35c
jmp 0x14001c390
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140013840
test rax, rax
je 0x14001c3b0
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x159
mov r9, rax
call fcn.140013550
mov rcx, rdi
call fcn.140013600
jmp 0x14001c3b0
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140013840
test rax, rax
je 0x14001c3c9
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x15a
mov r9, rax
call fcn.140013550
mov rcx, rsi
call fcn.140013600
jmp 0x14001c3c9

Function at 0x14001c690
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140054070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6bf
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14001c6bf
mov rax, qword [rax + rcx]
jmp 0x14001c6c1
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x14001c6d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140054070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c70d
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 0x14001c706
call fcn.14001c4f0
jmp 0x14001c6ed

Function at 0x14001d160
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001d197
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001d197
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14001d197
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret