joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400383e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x140038410
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140038431
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x140038443
mov eax, 0x100000
cmp r8, rax
jle 0x140038460
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x140229a30]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003933c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400393b8
movsxd rdx, ecx
lea rcx, [0x140039440]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140229ad8]
test rbx, rbx
je 0x14003942b
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400393ae
cmp byte [rbx + 0x20], 0
je 0x1400393ae
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140039374
jmp 0x14003942b
mov rbx, qword [0x140229ad8]
test rbx, rbx
je 0x14003942b
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140039423
cmp byte [rbx + 0x21], 0
je 0x1400393e7
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140039413
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140229ad8]
call fcn.14003923c
mov rbx, rsi
test rsi, rsi
jne 0x1400393c4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140039560
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret
Function at 0x14003a0b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret

Function at 0x1400453a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x1400453d4
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x1400453d4
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400453e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140223a04]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140059284
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14008cdc0
sub rsp, rax
mov rax, qword [0x140223d88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400809b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400592d3
mov rax, rbp
jmp 0x1400593db
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x22b3e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008c7a0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x22b3e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400593d7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400593d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008c7a0
test rax, rax
js 0x1400593d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400593d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400593c9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400593c9
cmp byte [rcx], 0xd
jne 0x1400593af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400593be
cmp byte [rcx + 1], 0xa
jne 0x1400593be
inc rcx
jmp 0x1400593be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x223df0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140059391
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400593db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007fff0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005a080
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x14005a0b6
call fcn.14005a640
cmp byte [rbx + 0x58], 0
je 0x14005a0ad
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x14005a0c1
cmp eax, 0xcb
jne 0x14005a145
mov rax, qword [rbx + 0x240]
cmp byte [rax + 0x20], 0
je 0x14005a12c
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14005a0de
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x240]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x14005a124
cmp eax, 2
je 0x14005a12c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005a0d0
dec eax
test eax, 0xfffffffd
jne 0x14005a0d0
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x14005a0d0
mov ecx, dword [rbx + 0x190]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x14005a0d0
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp 0x14005a250
cmp eax, 0xcc
je 0x14005a167
mov rax, qword [rcx]
mov dword [rax + 0x28], reloc.WS2_32.dll_setsockopt
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14005a250
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor ebp, ebp
lea rsi, [rcx + 0x98]
cmp dword [rcx + 0x24], 0xcc
mov rbx, rcx
je 0x14005a28c
mov rax, qword [rcx + 0x220]
call qword [rax]
mov dword [rsi], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x220]
mov qword [rsp + 0x30], rdi
cmp byte [rax + 0x10], bpl
je 0x14005a310
nop
mov eax, dword [rsi]
cmp eax, dword [rbx + 0x78]
jae 0x14005a2e8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005a2c6
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov rax, qword [rbx + 0x228]
xor r9d, r9d
mov edi, dword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsi]
cmp eax, edi
je 0x14005a33e
cmp eax, dword [rbx + 0x78]
jb 0x14005a2a7
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax]
mov dword [rsi], ebp
mov rax, qword [rbx + 0x220]
cmp byte [rax + 0x10], bpl
jne 0x14005a2a0
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x14005a323
Function at 0x14005f2f0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
xor ebx, ebx
movsxd rdi, ecx
mov rsi, r8
cmp edx, 0xffffffff
jne 0x14005f326
lea r8, [rax + 0x10]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14005f369
mov r8d, edx
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14005f35d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
and eax, 0xfffffffa
neg eax
sbb ebx, ebx
not ebx
and ebx, 0xfffffffe
jmp 0x14005f369
test eax, eax
mov ecx, 0xfffffffe
cmove eax, ecx
mov ebx, eax
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140060900
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edx, 8
mov rcx, qword [0x140224818]
mov r8d, 0x258
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14022987c]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140229880], rdi
or eax, 0xffffffff
and dword [rdi + 0x11c], 0
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
call fcn.1400b2ed4
mov rbx, qword [rsp + 0x30]
lea rax, [0x140061f10]
mov qword [rdi + 0xb0], rax
lea rax, [0x140061f74]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140060b10]
mov qword [rdi + 0x20], rax
lea rax, [0x140060ce8]
mov qword [rdi + 0x60], rax
lea rax, [0x140060f5c]
mov qword [rdi + 0xc8], rax
lea rax, [0x140060fc4]
mov qword [rdi + 0xc0], rax
lea rax, [0x14006184c]
mov qword [rdi + 0x68], rax
lea rax, [0x14006168c]
mov qword [rdi + 0x48], rax
lea rax, [0x1400616b8]
mov qword [rdi + 0x50], rax
lea rax, [0x1400616e8]
mov qword [rdi + 0x58], rax
lea rax, [0x140061ce8]
mov qword [rdi + 0x88], rax
lea rax, [0x140060a70]
mov qword [rdi + 0xd0], rax
lea rax, [0x140060af4]
mov qword [rdi + 0xd8], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140062ccc
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 0x140062d14
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x140229cd0], 0
jne 0x140062e1e
mov esi, 1
lea rcx, [0x14022a220]
mov dword [0x140229cd0], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x140224818]
lea edx, [rsi + 7]
mov r8d, 0x640
mov dword [0x140229cd4], 0x1f4
mov dword [0x140229cd8], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd r8, dword [0x140229cd4]
lea edx, [rsi + 7]
mov rcx, qword [0x140224818]
add r8, r8
mov qword [0x14022a1b0], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [0x140229cdc], 0
lea rcx, [0x14022a1c0]
mov qword [0x14022a1a8], rax
mov dword [0x140229ee8], 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 [0x14022a1e8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [0x14022a1e8], 0
mov qword [0x14022a1f0], rax
je 0x140062e18
test rax, rax
je 0x140062e18
and dword [0x140229eec], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x14006316c]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14022a1b8], rax
jmp 0x140062e1e
mov dword [0x140229eec], esi
add rsp, 0x30
pop rsi
ret
Function at 0x140064354
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
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 r12d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x140064405
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140064405
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140064405
mov rcx, qword [0x14022a270]
lea rdx, [rsi - 1]
call fcn.14002da6c
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x140064405
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x1400643f5
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140064403
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140064405
jmp 0x1400643e2
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x1400644d5
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400644d5
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400644d5
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400644d5
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400644d5
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x1400644d5
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.1400627d4
test eax, eax
je 0x1400644a5
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.1400627d4
test eax, eax
jne 0x1400644c0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14006453c
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.1400383a8
test eax, eax
je 0x14006453c
test r14, r14
je 0x140064517
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14006450a
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14006450a
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140064517
mov edx, 1
mov rcx, r14
call fcn.1400646cc
test rdi, rdi
je 0x140064531
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14006453c
test rbx, rbx
je 0x14006453c
mov rax, qword [rbx + 0x10]
jmp 0x14006453e
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x14006481c
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140224818]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14022987c]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140229880], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x140064a90]
mov qword [rbx], rax
lea rax, [0x140064b78]
mov qword [rbx + 8], rax
lea rax, [0x140064c20]
mov qword [rbx + 0x10], rax
lea rax, [0x140064de0]
mov qword [rbx + 0x18], rax
lea rax, [0x140064ed8]
mov qword [rbx + 0x20], rax
lea rax, [0x140064f4c]
mov qword [rbx + 0x28], rax
lea rax, [0x140064f9c]
mov qword [rbx + 0x30], rax
lea rax, [0x140064fb0]
mov qword [rbx + 0x38], rax
lea rax, [fcn.140064fc4]
mov qword [rbx + 0x40], rax
lea rax, [0x14006540c]
mov qword [rbx + 0x48], rax
lea rax, [fcn.1400651a0]
mov qword [rbx + 0x50], rax
lea rax, [0x140065424]
mov qword [rbx + 0x58], rax
lea rax, [0x140065588]
mov qword [rbx + 0x60], rax
lea rax, [0x140065718]
mov qword [rbx + 0x68], rax
lea rax, [0x140064ca8]
mov qword [rbx + 0x70], rax
lea rax, [0x14006580c]
mov qword [rbx + 0x78], rax
lea rax, [0x140064ac0]
mov qword [rbx + 0x80], rax
lea rax, [0x1400658ec]
mov qword [rbx + 0x88], rax
lea rax, [0x140065a44]
mov qword [rbx + 0x90], rax
lea rax, [0x140065ac4]
mov qword [rbx + 0x98], rax
lea rax, [0x140065bb8]
mov qword [rbx + 0xa0], rax
lea rax, [0x140065ddc]
mov qword [rbx + 0xa8], rax
lea rax, [0x140065f8c]
mov qword [rbx + 0xb0], rax
lea rax, [0x140066074]
mov qword [rbx + 0xb8], rax
lea rax, [0x140065f30]
mov qword [rbx + 0xc0], rax
lea rax, [0x140065ecc]
mov qword [rbx + 0xc8], rax
mov rax, rbx
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0xec], 7
add rsp, 0x20
pop rbx
ret

Function at 0x140066950
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 0x1400669c2
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400669b7
mov rcx, rdi
call fcn.140037f38
mov rbx, rax
test eax, eax
je 0x1400669b7
movsxd rax, ebx
lea ecx, [rsi + 0x5c]
cmp word [rdi + rax*2 - 2], cx
je 0x1400669b7
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 0x1400669e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x140066a17
call fcn.140021fd0
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x140066a90
mov rax, rdi
sub rax, 1
je 0x140066a81
sub rax, 1
je 0x140066a6e
cmp rax, 2
je 0x140066a5d
mov r8, rdi
mov rcx, r15
call fcn.14002ce50
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x140066b0a
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x140066b0a
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x140066b0a
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x140066b0a
mov r8, rbx
mov rcx, r15
call fcn.14002ce50
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x140066ad0
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x140066b08
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.14002ce50
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140066b30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r12d, edx
mov r14, rcx
mov r15d, 0x1000
mov rcx, qword [0x140224818]
mov r8d, r15d
xor edx, edx
mov r13, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140066d0b
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x140066b97
test rsi, rsi
je 0x140066c60
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x140066bbb
mov r8d, 1
mov rcx, r14
call fcn.1400669e0
mov dword [rsp + 0x34], eax
jmp 0x140066bdc
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x140066c64
test r8b, r8b
je 0x140066bf8
mov byte [rbx], r8b
inc rbx
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
lea eax, [r15 - 1]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x140066c3a
mov rcx, qword [0x140224818]
add r15d, 0x1000
movsxd r9, r15d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x140066c64
test r12d, r12d
jne 0x140066b85
cmp r8b, 0xd
je 0x140066c6d
cmp r8b, 0xa
jne 0x140066b85
dec rbx
jmp 0x140066cf1
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x140066cf1
cmp r8b, 0xa
jne 0x140066c78
dec rbx
jmp 0x140066cf1
cmp r8b, 0xd
jne 0x140066cf1
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x140066ca0
mov r8d, 1
mov rcx, r14
call fcn.1400669e0
mov dword [rsp + 0x34], eax
jmp 0x140066cbd
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140066cf1
cmp qword [rdi], 0
je 0x140066cd0
inc dword [r14 + 0x14]
jmp 0x140066cf1
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
sub rax, rbp
mov qword [r13], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret