joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018a220
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
lea r14, [rsp + 0x28]
mov r8d, 0x104
mov rcx, r14
mov rdx, rsi
call fcn.140082670
mov rax, qword [r14 + 8]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
mov rdx, qword [rax]
test rdx, rdx
lea rbx, [0x14029d4fc]
cmove rdx, rbx
call fcn.14004d7f0
mov r14, qword [r14 + 8]
call fcn.1400ab720
cmp r14, rax
je 0x14018a2e2
mov r14, qword [rsp + 0x30]
dec word [r14 + 0x10]
setne al
test r14, r14
sete cl
or cl, al
jne 0x14018a2dd
cmp byte [r14 + 0x12], 1
jne 0x14018a2d5
mov rcx, qword [r14]
call fcn.140071eb0
mov rcx, r14
call fcn.1401ef41c
call fcn.1400ab720
cmp ebp, 0x80004005
jne 0x14018a37b
lea r14, [rsp + 0x28]
mov r8d, 0x104
mov rcx, r14
mov rdx, rsi
call fcn.140082670
mov rax, qword [r14 + 8]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, edi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
mov rax, qword [rax]
test rax, rax
cmovne rbx, rax
mov rdx, rbx
call fcn.14004d7f0
mov rdi, qword [r14 + 8]
call fcn.1400ab720
cmp rdi, rax
je 0x14018a37b
mov rdi, qword [rsp + 0x30]
dec word [rdi + 0x10]
setne al
test rdi, rdi
sete cl
or cl, al
jne 0x14018a376
cmp byte [rdi + 0x12], 1
jne 0x14018a36e
mov rcx, qword [rdi]
call fcn.140071eb0
mov rcx, rdi
call fcn.1401ef41c
call fcn.1400ab720
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14018bc00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14018bc15
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14018dd80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x140341e80]
mov ecx, dword [0x14032bc90]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14018de01
lea rcx, [0x140341e70]
call fcn.1401d9710
test rax, rax
jne 0x14018ddee
mov ecx, 4
call fcn.1401ef3e0
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x140341e70]
mov rcx, rbx
call fcn.1401d9710
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.14015dcc0
test rsi, rsi
jne 0x14018de44
lea rcx, [0x140341e70]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401d9710
lea rcx, [0x140341e80]
call fcn.1401ef46c
cmp dword [0x140341e80], 0xffffffff
jne 0x14018dda8
xorps xmm0, xmm0
movups xmmword [0x140341e70], xmm0
lea rcx, [0x140341e70]
lea rdx, [fcn.1400e50b0]
call fcn.14015dd10
lea rcx, [0x140341e80]
call fcn.1401ef520
jmp 0x14018dda8
mov rcx, rsi
call fcn.1401ef41c
jmp 0x14018ddee
Function at 0x1401a53f0
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 0x1401a54ee
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x14029f9f0]
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 0x1401a5460
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x14029fa10]
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 0x1401a557e
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 0x1401a5554
pmovzxdq xmm1, qword [0x14029fa10]
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 [0x14029fa00], 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 0x1401a6530
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1401a6578
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 0x1401a6581
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1401a6568
mov qword [rdi], rsi
call fcn.1401bdb70
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.1401bdb70
mov rcx, qword [rdi]
call fcn.1401ae5f0
mov qword [rdi], 0
jmp 0x1401a6556
Function at 0x1401aea70
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 [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x14032f380]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x1401aeaa5
jnp 0x1401aeac9
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f08b0
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 [0x14032f390]
mov ecx, dword [0x14032bc90]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401aebde
mov eax, dword [0x14032f3a0]
mov ecx, dword [0x14032bc90]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401aec18
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 [0x14032f398]
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
cvtsi2sd xmm1, qword [rsi]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x14029f260]
ucomisd xmm1, xmm0
ja 0x1401aeaa5
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x14032f388]
movq xmm6, rdi
punpckldq xmm6, xmmword [0x14029f270]
subpd xmm6, xmmword [0x14029f280]
haddpd xmm6, xmm6
divsd xmm6, xmm0
movsd qword [0x14032f380], xmm6
jmp 0x1401aeaa5
lea rcx, [0x14032f390]
call fcn.1401ef46c
cmp dword [0x14032f390], 0xffffffff
jne 0x1401aeb12
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14032f388], rdx
lea rcx, [0x14032f390]
call fcn.1401ef520
jmp 0x1401aeb12
lea rcx, [0x14032f3a0]
call fcn.1401ef46c
cmp dword [0x14032f3a0], 0xffffffff
jne 0x1401aeb37
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov qword [0x14032f398], rax
lea rcx, [0x14032f3a0]
call fcn.1401ef520
jmp 0x1401aeb37
Function at 0x1401aeca0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
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 0x1401aed3a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1401aed24
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1401aed01
mov qword [rsi], rdi
call fcn.1401bdb70
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 0x1401aed3e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401bdb70
mov rcx, qword [rsi]
call fcn.1401ae5f0
mov qword [rsi], 0
jmp 0x1401aecef
mov byte [rsi + 8], 0
int3
Function at 0x1401c7840
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1402825c0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str.....chromium_base_file_version_info_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, reloc.OLEAUT32.dll_VarR8FromUI1
call fcn.1401bdb50
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.1401b2b30
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x1401c78c6
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x1401c790f
mov qword [rsi], 0
lea rcx, [rsp + 0x50]
call fcn.1401b2bb0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.1401ef3e0
mov rdi, rax
lea r15, [rax + r14]
xor r12d, r12d
jmp 0x1401c7a35
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1401c7a4f
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401c7a4f
mov r14, qword [rsp + 0x30]
test r14, r14
je 0x1401c7a4f
add r12, rdi
mov ecx, 0x38
call fcn.1401ef3e0
mov rbx, rax
movzx r13d, word [r14]
movzx ebp, word [r14 + 2]
lea rax, fcn.1400ddad0
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r15
movabs r14, 0xfffffffc00000000
mov rax, rdi
and rax, r14
cmp rax, qword [0x14031f748]
jne 0x1401c79d5
mov rcx, rdi
call fcn.140025b30
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r13w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1402ebfa2]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401c7a6c
mov rdi, qword [rsp + 0x30]
and r14, rdi
cmp r14, qword [0x14031f748]
jne 0x1401c7a29
mov rcx, rdi
call fcn.140025b30
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
jmp 0x1401c78de
mov rax, rdi
add rax, r12
je 0x1401c7a4d
mov byte [rax], 0
inc r12
cmp r14, r12
jne 0x1401c7a35
jmp 0x1401c792b
ud2
mov qword [rsi], 0
test rdi, rdi
je 0x1401c78de
mov rcx, rdi
call fcn.1401ef41c
jmp 0x1401c78de
int3
Function at 0x1401d92b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14015d7d0]
mov qword [rsp + 0x20], rax
lea rcx, [0x14033f6c8]
lea rdx, [0x14015d670]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1401d9344
cmp dword [0x14033f6d0], 0
jne 0x1401d9340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14033f6d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401d9340
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1401d9328
call fcn.140211d14
int3

Function at 0x1401d9710
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14032bbac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401d9746
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1401d9746
add rax, rcx
mov rax, qword [rax]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1401d9740
Function at 0x1401ecd50
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 0
mov eax, dword [0x14032bc90]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1b0]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1b0]
mov qword [rax + 0x1b0], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
mov rax, qword [0x1402a7b60]
movzx eax, byte [rax + 0x80]
test al, al
setne byte [rsi + 0x30]
jne 0x1401ecdf0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsi + 0x20]
lea rdi, [rsp + 0x20]
mov rcx, rdx
mov rdx, rdi
call fcn.1401b29b0
mov rax, qword [rdi]
mov qword [rbx], rax
jmp 0x1401ecdd8

Function at 0x1401efd74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401efdbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401efdbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401efdbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401efdbe
cmp dword [rcx + 0x84], 0xe
jbe 0x1401efdbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401efdc0
xor al, al
add rsp, 0x28
ret

Function at 0x1401f01c0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401f0238
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401f0238
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401f0238
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401f022c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401f024a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401f021a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401f023a
Function at 0x14020b854
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14020b99c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14020ba0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14020ba0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14020ba0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14020ba0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14020ba0b
cmp dword [rcx + 0x84], 0xe
jbe 0x14020ba0b
cmp dword [rcx + 0xf8], 0
je 0x14020ba0b
mov ecx, ebx
call fcn.14020b8d4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14020bb30
nop
cmp dword [rbp + 0x20], 0
je 0x14020ba59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14020b968
int3

Function at 0x14020b99c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14020b99c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14020ba0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14020ba0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14020ba0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14020ba0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14020ba0b
cmp dword [rcx + 0x84], 0xe
jbe 0x14020ba0b
cmp dword [rcx + 0xf8], 0
je 0x14020ba0b
mov ecx, ebx
call fcn.14020b8d4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14020bb30
nop
cmp dword [rbp + 0x20], 0
je 0x14020ba59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14020b968
int3
Function at 0x14020bde8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140210c6c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140210c6c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14020bf38
cmp rax, 0xffffffffffffffff
je 0x14020bf38
xor edi, edi
test rbp, rbp
jle 0x14020bee3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140072030
mov rbx, rax
test rax, rax
jne 0x14020be70
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14020bed9
mov edx, 0x8000
mov ecx, r14d
call fcn.140211dec
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140217f4c
cmp eax, 0xffffffff
je 0x14020beb9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14020be80
mov edx, r15d
mov ecx, r14d
call fcn.140211dec
jmp 0x14020bed9
cmp byte [rsi + 0x38], dil
je 0x14020bed0
cmp dword [rsi + 0x34], 5
jne 0x14020bed0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x14020bed9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140071eb0
jmp 0x14020bf4c
jns 0x14020bf4c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140210c6c
cmp rax, 0xffffffffffffffff
jne 0x14020bf04
cmp byte [rsi + 0x30], dil
je 0x14020bf4c
mov edi, dword [rsi + 0x2c]
jmp 0x14020bf4c
mov ecx, r14d
call fcn.14021013c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14020bf4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x14020bf4c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14020bf45
mov eax, dword [rsi + 0x2c]
jmp 0x14020bf4a
mov eax, reloc.OLEAUT32.dll_SafeArrayAccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140210c6c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14020fc6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401f0850
sub rsp, rax
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14020f7a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14020fcbb
mov rax, rbp
jmp 0x14020fdc3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x32cbe0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140210d10
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32cbe0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14020fdbf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14020fdbf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140210d10
test rax, rax
js 0x14020fdbf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14020fdbf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14020fdb1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14020fdb1
cmp byte [rcx], 0xd
jne 0x14020fd97
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14020fda6
cmp byte [rcx + 1], 0xa
jne 0x14020fda6
inc rcx
jmp 0x14020fda6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x31d360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14020fd79
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14020fdc3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401f08b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret