joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007e258
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 0x14007e318
mov rcx, qword [rsi]
lea edx, [r15 - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x14007e318
xor r14d, r14d
cmp qword [rsi + 0x30], r14
jne 0x14007e318
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x1409c6768]
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 [0x1409c6768]
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 0x140080a00
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 [0x1409c8058]
call fcn.140090af0
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140080a80
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140080a45
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140080a80
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.14009a720
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.14009a2cc
sub edi, eax
mov ecx, edi
call fcn.14009b510
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140085c14
Capabilities:
Copy file

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

Function at 0x140085c38
Capabilities:
Create directory

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

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

Function at 0x140086074
Capabilities:
Delete file

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

Function at 0x1400861b4
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 [0x1409c8a60]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x140086206
lea r8, [fcn.140086170]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.140090c40
mov qword [0x1409c8a60], rax
mov rdx, rdi
mov rcx, rax
call fcn.140090a20
mov rbx, rax
test rax, rax
je 0x140086309
test r14, r14
lea r15, [0x1401a2330]
cmovne r15, r14
test rbp, rbp
je 0x140086237
cmp word [rbp], r13w
jne 0x14008623e
lea rbp, [0x1401a8be0]
mov rcx, r15
call fcn.14009a2cc
mov rcx, rbp
mov r12, rax
call fcn.14009a2cc
mov rcx, qword [0x1409c6768]
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 0x1400862f2
mov rdx, r15
mov rcx, rax
call fcn.14009a2b0
test r12d, r12d
je 0x14008629f
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x14008629f
lea rdx, [0x1401a22a4]
mov rcx, r14
call fcn.1400b75c4
mov rdx, rbp
mov rcx, r14
call fcn.1400b75c4
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400862c6
mov dword [rbx + 8], r13d
jmp 0x1400862d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400862db
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x1409c6768]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x140086309
mov rcx, qword [0x1409c8a60]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140090bd4
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 0x140086388
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 0x1400864f9
cmp word [rcx], di
je 0x1400864f9
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14009b4c4
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.14009a2cc
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14008642e
cmp word [rsp + 0x22], 0x3a
jne 0x14008642e
cmp edx, 2
jne 0x14008640e
lea rdx, [0x1401a22a4]
lea rcx, [rsp + 0x20]
call fcn.1400b75c4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400864f9
mov rbx, 0xfffffffffffffffe
jmp 0x1400864f9
cmp word [rcx], 0x5c
je 0x14008643a
cmp word [rcx], 0x2f
jne 0x140086443
mov word [rcx], di
sub rcx, 2
jmp 0x14008642e
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14008648a
test byte [rbp + 0x130], 0x10
je 0x14008646f
mov rbx, 0xfffffffffffffffe
jmp 0x140086482
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400864f9
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14008649f
cmp ax, cx
je 0x1400864b5
cmp cx, 0x2f
jne 0x1400864aa
cmp ax, cx
je 0x1400864b5
cmp cx, 0x2e
jne 0x1400864f9
cmp ax, cx
jne 0x1400864f9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400864da
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x1400864f9
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 0x140086530
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.14009a720
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 0x14008657f
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x14008657f
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.14009b510
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 0x1400865a4
Capabilities:
Check if file exists
Get file attributes

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

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

Function at 0x140086808
Capabilities:
Set file attributes

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

Function at 0x1400868e0
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 0x140086924
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 0x140086930
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1409c8a68]
jne 0x140086950
add rsp, 0x30
pop rdi
jmp fcn.140090cc8
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140090af0
mov rbx, rax
test rax, rax
je 0x1400869c5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400869ad
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14008699a
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 [0x1409c6768]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1409c8a68]
mov rdx, rdi
call fcn.140090bd4
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400870f0
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 [0x1409c8a68]
mov dword [rsp + 0x50], edi
call fcn.140090af0
mov rbx, rax
test rax, rax
je 0x140087195
cmp qword [rax + 8], rdi
je 0x140087157
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140106620
test rax, rax
je 0x140087144
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 0x1400871a5
cmp dword [rsp + 0x58], edi
je 0x1400871a5
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
Function at 0x140087220
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1409c8a68]
call fcn.140090af0
mov rbx, rax
test rax, rax
je 0x140087273
cmp qword [rax + 8], 0
je 0x140087252
cmp dword [rax + 0x1c], 0
jne 0x140087252
mov rcx, rax
call fcn.1400868e0
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

Function at 0x140087280
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov byte [rsp + 0x48], 0
mov rcx, qword [0x1409c8a68]
call fcn.140090af0
test rax, rax
je 0x1400872de
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x1400872c1
mov r8d, 1
mov rcx, rax
call fcn.140106620
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x1400872f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x1409c8a68]
call fcn.140090af0
test rax, rax
je 0x140087358
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14008733e
mov r8, rbx
mov rcx, rax
call fcn.140106620
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140087550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x1400875c8
test r8d, r8d
je 0x1400875c8
mov rdx, rcx
mov rcx, qword [0x1409c8a68]
call fcn.140090af0
test rax, rax
je 0x1400875c4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400875b1
mov rcx, rax
call fcn.140106d50
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400875e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, r8d
mov rdx, rcx
mov rcx, qword [0x1409c8a68]
call fcn.140090af0
test rax, rax
je 0x14008761c
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140087630
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140087630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x140087727
cmp word [rdx], si
je 0x140087727
test r8d, r8d
jne 0x14008765e
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x1400876be
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140087670
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x14008769b
call fcn.140106d50
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.140106e60
mov rdi, rax
test rax, rax
je 0x140087722
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x1400876fd
mov rcx, rbx
call fcn.140106d50
mov dword [rsp + 0x48], eax
jmp 0x140087710
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1409c6768]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x140087740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov edi, r8d
mov rdx, rcx
mov rcx, qword [0x1409c8a68]
call fcn.140090af0
mov rbx, rax
test rax, rax
je 0x14008779b
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.140087630
mov r8d, edi
lea rdx, [0x1401a231c]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140087630
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400877b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x1409c8a68]
call fcn.140090af0
mov rbx, rax
test rax, rax
je 0x140087800
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140087630
mov r8d, dword [rbx + 0x20]
lea rdx, [0x1401a231c]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140087630
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140087848
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1409c8a70]
jne 0x140087866
mov rax, qword [0x1409c9150]
add rsp, 0x28
ret
mov rcx, qword [0x1409c9170]
add rsp, 0x28
jmp fcn.14008deb8
Function at 0x1400880d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x140088129
mov r8, qword [r8 + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400880f0
mov ecx, eax
call fcn.14009a720
mov rcx, qword [rbx]
mov rcx, qword [rcx + 8]
nop dword [rax]
movzx edx, word [rcx]
lea rcx, [rcx + 2]
mov word [rax], dx
lea rax, [rax + 2]
test dx, dx
jne 0x140088110
add rsp, 0x20
pop rbx
ret
mov ecx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400a6520

Function at 0x140088d10
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x68
mov qword [rax + 0x10], rsi
mov rsi, rcx
mov qword [rax + 0x18], r12
mov ecx, edx
mov qword [rax - 0x18], r13
mov r12d, r9d
mov qword [rax - 0x20], r14
xor r13d, r13d
mov qword [rax - 0x28], r15
mov ebx, r13d
mov r15d, edx
mov qword [rax - 0x30], r13
mov r14d, r8d
call fcn.140107cd0
mov rdi, rax
test rax, rax
je 0x140088e7b
test rsi, rsi
je 0x140088e7b
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140088e73
mov rcx, qword [0x1409c6768]
xor edx, edx
mov r8d, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140088e6a
mov ecx, r14d
call qword [rdi + 8]
mov rbx, rax
test rax, rax
je 0x140088e58
xor edx, edx
mov rcx, rax
call qword [rdi + SafeArrayGetElemsize]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.14010bac0
mov rax, qword [rsp + 0x48]
test rax, rax
jle 0x140088e10
xor r9d, r9d
lea r8, [rsp + 0x4c]
mov edx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x100000
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [rdi + SafeArrayPutElement]
cmp dword [rsp + 0x40], 0x100000
je 0x140088e10
mov rcx, rbx
call qword [rdi + 0x20]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.14010bcb0
mov rcx, qword [0x1409c6768]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x80]
mov edx, r12d
mov rcx, rbx
call fcn.14010ba10
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
test rbx, rbx
je 0x140088eb0
mov rcx, rbx
call qword [rdi + 0x28]
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x1400893b4
Capabilities:
Get thread local storage value

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 r15
sub rsp, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1409c8a8c]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x140089403
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rcx, rbx
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax

Function at 0x140089444
Capabilities:
Get thread local storage value

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 r15
sub rsp, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1409c8a8c]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov edx, dword [rax + 0x118]
cmp edx, dword [rax + 0x120]
je 0x140089495
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x1400894d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1409c8a8c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x140089506
mov edx, 0x110c
bt edx, ecx
jae 0x140089506
test rbx, rbx
je 0x140089506
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14008950c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ebx, r8d
mov ecx, dword [0x1409c8a8c]
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0x104]
mov edx, dword [rax + 0x100]
mov r10, qword [rax + 0x58]
lea r9d, [rcx + rbx]
mov rcx, rax
lea r8d, [rdx + rdi]
mov rdx, rsi
test r10, r10
je 0x14008955f
mov dword [rsp + 0x20], 0xff
call r10
jmp 0x140089562
call qword [rax + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret