joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063b90
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140063bc4
mov rax, qword [r12 + 8]
test rax, rax
je 0x140063cbc
mov eax, ebx
not eax
test eax, 0x300
je 0x140063cbc
cmp edi, 2
lea rax, [0x14013d920]
lea rcx, [0x14013db20]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140063cbc
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x140063cbc
cmp byte [0x14013d910], 0
setne al
bt ebx, 8
jb 0x140063cbc
shr ebx, 9
and ebx, 1
or bl, al
je 0x140063cbc
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x140063d17
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x140063ca9
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.1400a1448
test eax, eax
je 0x140063cdb
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x140063c8b
cmp dword [rsp + 0x2c], 0
jne 0x140063d1f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008a8f0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp cx, 0x5c
je 0x140063cea
test cx, cx
jne 0x140063ca9
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140063d47
cmp dword [rsp + 0x2c], 2
jne 0x140063d58
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140063d58
mov rbx, r12
jmp 0x140063c6c
cmp byte [r12 + 0x17], 0
js 0x140063d87
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140051620
jmp 0x140063cbc
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x140063d71
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x140063d5e
jmp 0x140063d74
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x140063cb0
mov rax, qword [r12]
jmp 0x140063d2a

Function at 0x1400654f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013df98]
cmp rdi, 1
jbe 0x140065519
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400780a0
lea rcx, [0x14013df98]
call fcn.1400746e0
test al, al
je 0x14006555f
mov qword [0x14013dfa0], 0
lea rbx, [0x14013df98]
lea rdi, [0x14013dfa0]
mov rcx, rdi
xor edx, edx
call fcn.140057c60
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140055330
jmp 0x140065507
mov rdi, qword [0x14013df98]
jmp 0x140065507
Function at 0x140078060
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140134060]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140078094
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140078094
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14007808e

Function at 0x1400780a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140134060]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400780de
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 0x1400780d7
call fcn.140057a50
jmp 0x1400780be

Function at 0x140078640
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140078687
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400786a1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14007867f
mov qword [rsi], rdi
call fcn.1400747e0
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 0x1400786b7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400747e0
mov rcx, qword [rsi]
call fcn.1400789c0
mov qword [rsi], 0
jmp 0x14007866d
int3

Function at 0x14007b0d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14007b10c
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 0x14007b116
add rdi, rbx
sub rsi, rbx
jne 0x14007b0ea
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14007b4a0
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140078990
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14013d0d8]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14007b4fd
jnp 0x14007b562
ucomisd xmm0, xmm6
jne 0x14007b509
jnp 0x14007b68c
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401163e0]
subpd xmm1, xmmword [0x1401163f0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140119610]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008a8f0
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 [0x14013d0e8]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007b693
mov eax, dword [0x14013d0f8]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007b6cd
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 [0x14013d0f0]
movq xmm1, rbp
punpckldq xmm1, xmmword [0x1401163e0]
subpd xmm1, xmmword [0x1401163f0]
haddpd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140119608]
ucomisd xmm2, xmm1
ja 0x14007b4fd
shl r15, 0x20
or r14, r15
sub r14, qword [0x14013d0e0]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1401163e0]
subpd xmm0, xmmword [0x1401163f0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14013d0d8], xmm0
jmp 0x14007b4fd
xor eax, eax
jmp 0x14007b53b
lea rcx, [0x14013d0e8]
call fcn.140089660
cmp dword [0x14013d0e8], 0xffffffff
jne 0x14007b5ac
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14013d0e0], rdx
lea rcx, [0x14013d0e8]
call fcn.1400896f8
jmp 0x14007b5ac
lea rcx, [0x14013d0f8]
call fcn.140089660
cmp dword [0x14013d0f8], 0xffffffff
jne 0x14007b5d1
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14013d0f0], rax
lea rcx, [0x14013d0f8]
call fcn.1400896f8
jmp 0x14007b5d1
Function at 0x14007f0b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013d5b0]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007f111
mov rax, qword [0x14013d5a8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008a8f0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013d5b0]
call fcn.140089660
cmp dword [0x14013d5b0], 0xffffffff
jne 0x14007f0ec
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008ca10
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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, 0x80
call fcn.140089504
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013d5f8]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007f1d1
lea r8, [0x14013d5c8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140060a50
mov qword [0x14013d5a8], rsi
lea rcx, [0x14013d5b0]
call fcn.1400896f8
jmp 0x14007f0ec
lea rcx, [0x14013d5f8]
call fcn.140089660
cmp dword [0x14013d5f8], 0xffffffff
jne 0x14007f1a2
xorps xmm0, xmm0
movups xmmword [0x14013d5e8], xmm0
movups xmmword [0x14013d5d8], xmm0
movups xmmword [0x14013d5c8], xmm0
lea rcx, [0x14013d5c8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013d5f8]
call fcn.1400896f8
jmp 0x14007f1a2
Function at 0x14007f690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x14007f773
test rax, rax
jne 0x14007f762
cmp dword [rsi + 0x50], 0
jne 0x14007f762
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x14007f7b3
lea rdi, [rsi + 0x20]
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140071be0
cmp rax, 0xffffffffffffffff
jne 0x14007f7a1
cmp dword [rsi + 0x58], 1
je 0x14007f77c
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x14007f7b9
movabs r14, 0x100003600
nop dword [rax]
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140071be0
cmp rax, 0xffffffffffffffff
jne 0x14007f7b9
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x14007f751
inc rax
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x14007f720
jmp 0x14007f7b9
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x14007f742
bt r14, rcx
jae 0x14007f742
jmp 0x14007f7b9
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400e8700
mov rax, qword [rsi + 0x40]
jmp 0x14007f6a8
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x14007f6ff
movabs rcx, 0x100003600
bt rcx, rax
jae 0x14007f6ff
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x14007f6d5
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400801c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14013df70]
cmp rsi, 1
jbe 0x1400801e3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400780a0
lea rcx, [0x14013df70]
call fcn.1400746e0
test al, al
je 0x140080229
mov qword [0x14013df78], 0
lea rdi, [0x14013df70]
lea rsi, [0x14013df78]
mov rcx, rsi
xor edx, edx
call fcn.140057c60
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140055330
jmp 0x1400801d3
mov rsi, qword [0x14013df70]
jmp 0x1400801d3

Function at 0x1400859f0
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 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 0x140085a87
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140085a71
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140085a4e
mov qword [rsi], rdi
call fcn.1400747e0
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 0x140085a8b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400747e0
mov rcx, qword [rsi]
call fcn.1400789c0
mov qword [rsi], 0
jmp 0x140085a3c
mov byte [rsi + 8], 1
int3
Function at 0x140085fb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14013dfb0]
cmp rsi, 1
jbe 0x140085fd3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400780a0
lea rcx, [0x14013dfb0]
call fcn.1400746e0
test al, al
je 0x140086019
mov qword [0x14013dfb8], 0
lea rdi, [0x14013dfb0]
lea rsi, [0x14013dfb8]
mov rcx, rsi
xor edx, edx
call fcn.140057c60
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140055330
jmp 0x140085fc3
mov rsi, qword [0x14013dfb0]
jmp 0x140085fc3

Function at 0x140086440
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013dfe0]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140086475
lea rcx, [0x14013dfd8]
add rsp, 0x28
jmp fcn.140078060
lea rcx, [0x14013dfe0]
call fcn.140089660
cmp dword [0x14013dfe0], 0xffffffff
jne 0x140086465
mov qword [0x14013dfd8], 0
lea rcx, [0x14013dfd8]
xor edx, edx
call fcn.140057c60
lea rcx, [0x14013dfe0]
call fcn.1400896f8
jmp 0x140086465

Function at 0x140089360
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013e058]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400893c6
lea rcx, [0x14013e050]
xor edx, edx
call fcn.1400780a0
mov eax, dword [0x14013e068]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140089402
lea rcx, [0x14013e060]
xor edx, edx
add rsp, 0x28
jmp fcn.1400780a0
lea rcx, [0x14013e058]
call fcn.140089660
cmp dword [0x14013e058], 0xffffffff
jne 0x140089385
mov qword [0x14013e050], 0
lea rcx, [0x14013e050]
xor edx, edx
call fcn.140057c60
lea rcx, [0x14013e058]
call fcn.1400896f8
jmp 0x140089385
lea rcx, [0x14013e068]
call fcn.140089660
cmp dword [0x14013e068], 0xffffffff
jne 0x1400893b4
mov qword [0x14013e060], 0
lea rcx, [0x14013e060]
xor edx, edx
call fcn.140057c60
lea rcx, [0x14013e068]
call fcn.1400896f8
jmp 0x1400893b4

Function at 0x140089450
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14013e078]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008948d
lea rcx, [0x14013e070]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400780a0
lea rcx, [0x14013e078]
call fcn.140089660
cmp dword [0x14013e078], 0xffffffff
jne 0x140089479
mov qword [0x14013e070], 0
lea rcx, [0x14013e070]
xor edx, edx
call fcn.140057c60
lea rcx, [0x14013e078]
call fcn.1400896f8
jmp 0x140089479
Function at 0x140098ef4
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.14009d1b0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009d1b0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140099044
cmp rax, 0xffffffffffffffff
je 0x140099044
xor edi, edi
test rbp, rbp
jle 0x140098fef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140078b10
mov rbx, rax
test rax, rax
jne 0x140098f7c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140098fe5
mov edx, 0x8000
mov ecx, r14d
call fcn.14009e2c8
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.1400a1a7c
cmp eax, 0xffffffff
je 0x140098fc5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140098f8c
mov edx, r15d
mov ecx, r14d
call fcn.14009e2c8
jmp 0x140098fe5
cmp byte [rsi + 0x38], dil
je 0x140098fdc
cmp dword [rsi + 0x34], 5
jne 0x140098fdc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140098fe5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140078a70
jmp 0x140099058
jns 0x140099058
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009d1b0
cmp rax, 0xffffffffffffffff
jne 0x140099010
cmp byte [rsi + 0x30], dil
je 0x140099058
mov edi, dword [rsi + 0x2c]
jmp 0x140099058
mov ecx, r14d
call fcn.14009c1bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140099058
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140099058
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140099051
mov eax, dword [rsi + 0x2c]
jmp 0x140099056
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009d1b0
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 0x14009de88
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140136390]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14009dee6
cmp word [rdx], r12w
jne 0x14009dee6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14009deec
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14009e047
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14009e022
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14009df25
mov rcx, r9
jmp 0x14009df48
cmp r9, rdx
jae 0x14009df5f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14009df09
jmp 0x14009e047
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009e01c
cmp dword [rsp + 0x80], edi
je 0x14009e01c
mov rdx, r14
lea r11, [0x140136390]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14009dff5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14009dfc8
mov word [rbx], r12w
jmp 0x14009e043
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14009dfd1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14009e043
cmp word [rsp + 0x70], r12w
jne 0x14009e002
cmp rbx, rsi
je 0x14009dfc2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14009d1b0
cmp word [rsp + 0x70], r12w
je 0x14009e047
mov word [rbx], r13w
jmp 0x14009e043
lea r11, [0x140136390]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14009e03f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14009e047
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a5c5c
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.14008a890
sub rsp, rax
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009c160
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a5cab
mov rax, rbp
jmp 0x1400a5db3
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, sym.chrome_pwa_launcher.exe_Ordinal_0
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x136390]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009d254
mov r13, rax
lea rax, sym.chrome_pwa_launcher.exe_Ordinal_0
mov rcx, qword [rax + rbx*8 + 0x136390]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a5daf
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 0x1400a5daf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009d254
test rax, rax
js 0x1400a5daf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a5daf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a5da1
lea r8, sym.chrome_pwa_launcher.exe_Ordinal_0
cmp rcx, rdx
jae 0x1400a5da1
cmp byte [rcx], 0xd
jne 0x1400a5d87
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a5d96
cmp byte [rcx + 1], 0xa
jne 0x1400a5d96
inc rcx
jmp 0x1400a5d96
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x12c310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a5d69
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a5db3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008a8f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret