joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f61a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [rcx + 0x58]
test rbx, rbx
je 0x1400f6389
mov rdi, r8
mov rsi, rcx
lea rcx, str._s_r_n
call fcn.1400bc1e0
mov ebp, reloc.WLDAP32.dll_Ordinal_27
test rax, rax
je 0x1400f638e
mov r14, rax
mov rcx, rax
mov rdx, rdi
call fcn.1400bc2b0
mov rdi, rax
mov rax, qword [fcn.14018db40]
mov rcx, r14
call qword [0x1402a3ee8]
test rdi, rdi
je 0x1400f638e
mov rcx, rdi
call fcn.1401b34d0
mov r14, rax
mov r15, rax
mov rax, qword [rsi + 0x58]
mov qword [rsi + 0x10], 0
mov rax, qword [rax]
mov rax, qword [rax + 0x1128]
mov qword [rsi + 0x18], rax
mov byte [rsi + 0x20], 1
cmp byte [0x1402c87c0], 1
je 0x1400f626e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
imul edx, ecx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
jmp 0x1400f62a9
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x28]
mov qword [r12], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r12]
mov r8, qword [0x1402c87c8]
cqo
idiv r8
mov rcx, rax
imul rax, rdx, 0xf4240
cqo
idiv r8
movabs r13, 0xaaaaaaaa00000000
mov eax, eax
or rax, r13
mov qword [rsi + 0x40], rcx
mov qword [rsi + 0x48], rax
mov rax, qword [rbx + 0x4c0]
lea rcx, [rsp + 0x28]
mov dword [rcx], 0
xor edx, edx
cmp qword [rbx + 0x4c8], rax
sete dl
mov rax, qword [rbx + rdx*8 + 0x4f8]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov r8, rdi
mov r9, r15
call qword [0x1402a3ee8]
mov r12, rax
test rax, rax
js 0x1400f63ae
mov rcx, qword [rbx]
cmp byte [rcx + 0xf1e], 1
jne 0x1400f6322
mov edx, 2
mov r8, rdi
mov r9, r12
call fcn.1400b0e00
sub r14, r12
jne 0x1400f6379
mov rax, qword [fcn.14018db40]
mov rcx, rdi
call qword [0x1402a3ee8]
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
cmp byte [0x1402c87c0], 1
je 0x1400f63da
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
imul edx, ecx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
jmp 0x1400f6413
mov qword [rsi + 0x28], rdi
mov qword [rsi + 0x38], r15
mov qword [rsi + 0x30], r14
xor ebp, ebp
jmp 0x1400f638e
mov ebp, 0x37
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140191d70
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, dword [rsp + 0x28]
test ebp, ebp
je 0x1400f63c3
cmp ebp, 0x51
jne 0x1400f63c8
xor r12d, r12d
jmp 0x1400f6306
mov ebp, 0x37
mov rax, qword [fcn.14018db40]
mov rcx, rdi
call qword [0x1402a3ee8]
jmp 0x1400f638e
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x28]
mov qword [rdi], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov r8, qword [0x1402c87c8]
cqo
idiv r8
mov rcx, rax
imul rax, rdx, 0xf4240
cqo
idiv r8
mov eax, eax
or rax, r13
mov qword [rsi + 0x40], rcx
mov qword [rsi + 0x48], rax
jmp 0x1400f6385
Function at 0x1400fc570
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
mov dword [rsp + 0x20], 0xf0000040
xor r14d, r14d
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400fc5db
lea rax, [rsp + 0x38]
mov rcx, qword [rax - 8]
mov qword [rsp + 0x20], rax
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rdi, [rsp + 0x4c]
mov dword [rdi], r14d
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], r14d
mov edx, 2
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rdi], 0x10
jne 0x1400fc637
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400fc647
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400fc659
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140191d70
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400fc6b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov ecx, dword [rcx + 0x20]
add eax, eax
add rcx, rax
add rcx, 0x18
mov rax, qword [fcn.140136bd0]
call qword [0x1402a3ee8]
mov rdi, rax
test rax, rax
je 0x1400fc819
mov qword [rdi], rsi
lea rcx, [rdi + 0x18]
mov qword [rdi + 8], rcx
mov eax, dword [rsi + 0x18]
add rax, rdi
add rax, 0x18
mov qword [rdi + 0x10], rax
cmp dword [rsi + 0x1c], ebp
jae 0x1400fc758
mov rax, qword [rsi]
call qword [0x1402a3ee8]
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, ebp
call qword [0x1402a3ee8]
mov ebx, dword [rsi + 0x18]
add rbx, qword [rdi + 0x10]
mov rax, qword [rsi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, rbx
call qword [0x1402a3ee8]
mov ebp, dword [rsi + 0x20]
mov rcx, qword [rdi + 8]
mov byte [rsp + 0x27], 0xaa
mov rax, qword [rsi]
call qword [0x1402a3ee8]
mov rax, qword [rsi]
mov rcx, qword [rdi + 0x10]
call qword [0x1402a3ee8]
mov r15d, ebp
test ebp, ebp
je 0x1400fc7cc
xor r12d, r12d
lea r14, [rsp + 0x27]
mov al, byte [rbx + r12]
xor al, 0x36
mov byte [rsp + 0x27], al
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 8]
mov rdx, r14
mov r8d, 1
call qword [0x1402a3ee8]
mov al, byte [rbx + r12]
xor al, 0x5c
mov byte [rsp + 0x27], al
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [0x1402a3ee8]
inc r12
cmp r15, r12
jne 0x1400fc782
cmp r15d, dword [rsi + 0x1c]
jae 0x1400fc819
lea rbx, str.6kernel32.dll
lea r14, [0x1402a0254]
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, 1
call qword [0x1402a3ee8]
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [0x1402a3ee8]
inc r15
mov eax, dword [rsi + 0x1c]
cmp r15, rax
jb 0x1400fc7e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140191d70
mov rax, rdi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140113a50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x58
movapd xmmword [rsp + 0x40], xmm8
movapd xmmword [rsp + 0x30], xmm7
movapd xmmword [rsp + 0x20], xmm6
mov r11, qword [r8]
mov r10, qword [r8 + 8]
mov rax, r10
sub rax, r11
sar rax, 2
lea r9, [rax - 1]
cmp r9, 2
jb 0x140113b53
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, edx
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x140276260]
subpd xmm2, xmmword [0x140276270]
haddpd xmm2, xmm2
mov ecx, 1
movq xmm3, qword [0x140276260]
movapd xmm4, xmmword [0x140276270]
movsd xmm5, qword [0x140264f40]
nop dword [rax + rax]
mov rdx, qword [r8]
mov r10, qword [r8 + 8]
sub r10, rdx
sar r10, 2
cmp r10, rcx
jbe 0x140113bfb
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
mulsd xmm7, xmm0
lea r10, [rcx - 1]
movq xmm6, r10
punpckldq xmm6, xmm3
subpd xmm6, xmm4
movapd xmm8, xmm6
unpckhpd xmm8, xmm6
addsd xmm8, xmm6
mulsd xmm8, xmm1
addsd xmm8, xmm7
divsd xmm8, xmm2
addsd xmm8, xmm5
cvttsd2si r10d, xmm8
mov dword [rdx + rcx*4], r10d
dec rax
inc rcx
cmp rcx, r9
jne 0x140113ad0
mov r11, qword [r8]
mov r10, qword [r8 + 8]
cmp r10, r11
je 0x140113bfb
mov dword [r10 - 4], 0x7fffffff
mov r9, qword [r8]
mov rax, qword [r8 + 8]
mov rcx, rax
sub rcx, r9
je 0x140113c0e
js 0x140113c12
test cl, 1
jne 0x140113be7
shr rcx, 2
mov rdx, r9
lea r10, [rax - 1]
cmp r10, r9
je 0x140113bce
lea r9, [0x140283050]
nop dword [rax]
movzx r10d, cl
movzx r11d, byte [rdx]
xor r11d, r10d
shr ecx, 8
xor ecx, dword [r9 + r11*4]
movzx r10d, cl
movzx r11d, byte [rdx + 1]
xor r11d, r10d
shr ecx, 8
xor ecx, dword [r9 + r11*4]
add rdx, 2
cmp rdx, rax
jne 0x140113ba0
mov dword [r8 + 0x18], ecx
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
add rsp, 0x58
ret
movzx ecx, byte [r9]
lea rdx, [0x140283050]
mov ecx, dword [rdx + rcx*4]
lea rdx, [r9 + 1]
jmp 0x140113b89
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1401ceaf0
xor ecx, ecx
jmp 0x140113bce
int3
Function at 0x140118c90
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140118d0d
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 0x140118cdc
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140118cca
mov qword [rdi], rsi
call fcn.140118d60
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140118d60
mov r14, qword [rdi]
cmp qword [0x1402c5c40], 0
je 0x140118d17
mov rcx, qword [0x1402c5c40]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a3ee8]
mov qword [rdi], 0
jmp 0x140118cb8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140288f4f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140118d58
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140118d52
call qword [0x1402a3ee8]
mov rcx, rax
xor edx, edx
call fcn.1400440e0
jmp 0x140118cee
xor ecx, ecx
mov dl, 1
jmp 0x140118d4b
xor ecx, ecx
jmp 0x140118d49
Function at 0x14013eea0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402c59d0]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14013ef04
mov rax, qword [0x1402c59c8]
mov rsi, qword [rax + 0x58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140191d70
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402c59d0]
call fcn.14018f720
cmp dword [0x1402c59d0], 0xffffffff
jne 0x14013eedc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401cdd80
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14018f5a8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402c5a18]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14013efc4
lea r8, [0x1402c59e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002d190
mov qword [0x1402c59c8], rsi
lea rcx, [0x1402c59d0]
call fcn.14018f6b4
jmp 0x14013eedc
lea rcx, [0x1402c5a18]
call fcn.14018f720
cmp dword [0x1402c5a18], 0xffffffff
jne 0x14013ef95
xorps xmm0, xmm0
movups xmmword [0x1402c5a08], xmm0
movups xmmword [0x1402c59f8], xmm0
movups xmmword [0x1402c59e8], xmm0
lea rcx, [0x1402c59e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402c5a18]
call fcn.14018f6b4
jmp 0x14013ef95
Function at 0x140143b90
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 r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140143c92
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140143c20
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140143bf7
mov qword [rsi], rdi
call fcn.140118d60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140143c96
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140118d60
mov r14, qword [rsi]
cmp qword [0x1402c5c40], 0
je 0x140143c51
mov rcx, qword [0x1402c5c40]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a3ee8]
mov qword [rsi], 0
jmp 0x140143be5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140288f4f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140143c99
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140143c8c
call qword [0x1402a3ee8]
mov rcx, rax
xor edx, edx
call fcn.1400440e0
jmp 0x140143c32
xor ecx, ecx
mov dl, 1
jmp 0x140143c85
mov byte [rsi + 8], 0
int3
xor ecx, ecx
jmp 0x140143c83
Function at 0x140148070
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1402c5c70]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x1401480a5
jnp 0x1401480c9
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140191d70
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1402c5c80]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401481de
mov eax, dword [0x1402c5c90]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140148218
rdtsc
mov rdi, rax
mov rbx, rdx
xor r15d, r15d
lea r14, [rsp + 0x20]
mov qword [r14], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r12, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r14], r15
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r12, qword [0x1402c5c88]
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
cvtsi2sd xmm1, qword [rsi]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140276250]
ucomisd xmm1, xmm0
ja 0x1401480a5
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1402c5c78]
movq xmm6, rdi
punpckldq xmm6, xmmword [0x140276260]
subpd xmm6, xmmword [0x140276270]
haddpd xmm6, xmm6
divsd xmm6, xmm0
movsd qword [0x1402c5c70], xmm6
jmp 0x1401480a5
lea rcx, [0x1402c5c80]
call fcn.14018f720
cmp dword [0x1402c5c80], 0xffffffff
jne 0x140148112
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1402c5c78], rdx
lea rcx, [0x1402c5c80]
call fcn.14018f6b4
jmp 0x140148112
lea rcx, [0x1402c5c90]
call fcn.14018f720
cmp dword [0x1402c5c90], 0xffffffff
jne 0x140148137
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov qword [0x1402c5c88], rax
lea rcx, [0x1402c5c90]
call fcn.14018f6b4
jmp 0x140148137
Function at 0x140156f70
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
mov r15, qword [rdx]
mov qword [rdx], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x140156f9c
call fcn.140118d60
mov qword [rsi], 0
test r15, r15
je 0x140156fd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140157020
cmp r12, 2
jb 0x140156fca
mov qword [rsi], r15
call fcn.140118d60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
cmp byte [rdi + 0x1f], 0
jns 0x14015700c
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
call fcn.140145f50
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rdi + 8]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
jmp 0x140156fe9
call fcn.140118d60
mov r14, qword [rsi]
cmp qword [0x1402c5c40], 0
je 0x140157054
mov rcx, qword [0x1402c5c40]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402a3ee8]
mov qword [rsi], 0
jmp 0x140156fbc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140288f4f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140157095
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14015708f
call qword [0x1402a3ee8]
mov rcx, rax
xor edx, edx
call fcn.1400440e0
jmp 0x140157032
xor ecx, ecx
mov dl, 1
jmp 0x140157088
xor ecx, ecx
jmp 0x140157086
Function at 0x140159390
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14026f080]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, [0x140281a58]
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.14012cb70
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140159980
test esi, esi
js 0x140159466
lea r9, [rsp + 0x30]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140159472
mov esi, dword [rsp + 0x30]
test esi, esi
js 0x14015946d
lea rcx, [rsp + 0x50]
call fcn.140159490
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140191d70
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14015943b
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14015943b
Function at 0x1401783e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x1401784fa
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x1401784fa
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x1401784f3
add r9, 0x88
je 0x1401784f3
mov eax, dword [r9]
test rax, rax
je 0x1401784fa
add rax, rcx
je 0x1401784fa
cmp rdx, 0xffff
jbe 0x1401784ed
mov r10d, dword [rax + 0x20]
lea r9, [rcx + r10]
test r10, r10
cmove r9, r10
mov r10d, dword [rax + 0x18]
lea r10, [r9 + r10*4]
lea r11, [rdx + 1]
mov rsi, r9
jmp 0x140178486
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebp, bpl
movzx ebx, byte [rbx]
lea r14, [rdi + 4]
cmp ebp, ebx
cmovg rsi, r14
cmovs r10, rdi
cmp bpl, bl
je 0x1401784d2
cmp rsi, r10
je 0x1401784fa
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
mov bpl, byte [rdx]
test bpl, bpl
je 0x140178466
mov r14, r11
cmp bpl, byte [rbx]
jne 0x140178468
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x1401784bd
jmp 0x140178466
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
xor eax, eax
jmp 0x1401784f3
Function at 0x140178e20
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
jae 0x140178f9f
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x140276ee0]
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 0x140178f02
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 0x140178ed8
pmovzxdq xmm1, qword [0x140276ee0]
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 [0x140276ed0], 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
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140276ec0]
nop word cs:[rax + 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 0x140178fc0
jmp 0x140178e72