joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d39a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov eax, 0x80
mov qword [rcx], rsi
mov edi, esi
mov qword [rcx + 8], rsi
cmp eax, esi
mov rbx, rcx
jle 0x1400d39da
mov dword [rbx + 8], eax
cmp eax, dword [rbx + 0xc]
jle 0x1400d39e9
mov edx, edi
mov rcx, rbx
call fcn.14001c580
jmp 0x1400d39e9
jge 0x1400d39e9
je 0x1400d39e9
mov rcx, rbx
mov dword [rbx + 8], eax
call fcn.14001c690
mov rdx, qword [rbx]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400d3a6c
movsxd rdi, dword [rbx + 8]
cmp eax, edi
jae 0x1400d39c4
inc eax
cmp eax, edi
jle 0x1400d3a44
mov esi, eax
mov dword [rbx + 8], eax
sub esi, edi
cmp eax, dword [rbx + 0xc]
jle 0x1400d3a1d
mov edx, edi
mov rcx, rbx
call fcn.14001c580
mov rax, qword [rbx]
xor edx, edx
movsxd r8, esi
add r8, r8
lea rcx, [rax + rdi*2]
call sub.VCRUNTIME140.dll_memset
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
jge 0x1400d3a8b
mov ecx, edi
sub ecx, eax
je 0x1400d3a8b
sub edi, ecx
mov rcx, rbx
mov dword [rbx + 8], edi
call fcn.14001c690
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
mov dword [rbx + 8], esi
test eax, eax
jns 0x1400d3a80
xor edx, edx
mov rcx, rbx
call fcn.14001c970
mov rax, qword [rbx]
test rax, rax
je 0x1400d3a8b
mov word [rax], si
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d7030
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x14035d6e8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
call fcn.140025320
xorps xmm0, xmm0
mov qword [rbx + 0x70], 0
movups xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xa0], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rdx
mov qword [rbx + 0x50], rcx
mov rcx, qword [rsp + 0x68]
cmovbe rdx, qword [rsp + 0x50]
mov qword [rbx + 0x58], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rbx], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x60], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rbx + 0x40], rax
mov rax, rbx
mov qword [rbx + 0x68], rcx
mov qword [rbx + 0x48], rdx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14024f8b0
add rsp, 0xc0
pop rbx
ret
Function at 0x1400d7db0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14035d6e8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r12d, r12d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x20], r12
mov r14, r8
mov qword [rsp + 0x28], r12
mov r15, rdx
mov dil, 1
mov esi, r12d
mov r13d, r12d
test rdx, rdx
je 0x1400d7e7c
cmp word [rdx], r12w
je 0x1400d7e7c
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], r12w
jne 0x1400d7e13
inc ebx
test ebx, ebx
jle 0x1400d7e3d
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14001c970
mov r13d, dword [rsp + 0x2c]
mov esi, dword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
mov edx, esi
add esi, ebx
mov dword [rsp + 0x28], esi
cmp esi, r13d
jle 0x1400d7e62
lea rcx, [rsp + 0x20]
call fcn.14001c580
mov r13d, dword [rsp + 0x2c]
mov esi, dword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
movsxd r8, ebx
mov rdx, r15
add r8, r8
mov rcx, r12
call fcn.140034a80
mov eax, 4
test esi, esi
jne 0x1400d7e81
mov eax, 5
lea edx, [rsi + rax]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x3c], r13d
cmp edx, r13d
jle 0x1400d7ea1
lea rcx, [rsp + 0x30]
call fcn.14001c970
mov r8d, 3
lea rdx, [0x140273410]
lea rcx, [rsp + 0x30]
call fcn.1400206a0
cmp dword [rsp + 0x38], 0
lea rbx, [0x140264588]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx r9d, dil
cmovne r8, qword [rsp + 0x30]
call fcn.1400dc270
cmp dword [rsp + 0x28], 0
lea rdx, [rsp + 0x50]
cmovne rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, qword [rsp + 0x20]
mov rbx, rax
test rcx, rcx
je 0x1400d7f0b
call fcn.14004db90
cmp rbx, 0xffffffffffffffff
je 0x1400d7f75
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, 0x2e
jne 0x1400d7f46
test ax, ax
je 0x1400d7f55
cmp cx, cx
jne 0x1400d7f46
cmp ax, cx
jne 0x1400d7f46
cmp word [rbp - 0x80], 0
je 0x1400d7f55
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x50]
call qword [r14]
movzx edi, al
test dil, dil
je 0x1400d7f6c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400d7f20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400d7f84
call fcn.14004db90
movzx eax, dil
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14024f8b0
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400da1c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rbx
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
xor bl, bl
mov qword [r11 + 0x20], rsi
xor r14d, r14d
mov qword [r11 - 0x38], r12
mov rax, rdx
mov r13d, r14d
mov r15, r9
mov rdi, r8
mov edx, 0x200
nop dword [rax]
test bl, bl
jne 0x1400da39b
mov r9d, 0x100
mov qword [rbp - 0x20], r14
test r13d, r13d
cmove r9d, edx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
or r9d, 0x20019
mov rdx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400da381
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov dword [rbp - 0x28], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400da377
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x1400da377
mov ecx, eax
call fcn.140012670
mov rcx, qword [rbp - 0x20]
mov r12, rax
lea rax, [rbp - 0x28]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400da36f
mov esi, dword [rbp - 0x28]
mov rbx, r14
shr esi, 1
mov edi, r14d
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 0
test r12, r12
je 0x1400da329
cmp esi, 1
jbe 0x1400da329
cmp word [r12], ax
je 0x1400da329
test esi, esi
je 0x1400da2ea
mov edx, esi
lea rcx, [rbp - 0x18]
call fcn.14001c970
mov r14d, dword [rbp - 0xc]
mov edi, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
mov edx, edi
add edi, esi
mov dword [rbp - 0x10], edi
cmp edi, r14d
jle 0x1400da30a
lea rcx, [rbp - 0x18]
call fcn.14001c580
mov r14d, dword [rbp - 0xc]
mov edi, dword [rbp - 0x10]
mov rbx, qword [rbp - 0x18]
lea r8, [rsi*2 - 2]
mov rdx, r12
mov rcx, rbx
call fcn.140034a80
movsxd rax, edi
xor esi, esi
mov word [rbx + rax*2 - 2], si
jmp 0x1400da32b
xor esi, esi
lea rax, [rbp - 0x18]
cmp r15, rax
je 0x1400da359
mov rcx, qword [r15]
test rcx, rcx
je 0x1400da341
call fcn.14004db90
mov qword [r15], rbx
mov dword [r15 + 0xc], r14d
xor r14d, r14d
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rsi
mov dword [r15 + 8], edi
jmp 0x1400da369
test rbx, rbx
je 0x1400da366
mov rcx, rbx
call fcn.14004db90
xor r14d, r14d
mov rdi, qword [rbp + 0x48]
mov bl, 1
mov rcx, r12
call fcn.140012700
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0x40]
inc r13d
mov rcx, qword [rbp + 0x38]
mov edx, 0x200
cmp r13d, 2
jl 0x1400da200
mov r12, qword [rsp + 0x50]
movzx eax, bl
mov rsi, qword [rsp + 0xa8]
add rsp, 0x58
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400da580
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push r15
sub rsp, 0x68
mov eax, 0x5a4d
mov r15, rdx
mov rbx, rcx
cmp word [rcx], ax
jne 0x1400da777
mov qword [r11 - 0x28], r12
movsxd r12, dword [rcx + 0x3c]
add r12, rcx
cmp dword [r12], 0x4550
jne 0x1400da768
mov r8d, dword [r12 + 0x90]
mov rdx, r12
mov qword [r11 + 0x10], rbp
mov qword [r11 - 0x30], r13
call fcn.1400d8720
xor ebp, ebp
mov qword [rsp + 0x90], rax
mov r13d, ebp
cmp dword [r12 + 0x94], ebp
jbe 0x1400da74c
mov qword [rsp + 0x58], rdi
mov ecx, ebp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r14
nop
cmp dword [rcx + rax], 0
jne 0x1400da626
cmp dword [rcx + rax + 4], 0
jne 0x1400da626
cmp dword [rcx + rax + 8], 0
jne 0x1400da626
cmp dword [rcx + rax + 0xc], 0
jne 0x1400da626
cmp dword [rcx + rax + 0x10], 0
je 0x1400da73d
mov eax, dword [rcx + rax + 0xc]
test eax, eax
je 0x1400da712
mov r8d, eax
mov rdx, r12
mov rcx, rbx
call fcn.1400d8720
mov qword [rsp + 0x30], rbp
mov rdi, rax
mov qword [rsp + 0x38], 0
mov r14, rbp
mov esi, ebp
test rax, rax
je 0x1400da6cc
cmp byte [rax], 0
je 0x1400da6cc
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400da667
inc ebx
test ebx, ebx
jle 0x1400da68f
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14001c970
mov ebp, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov edx, esi
add esi, ebx
mov dword [rsp + 0x38], esi
cmp esi, ebp
jle 0x1400da6b2
lea rcx, [rsp + 0x30]
call fcn.14001c580
mov ebp, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov eax, 0x3f
mov r9d, ebx
mov r8, rdi
mov word [rsp + 0x20], ax
mov edx, ebx
mov rcx, r14
call fcn.14001d990
movsxd rbx, dword [r15 + 8]
lea eax, [rbx + 1]
mov dword [r15 + 8], eax
cmp eax, dword [r15 + 0xc]
jle 0x1400da6e7
mov edx, ebx
mov rcx, r15
call fcn.14001c1b0
mov rax, rbx
mov qword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x80]
shl rax, 4
add rax, qword [r15]
mov qword [rax], r14
mov dword [rax + 0xc], ebp
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov dword [rax + 8], esi
mov eax, dword [r12 + 0x94]
inc r13
lea rcx, [r13*4]
add rcx, r13
shl rcx, 2
cmp rcx, rax
mov rax, qword [rsp + 0x90]
jb 0x1400da600
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov al, 1
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
add rsp, 0x68
pop r15
pop rbx
ret
mov r12, qword [rsp + 0x50]
xor al, al
add rsp, 0x68
pop r15
pop rbx
ret
xor al, al
add rsp, 0x68
pop r15
pop rbx
ret
Function at 0x1400da790
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
lea rax, [rsp + 0x50]
mov rbx, rdx
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], esi
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400da8b8
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x1400da8b8
mov eax, dword [rbx + 8]
cmp r8d, eax
jle 0x1400da7fc
mov dword [rbx + 8], r8d
cmp r8d, dword [rbx + 0xc]
jle 0x1400da817
mov edx, eax
mov rcx, rbx
call fcn.1400406c0
jmp 0x1400da812
jge 0x1400da817
mov ecx, eax
sub ecx, r8d
je 0x1400da817
sub eax, ecx
mov rcx, rbx
mov dword [rbx + 8], eax
call fcn.14008df10
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rbx]
lea r9, [rsp + 0x58]
mov rcx, rdi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400da8a6
mov eax, dword [rsp + 0x58]
cmp eax, dword [rsp + 0x50]
jae 0x1400da894
movsxd rdi, dword [rbx + 8]
cmp eax, edi
jle 0x1400da87f
mov esi, eax
mov dword [rbx + 8], eax
sub esi, edi
cmp eax, dword [rbx + 0xc]
jle 0x1400da85d
mov edx, edi
mov rcx, rbx
call fcn.1400406c0
mov rcx, rdi
movsxd r8, esi
add rcx, qword [rbx]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
jge 0x1400da894
mov ecx, edi
sub ecx, eax
je 0x1400da894
sub edi, ecx
mov rcx, rbx
mov dword [rbx + 8], edi
call fcn.14008df10
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx + 8], esi
cmp dword [rbx + 0xc], esi
je 0x1400da8b8
xor edx, edx
mov rcx, rbx
call fcn.1400a5020
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400da8e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
lea rcx, str.Win_RequestExit
call fcn.1400a4aa0
lea rcx, [0x140350110]
call fcn.1400136b0
test bl, bl
je 0x1400da950
call fcn.1400b12e0
test rax, rax
je 0x1400da92b
call fcn.1400b12e0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x68]
call fcn.1400b12e0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x20]
movzx eax, byte [0x1403b6362]
neg al
sbb ebx, ebx
and ebx, 3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_PostQuitMessage]

Function at 0x1400dad80
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.1400290b0
call fcn.1400d20a0
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
Function at 0x1400db530
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x60]
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mulss xmm6, dword [0x140273720]
cvttss2si rax, xmm6
test eax, eax
jne 0x1400db562
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x1400db56a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x50]
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x28], rax
lea rdx, [0x14034d1c0]
lea rax, [0x1400291c0]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14004dfa0
lea rcx, [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [rsp + 0x58]
sub ecx, dword [rsp + 0x60]
add dword [rbx + 0x10], ecx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x1400db920
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov ecx, dword [0x1404415e8]
mov edx, 0x1c
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140418a00], eax
jg 0x1400dbb0b
mov ecx, dword [0x1404189f8]
test ecx, ecx
je 0x1400db965
lea eax, [rcx - 1]
test eax, eax
jne 0x1400dbaf4
lea r9, [rbp + 0x10]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1402fddf0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400dbaee
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rbp + 0x10]
mov qword [rsp + 0x60], r14
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov edx, r14d
mov dword [rbp - 0x28], edx
mov ecx, r14d
mov dword [rbp - 0x24], ecx
test rdi, rdi
je 0x1400dba09
cmp word [rdi], cx
je 0x1400dba09
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], cx
jne 0x1400db9c4
inc ebx
test ebx, ebx
jle 0x1400db9e4
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.14001c970
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x28]
lea eax, [rbx + rdx]
mov dword [rbp - 0x28], eax
cmp eax, ecx
jle 0x1400db9f7
lea rcx, [rbp - 0x30]
call fcn.14001c580
mov rcx, qword [rbp - 0x30]
mov rdx, rdi
movsxd r8, ebx
add r8, r8
call fcn.140034a80
lea r9, [0x14026fbb0]
mov dword [rsp + 0x20], 1
lea r8, [0x140265790]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400217f0
mov rcx, qword [rax]
mov r9d, dword [rax + 8]
mov qword [rax], r14
mov qword [rbp - 0x40], rcx
mov ecx, dword [rax + 0xc]
mov qword [rax + 8], r14
mov eax, r9d
neg eax
mov dword [rbp - 0x38], r9d
mov dword [rbp - 0x34], ecx
sbb edx, edx
add edx, 2
add edx, r9d
cmp edx, ecx
jle 0x1400dba62
lea rcx, [rbp - 0x40]
call fcn.14001c970
mov r8d, 1
lea rdx, [0x14026fbb0]
lea rcx, [rbp - 0x40]
call fcn.14001ed50
mov rcx, qword [0x1404189f0]
mov rsi, qword [rbp - 0x40]
mov ebx, dword [rbp - 0x38]
mov edi, dword [rbp - 0x34]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x1400dbaa0
call fcn.14004db90
mov rcx, qword [rbp - 0x20]
mov qword [0x1404189f0], rsi
mov rsi, qword [rsp + 0x90]
mov dword [0x1404189f8], ebx
mov rbx, qword [rsp + 0x88]
mov dword [0x1404189fc], edi
mov rdi, qword [rsp + 0x68]
test rcx, rcx
je 0x1400dbad6
call fcn.14004db90
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400dbae4
call fcn.14004db90
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x1404189f8]
test ecx, ecx
lea rax, [0x140264588]
cmovne rax, qword [0x1404189f0]
add rsp, 0x70
pop rbp
ret
lea rcx, [0x140418a00]
call fcn.14024f710
cmp dword [0x140418a00], 0xffffffff
jne 0x1400db950
lea rcx, [0x1402604f0]
call fcn.14024f570
lea rcx, [0x140418a00]
call fcn.14024f6b0
jmp 0x1400db950
Function at 0x1400dbb50
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
test cl, cl
je 0x1400dbbe3
cmp word [0x140418c50], 0
jne 0x1400dbbd7
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
lea rcx, [0x140418c50]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], 0x100
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
movzx eax, word [0x140418c50]
lea rbx, [0x140418c50]
lea rdi, [0x140418c50]
test ax, ax
je 0x1400dbbc8
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalnum]
test eax, eax
je 0x1400dbbbb
movzx eax, word [rbx]
mov word [rdi], ax
add rdi, 2
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400dbba4
mov rbx, qword [rsp + 0x38]
xor ecx, ecx
mov word [rdi], cx
mov rdi, qword [rsp + 0x20]
lea rax, [0x140418c50]
add rsp, 0x28
ret
cmp word [0x140418a50], 0
jne 0x1400dbc07
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
lea rcx, [0x140418a50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [0x140418a50]
add rsp, 0x28
ret
Function at 0x1400dbc20
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov ecx, dword [0x1404415e8]
mov edx, 0x1c
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140418a30], eax
jg 0x1400dbe0b
mov ecx, dword [0x140418a28]
test ecx, ecx
je 0x1400dbc65
lea eax, [rcx - 1]
test eax, eax
jne 0x1400dbdf4
lea r9, [rbp + 0x10]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1402fde10]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400dbdee
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rbp + 0x10]
mov qword [rsp + 0x60], r14
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov edx, r14d
mov dword [rbp - 0x28], edx
mov ecx, r14d
mov dword [rbp - 0x24], ecx
test rdi, rdi
je 0x1400dbd09
cmp word [rdi], cx
je 0x1400dbd09
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], cx
jne 0x1400dbcc4
inc ebx
test ebx, ebx
jle 0x1400dbce4
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.14001c970
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x28]
lea eax, [rbx + rdx]
mov dword [rbp - 0x28], eax
cmp eax, ecx
jle 0x1400dbcf7
lea rcx, [rbp - 0x30]
call fcn.14001c580
mov rcx, qword [rbp - 0x30]
mov rdx, rdi
movsxd r8, ebx
add r8, r8
call fcn.140034a80
lea r9, [0x14026fbb0]
mov dword [rsp + 0x20], 1
lea r8, [0x140265790]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400217f0
mov rcx, qword [rax]
mov r9d, dword [rax + 8]
mov qword [rax], r14
mov qword [rbp - 0x40], rcx
mov ecx, dword [rax + 0xc]
mov qword [rax + 8], r14
mov eax, r9d
neg eax
mov dword [rbp - 0x38], r9d
mov dword [rbp - 0x34], ecx
sbb edx, edx
add edx, 2
add edx, r9d
cmp edx, ecx
jle 0x1400dbd62
lea rcx, [rbp - 0x40]
call fcn.14001c970
mov r8d, 1
lea rdx, [0x14026fbb0]
lea rcx, [rbp - 0x40]
call fcn.14001ed50
mov rcx, qword [0x140418a20]
mov rsi, qword [rbp - 0x40]
mov ebx, dword [rbp - 0x38]
mov edi, dword [rbp - 0x34]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x1400dbda0
call fcn.14004db90
mov rcx, qword [rbp - 0x20]
mov qword [0x140418a20], rsi
mov rsi, qword [rsp + 0x90]
mov dword [0x140418a28], ebx
mov rbx, qword [rsp + 0x88]
mov dword [0x140418a2c], edi
mov rdi, qword [rsp + 0x68]
test rcx, rcx
je 0x1400dbdd6
call fcn.14004db90
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400dbde4
call fcn.14004db90
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x140418a28]
test ecx, ecx
lea rax, [0x140264588]
cmovne rax, qword [0x140418a20]
add rsp, 0x70
pop rbp
ret
lea rcx, [0x140418a30]
call fcn.14024f710
cmp dword [0x140418a30], 0xffffffff
jne 0x1400dbc50
lea rcx, [0x140260510]
call fcn.14024f570
lea rcx, [0x140418a30]
call fcn.14024f6b0
jmp 0x1400dbc50
Function at 0x1400dbe50
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x488
mov rax, qword [0x14035d6e8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1404415e8]
mov edx, 0x1c
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140418a18], eax
jg 0x1400dc042
mov ecx, dword [0x140418a10]
test ecx, ecx
je 0x1400dbea5
lea eax, [rcx - 1]
test eax, eax
jne 0x1400dc019
mov qword [rsp + 0x490], rbx
lea rcx, [rsp + 0x260]
xor edx, edx
mov qword [rsp + 0x480], rdi
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x260]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor edi, edi
mov edx, edi
mov ecx, edi
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], ecx
mov qword [rsp + 0x30], rdi
cmp word [rsp + 0x50], di
je 0x1400dbf7d
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], cx
jne 0x1400dbf30
inc ebx
test ebx, ebx
jle 0x1400dbf53
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14001c970
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
lea eax, [rdx + rbx]
mov dword [rsp + 0x38], eax
cmp eax, ecx
jle 0x1400dbf68
lea rcx, [rsp + 0x30]
call fcn.14001c580
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
movsxd r8, ebx
add r8, r8
call fcn.140034a80
lea r9, [0x14026fbb0]
mov dword [rsp + 0x20], 1
lea r8, [0x140265790]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400217f0
mov rbx, rax
lea rax, [0x140418a08]
cmp rax, rbx
je 0x1400dbfe5
mov rcx, qword [0x140418a08]
test rcx, rcx
je 0x1400dbfc2
call fcn.14004db90
mov rcx, qword [rbx]
mov qword [0x140418a08], rcx
mov qword [rbx], rdi
mov eax, dword [rbx + 8]
mov dword [0x140418a10], eax
mov eax, dword [rbx + 0xc]
mov dword [0x140418a14], eax
mov qword [rbx + 8], rdi
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x480]
mov rbx, qword [rsp + 0x490]
test rcx, rcx
je 0x1400dc004
call fcn.14004db90
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400dc013
call fcn.14004db90
mov ecx, dword [0x140418a10]
test ecx, ecx
lea rax, [0x140264588]
cmovne rax, qword [0x140418a08]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14024f8b0
add rsp, 0x488
ret
lea rcx, [0x140418a18]
call fcn.14024f710
cmp dword [0x140418a18], 0xffffffff
jne 0x1400dbe90
lea rcx, [0x140260530]
call fcn.14024f570
lea rcx, [0x140418a18]
call fcn.14024f6b0
jmp 0x1400dbe90

Function at 0x1400dc790
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
test r8d, r8d
je 0x1400dc7cf
test rcx, rcx
je 0x1400dc7cf
xor eax, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test rbx, rbx
je 0x1400dc7d1
mov ecx, dword [rsp + 0x50]
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret