joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d32f0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [0x14022b0d0]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d33ce
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d33c4
movsxd rcx, dword [0x14022b0c8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14022b0cc]
jne 0x1400d33c4
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x1400d33c4
cmp byte [rsi], 0
je 0x1400d33c4
mov rax, qword [rdi]
test rax, rax
js 0x1400d3411
cmp dword [rdi + 0x18], 1
movabs rbx, 0x4000000000000000
jne 0x1400d341b
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400d3457
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov rsi, qword [rsi + 8]
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400d347c
mov rax, qword [rdi]
and rax, rbx
movabs rcx, 0xffffffffffffff
and rsi, rcx
or rsi, rax
mov qword [rdi], rsi
dec dword [rdi + 0x18]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14022b0d0]
call fcn.14011d638
cmp dword [0x14022b0d0], 0xffffffff
jne 0x1400d3321
mov qword [0x14022b0c8], 0
lea rcx, [0x14022b0c8]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b0d0]
call fcn.14011d5d8
jmp 0x1400d3321
call fcn.140189dc0
jmp 0x1400d3368
cmp byte [rsi + 0x10], 0
je 0x1400d3397
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400d344e
mov r14, qword [rdi]
mov rax, qword [rcx + 8]
call qword [0x14023a010]
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
lock or qword [rdi], rbx
jmp 0x1400d3397
mov r14, qword [rdi]
mov rax, qword [rcx + 8]
call qword [0x14023a010]
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x1400d3389
mov r14, qword [rdi]
mov rax, qword [rcx + 8]
call qword [0x14023a010]
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x1400d33a8
Function at 0x1400d5260
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400d52af
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14011fe20
mov rax, rsi
add rsp, 0x30
pop rsi
ret
int3
Function at 0x1400dd9f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x100
movaps xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm6
mov r14d, r9d
mov r15, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x80]
mov qword [rdi + 0x50], r12
movaps xmm6, xmmword [0x1401efb80]
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x73
call fcn.1400ddbb0
mov rcx, rdi
mov rdx, rbp
xor r8d, r8d
xor r9d, r9d
call fcn.1400f4dd0
test byte [0x14021afd0], 0x19
jne 0x1400ddb29
xorps xmm7, xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm7
mov qword [rsp + 0x50], rsi
lea rdi, [rsp + 0x68]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rbp
mov rdx, r15
mov r8d, r14d
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov ebx, dword [rdi]
test byte [0x14021afd0], 0x19
jne 0x1400ddb42
xor edi, edi
cmp esi, 1
sbb edi, edi
or edi, ebx
lea rcx, [rsp + 0x80]
call fcn.1400f5610
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
add rsp, 0x100
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, [rsp + 0x68]
mov qword [rdx], rbp
lea rcx, str.ScopedBlockingCall
call fcn.140171970
jmp 0x1400dda9e
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r12
movaps xmmword [rdi], xmm6
movups xmmword [rsp + 0x20], xmm7
mov byte [rsp + 0x30], 0
lea r8, [0x14021afd0]
lea r9, [0x1401f52ba]
mov rcx, rdi
mov dl, 0x45
call fcn.1400d32d0
mov rbp, qword [rdi]
test rbp, rbp
je 0x1400ddb9c
mov r14, qword [rsp + 0x48]
lea rdi, [rsp + 0x68]
mov rcx, rdi
xor edx, edx
call fcn.1400dead0
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
mov rcx, rdi
call fcn.1401033f0
lea rcx, [rsp + 0x40]
call fcn.1401033d0
jmp 0x1400ddadf
Function at 0x1400e7520
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x28], rax
test byte [0x14021afd0], 0x19
jne 0x1400e7609
mov eax, dword [0x14022b0d0]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e75ca
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e7599
movsxd rcx, dword [0x14022b0c8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14022b0cc]
jne 0x1400e7599
mov rdi, qword [rax + rcx]
test rdi, rdi
jne 0x1400e75b1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14011fe20
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400e761b
movabs rax, 0x4000000000000000
lock or qword [rdi], rax
jmp 0x1400e7599
lea rcx, [0x14022b0d0]
call fcn.14011d638
cmp dword [0x14022b0d0], 0xffffffff
jne 0x1400e7567
mov qword [0x14022b0c8], 0
lea rcx, [0x14022b0c8]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b0d0]
call fcn.14011d5d8
jmp 0x1400e7567
lea rcx, [rsp + 0x20]
mov qword [rcx], rdx
call fcn.14017d510
jmp 0x1400e7546
mov rbx, qword [rdi]
mov rax, qword [rcx + 8]
call qword [0x14023a010]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x1400e75ba
Function at 0x1400e81e0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 1
mov qword [rcx + 8], 0
mov byte [rcx + 0x10], 0
mov eax, dword [0x14022b0d0]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e836d
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e8368
movsxd rcx, dword [0x14022b0c8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14022b0cc]
jne 0x1400e8368
mov rbx, qword [rax + rcx]
test rbx, rbx
je 0x1400e8368
movabs r12, 0xffffffffffffff
mov r15, qword [rbx]
mov rax, r15
and rax, r12
mov qword [rsi + 8], rax
mov rax, qword [fcn.1401122d0]
lea rcx, [0x14011c810]
cmp rax, rcx
jne 0x1400e83b0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x28]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x1400e8424
imul rax, rax, 0xf4240
cqo
idiv qword [0x140227198]
mov qword [rsp + 0x28], rax
movabs rcx, 0x8000000000000001
lea rdx, [rdi + rcx]
cmp rdx, 2
jb 0x1400e83e6
lea rcx, [rax + rdi]
sar rcx, 0x3f
movabs rdx, 0x8000000000000000
xor rdx, rcx
add rax, rdi
cmovo rax, rdx
mov rdi, rax
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x1400e83ff
mov rax, qword [rbx]
movabs rcx, 0x4000000000000000
and rcx, rax
and rdi, r12
or rdi, rcx
mov qword [rbx], rdi
inc dword [rbx + 0x18]
bt r15, 0x3e
jb 0x1400e83c6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14011fe20
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov byte [rsi], 0
jmp 0x1400e834a
lea rcx, [0x14022b0d0]
call fcn.14011d638
cmp dword [0x14022b0d0], 0xffffffff
jne 0x1400e8236
mov qword [0x14022b0c8], 0
lea rcx, [0x14022b0c8]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b0d0]
call fcn.14011d5d8
jmp 0x1400e8236
lea r14, [rsp + 0x28]
mov rcx, r14
call qword [0x14023a010]
mov rax, qword [r14]
jmp 0x1400e82e3
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x1400e844b
movabs rax, 0xbfffffffffffffff
lock and qword [rbx], rax
mov byte [rsi + 0x10], 1
jmp 0x1400e834a
add rcx, rax
cmp rcx, 1
ja 0x1400e831a
cmp rax, rdi
je 0x1400e831a
int3
mov r14, qword [rbx]
mov rax, qword [rcx + 8]
call qword [0x14023a010]
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rbx], rcx
jmp 0x1400e8327
mov rcx, qword [0x140227198]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400e82de
mov rdi, qword [rbx]
mov rax, qword [rcx + 8]
call qword [0x14023a010]
movabs rcx, 0xff00000000000000
and rcx, rdi
or rcx, rax
mov qword [rbx], rcx
jmp 0x1400e83cf
Function at 0x1400ea070
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400ea0ae
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 0x1400ea0a7
call fcn.140013120
jmp 0x1400ea08e

Function at 0x1400ea0c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
mov rdi, qword [0x1402257f0]
cmp rdi, 1
jbe 0x1400ea110
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400ea156
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402257f0]
call fcn.1400f5aa0
test al, al
je 0x1400ea162
mov qword [0x1402257f8], 0
lea rbx, [0x1402257f0]
lea rdi, [0x1402257f8]
mov rcx, rdi
xor edx, edx
call fcn.140012fc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140014c00
jmp 0x1400ea0da
test rsi, rsi
je 0x1400ea105
call fcn.140013120
jmp 0x1400ea0ec
mov rdi, qword [0x1402257f0]
jmp 0x1400ea0da

Function at 0x1400ea7f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1402257f0]
cmp rdi, 1
jbe 0x1400ea84c
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400ea836
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400ea844
lock dec dword [rcx + 8]
je 0x1400ea895
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402257f0]
call fcn.1400f5aa0
test al, al
je 0x1400ea8a9
mov qword [0x1402257f8], 0
lea rbx, [0x1402257f0]
lea rdi, [0x1402257f8]
mov rcx, rdi
xor edx, edx
call fcn.140012fc0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140014c00
jmp 0x1400ea807
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400e9a50
mov rdi, qword [0x1402257f0]
jmp 0x1400ea807
Function at 0x1400ebb10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
mov r9, qword [rcx]
mov r10, qword [rcx + 8]
mov r8, r10
sub r8, r9
je 0x1400ebb9f
mov rax, r8
shr rax, 2
mov rdx, r9
not rdx
add rdx, r10
jne 0x1400ebb37
xor edx, edx
jmp 0x1400ebb7c
mov r10, r8
and r10, 0xfffffffffffffffe
xor edx, edx
lea r11, [0x1401fc8d0]
nop word [rax + rax]
movzx esi, al
movzx edi, byte [r9 + rdx]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [r9 + rdx + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add rdx, 2
cmp r10, rdx
jne 0x1400ebb50
test r8b, 1
je 0x1400ebb99
movzx edi, al
movzx edx, byte [r9 + rdx]
xor edx, edi
lea rdi, [0x1401fc8d0]
shr eax, 8
xor eax, dword [rdi + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1400ebb99
Function at 0x1400f5aa0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 1
xor eax, eax
lock cmpxchg qword [rsi], rcx
sete bl
jne 0x1400f5af1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011fe20
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi]
cmp rax, 1
jne 0x1400f5ad2
movabs r14, 0x8637bd05af7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rax, qword [fcn.1401122d0]
lea r15, [0x14011c810]
cmp rax, r15
jne 0x1400f5be3
lea rdi, [rsp + 0x30]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
cmp rax, r14
jge 0x1400f5c17
imul rax, rax, 0xf4240
cqo
idiv qword [0x140227198]
mov qword [rsp + 0x28], rax
lea r13, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [fcn.1401122d0]
cmp rax, r15
jne 0x1400f5bd3
mov qword [rsp + 0x30], 0
mov rcx, r13
call r12
mov rax, qword [rsp + 0x30]
cmp rax, r14
jge 0x1400f5bf3
imul rax, rax, 0xf4240
cqo
idiv qword [0x140227198]
sub rax, qword [rsp + 0x28]
cmp rax, 0x3e7
jg 0x1400f5bc7
xor ecx, ecx
call rdi
mov rax, qword [rsi]
cmp rax, 1
je 0x1400f5b73
jmp 0x1400f5ad2
mov ecx, 0x3e8
call fcn.140153330
jmp 0x1400f5bb9
mov rcx, r13
call qword [0x14023a010]
mov rax, qword [rsp + 0x30]
jmp 0x1400f5ba8
lea rcx, [rsp + 0x28]
call qword [0x14023a010]
jmp 0x1400f5b60
mov rcx, qword [0x140227198]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400f5ba8
mov rcx, qword [0x140227198]
cqo
idiv rcx
imul rdi, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rdi
jmp 0x1400f5b5b
Function at 0x1400f9620
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x18], 0
je 0x1400f96e1
mov eax, dword [0x14022b9e8]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f9782
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x14022b9e8]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f97c5
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400f96d5
movsxd rcx, dword [0x14022b9e0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14022b9e4]
movsxd rdx, dword [0x14022b9e0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
jne 0x1400f9743
mov rdi, qword [rsi]
test rdi, rdi
jne 0x1400f9701
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14011fe20
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r14, qword [rsi + 8]
mov rcx, rdi
cmp r14, rdi
je 0x1400f9738
mov rbx, r14
add r14, 0xffffffffffffffc8
lea rcx, [rbx - 0x10]
call fcn.1400e7640
mov rcx, qword [rbx - 0x38]
test rcx, rcx
je 0x1400f9730
lock dec dword [rcx + 8]
je 0x1400f9808
cmp r14, rdi
jne 0x1400f970d
mov rcx, qword [rsi]
mov qword [rsi + 8], rdi
call fcn.14011d780
jmp 0x1400f96e9
lea r14, [rsp + 0x28]
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x28], 0
mov rax, qword [rcx]
mov rax, qword [rax]
lea rdx, [rbx + 8]
mov r8, r14
call qword [0x14023a010]
add rbx, 0x38
cmp rbx, rdi
je 0x1400f96e1
jmp 0x1400f9748
lea rcx, [0x14022b9e8]
call fcn.14011d638
cmp dword [0x14022b9e8], 0xffffffff
jne 0x1400f966a
mov qword [0x14022b9e0], 0
lea rcx, [0x14022b9e0]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b9e8]
call fcn.14011d5d8
jmp 0x1400f966a
lea rcx, [0x14022b9e8]
call fcn.14011d638
cmp dword [0x14022b9e8], 0xffffffff
jne 0x1400f969b
mov qword [0x14022b9e0], 0
lea rcx, [0x14022b9e0]
xor edx, edx
call fcn.140012fc0
lea rcx, [0x14022b9e8]
call fcn.14011d5d8
jmp 0x1400f969b
add rcx, 8
add rcx, 0xfffffffffffffff8
call fcn.1400e9a50
jmp 0x1400f9730
Function at 0x1401007e0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140227150]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140100837
jnp 0x14010089c
ucomisd xmm0, xmm6
jne 0x140100843
jnp 0x1401009c6
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401efb20]
subpd xmm1, xmmword [0x1401efb30]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401f8060]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011fe20
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140227160]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401009cd
mov eax, dword [0x140227170]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140100a07
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x140227168]
movq xmm1, rbp
punpckldq xmm1, xmmword [0x1401efb20]
subpd xmm1, xmmword [0x1401efb30]
haddpd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401f8058]
ucomisd xmm2, xmm1
ja 0x140100837
shl r15, 0x20
or r14, r15
sub r14, qword [0x140227158]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1401efb20]
subpd xmm0, xmmword [0x1401efb30]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140227150], xmm0
jmp 0x140100837
xor eax, eax
jmp 0x140100875
lea rcx, [0x140227160]
call fcn.14011d638
cmp dword [0x140227160], 0xffffffff
jne 0x1401008e6
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140227158], rdx
lea rcx, [0x140227160]
call fcn.14011d5d8
jmp 0x1401008e6
lea rcx, [0x140227170]
call fcn.14011d638
cmp dword [0x140227170], 0xffffffff
jne 0x14010090b
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140227168], rax
lea rcx, [0x140227170]
call fcn.14011d5d8
jmp 0x14010090b
Function at 0x1401018a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1401018e8
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 0x1401018f1
lea rax, [rsi + 1]
cmp rax, 2
jb case.default.0x1401018e1
mov qword [rdi], rsi
call fcn.1400d3890
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d3890
mov rcx, qword [rdi]
call fcn.140101910
mov qword [rdi], 0
jmp 0x1401018c6

Function at 0x140103510
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1402257f0]
cmp rsi, 1
jbe 0x140103555
mov ecx, dword [0x14021aed0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14010359b
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14010359b
mov rax, qword [rax + rcx]
test rax, rax
je 0x14010359b
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402257f0]
call fcn.1400f5aa0
test al, al
je 0x14010359e
mov qword [0x1402257f8], 0
lea rdi, [0x1402257f0]
lea rsi, [0x1402257f8]
mov rcx, rsi
xor edx, edx
call fcn.140012fc0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140014c00
jmp 0x140103523
int3
mov rsi, qword [0x1402257f0]
jmp 0x140103523

Function at 0x140103cc0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140103dbf
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140103d4d
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140103d24
mov qword [rsi], rdi
call fcn.1400d3890
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x140103dc3
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d3890
mov r14, qword [rsi]
cmp qword [0x140227818], 0
je 0x140103d7e
mov rcx, qword [0x140227818]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14023a010]
mov qword [rsi], 0
jmp 0x140103d12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401fcfb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140103dc6
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140103db9
call qword [0x14023a010]
mov rcx, rax
xor edx, edx
call fcn.140019730
jmp 0x140103d5f
xor ecx, ecx
mov dl, 1
jmp 0x140103db2
mov byte [rsi + 8], 1
int3
xor ecx, ecx
jmp 0x140103db0
Function at 0x140104040
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x50], r12
movaps xmm6, xmmword [0x1401efb80]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x57
call fcn.1400ddbb0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call fcn.1400f4dd0
test byte [0x14021afd0], 0x19
jne 0x140104153
test esi, esi
js 0x14010416c
lea r9, [rsp + 0x40]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140104173
mov esi, dword [rsp + 0x40]
test byte [0x14021afd0], 0x19
jne 0x140104186
lea rcx, [rsp + 0x80]
call fcn.1400f5610
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, [rsp + 0x68]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.140171970
jmp 0x1401040de
mov esi, 0xffffffff
jmp 0x140104112
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140104112
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r12
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14021afd0]
lea r9, [0x1401f52ba]
mov rcx, rdi
mov dl, 0x45
call fcn.1400d32d0
mov rbx, qword [rdi]
test rbx, rbx
je 0x1401041e3
mov r14, qword [rsp + 0x48]
lea rdi, [rsp + 0x68]
mov rcx, rdi
xor edx, edx
call fcn.1400dead0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r14
mov rcx, rdi
call fcn.1401033f0
lea rcx, [rsp + 0x40]
call fcn.1401033d0
jmp 0x14010411b