joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024d40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x140024e3a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x140024d9b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x140024dfc
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x140024df4
sub edx, 1
je 0x140024deb
cmp edx, 2
je 0x140024de4
mov r8, rbx
mov rdx, r14
call fcn.14001f620
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x140024dca
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x140024dca
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x140024dca
mov rcx, rsi
call fcn.140024000
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x140024e2b
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x140024dd0
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x140024dc5
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024f10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x140024f46
mov r8d, ebx
call fcn.140024610
mov dword [rsp + 0x70], eax
jmp 0x140024f60
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x140025028
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x140024f86
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x140024fa2
mov ebp, 2
mov edi, ebp
jmp 0x140024fc9
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140024fb5
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x140024fc6
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14002501e
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x140024fe3
lea r8, [rdi - 1]
mov rcx, r14
call fcn.140024610
jmp 0x140025000
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x140025009
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret

Function at 0x14002c4c4
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 0x14002cb64
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 0x14002cbb2
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.140043798
test byte [rdi + 0x28], 8
mov qword [rbp + 0x30], rax
je 0x14002cce6
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rdi], rax
jne 0x14002cce6
mov r15d, dword [rbp - 8]
mov r14d, dword [rbp - 4]
sub r15d, dword [rbp - 0x10]
sub r14d, dword [rbp - 0xc]
test r15d, r15d
jle 0x14002cd38
test r14d, r14d
jle 0x14002cd38
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x14002cd38
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
test rax, rax
je 0x14002ccdb
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 0x14002cc70
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 0x14002cc88
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 0x14002cd38
mov r9, qword [rdi + 0x20]
test r9, r9
je 0x14002cd20
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 0x14002cd38
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.140043774
test r13d, r13d
je 0x14002cd55
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 0x14002cd74
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.14004366c
mov rcx, rax
call fcn.1400461a4
mov rcx, qword [0x140392e48]
mov r14, rax
call fcn.140060920
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, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x12
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x11
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.14002c4c4
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, [0x14002ceac]
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.140049fc4
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 0x140031eac
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 0x140031f6c
mov rcx, qword [rsi]
lea edx, [r15 - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x140031f6c
xor r14d, r14d
cmp qword [rsi + 0x30], r14
jne 0x140031f6c
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x140391b98]
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 [0x140391b98]
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 0x140034530
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140043a04
lea r9, [rsp + 0x20]
mov edx, 0xd
mov r8d, 0x104
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x20]
call fcn.140016160
dec eax
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x20], 0x5c
jne 0x140034596
xor eax, eax
mov word [rsp + rcx*2 + 0x20], ax
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400345de
test byte [rsp + 0x230], 0x10
je 0x1400345d3
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140034a34
mov rcx, qword [rbx]
xor edx, edx
call fcn.140044568
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400345f9
mov rdx, qword [rbx + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140091cdc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140034a34
lea rcx, [rsp + 0x20]
call fcn.140016160
lea rcx, [rsp + 0x20]
mov rbx, rax
call fcn.140016160
mov r8, rax
mov r9, rbx
mov edx, 0xb1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14003abf8
Capabilities:
Hide graphical window

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbp, rcx
mov rcx, qword [0x140398a98]
call fcn.1400604a4
cmp qword [0x140396198], 0
mov r14, rax
jne 0x14003acc9
mov ebx, 0x148
lea rcx, [0x140396050]
mov r8d, ebx
xor edx, edx
call fcn.14001eb70
lea rax, [0x14003a69c]
mov dword [0x140396050], 0xa
mov qword [0x140396058], rax
mov edx, 0x7f89
lea rax, [0x1400454c4]
mov dword [0x140396054], ebx
mov qword [0x140396138], rax
xor ecx, ecx
lea rax, [0x14003c88c]
mov qword [0x140396140], rax
lea rax, [0x14003a6b8]
mov qword [0x140396060], rax
lea rax, [0x14003a6e0]
mov qword [0x140396168], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x140396198], rax
test rax, rax
jne 0x14003acc9
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x140396198], rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.14004c3cc
and qword [rsp + 0x58], 0
lea rdx, str.STATIC
mov rax, qword [0x140391b90]
or rbx, 0xffffffffffffffff
mov r8, qword [rsp + 0xb8]
mov r9d, 0x40000000
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov rax, qword [r14]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
test rax, rax
je 0x14003ae03
mov rcx, qword [0x140398aa0]
mov rdx, rbp
call fcn.14006070c
lea ecx, [rbx + 9]
mov rdi, rax
mov qword [rax + 0x20], rbx
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
xor edx, edx
mov qword [rdi + 0x28], rcx
lea r8d, [rbx + 0x21]
mov rcx, qword [0x140391b98]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [r14 + 0x10]
lea r9, [0x140396050]
mov r8, rsi
mov rdx, rdi
mov rbx, rax
mov qword [rax], rcx
mov ecx, dword [rsp + 0xc8]
mov dword [rax + 8], ecx
mov ecx, dword [rsp + 0xc0]
mov dword [rax + 0x18], ecx
mov rcx, rbp
mov byte [rax + 0x1c], 0
mov qword [rdi + 0x38], rax
call fcn.1400436b4
mov rcx, qword [rdi]
lea r8, [0x14003a810]
mov edx, 0xfffffffc
mov rsi, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [rbx + 0x10], rax
mov edx, 1
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, rsi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140044bd0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push rbx
sub rsp, 0x500
mov ebx, ecx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
bts ebx, 0xe
lea r8, [rsp + 0x240]
mov r9d, 0x2b8
mov dword [rsp + 0x20], ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x500
pop rbx
ret

Function at 0x140044c18
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x140044cac
push rbx
sub rsp, 0x20
cmp dword [0x140397aec], 1
mov rbx, rcx
je 0x140044ca7
lea rcx, [0x140397dc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140397df0]
and qword [0x140397e00], 0
mov qword [0x140397df8], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140397de8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140397df0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140044c9a
mov rcx, qword [0x140397db8]
xor edx, edx
mov dword [0x140397aec], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140397dc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret
Function at 0x140044ff8
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x1403978d0], 0
jne 0x140045102
mov esi, 1
lea rcx, [0x140398a20]
mov dword [0x1403978d0], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x140391b98]
lea edx, [rsi + 7]
mov r8d, 0x640
mov dword [0x1403978d4], 0x1f4
mov dword [0x1403978d8], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd r8, dword [0x1403978d4]
lea edx, [rsi + 7]
mov rcx, qword [0x140391b98]
add r8, r8
mov qword [0x140397db0], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [0x1403978dc], 0
lea rcx, [0x140397dc0]
mov qword [0x140397da8], rax
mov dword [0x140397ae8], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov qword [0x140397de8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [0x140397de8], 0
mov qword [0x140397df0], rax
je 0x1400450fc
test rax, rax
je 0x1400450fc
and dword [0x140397aec], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140044954]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140397db8], rax
jmp 0x140045102
mov dword [0x140397aec], esi
add rsp, 0x30
pop rsi
ret

Function at 0x140045108
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x1400451cd
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rax, rax
je 0x1400451c3
cmp dword [0x140397aec], 1
je 0x1400451c3
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x1f]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400451c3
lea rcx, [0x140397dc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140397df0]
mov qword [0x140397df8], rbx
mov qword [0x140397e00], rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140397de8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140397df0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400451b6
mov rcx, qword [0x140397db8]
xor edx, edx
mov dword [0x140397aec], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140397dc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140045774
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 0x1400458e5
cmp word [rcx], di
je 0x1400458e5
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.140092e2c
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.140016160
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14004581a
cmp word [rsp + 0x22], 0x3a
jne 0x14004581a
cmp edx, 2
jne 0x1400457fa
lea rdx, [0x1400ac428]
lea rcx, [rsp + 0x20]
call fcn.140091cb0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400458e5
mov rbx, 0xfffffffffffffffe
jmp 0x1400458e5
cmp word [rcx], 0x5c
je 0x140045826
cmp word [rcx], 0x2f
jne 0x14004582f
mov word [rcx], di
sub rcx, 2
jmp 0x14004581a
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140045876
test byte [rbp + 0x130], 0x10
je 0x14004585b
mov rbx, 0xfffffffffffffffe
jmp 0x14004586e
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400458e5
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14004588b
cmp ax, cx
je 0x1400458a1
cmp cx, 0x2f
jne 0x140045896
cmp ax, cx
je 0x1400458a1
cmp cx, 0x2e
jne 0x1400458e5
cmp ax, cx
jne 0x1400458e5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400458c6
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x1400458e5
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 0x140045b58
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140045be2
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.140092e2c
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.140016160
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140045bce
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140045bce
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140045bce
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140045ba0
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140045be4
xor eax, eax
add rsp, 0x230
pop rbx
ret
Function at 0x140045bf0
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 0x140045c62
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140045c57
mov rcx, rdi
call fcn.140016160
mov rbx, rax
test eax, eax
je 0x140045c57
movsxd rax, ebx
lea ecx, [rsi + 0x5c]
cmp word [rdi + rax*2 - 2], cx
je 0x140045c57
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 0x140045cb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x140397e38], 0
jne 0x140045d16
lea rcx, [0x140397e38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140045d02
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x140397e40]
imul qword [0x140397e38]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x140397e38], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x140397e38], 0
jne 0x140045d16
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140045d3c
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x140397e40]
cqo
idiv qword [0x140397e38]
add rsp, 0x28
ret