joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.14024a310

Function at 0x140026250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403df5c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002627d
xor eax, eax
jmp 0x1400263a1
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400262b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400262b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400263a1
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140026394
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400262fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140026309
movsx ecx, dil
jmp 0x14002633b
movzx eax, dil
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov byte [rsp + 0x40], al
mov r10, qword [rcx]
cmp r10, rdx
jne 0x1400263bf
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
movsx ecx, al
mov rdx, qword [rbx + 0x80]
call fcn.140226458
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140026399
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140026382
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140226a08
cmp rsi, rax
jne 0x140026394
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140026399
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401fe5e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [r10 + gethostname]
test eax, eax
js 0x140026394
cmp eax, 1
jle 0x140026355
cmp eax, 3
jne 0x140026394
movzx eax, byte [rsp + 0x40]
jmp 0x140026338
Function at 0x140026dd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1403df5c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140026e6f
cmp byte [rcx + 0x71], 0
je 0x140026e6f
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140026e36
mov rcx, qword [rbx + 0x68]
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rax, qword [rcx]
cmp rax, rdx
jne 0x140026e89
lea rdi, [rsp + 0x38]
xor eax, eax
mov qword [rsp + 0x30], rdi
test eax, eax
je 0x140026e3a
sub eax, 1
je 0x140026e3e
sub eax, 2
je 0x140026e6f
xor al, al
jmp 0x140026e71
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140026e66
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.140226a08
cmp rdi, rax
jne 0x140026e36
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140026e71
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401fe5e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x58]
call qword [rax + 0x40]
mov rdi, qword [rsp + 0x30]
jmp 0x140026e28

Function at 0x14002b050
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14002b084
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14002b070
ret
Function at 0x14009b760
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqa xmm2, xmmword [0x14039c8d0]
lea r9, [rcx + rdx]
movdqa xmm3, xmmword [0x14039c880]
movdqa xmm4, xmmword [0x14039c8f0]
movdqa xmm5, xmmword [0x14039c800]
cmp rcx, r9
jae 0x14009b7b4
add rcx, 0x20
nop dword [rax]
aesenc xmm2, xmmword [rcx - 0x20]
aesdec xmm3, xmmword [rcx - 0x10]
aesenc xmm4, xmmword [rcx]
aesdec xmm5, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x40]
lea rax, [rcx - 0x20]
cmp rax, r9
jb 0x14009b790
movdqa xmm0, xmmword [0x14039c600]
movdqa xmm1, xmmword [0x14039c900]
aesenc xmm2, xmm0
aesdec xmm3, xmm0
aesenc xmm2, xmm1
movdqu xmmword [r8], xmm2
aesenc xmm4, xmm0
aesdec xmm3, xmm1
movdqu xmmword [r8 + 0x10], xmm3
aesdec xmm5, xmm0
aesenc xmm4, xmm1
aesdec xmm5, xmm1
movdqu xmmword [r8 + 0x20], xmm4
movdqu xmmword [r8 + 0x30], xmm5
ret
Function at 0x14009ec90
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x11f0]
mov ecx, dword [0x14041a510]
movdqa xmm4, xmmword [0x14039c8a0]
add rcx, rax
movdqa xmm5, xmmword [0x14039c630]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm3, xmmword [rdx + 0x30]
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm6, xmmword [0x14039c670]
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x14039c7b0]
cmp rax, rcx
jae 0x14009ed20
nop word [rax + rax]
aesdec xmm0, xmm4
movdqu xmmword [rax], xmm0
aesenc xmm1, xmm5
movdqu xmmword [rax + 0x10], xmm1
aesdec xmm2, xmm6
movdqu xmmword [rax + 0x20], xmm2
aesenc xmm3, xmm7
movdqu xmmword [rax + 0x30], xmm3
add rax, 0x40
cmp rax, rcx
jb 0x14009ecf0
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp]
movdqu xmmword [rdx], xmm0
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x30], xmm3
add rsp, 0x28
ret

Function at 0x14009eda0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x68
mov eax, dword [0x14041a514]
add rcx, 0x40
movdqa xmm4, xmmword [0x14041a5a0]
movdqa xmm5, xmmword [0x14041a5b0]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
lea r8d, [rax*8 + 0x80]
movdqu xmm2, xmmword [rdx + 0x20]
add r8, rcx
movdqu xmm3, xmmword [rdx + 0x30]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x14041a5c0]
movaps xmmword [rsp + 0x40], xmm7
movdqa xmm7, xmmword [0x14041a5d0]
movaps xmmword [rsp + 0x30], xmm8
movdqa xmm8, xmmword [0x14041a5e0]
movaps xmmword [rsp + 0x20], xmm9
movdqa xmm9, xmmword [0x14041a5f0]
movaps xmmword [rsp + 0x10], xmm10
movdqa xmm10, xmmword [0x14041a600]
movaps xmmword [rsp], xmm11
movdqa xmm11, xmmword [0x14041a610]
cmp rcx, r8
jae 0x14009eeb4
nop word [rax + rax]
aesdec xmm0, xmm4
aesenc xmm1, xmm4
aesdec xmm2, xmm8
aesenc xmm3, xmm8
aesdec xmm0, xmm5
aesenc xmm1, xmm5
aesdec xmm2, xmm9
aesenc xmm3, xmm9
aesdec xmm0, xmm6
aesenc xmm1, xmm6
aesdec xmm0, xmm7
movdqu xmmword [rcx], xmm0
aesdec xmm2, xmm10
aesenc xmm1, xmm7
movdqu xmmword [rcx + 0x10], xmm1
aesenc xmm3, xmm10
aesdec xmm2, xmm11
movdqu xmmword [rcx + 0x20], xmm2
aesenc xmm3, xmm11
movdqu xmmword [rcx + 0x30], xmm3
add rcx, 0x40
cmp rcx, r8
jb 0x14009ee40
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x20]
movaps xmm10, xmmword [rsp + 0x10]
movaps xmm11, xmmword [rsp]
add rsp, 0x68
ret

Function at 0x14009ef20
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rcx + 0x11f0]
mov rax, rdx
mov edx, dword [0x14041a510]
mov rcx, rax
jmp fcn.14009c5d0
Function at 0x1400a7b00
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403df5c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x1400a7b4b
test cl, 1
jne 0x1400a7b4b
test cl, 4
je 0x1400a7b4b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x1400a7b4b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x1400a7cf6
bt eax, 0x19
jae 0x1400a7bb3
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov eax, reloc.WS2_32.dll_recv
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1400a7cf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400a7cf8
bt eax, 0x15
jb 0x1400a7cf6
mov rcx, qword [0x140428838]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400a7d1e
mov eax, 2
xchg dword [0x140428818], eax
cmp eax, 1
je 0x1400a7c09
mov rcx, qword [0x140428838]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x1400a7d1e
jmp 0x1400a7cef
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400a7c6c
lea rdx, [0x140428820]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1400a7c6c
lock or dword [0x14042881c], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x1400a7cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x1400a7cdf
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x1400a7cef
mov eax, edi
jmp 0x1400a7cf8
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401fe5e0
add rsp, 0x90
pop rbx
ret
call fcn.14022fe9c
int3
Function at 0x1400a7d80
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1403df5c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x1400a7dbe
mov eax, 0xffffffff
jmp 0x1400a7ee7
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400a7df3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x1403e0b6c]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x1403e0c5c], r11d
mov dword [0x1403e0b94], r8d
cmp eax, 0xffffffff
jne 0x1400a7e30
mov eax, r9d
jmp 0x1400a7e3d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x1400a7e52
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x1403e0b6c], eax
test r15b, r15b
jne 0x1400a7e6a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x1400a7e72
mov ecx, eax
jmp 0x1400a7e7f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x1400a7e7f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x1400a7e8b
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x1400a7e94
mov edx, r12d
jmp 0x1400a7e9d
cmp edx, r11d
jl 0x1400a7e9d
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400a7edb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1400a7dd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x1400a7edd
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401fe5e0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400aa350
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
test dword [rcx + 0x58], 0x8000
mov rbx, rdx
jne 0x1400aa36d
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400aa41f
cmp eax, 0xc
je 0x1400aa3cf
cmp eax, 0xe
je 0x1400aa38e
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1400aa41f
lea r9, [rsp + 0x50]
mov r8d, 1
call fcn.1400a87c0
test eax, eax
je 0x1400aa3bd
mov ecx, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
jmp fcn.1400b8610
mov edx, 1
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.1400aab80
cmp dword [rcx + 0x100], 0
ja 0x1400aa41f
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400aa415
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.1400b8610
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret
Function at 0x1400abe30
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x1400abe92
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.1400b8610
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x1400abeac
mov dword [rcx + 0x14c], 1
mov ecx, 1
jmp 0x1400ac05a
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x1400abebd
mov rcx, qword [rdx + 0x18]
mov r15, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r15
jl 0x1400abee0
mov qword [rdi + 0x88], r13
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, r13
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x1400abf0f
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop word [rax + rax]
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x1400abf00
sub r15, rcx
cmp r8, r15
cmovl r15, r8
test r15, r15
je 0x1400abec9
lea rbx, [r15 + rcx]
mov r8d, dword [0x140428848]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
sub rcx, rdx
add rax, r15
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x1400abf80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x1400ac05a
mov r14, r13
mov r12d, r13d
cmp r12d, dword [rdi + 0x170]
jae 0x1400ac00d
cmp r14, r15
jae 0x1400ac00d
mov dword [rsp + 0x30], r13d
mov ecx, r12d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov esi, dword [rcx]
mov rax, r15
sub rax, r14
cmp rsi, rax
cmovae rsi, rax
add rdx, r14
add rdx, qword [rsp + 0x50]
mov r8, rsi
mov rcx, qword [rcx + 8]
call fcn.14021ce50
nop
add r14, rsi
inc r12d
mov rdx, qword [rsp + 0xb8]
jmp 0x1400abf86
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400abf6d
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1400ac040
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0xb0]
call fcn.1400aafc0
mov qword [rdi + 0x88], r15
cmp r15, 0xffffffffffffffff
jne 0x1400ac069
call fcn.140227cfc
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.1400b8610
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400ac080
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov esi, dword [rcx + 0x150]
mov rdi, rcx
mov rbp, qword [rcx + 0x180]
cmp esi, 0xffffffff
jne 0x1400ac0c0
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.1400aaeb0
test eax, eax
je 0x1400ac0e8
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400abe30
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ecx, esi
mov qword [rsp + 0x80], r13
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x70], r15
call fcn.1402303a0
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ac133
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.1400b8610
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ac249
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], r14
cmp rbp, 0xffffffffffffffff
je 0x1400ac185
xor eax, eax
lea r8, [rsp + 0xb8]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x30]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ac188
mov r13d, 1
jmp 0x1400ac188
mov r12, rbx
mov esi, ebx
nop word [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1400ac1a7
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0xb0]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [rsp + 0xb0]
inc ebx
mov r14d, eax
test eax, eax
je 0x1400ac1ea
cmp ebx, dword [rdi + 0x170]
jb 0x1400ac190
mov r12, qword [rsp + 0x88]
test r13d, r13d
je 0x1400ac20e
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x78]
jne 0x1400ac240
test esi, esi
jne 0x1400ac240
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x1400ac240
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.1400b8610
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ac249
mov eax, esi
mov qword [rdi + 0x88], rax
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400acf30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x150]
mov rbp, rcx
mov rcx, rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400acf73
mov rax, 0xfffffffffffff02c
mov r8d, 0x10b
jmp 0x1400ad076
mov ecx, 0x290
call qword [fcn.140220234]
mov rsi, rax
test rax, rax
je 0x1400ad069
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400acf91
test rbx, rbx
jne 0x1400acfa9
lea r14, [0x14039bf90]
jmp 0x1400acfc8
movzx eax, word [rdi + rbx*2 - 2]
cmp ax, 0x5c
je 0x1400acfc1
lea r14, str._s
cmp ax, 0x2f
jne 0x1400acfc8
lea r14, [0x14039bf98]
lea rcx, [rbx*2 + 8]
test rcx, rcx
je 0x1400ad069
call qword [fcn.140220234]
mov r15, rax
test rax, rax
je 0x1400ad069
lea rdx, [rbx + 3]
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.1400aae50
lea rdx, [rsi + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi + 0x30], rax
call fcn.140227d1c
mov rcx, r15
mov ebx, dword [rax]
call qword [fcn.14021ff40]
call fcn.140227d1c
mov dword [rax], ebx
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x1400ad04b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ad04b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov r8d, eax
call fcn.1400b8610
cdqe
jmp 0x1400ad076
mov dword [rsi + 0x288], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], rsi
jmp 0x1400ad0bc
mov r8d, select
mov rax, 0xfffffffffffff027
mov dword [rbp + 0x14c], r8d
mov qword [rbp + 0x88], rax
call fcn.140227d1c
mov rcx, rsi
mov ebx, dword [rax]
call qword [fcn.14021ff40]
call fcn.140227d1c
mov dword [rax], ebx
call fcn.140227d1c
xor ecx, ecx
mov ebx, dword [rax]
call qword [fcn.14021ff40]
call fcn.140227d1c
mov dword [rax], ebx
mov qword [rbp + 0x90], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400aefc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov r14, rcx
test rcx, rcx
jne 0x1400aeffc
xor esi, esi
test rdx, rdx
je 0x1400aefe7
mov qword [rdx], rsi
mov qword [r8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1400af010
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x1400af039
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x1400af039
cmp ax, 0x2f
jne 0x1400af020
mov qword [rsp + 0x48], rbp
test rbx, rbx
jne 0x1400af094
test r15, r15
je 0x1400af086
mov ecx, 0x20a
call qword [fcn.140220234]
mov qword [r15], rax
test rax, rax
je 0x1400af133
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400af086
mov rcx, qword [r15]
call fcn.1400aa4a0
xor esi, esi
lea eax, [rbx - 1]
mov qword [r15], rsi
jmp 0x1400af114
mov rcx, r14
call fcn.140234678
mov qword [r12], rax
jmp 0x1400af112
xor esi, esi
test r15, r15
je 0x1400af0d2
lea rcx, [rbx*2 + 4]
test rcx, rcx
je 0x1400af0b0
call qword [fcn.140220234]
jmp 0x1400af0b3
mov rax, rsi
mov qword [r15], rax
test rax, rax
je 0x1400af133
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call fcn.140231254
mov rax, qword [r15]
mov word [rax + rbx*2 + 2], si
sub rdi, rbx
lea rbp, [rdi + rdi]
test rbp, rbp
je 0x1400af0e9
mov rcx, rbp
call qword [fcn.140220234]
jmp 0x1400af0ec
mov rax, rsi
mov qword [r12], rax
test rax, rax
je 0x1400af133
lea rdx, [r14 + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call fcn.140231254
mov rax, qword [r12]
mov word [rax + rbp - 2], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b8560
int3