joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002cbcc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor esi, esi
cmp qword [0x140a75cd8], rsi
je 0x14002cbff
call fcn.14002c954
call qword [0x140a77930]
jmp 0x14002cdef
or r14d, 0xffffffff
mov ecx, r14d
call fcn.14002ce7c
cmp dword [0x140a777d0], esi
jne 0x14002cc47
jmp 0x14002cc29
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.DLL_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.DLL_DispatchMessageW]
lea rcx, [rbp - 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
jne 0x14002cc15
cmp dword [0x140a75cc4], esi
je 0x14002cdef
mov rcx, qword [0x140a77800]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ebx, eax
cmp eax, 0x88760827
jne 0x14002cc76
mov dword [0x140a75cc4], esi
xor eax, eax
jmp 0x14002ce0b
cmp eax, 0x88760868
jne 0x14002ccc6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140a77800]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov ebx, eax
cmp eax, 0x88760827
je 0x14002cc69
cmp eax, 0x88760869
je 0x14002ccbe
test eax, eax
je 0x14002ccbe
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x20
jb 0x14002cc85
cmp ebx, 0x88760868
je 0x14002cc69
cmp ebx, 0x88760869
jne 0x14002cd87
mov rcx, qword [0x140a75c48]
call fcn.14004f8dc
jmp 0x14002cce8
mov rcx, qword [rax]
call fcn.14002d5e0
mov rcx, qword [0x140a75c48]
lea rdx, [rbp + 0x20]
call fcn.14004f864
test rax, rax
jne 0x14002cce0
mov rcx, qword [0x140a77800]
lea rdx, [0x140a77890]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
test eax, eax
jne 0x14002cc69
mov rcx, qword [0x140a75c48]
call fcn.14004f8dc
jmp 0x14002cd32
mov rcx, qword [rax]
call fcn.14002d71c
mov rcx, qword [0x140a75c48]
lea rdx, [rbp + 0x20]
call fcn.14004f864
test rax, rax
jne 0x14002cd2a
mov rcx, qword [0x140a77800]
lea rdx, [0x140a77810]
xor r9d, r9d
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
xor r8d, r8d
xor edx, edx
call qword [rax + 0x90]
mov dword [0x140a77830], r14d
mov dword [0x140a77840], r14d
mov dword [0x140a77850], r14d
mov dword [0x140a77860], r14d
call fcn.14002c954
cmp dword [0x140a777d0], esi
je 0x14002cdc5
mov rcx, qword [0x140a75cb8]
lea rdx, [rbp - 0x40]
call qword [sym.imp.USER32.DLL_GetClientRect]
mov eax, dword [0x140a75be8]
mov qword [rbp - 0x50], rsi
mov dword [rbp - 0x48], eax
mov eax, dword [0x140a75bec]
lea r8, [rbp - 0x40]
mov dword [rbp - 0x44], eax
lea rdx, [rbp - 0x50]
jmp 0x14002cdca
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x140a77800]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rax, qword [rcx]
call qword [rax + 0x88]
mov ecx, esi
test eax, eax
sete cl
mov dword [0x140a75cc4], ecx
mov ecx, dword [0x140a75bf4]
test ecx, ecx
je 0x14002ce06
cmp ecx, dword [0x140a77880]
je 0x14002ce06
call fcn.14002cf70
mov eax, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002de7c
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 1
jne 0x14002de8e
mov rcx, qword [rcx + 8]
test rcx, rcx
jne fcn.1400508b0
mov ecx, edx
jmp fcn.140050910

Function at 0x14002e768
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 5
je 0x14002e774
mov ecx, edx
jmp fcn.140050910
mov rcx, qword [rcx + 8]
jmp fcn.140039a2c

Function at 0x1400308c4
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r14d, r9d
mov r15, r8
mov rbp, rdx
mov r12d, ecx
test rdx, rdx
je 0x1400309a6
mov rcx, qword [0x140a754a0]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x40], rax
mov rax, qword [rsp + 0x88]
mov dword [rdi + 0x30], ecx
mov dword [rdi + 0x60], r12d
mov qword [rdi + 0x50], r15
mov dword [rdi + 0x64], r14d
mov qword [rdi + 0x58], rax
test sil, cl
je 0x14003099b
lea rax, [rsp + 0x68]
lea r8, [0x1400309c0]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140030989
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003098d
mov esi, dword [rsp + 0x68]
test esi, esi
jne 0x1400309a3
mov rcx, rdi
call fcn.140030488
jmp 0x1400309a6
mov rcx, rdi
call fcn.1400304e8
mov rbx, rdi
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400310b4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edi, [rbx + 1]
mov ecx, edi
call qword [sym.imp.USER32.DLL_GetKeyState]
mov esi, 0x8000
lea ecx, [rdi + 1]
test si, ax
cmovne ebx, edi
call qword [sym.imp.USER32.DLL_GetKeyState]
test si, ax
je 0x1400310ec
or ebx, 2
mov ecx, 4
call qword [sym.imp.USER32.DLL_GetKeyState]
test si, ax
je 0x1400310ff
or ebx, 4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140031744
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rbp - 0x10]
xor r13d, r13d
mov r12d, r13d
call qword [sym.imp.USER32.DLL_GetClientRect]
test rdi, rdi
jne 0x140031791
mov rcx, qword [rbx]
call qword [sym.imp.USER32.DLL_GetDC]
lea r12d, [r13 + 1]
mov rdi, rax
test byte [rbx + 0x28], 8
je 0x1400318b6
call qword [sym.imp.USER32.DLL_GetFocus]
cmp qword [rbx], rax
jne 0x1400318b6
mov r15d, dword [rbp - 8]
mov r14d, dword [rbp - 4]
sub r15d, dword [rbp - 0x10]
sub r14d, dword [rbp - 0xc]
test r15d, r15d
jle 0x140031908
test r14d, r14d
jle 0x140031908
mov rcx, rdi
call qword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x140031908
mov r8d, r14d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov r13, rax
test rax, rax
je 0x1400318ab
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.DLL_SelectObject]
mov r9, qword [rbx + 0x20]
xor eax, eax
test r9, r9
je 0x140031840
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x140031858
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
add dword [rbp - 0xc], 2
sub dword [rbp - 8], 2
sub dword [rbp - 4], 2
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.USER32.DLL_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9d, r15d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.DLL_BitBlt]
mov rcx, r13
call qword [sym.imp.GDI32.DLL_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x140031908
mov r9, qword [rbx + 0x20]
test r9, r9
je 0x1400318f0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x140031908
xor ecx, ecx
call qword [sym.imp.GDI32.DLL_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rdi
mov r8, rax
call qword [sym.imp.USER32.DLL_FillRect]
test r12d, r12d
je 0x140031919
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.USER32.DLL_ReleaseDC]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140031938
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, 0x40
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov rdi, rcx
xor ebp, ebp
call qword [sym.imp.USER32.DLL_GetMessagePos]
mov rcx, qword [rdi]
lea edx, [rbp - 0xc]
mov ebx, eax
call qword [sym.imp.USER32.DLL_GetWindowLongPtrW]
mov rcx, qword [rdi]
mov r13, rax
call fcn.140034a9c
mov rcx, rax
call fcn.1400353f4
mov rcx, qword [0x140a75ee0]
mov qword [rsp + 0x30], rax
call fcn.14004f918
movsx ecx, bx
mov dword [rsp + 0x70], ecx
shr ebx, 0x10
lea rdx, [rsp + 0x70]
movsx ecx, bx
mov rsi, rax
mov dword [rsp + 0x74], ecx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.DLL_ScreenToClient]
lea ecx, [rbp + 0x10]
call qword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, 0x8000
test bx, ax
lea eax, [rbp + 1]
lea ecx, [rax + 0x11]
cmovne ebp, eax
call qword [sym.imp.USER32.DLL_GetKeyState]
test bx, ax
je 0x1400319e4
or ebp, 2
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test bx, ax
je 0x1400319f7
or ebp, 4
mov eax, dword [rsp + 0x70]
mov dword [rsi], eax
mov eax, dword [rsp + 0x74]
mov dword [rsi + 4], eax
call fcn.1400310b4
mov r8, qword [rsp + 0x30]
mov dword [rsi + 8], eax
movzx eax, word [rsp + 0x90]
mov r9, r12
mov dword [rsi + 0x18], eax
lea rax, [0x140031a68]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov ecx, 0x332c
mov dword [rsi + 0xc], r15d
mov qword [rsp + 0x20], rsi
mov dword [rsi + 0x10], ebp
mov dword [rsi + 0x14], r14d
call fcn.14003909c
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140032978
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 [0x140a77a00]
call fcn.14004f5f8
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400329f8
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400329bd
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400329f8
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140050730
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.140050870
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140034fcc
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x140a76608], 0
jne 0x140035032
lea rcx, [0x140a76608]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003501e
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x140a76610]
imul qword [0x140a76608]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x140a76608], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x140a76608], 0
jne 0x140035032
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140035058
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x140a76610]
cqo
idiv qword [0x140a76608]
add rsp, 0x28
ret
Function at 0x1400350c4
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x288]
sub rsp, 0x380
lea rcx, [rbp + 0x40]
mov ebx, 0xc8
xor r14d, r14d
xor edi, edi
mov dword [rbp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14003528b
mov eax, dword [rbp + 0x50]
dec eax
je 0x140035269
dec eax
jne 0x14003528b
lea r8d, [rbx + 0x54]
lea rcx, [rsp + 0x20]
xor edx, edx
xor esi, esi
call sub.msvcrt.dll_memset
lea rcx, str.ntdll.dll
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003516d
lea rdx, [0x1400af138]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003516d
lea rcx, [rsp + 0x20]
call rax
xor ecx, ecx
test eax, eax
sete cl
jmp 0x14003516f
xor ecx, ecx
test ecx, ecx
je 0x14003518a
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov eax, 1
cmp byte [rbp + 0x3a], al
jne 0x1400351ba
mov esi, eax
jmp 0x1400351ba
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400351ba
mov r14d, dword [rbp + 0x44]
mov edi, dword [rbp + 0x48]
mov eax, 1
cmp byte [rbp + 0x27a], al
cmove esi, eax
sub r14d, 3
je 0x140035262
dec r14d
je 0x14003525b
dec r14d
je 0x140035235
dec r14d
je 0x1400351f1
cmp r14d, 4
jne 0x14003528b
test edi, edi
jne 0x14003528b
lea ebx, [rdi + 0x6e]
jmp 0x14003528b
test edi, edi
je 0x140035229
dec edi
je 0x14003521d
dec edi
je 0x140035211
dec edi
jne 0x14003528b
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x69
jmp 0x14003528b
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14003528b
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14003528b
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14003528b
test edi, edi
je 0x140035254
dec edi
je 0x14003524d
dec edi
jne 0x14003528b
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14003528b
mov ebx, 0x3c
jmp 0x14003528b
mov ebx, 0x32
jmp 0x14003528b
mov ebx, 0x14
jmp 0x14003528b
mov ebx, 5
jmp 0x14003528b
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140035286
cmp eax, 0xa
je 0x14003527f
cmp eax, 0x5a
jne 0x14003528b
lea ebx, [rax - 0x32]
jmp 0x14003528b
mov ebx, 0x1e
jmp 0x14003528b
mov ebx, 0xa
lea r11, [rsp + 0x380]
movsxd rax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400367e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rbx, rax
test rax, rax
je 0x140036889
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140036889
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140036889
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140036889
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140036889
lea rdx, [rsp + 0x20]
mov r8d, 5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetClassNameW]
lea rdx, str.Rich
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140036889
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
bt rax, 0xb
jae 0x140036933
test rdi, rdi
je 0x1400368c8
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x1400368bb
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x1400368bb
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x1400368c8
mov edx, 1
mov rcx, rdi
call fcn.140036940
test rbx, rbx
je 0x1400368e2
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropW]
test rax, rax
jne 0x140036933
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropW]
mov rbx, rax
test rax, rax
je 0x140036933
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x140036933
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x48], eax
jne 0x140036933
mov rcx, qword [0x140a77a40]
lea rdx, [rbx - 1]
call fcn.14004f5f8
test rax, rax
je 0x140036933
mov rax, qword [rax + 0x10]
jmp 0x140036935
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140036d04
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 esi, 0x104
mov ecx, esi
call fcn.140050730
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x140036d4d
lea ecx, [rbp + 0x5c]
cmp word [rdi + rbx*2 - 2], cx
je 0x140036d4d
mov word [rdi + rbx*2], cx
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140050870
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rdi + rax*2], bp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140036d74
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 0x140036ed6
cmp word [rcx], di
je 0x140036ed6
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.1400291ce
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140036e13
cmp word [rsp + 0x22], 0x3a
jne 0x140036e13
cmp edx, 2
jne 0x140036dfa
lea rdx, [0x1400af234]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140036ed6
jmp 0x140036eae
cmp word [rcx], 0x5c
je 0x140036e1f
cmp word [rcx], 0x2f
jne 0x140036e28
mov word [rcx], di
sub rcx, 2
jmp 0x140036e13
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140036e6f
test byte [rbp + 0x130], 0x10
je 0x140036e54
mov rbx, 0xfffffffffffffffe
jmp 0x140036e67
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140036ed6
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140036e84
cmp ax, cx
je 0x140036e9a
cmp cx, 0x2f
jne 0x140036e8f
cmp ax, cx
je 0x140036e9a
cmp cx, 0x2e
jne 0x140036ed6
cmp ax, cx
jne 0x140036ed6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140036eb7
test al, 0x10
je 0x140036ed6
mov rbx, 0xfffffffffffffffe
jmp 0x140036ed6
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 0x140037014
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 [0x140a76650]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
test rax, rax
jne 0x140037066
lea r8, [fcn.140037188]
lea edx, [rax + 0x10]
mov ecx, 0x260
call fcn.14004f720
mov qword [0x140a76650], rax
mov rdx, rdi
mov rcx, rax
call fcn.14004f658
mov rbx, rax
test rax, rax
je 0x140037167
test r15, r15
lea rbp, [0x1400aebe8]
cmovne rbp, r15
test rsi, rsi
je 0x140037096
cmp word [rsi], r13w
jne 0x14003709d
lea rsi, [0x1400af238]
mov rcx, rbp
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x140a754a0]
add eax, 2
xor edx, edx
add eax, r12d
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140037150
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_wcscpy
test r12d, r12d
je 0x1400370fd
movsxd rax, r12d
cmp word [rbp + rax*2 - 2], 0x5c
je 0x1400370fd
lea rdx, [0x1400af234]
mov rcx, r15
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0xc]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140037124
mov dword [rbx + 8], r13d
jmp 0x140037136
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140037139
mov dword [rbx + 8], 1
mov r14, rbx
mov rcx, qword [0x140a754a0]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
jne 0x140037167
mov rcx, qword [0x140a76650]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14004f58c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140037228
Capabilities:
Set file attributes

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

Function at 0x140037240
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140037258
test rdx, rdx
je 0x140037258
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cdqe
jmp 0x14003725a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140037260
Capabilities:
Copy file

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