joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078ca4
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x1400b6110
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r9d
mov edi, ecx
mov r13d, r8d
mov ebp, eax
mov r14d, eax
cmp edx, 0x18
je 0x1400b624c
cmp edx, 2
je 0x1400b624c
mov rcx, qword [0x140895788]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x34]
mov rbx, rax
lea r8d, [rcx + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400b6235
mov r15, qword [rsp + 0x90]
mov esi, ecx
mov r12d, edi
cmp dword [rsp + 0x38], 2
jne 0x1400b622d
cmp r13d, 0xffffffff
je 0x1400b61ba
cmp r14d, r13d
jae 0x1400b622d
add r14d, 2
test edi, edi
jne 0x1400b61e5
mov rcx, qword [0x140895788]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x1400b622d
cmp ax, 0xd
je 0x1400b6205
mov word [rsi + rbx], ax
inc ebp
add rsi, 2
inc r12d
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x34]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x1400b61a8
mov r15d, dword [rsp + 0xa8]
movsxd rax, ebp
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1400b6bb0
jmp 0x1400b631e
mov r8, rcx
xor edx, edx
mov rcx, qword [0x140895788]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov r13d, edi
mov rsi, qword [rsp + 0x90]
mov rbx, rax
xor eax, eax
mov r12d, eax
jmp 0x1400b627d
xor eax, eax
cmp r15d, 0xffffffff
je 0x1400b6288
cmp r14d, r15d
jae 0x1400b62f2
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b62f2
cmp dword [rsp + 0x38], 1
jne 0x1400b62f2
inc r14d
test edi, edi
jne 0x1400b62d6
mov rcx, qword [0x140895788]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
mov edi, 0x1000
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400b62f2
cmp al, 0xd
je 0x1400b627b
mov byte [r12 + rbx], al
inc ebp
inc r12
inc r13d
dec edi
jmp 0x1400b627b
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
mov edx, r15d
movsxd rax, ebp
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400b6319
call fcn.1400b6a40
jmp 0x1400b631e
call fcn.14009a3b0
mov rcx, qword [0x140895788]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007a004
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, SafeArrayGetElemsize
lea r8, [0x140079f20]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14008f9c0
xor r8d, r8d
mov qword [0x1408964e0], rax
xor edx, edx
mov ecx, ebx
call fcn.14008ccd0
xor ebx, ebx
mov qword [0x1408964f0], rax
cmp word [0x1408964d8], bx
jne 0x14007a127
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14007a06c
movzx eax, di
jmp 0x14007a06e
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1408964d8], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1408964e8], rax
test rax, rax
je 0x14007a127
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408964e8]
lea rdx, str.freeaddrinfo
mov qword [0x1408964b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408964e8]
lea rdx, str.getnameinfo
mov qword [0x1408964c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408964e8]
lea rdx, str.WSAStringToAddressA
mov qword [0x1408964c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1408964b8], rbx
mov qword [0x1408964d0], rax
je 0x14007a127
cmp qword [0x1408964c0], rbx
je 0x14007a127
cmp qword [0x1408964c8], rbx
je 0x14007a127
mov ecx, dword [0x1408964dc]
test rax, rax
cmovne ecx, edi
mov dword [0x1408964dc], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x14007a1e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x14007a2a8
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x14007a2a8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x140895788]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14007a29f
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x68], ebp
jne 0x14007a28d
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.1400c8360
mov rbx, rax
mov rcx, qword [0x140895788]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14007a930
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x140896a18], 0
jne 0x14007aa07
lea rdx, [0x140896510]
mov dword [0x140896a18], 1
xor ecx, ecx
mov dword [0x140896a1c], 0x40
call fcn.1400d9ea0
test eax, eax
jne 0x14007aa07
lea edx, [rax + 0x40]
lea ecx, [rdx + 0x40]
lea r8, [0x14007a7b0]
call fcn.14008f9c0
mov rcx, qword [0x140895788]
mov edx, 8
mov qword [0x140896500], rax
movsxd rax, dword [0x140896a1c]
imul r8, rax, 0x470
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x140896510]
mov qword [0x140896a20], rax
call fcn.1400daf60
mov rcx, rax
mov qword [0x140896a28], rax
call fcn.1400d6ac0
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14007a890]
mov edx, 0x2000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14007a9fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x140896508], 1
mov rax, qword [0x140896500]
add rsp, 0x38
ret
Function at 0x14007b924
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx]
lea rdx, [rbp - 0x10]
xor r12d, r12d
mov r13d, r12d
call qword [sym.imp.USER32.dll_GetClientRect]
test rbx, rbx
jne 0x14007b972
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
lea r13d, [r12 + 1]
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.1401019c8
test byte [rdi + 0x28], 8
mov qword [rbp + 0x30], rax
je 0x14007baa6
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rdi], rax
jne 0x14007baa6
mov r15d, dword [rbp - 8]
mov r14d, dword [rbp - 4]
sub r15d, dword [rbp - 0x10]
sub r14d, dword [rbp - 0xc]
test r15d, r15d
jle 0x14007baf8
test r14d, r14d
jle 0x14007baf8
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x14007baf8
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
test rax, rax
je 0x14007ba9b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9, qword [rdi + 0x20]
xor eax, eax
test r9, r9
je 0x14007ba30
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], eax
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x14007ba48
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
add dword [rbp - 0x10], 2
lea rdx, [rbp - 0x10]
add dword [rbp - 0xc], 2
mov rcx, rsi
sub dword [rbp - 8], 2
sub dword [rbp - 4], 2
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r15d
and dword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14007baf8
mov r9, qword [rdi + 0x20]
test r9, r9
je 0x14007bae0
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], r12d
xor edx, edx
mov dword [rsp + 0x38], r12d
mov rcx, rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x14007baf8
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
call fcn.140101b34
test r13d, r13d
je 0x14007bb15
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14007bb44
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 2
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 4
or edi, 2
bt ax, 0xf
cmovae edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [rsp + 0x30]
movzx ecx, ax
mov rsi, qword [rsp + 0x38]
mov eax, edi
or eax, 4
bt cx, 0xf
cmovae eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14007bba8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12d, r9d
mov ebp, r8d
mov r13, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetMessagePos]
mov rcx, qword [rdi]
mov edx, 0xfffffff4
mov ebx, eax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, qword [rdi]
mov r15, rax
call fcn.1401017d4
mov rcx, rax
call fcn.140083dd0
mov rcx, qword [0x140896a78]
mov r14, rax
call fcn.14008fcc4
movsx ecx, bx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov rsi, rax
shr ebx, 0x10
movsx ecx, bx
mov dword [rsp + 0x64], ecx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, SafeArrayGetLBound
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
or edi, 2
bt ax, 0xf
cmovae edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [rsp + 0x60]
movzx ebx, ax
mov eax, 0x8000
mov dword [rsi], ecx
mov ecx, dword [rsp + 0x64]
and bx, ax
mov dword [rsi + 4], ecx
call fcn.14007bb44
mov dword [rsi + 8], eax
mov ecx, edi
movzx eax, word [rsp + 0x80]
or ecx, 4
test bx, bx
mov dword [rsi + 0x18], eax
lea rax, [0x14007bb34]
mov dword [rsi + 0xc], ebp
cmove ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsi + 0x10], ecx
mov r9, r13
mov ecx, 0x332c
mov dword [rsi + 0x14], r12d
mov r8, r14
mov qword [rsp + 0x20], rsi
mov rdx, r15
call fcn.1401008c8
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007d098
Capabilities:
Get graphical window text

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 rsi, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
or r15, 0xffffffffffffffff
mov rbp, rax
cmp rax, r15
je 0x14007d158
mov rcx, qword [rsi]
lea edx, [r15 - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x14007d158
xor r14d, r14d
cmp qword [rsi + 0x30], r14
jne 0x14007d158
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x140895788]
xor edx, edx
movsxd rbx, eax
lea r8, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8d, [rbx + 1]
mov rdx, rax
mov rdi, rax
mov word [rax], r14w
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rsi]
mov r9, rdi
mov r8, r15
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140895788]
mov r8, rdi
cmp rax, r15
cmove rbp, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14007f840
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140897078]
call fcn.14008f870
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14007f8c0
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14007f885
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14007f8c0
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.1400994a0
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.14009904c
sub edi, eax
mov ecx, edi
call fcn.14009a290
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140084a54
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140084a6f
test rdx, rdx
je 0x140084a6f
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x140084a71
xor eax, eax
add rsp, 0x28
ret

Function at 0x140084a78
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140084b02
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14009a244
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.14009904c
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140084aee
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140084aee
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140084aee
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140084ac0
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140084b04
xor eax, eax
add rsp, 0x230
pop rbx
ret
Function at 0x140084e80
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140084eab
test dl, 2
je 0x140084e9e
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140084ead
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140084eb4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140084ec7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret

Function at 0x140084ff4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x140897a80]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x140085046
lea r8, [fcn.140084fb0]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.14008f9c0
mov qword [0x140897a80], rax
mov rdx, rdi
mov rcx, rax
call fcn.14008f7a0
mov rbx, rax
test rax, rax
je 0x140085149
test r14, r14
lea r15, [0x1401a1330]
cmovne r15, r14
test rbp, rbp
je 0x140085077
cmp word [rbp], r13w
jne 0x14008507e
lea rbp, [0x1401a7be0]
mov rcx, r15
call fcn.14009904c
mov rcx, rbp
mov r12, rax
call fcn.14009904c
mov rcx, qword [0x140895788]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140085132
mov rdx, r15
mov rcx, rax
call fcn.140099030
test r12d, r12d
je 0x1400850df
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x1400850df
lea rdx, [0x1401a12a4]
mov rcx, r14
call fcn.1400b6344
mov rdx, rbp
mov rcx, r14
call fcn.1400b6344
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140085106
mov dword [rbx + 8], r13d
jmp 0x140085118
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14008511b
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x140895788]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x140085149
mov rcx, qword [0x140897a80]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14008f954
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400851c8
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140085339
cmp word [rcx], di
je 0x140085339
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14009a244
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.14009904c
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14008526e
cmp word [rsp + 0x22], 0x3a
jne 0x14008526e
cmp edx, 2
jne 0x14008524e
lea rdx, [0x1401a12a4]
lea rcx, [rsp + 0x20]
call fcn.1400b6344
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140085339
mov rbx, 0xfffffffffffffffe
jmp 0x140085339
cmp word [rcx], 0x5c
je 0x14008527a
cmp word [rcx], 0x2f
jne 0x140085283
mov word [rcx], di
sub rcx, 2
jmp 0x14008526e
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400852ca
test byte [rbp + 0x130], 0x10
je 0x1400852af
mov rbx, 0xfffffffffffffffe
jmp 0x1400852c2
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140085339
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x1400852df
cmp ax, cx
je 0x1400852f5
cmp cx, 0x2f
jne 0x1400852ea
cmp ax, cx
je 0x1400852f5
cmp cx, 0x2e
jne 0x140085339
cmp ax, cx
jne 0x140085339
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008531a
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x140085339
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140085370
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.1400994a0
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x1400853bf
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x1400853bf
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.14009a290
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400853e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400853fc
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400853fc
mov eax, eax
jmp 0x140085400
or rax, 0xffffffffffffffff
add rsp, 0x28
ret
Function at 0x14008562c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14008563f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x140085641
xor eax, eax
add rsp, 0x28
ret

Function at 0x140085648
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140085659
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x140085720
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140085764
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140085770
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x140897a88]
jne 0x140085790
add rsp, 0x30
pop rdi
jmp fcn.14008fa48
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.14008f870
mov rbx, rax
test rax, rax
je 0x140085805
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400857ed
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x1400857da
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x140895788]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140897a88]
mov rdx, rdi
call fcn.14008f954
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140085f30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x140897a88]
mov dword [rsp + 0x50], edi
call fcn.14008f870
mov rbx, rax
test rax, rax
je 0x140085fd5
cmp qword [rax + 8], rdi
je 0x140085f97
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.1401053a0
test rax, rax
je 0x140085f84
inc dword [rbx + 0x14]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140085fe5
cmp dword [rsp + 0x58], edi
je 0x140085fe5
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
cdqe
add rsp, 0x30
pop rdi
ret