joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014f500
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r15, qword [rdx]
mov qword [rdx], rax
lea r12, [r15 + 1]
cmp r12, 2
jb 0x14014f52d
call fcn.1400f24d0
cmp qword [rsi], r15
je 0x14014f55c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14014f57d
cmp r12, 2
jb 0x14014f554
mov qword [rsi], r15
call fcn.1400f24d0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400f24d0
mov r14, qword [rsi]
cmp qword [0x1402a1a18], 0
je 0x14014f5ae
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401d7990.0]
mov qword [rsi], 0
jmp 0x14014f546
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14014f5ef
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14014f5e9
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x14014f58f
xor ecx, ecx
mov dl, 1
jmp 0x14014f5e2
xor ecx, ecx
jmp 0x14014f5e0

Function at 0x14014f600
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r13, qword [rdx]
mov qword [rdx], rax
lea r15, [r13 + 1]
cmp r15, 2
jb 0x14014f636
call fcn.1400f24d0
mov r12, qword [rsp + 0x90]
cmp qword [rsi], r13
je 0x14014f66f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14014f6a3
cmp r15, 2
jb 0x14014f666
mov qword [rsi], r13
call fcn.1400f24d0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 8], ebp
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [r12]
movups xmmword [rsi + 0x18], xmm0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14014f71c
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400f24d0
mov rdx, qword [rsi]
cmp qword [0x1402a1a18], 0
je 0x14014f6d1
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x1401d7990.0]
mov qword [rsi], 0
jmp 0x14014f658
mov qword [rsp + 0x20], rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14014f735
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14014f716
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
mov rdx, qword [rsp + 0x20]
jmp 0x14014f6b5
xor ecx, ecx
mov dl, 1
jmp 0x14014f70a
call fcn.1400f24d0
mov rcx, qword [rdi]
call fcn.1401571e0
mov qword [rdi], 0
jmp 0x14014f68f
xor ecx, ecx
jmp 0x14014f708
Function at 0x140151030
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14015106c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140151076
add rdi, rbx
sub rsi, rbx
jne 0x14015104a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140155af0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [0x1402a19a0]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140155bca
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140155bc0
mov rcx, qword [0x1402a1990]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a1998]
jne 0x140155bc0
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140155bc0
cmp byte [rsi], 0
je 0x140155bc0
mov rax, qword [rdi]
test rax, rax
js 0x140155c18
cmp dword [rdi + 0x14], 1
movabs rbx, 0x4000000000000000
jne 0x140155c29
cmp qword [rdi + 8], 0
jne 0x140155c43
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov rsi, qword [rsi + 8]
cmp qword [rdi + 8], 0
jne 0x140155c67
mov rax, qword [rdi]
and rax, rbx
movabs rcx, 0xffffffffffffff
and rsi, rcx
or rsi, rax
mov qword [rdi], rsi
dec dword [rdi + 0x14]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1402a19a0]
call fcn.140172b08
cmp dword [0x1402a19a0], 0xffffffff
jne 0x140155b21
mov qword [0x1402a1998], 0
lea rcx, [0x1402a1990]
mov qword [0x1402a1990], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a19a0]
call fcn.140172aa8
jmp 0x140155b21
mov rcx, qword [0x1402a1988]
call fcn.1401aec90
jmp 0x140155b68
cmp byte [rsi + 0x10], 0
je 0x140155b95
cmp qword [rdi + 8], 0
jne 0x140155c8b
lock or qword [rdi], rbx
jmp 0x140155b95
lea rcx, [rdi + 8]
mov r14, qword [rdi]
call fcn.1401aed10
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x140155b87
lea rcx, [rdi + 8]
mov r14, qword [rdi]
call fcn.1401aed10
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x140155ba4
lea rcx, [rdi + 8]
mov r14, qword [rdi]
call fcn.1401aed10
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x140155c3a
Function at 0x1401564e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x1401565d7
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x1401565d7
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x1401565fc
add r9, 0x88
je 0x1401565fc
mov eax, dword [r9]
test rax, rax
je 0x1401565d7
add rax, rcx
je 0x1401565d7
cmp rdx, 0xffff
jbe 0x1401565f6
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x1401565d7
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
test r11b, r11b
je 0x1401565b0
mov r14, rdx
mov ebp, r11d
cmp bpl, byte [rbx]
jne 0x1401565b2
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x14015659d
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x1401565db
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
jne 0x14015656b
xor eax, eax
jmp 0x1401565fc
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140157190
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401571ce
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1401571c7
call fcn.14003bc30
jmp 0x1401571ae

Function at 0x1401579b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x140157aae
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140262390]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140157a20
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1402623a0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x140157b3d
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140157b13
movdqa xmm1, xmmword [0x1402623a0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1402623b0], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14015b320
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov dword [rcx], edx
mov rax, rcx
mov byte [rcx + 0xc8], 0
add rax, 8
mov qword [rcx + 0xd0], rax
mov qword [rcx + 0xf0], rax
je 0x14015b47c
mov byte [rsi + 0xc8], 1
lea rcx, [rax + 0xc0]
mov qword [rsi + 0xd8], rax
mov qword [rsi + 0xe0], rax
mov qword [rsi + 0xe8], rcx
mov rax, rsi
mov byte [rsi + 0x138], 0
add rax, 0xf8
mov qword [rsi + 0x140], rax
mov qword [rsi + 0x160], rax
je 0x14015b48b
mov byte [rsi + 0x138], 1
lea rcx, [rax + 0x40]
mov qword [rsi + 0x148], rax
mov qword [rsi + 0x150], rax
mov qword [rsi + 0x158], rcx
mov rdi, qword [0x1402983b8]
cmp rdi, 1
jbe 0x14015b439
mov qword [rsi + 0x168], rdi
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14015b3f1
mov rcx, qword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 8]
jne 0x14015b3f1
cmp qword [rax + rcx], 0
jne 0x14015b423
mov rdi, qword [rsi + 0x168]
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14015b42d
mov rcx, qword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 8]
mov rdx, qword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
test rsi, rsi
je 0x14015b423
call fcn.14003bc30
jmp 0x14015b40a
lea rcx, [0x1402983b8]
call fcn.140007880
test al, al
je 0x14015b49a
mov qword [0x1402983c8], 0
lea rdi, [0x1402983c0]
mov qword [0x1402983c0], 0xffffffffffffffff
mov rcx, rdi
xor edx, edx
call fcn.140002400
mov qword [0x1402983b8], rdi
jmp 0x14015b3c1
mov ecx, 0xc0
call fcn.140172a4c
jmp 0x14015b354
mov ecx, 0x40
call fcn.140172a4c
jmp 0x14015b39b
mov rdi, qword [0x1402983b8]
jmp 0x14015b3c1

Function at 0x14015da40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14015da8c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14015da97
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14015da7a
mov qword [rdi], rsi
call fcn.1400f24d0
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f24d0
mov r14, qword [rdi]
cmp qword [0x1402a1a18], 0
je 0x14015dac8
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401d7990.0]
mov qword [rdi], 0
jmp 0x14015da68
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14015db09
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14015db03
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x14015daa9
xor ecx, ecx
mov dl, 1
jmp 0x14015dafc
xor ecx, ecx
jmp 0x14015dafa
Function at 0x14015ffd0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rcx
mov r12, qword [rsp + 0xa0]
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp r12, 8
jb 0x14016015f
mov r14, r9
mov r13d, dword [r9 + 4]
cmp r13, r12
ja 0x14016015f
cmp dword [r14], 0x100000
ja 0x14016015f
mov r15, rdx
lea rbp, [r14 + r13]
sub r12, r13
mov ecx, 0x88
call fcn.140172a4c
mov rbx, rax
mov rax, qword [rdi]
mov qword [rdi], 0
lea rcx, [0x140262ba6]
mov qword [rbx + 8], rcx
lea rcx, str._ze_
mov qword [rbx], rcx
mov qword [rbx + 0x10], r15
xorps xmm0, xmm0
movups xmmword [rbx + 0x18], xmm0
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], rax
mov word [rbx + 0x38], 0x100
mov byte [rbx + 0x3a], 1
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r13
mov qword [rbx + 0x50], rbp
mov qword [rbx + 0x58], r12
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x70], xmm0
mov qword [rbx + 0x80], 0
mov eax, dword [0x1402983e0]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401600fd
lock inc dword [0x1402983d0]
mov qword [rsi], rbx
mov rcx, qword [rdi]
mov qword [rdi], 0
test rcx, rcx
jne 0x140160166
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401756e0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402983e0]
call fcn.140172b08
cmp dword [0x1402983e0], 0xffffffff
jne 0x1401600bf
lea rax, [0x14025ed90]
mov qword [0x1402983d8], rax
lea r14, [0x1402983d8]
call fcn.140044090
lea rcx, [rsp + 0x28]
mov byte [rcx], 1
mov qword [rsp + 0x20], rcx
lea r8, str.MojoMessages
mov rcx, rax
mov rdx, r14
xor r9d, r9d
call fcn.14013d8a0
lea rcx, [0x1402983e0]
call fcn.140172aa8
jmp 0x1401600bf
xor ebx, ebx
jmp 0x1401600c6
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x1401600dc

Function at 0x140162a10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
mov eax, dword [0x140299c98]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140162a7b
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140162ac5
mov rcx, qword [0x140299c88]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140299c90]
mov rdx, qword [0x140299c88]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140299c98]
call fcn.140172b08
cmp dword [0x140299c98], 0xffffffff
jne 0x140162a3c
mov qword [0x140299c90], 0
lea rcx, [0x140299c88]
mov qword [0x140299c88], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x140299c98]
call fcn.140172aa8
jmp 0x140162a3c
test rsi, rsi
je 0x140162a72
call fcn.14003bc30
jmp 0x140162a4e
Function at 0x140162ae0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140299c98]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140162b57
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140162b43
mov rcx, qword [0x140299c88]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x140299c90]
mov rdx, qword [0x140299c88]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140162b51
lock dec dword [rcx + 8]
je 0x140162ba1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140299c98]
call fcn.140172b08
cmp dword [0x140299c98], 0xffffffff
jne 0x140162b09
mov qword [0x140299c90], 0
lea rcx, [0x140299c88]
mov qword [0x140299c88], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x140299c98]
call fcn.140172aa8
jmp 0x140162b09
add rsp, 0x20
pop rsi
jmp fcn.14011cbd0

Function at 0x140162bb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402a19b8]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140162c0b
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140162c52
mov rcx, qword [0x1402a19a8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a19b0]
jne 0x140162c52
cmp qword [rax + rcx], 0
setne al
add rsp, 0x28
ret
lea rcx, [0x1402a19b8]
call fcn.140172b08
cmp dword [0x1402a19b8], 0xffffffff
jne 0x140162bd5
mov qword [0x1402a19b0], 0
lea rcx, [0x1402a19a8]
mov qword [0x1402a19a8], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a19b8]
call fcn.140172aa8
jmp 0x140162bd5
xor eax, eax
jmp 0x140162c06

Function at 0x140162e20
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140162e69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140162e85
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140162e61
mov qword [rsi], rdi
call fcn.1400f24d0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140162ef7
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f24d0
mov r14, qword [rsi]
cmp qword [0x1402a1a18], 0
je 0x140162eb6
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401d7990.0]
mov qword [rsi], 0
jmp 0x140162e4f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140162efa
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140162ef1
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x140162e97
xor ecx, ecx
mov dl, 1
jmp 0x140162eea
int3
xor ecx, ecx
jmp 0x140162ee8
Function at 0x140163640
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rdi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1401637dc
movabs rax, 0x1fffffffffffffff
mov r8, qword [rdi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1401637d5
cmp r14, rax
ja 0x1401637e1
lea rcx, [r14*8]
call fcn.140172a4c
shl rbx, 3
add rbx, rax
je 0x1401637e6
lea rax, [rax + r14*8]
mov rcx, qword [rsi]
mov qword [rsi], 0
mov qword [rbx], rcx
lea rcx, [rbx + 8]
mov rsi, qword [rdi]
mov rdx, qword [rdi + 8]
cmp rdx, rsi
jne 0x140163705
mov qword [rdi], rbx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rax
test rsi, rsi
jne 0x140163766
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r8, qword [rdx - 8]
mov qword [rdx - 8], 0
lea r9, [rdx - 8]
mov qword [rbx - 8], r8
add rbx, 0xfffffffffffffff8
mov rdx, r9
cmp r9, rsi
jne 0x140163705
mov rsi, qword [rdi]
mov r14, qword [rdi + 8]
mov qword [rdi], rbx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rax
cmp r14, rsi
je 0x1401636f6
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140163812
mov rdi, qword [r14]
mov qword [r14], 0
test rdi, rdi
jne 0x140163777
lea rax, [r14 - 8]
cmp r14, rsi
mov r14, rax
je 0x1401636f6
jmp 0x140163740
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140172a44
lea rax, fcn.140163510
mov qword [rdi], rax
mov rcx, qword [rdi + 0x70]
mov qword [rdi + 0x70], 0
test rcx, rcx
je 0x1401637a3
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401d7990.0]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
jne 0x1401637ca
mov rcx, qword [rdi + 0x40]
test rcx, rcx
jne 0x1401637bf
mov rcx, rdi
call fcn.140172a44
jmp 0x140163758
mov qword [rdi + 0x48], rcx
call fcn.140172a44
jmp 0x1401637b5
mov qword [rdi + 0x60], rcx
call fcn.140172a44
jmp 0x1401637ac
xor eax, eax
jmp 0x1401636bd
call fcn.14018c460
call fcn.1401b3360
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401b2820
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1401b2820
int3
Function at 0x1401660c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x1402a2768]
cmp rbx, 1
jbe 0x14016611c
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140166110
mov rcx, qword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 8]
mov rdx, qword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140166105
call fcn.14003bc30
jmp 0x1401660ec
lea rcx, [0x1402a2768]
call fcn.140007880
test al, al
je 0x14016615f
mov qword [0x1402a2778], 0
lea rbx, [0x1402a2770]
mov qword [0x1402a2770], 0xffffffffffffffff
mov rcx, rbx
xor edx, edx
call fcn.140002400
mov qword [0x1402a2768], rbx
jmp 0x1401660da
mov rbx, qword [0x1402a2768]
jmp 0x1401660da

Function at 0x140166170
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, qword [0x1402a2768]
cmp rsi, 1
jbe 0x1401661b7
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401661b1
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402a2768]
call fcn.140007880
test al, al
je 0x1401661f7
mov qword [0x1402a2778], 0
lea rsi, [0x1402a2770]
mov qword [0x1402a2770], 0xffffffffffffffff
mov rcx, rsi
xor edx, edx
call fcn.140002400
mov qword [0x1402a2768], rsi
jmp 0x140166182
mov rsi, qword [0x1402a2768]
jmp 0x140166182

Function at 0x14016f080
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov byte [rcx], dl
mov rdi, qword [0x1402a2970]
cmp rdi, 1
jbe 0x14016f0cd
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14016f10d
mov rcx, qword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 8]
mov rdx, qword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402a2970]
call fcn.140007880
test al, al
je 0x14016f119
mov qword [0x1402a2980], 0
lea rdi, [0x1402a2978]
mov qword [0x1402a2978], 0xffffffffffffffff
mov rcx, rdi
xor edx, edx
call fcn.140002400
mov qword [0x1402a2970], rdi
jmp 0x14016f098
test rsi, rsi
je 0x14016f0c3
call fcn.14003bc30
jmp 0x14016f0aa
mov rdi, qword [0x1402a2970]
jmp 0x14016f098