joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c6940
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140955a48]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, SafeArrayGetLBound
lea r8, [0x1400c685c]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14011c9a0
xor r8d, r8d
mov qword [0x14095cb50], rax
xor edx, edx
mov ecx, ebx
call fcn.14011c700
xor ebx, ebx
mov qword [0x1409d79c0], rax
cmp word [0x14095cb48], bx
jne 0x1400c6a75
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400c69ba
movzx eax, di
jmp 0x1400c69bc
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x14095cb48], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14095cb58], rax
test rax, rax
je 0x1400c6a75
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095cb58]
lea rdx, str.freeaddrinfo
mov qword [0x14095cb28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095cb58]
lea rdx, str.getnameinfo
mov qword [0x14095cb30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095cb58]
lea rdx, str.WSAStringToAddressA
mov qword [0x14095cb38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14095cb28], rbx
mov qword [0x14095cb40], rax
je 0x1400c6a75
cmp qword [0x14095cb30], rbx
je 0x1400c6a75
cmp qword [0x14095cb38], rbx
je 0x1400c6a75
mov ecx, dword [0x14095cb4c]
test rax, rax
cmovne ecx, edi
mov dword [0x14095cb4c], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401b01d0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1400c6c38
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 0x1400c6d00
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
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 0x1400c6d00
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14095a988]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400c6cf7
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 0x1400c6ce5
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.1400c6f0c
mov rbx, rax
mov rcx, qword [0x14095a988]
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 0x1400ef250
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x1409d5160], 0
jne 0x1400ef327
lea rdx, [0x1409d4c58]
mov dword [0x1409d5160], 1
xor ecx, ecx
mov dword [0x1409d7a40], 0x40
call fcn.14015fe80
test eax, eax
jne 0x1400ef327
lea edx, [rax + 0x40]
lea ecx, [rdx + 0x40]
lea r8, [0x1400ef180]
call fcn.14011c9a0
mov rcx, qword [0x14095a988]
mov edx, 8
mov qword [0x1409d4c48], rax
movsxd rax, dword [0x1409d7a40]
imul r8, rax, 0x468
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x1409d4c58]
mov qword [0x1409d7a60], rax
call fcn.14015fe20
mov rcx, rax
mov qword [0x1409d7a20], rax
call fcn.14015d560
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400ef740]
mov edx, 0x2000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400ef31d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1409d4c50], 1
mov rax, qword [0x1409d4c48]
add rsp, 0x38
ret

Function at 0x1400efee0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov ebp, edx
mov rsi, rcx
call fcn.140150c20
lea rax, [0x140956620]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140150f90
test eax, eax
jne 0x1400effd8
mov ecx, 0x20000
mov qword [rsi + 0x60], 0
call fcn.1401b0a84
mov ecx, 0x20000
mov qword [rsi + 0x48], rax
call fcn.1401b0a84
mov rcx, qword [rsi + 0x48]
mov edx, 0x20000
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x74], ebx
mov rbx, qword [rsp + 0x78]
mov dword [rsi + 0x70], edi
mov r8, rbx
mov rdi, qword [rsp + 0x70]
mov dword [rsi + 0x68], 1
mov dword [rsi + 0x6c], ebp
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0x88], rbx
call rdi
mov rcx, qword [rsi + 0x50]
mov r8, rbx
mov edx, 0x20000
mov dword [rsi + 0x58], eax
call rdi
lea rcx, [rsp + 0x50]
mov dword [rsi + 0x5c], eax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400efff0]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400effd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [rsi + 0x78], 1
jmp 0x1400effda
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400f2274
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 [0x1409d76c0]
call fcn.14011c870
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400f22f4
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400f22b9
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400f22f4
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.14011d8f0
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.14008730c
sub edi, eax
mov ecx, edi
call fcn.14011d9a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f30a8
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 0x1400f3750
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140955a48]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx]
lea rdx, [rbp - 0x18]
xor r12d, r12d
mov r13d, r12d
call qword [sym.imp.USER32.dll_GetClientRect]
test rbx, rbx
jne 0x1400f37a4
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.1400fad9c
test byte [rdi + 0x28], 8
mov qword [rbp - 0x20], rax
je 0x1400f38d8
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rdi], rax
jne 0x1400f38d8
mov r15d, dword [rbp - 0x10]
mov r14d, dword [rbp - 0xc]
sub r15d, dword [rbp - 0x18]
sub r14d, dword [rbp - 0x14]
test r15d, r15d
jle 0x1400f392a
test r14d, r14d
jle 0x1400f392a
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x1400f392a
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
test rax, rax
je 0x1400f38cd
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 0x1400f3862
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 0x1400f387a
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x18]
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
add dword [rbp - 0x18], 2
lea rdx, [rbp - 0x18]
add dword [rbp - 0x14], 2
mov rcx, rsi
sub dword [rbp - 0x10], 2
sub dword [rbp - 0xc], 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 0x1400f392a
mov r9, qword [rdi + 0x20]
test r9, r9
je 0x1400f3912
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 0x1400f392a
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x18]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.1400fad78
test r13d, r13d
je 0x1400f3947
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401b01d0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f396c
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.1400fb050
mov rcx, rax
call fcn.1400fd6d0
mov rcx, qword [0x1409d5308]
mov r14, rax
call fcn.14011cae4
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, SafeArrayGetLBound
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.1400f30a8
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, [0x1400f3aa4]
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.140101c4c
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 0x1400fa0a8
Capabilities:
Get graphical window text

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 r14
sub rsp, 0x20
mov r14, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
or rbp, 0xffffffffffffffff
mov rsi, rax
cmp rax, rbp
je 0x1400fa15c
mov rcx, qword [r14]
lea edx, [rbp - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x1400fa15c
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x14095a988]
xor edx, edx
movsxd rbx, eax
lea r8, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
lea r8d, [rbx + 1]
xor eax, eax
mov rdx, rdi
mov word [rdi], ax
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [r14]
mov r9, rdi
mov r8, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x14095a988]
mov r8, rdi
cmp rax, rbp
cmove rsi, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400fe5a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140955a48]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r13d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x1400fe65f
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400fe65f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x20], eax
jne 0x1400fe65f
mov rcx, qword [0x1409d76e0]
lea rdx, [rsi - 1]
call fcn.14011c870
mov rbx, rax
lea ebp, [r13 - 8]
cmp dword [rax + 0x20], 0
jle 0x1400fe65f
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r13w
jne 0x1400fe64f
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x1400fe65d
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x1400fe65f
jmp 0x1400fe63c
xor ebp, ebp
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x1400fe72f
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400fe72f
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fe72f
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fe72f
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fe72f
mov r8d, SafeArrayGetLBound
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x1400fe72f
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x28]
call fcn.140088d84
test eax, eax
je 0x1400fe6ff
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x28]
call fcn.140088d84
test eax, eax
jne 0x1400fe71a
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x1400fe796
lea rdx, str.Scintilla
lea rcx, [rsp + 0x28]
call fcn.14008e6d4
test eax, eax
je 0x1400fe796
test r14, r14
je 0x1400fe771
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fe764
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fe764
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400fe771
mov edx, 1
mov rcx, r14
call fcn.1400fe7c0
test rdi, rdi
je 0x1400fe78b
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x1400fe796
test rbx, rbx
je 0x1400fe796
mov rax, qword [rbx + 0x10]
jmp 0x1400fe798
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401b01d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x1400fedb8
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140955a48]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
test rcx, rcx
je 0x1400fee54
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1401d02bc
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.14008730c
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x1400fee40
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x1400fee40
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x1400fee40
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1400fee12
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x1400fee56
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401b01d0
add rsp, 0x240
pop rbx
ret

Function at 0x1400fee70
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140955a48]
xor rax, rsp
mov qword [rbp + 0x380], rax
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x1400ff001
cmp word [rcx], di
je 0x1400ff001
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rbp + 0x170]
call fcn.1401d02bc
lea rcx, [rbp + 0x170]
mov word [rbp + 0x378], di
call fcn.14008730c
mov rdx, rax
cdqe
lea rcx, [rbp + rax*2 + 0x16e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400fef34
cmp word [rbp + 0x172], 0x3a
jne 0x1400fef34
cmp edx, 2
jne 0x1400fef12
lea rdx, [0x14021e528]
lea rcx, [rbp + 0x170]
call fcn.1401d0304
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400ff001
mov rbx, 0xfffffffffffffffe
jmp 0x1400ff001
cmp word [rcx], 0x5c
je 0x1400fef40
cmp word [rcx], 0x2f
jne 0x1400fef49
mov word [rcx], di
sub rcx, 2
jmp 0x1400fef34
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400fef8a
test byte [rsp + 0x20], 0x10
je 0x1400fef73
mov rbx, 0xfffffffffffffffe
jmp 0x1400fef82
mov ebx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x40]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400ff001
movzx ecx, word [rbp + 0x170]
movzx eax, word [rbp + 0x172]
cmp cx, 0x5c
jne 0x1400fefa3
cmp ax, cx
je 0x1400fefb9
cmp cx, 0x2f
jne 0x1400fefae
cmp ax, cx
je 0x1400fefb9
cmp cx, 0x2e
jne 0x1400ff001
cmp ax, cx
jne 0x1400ff001
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fefe0
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x1400ff001
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1401b01d0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400ff028
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x1400ff03b
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret
Function at 0x1400ff040
Capabilities:
Delete file
Set file attributes

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

Function at 0x1400ff180
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 [0x1409d6150]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x1400ff1d2
lea r8, [fcn.1400ff2f8]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.14011c9a0
mov qword [0x1409d6150], rax
mov rdx, rdi
mov rcx, rax
call fcn.14011c8d0
mov rbx, rax
test rax, rax
je 0x1400ff2d5
test r14, r14
lea r15, [0x140222000]
cmovne r15, r14
test rbp, rbp
je 0x1400ff203
cmp word [rbp], r13w
jne 0x1400ff20a
lea rbp, [0x14023de30]
mov rcx, r15
call fcn.14008730c
mov rcx, rbp
mov r12, rax
call fcn.14008730c
mov rcx, qword [0x14095a988]
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 0x1400ff2be
mov rdx, r15
mov rcx, rax
call fcn.1401d02a0
test r12d, r12d
je 0x1400ff26b
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x1400ff26b
lea rdx, [0x14021e528]
mov rcx, r14
call fcn.1401d0304
mov rdx, rbp
mov rcx, r14
call fcn.1401d0304
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400ff292
mov dword [rbx + 8], r13d
jmp 0x1400ff2a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400ff2a7
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x14095a988]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x1400ff2d5
mov rcx, qword [0x1409d6150]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14011c804
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 0x1400ff45c
Capabilities:
Set current directory

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

Function at 0x1400ff588
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400ff5a3
test rdx, rdx
je 0x1400ff5a3
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400ff5a5
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ff9e8
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.14011d8f0
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 0x1400ffa37
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x1400ffa37
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.14011d9a0
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 0x1400ffa5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400ffa74
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ffa74
mov eax, eax
jmp 0x1400ffa78
or rax, 0xffffffffffffffff
add rsp, 0x28
ret

Function at 0x1400ffa80
Capabilities:
Set file attributes

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

Function at 0x1400ffb74
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [r11 + 0x10]
mov edx, ecx
mov qword [r11 - 0x18], rax
xor esi, esi
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x1400ffbe6
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400ffbdb
mov rcx, rdi
call fcn.14008730c
mov rbx, rax
test eax, eax
je 0x1400ffbdb
movsxd rax, ebx
lea ecx, [rsi + 0x5c]
cmp word [rdi + rax*2 - 2], cx
je 0x1400ffbdb
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1401002e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1409d80a0]
call fcn.14011c870
mov rbx, rax
test rax, rax
je 0x140100333
cmp qword [rax + 8], 0
je 0x140100312
cmp dword [rax + 0x1c], 0
jne 0x140100312
mov rcx, rax
call fcn.140100460
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret