joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180034074
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1800180b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800340fe
cmp byte [rbp - 0x21], r15b
je 0x1800340f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180034134
call fcn.180026798
test eax, eax
jne 0x180034120
cmp byte [rbp - 0x21], r15b
je 0x180034118
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180034134
cmp byte [rbp - 0x21], r15b
je 0x180034131
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.18001814c
test eax, eax
jne 0x1800341d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800180b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180034173
cmp byte [rbp - 0x21], r15b
je 0x1800341a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800341a8
call fcn.180026798
test eax, eax
jne 0x180034194
cmp byte [rbp - 0x21], r15b
je 0x18003418d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800341a8
cmp byte [rbp - 0x21], r15b
je 0x1800341a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.18001814c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800341d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800341d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800341e5
mov rcx, rdi
call fcn.180024288
cmp byte [rbp + 0x3f], r15b
je 0x1800341f4
mov rcx, qword [rbp + 0x27]
call fcn.180024288
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400033f4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
mov rax, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14000340d
sub rsp, 0x28
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140011b10
add rsp, 0x10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.140011b10
add rsp, 0x10
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.140011b10
add rsp, 0x10
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x140
mov dword [rbp + 0x30], 0
movabs rax, 0x14001608f
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.SHELL32.DLL_ShellExecuteExA
mov qword [rsp + 0xb0], rax
push 0x19
pop rcx
call fcn.14000ab38
lea rax, [rsp + 0xb8]
mov rax, rax
push rax
lea rbp, [rsp + 0x48]
push qword [rbp + 0x68]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeProcess
and rax, rax
je 0x140003521
mov r15, qword [rsp + 0xb8]
cmp r15, 0x103
je 0x140003521
jmp 0x140003523
jmp 0x1400034e3
mov rax, 1
jmp 0x14000352f
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140011b80
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140011b80
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140011b80
add rsp, 0x28
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret
Function at 0x140003572
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
call fcn.14000db00
mov qword [rsp + 0x28], rax
push qword [0x140018080]
sub rsp, 8
push qword [0x140018080]
pop rcx
sub rsp, 0x20
call fcn.14000dcd4
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140011980
push qword [rsp + 0x28]
push 0
movabs rax, 0x14001601e
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_GetTempFileNameA
push qword [0x140018080]
sub rsp, 8
push qword [0x140018080]
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14000d9d0
add rsp, 0x28
lea rcx, [0x140017ac4]
pop rdx
call fcn.140011980
push qword [rsp + 0x28]
pop rcx
call fcn.14000db20
push qword [0x140017ac4]
pop rcx
call fcn.14000dda0
push qword [0x140017ac4]
pop rcx
call fcn.14000dda8
push qword [0x140018080]
sub rsp, 8
push qword [0x140018080]
pop rcx
sub rsp, 0x20
call fcn.14000dbbc
add rsp, 0x28
lea rcx, [0x140017a04]
pop rdx
call fcn.140011980
push qword [rsp + 0x50]
pop rcx
call fcn.14000db40
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x1400036ad
mov rcx, qword [0x140017ac4]
push qword [0x140018080]
sub rsp, 0x20
call fcn.140011aa0
add rsp, 0x20
lea rcx, [0x140017a04]
pop rdx
sub rsp, 0x28
call fcn.140011980
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x1400036c3
mov r15, 1
cmp r15, qword [rsp]
jne 0x1400036c3
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
call fcn.14000db40
mov qword [0x140017a5c], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.14000db40
mov qword [0x140017934], rax
mov rax, 1
jmp 0x140003709
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140011b80
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140004251
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140004264
sub rsp, 0x28
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140011b10
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x80]
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_FindResourceA
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400042e2
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [0x14001793c], rax
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x140017964], rax
push qword [0x140017964]
pop rcx
call fcn.14000db00
mov qword [rsp + 0x38], rax
push qword [0x140017964]
push qword [0x14001793c]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
call sub.msvcrt.dll_memcpy
push qword [rsp + 0x38]
pop rax
mov qword [0x14001793c], rax
push qword [rsp + 0x28]
movabs rcx, 0x14001606e
pop rdx
call fcn.140011a40
or rax, rax
je 0x1400043b3
push qword [0x140017964]
pop rcx
call fcn.14000db00
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov r15, qword [0x140017964]
dec r15
cmp r15, qword [rsp + 0x48]
jl 0x1400043a7
mov r15, qword [rsp + 0x38]
add r15, qword [rsp + 0x48]
mov rax, r15
push rax
pop rcx
call fcn.14000db40
mov qword [rsp + 0x50], rax
mov r15, qword [rsp + 0x50]
imul r15, r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
push qword [rsp + 0x58]
mov r15, qword [rsp + 0x48]
add r15, qword [rsp + 0x50]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.14000db50
inc qword [rsp + 0x48]
jno 0x14000434f
push qword [rsp + 0x40]
pop rax
mov qword [0x14001793c], rax
mov rax, qword [rsp + 0x30]
jmp 0x1400043bd
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140011b80
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret
Function at 0x1400047ea
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x140017a5c]
cmp r15, 1
jne 0x1400048d0
push qword [0x140017b04]
pop rcx
call fcn.140009630
mov r15, rax
and r15, r15
jle 0x140004866
mov rcx, qword [0x140017b04]
call fcn.140009638
mov rcx, qword [0x140017b04]
call fcn.14000964c
or rax, rax
je 0x140004866
mov rbp, qword [0x140017b0c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000fe00
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x140004864
mov rbp, qword [0x140017b0c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000dda0
jmp 0x140004827
push qword [0x140017b14]
pop rcx
call fcn.140009630
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400048d0
push 5
push 0
push 1
push qword [0x140017b14]
pop rcx
pop rdx
pop r8
pop r9
call fcn.1400080e0
mov rcx, qword [0x140017b14]
call fcn.140009638
mov rcx, qword [0x140017b14]
call fcn.14000964c
or rax, rax
je 0x1400048d0
mov rbp, qword [0x140017b1c]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x1400048ad
mov rax, 1
jmp 0x1400048dc
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140008aa0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008b17
movsxd rdx, ecx
lea rcx, [0x1400089fc]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140017b30]
test rbx, rbx
je 0x140008b8a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b0d
cmp byte [rbx + 0x20], 0
je 0x140008b0d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008ad3
jmp 0x140008b8a
mov rbx, qword [0x140017b30]
test rbx, rbx
je 0x140008b8a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b82
cmp byte [rbx + 0x21], 0
je 0x140008b46
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008b72
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140017b30]
call fcn.140011364
mov rbx, rdi
test rdi, rdi
jne 0x140008b23
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008c64
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1400180c0]
call fcn.140010b0c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140008d2a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140008cb8
add rax, r9
cmp byte [rax], r10b
je 0x140008cb0
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140008cee
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140008ce9
cmp cl, 0x22
je 0x140008cdc
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140008cce
cmp byte [rax], 0
je 0x140008ce9
mov rcx, rax
add rax, r9
jmp 0x140008d10
mov rcx, rax
jmp 0x140008d10
test dl, dl
je 0x140008d0d
mov rbx, rax
cmp dl, r10b
je 0x140008d03
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140008cf5
cmp byte [rax], 0
mov rcx, rax
je 0x140008d10
jmp 0x140008ce4
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140008d1a
test rdi, rdi
jne 0x140008d34
test r8d, r8d
je 0x140008d22
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140008cab
test rdi, rdi
jne 0x140008d46
movsxd rax, esi
jmp 0x140008d49
test rbx, rbx
je 0x140008d46
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140008d49
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140008e24
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400180c0]
call fcn.140010b0c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140008c64

Function at 0x140008f18
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140008f38
test rax, rax
lea rdx, [0x14001543e]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret

Function at 0x14000a4a4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140018200]
call fcn.140010a24
mov rsi, rax
test rax, rax
je 0x14000a51d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000a4e2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000a51d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140011bb0
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.140011d50
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000be60
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14000bf09
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000bf09
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bf09
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bf09
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bf09
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000bf09
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14000bfb3
test rbx, rbx
je 0x14000bf48
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bf3b
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bf3b
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000bf48
mov edx, 1
mov rcx, rbx
call fcn.14000be0c
test rdi, rdi
je 0x14000bf62
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14000bfb3
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14000bfb3
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000bfb3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14000bfb3
mov rcx, qword [0x140018220]
lea rdx, [rdi - 1]
call fcn.140010a24
test rax, rax
je 0x14000bfb3
mov rax, qword [rax + 0x10]
jmp 0x14000bfb5
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000dba4
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400183a0], eax
add rsp, 0x28
ret

Function at 0x14000dbbc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140011bb0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000dbfb
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000dbfb
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140011d50
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14000dc1c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000dc2f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14000dc31
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000dcd4
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 ebx, 0x104
mov ecx, ebx
call fcn.140011bb0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x14000dd46
lea rdx, [0x140015a28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000dd3d
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.140011d50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000dd6c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000dd97
test dl, 2
je 0x14000dd8a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000dd99
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000dd6c

Function at 0x14000dda0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000dd97
test dl, 2
je 0x14000dd8a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000dd99
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000dd6c

Function at 0x14000dda8
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14000de1b
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000de07
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14000ddfa
cmp al, 0x5c
je 0x14000ddfa
cmp al, 0x2f
jne 0x14000de07
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000dde8
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14000de1d
xor eax, eax
add rsp, 0x138
ret

Function at 0x14000df30
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 0x14000df76
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x14000e680
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 rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000e711
cmp byte [rdx], bl
je 0x14000e711
mov rdx, rcx
mov rcx, qword [0x1400183b0]
call fcn.140010a24
mov r11, rax
test rax, rax
je 0x14000e70d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000e6ef
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.14000e8b0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
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 0x14000e730
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 rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000e7a8
test r8d, r8d
je 0x14000e7a8
mov rdx, rcx
mov rcx, qword [0x1400183b0]
call fcn.140010a24
test rax, rax
je 0x14000e7a4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000e791
mov rcx, rax
call fcn.14000e8b0
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 0x14000e7c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400183b0]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.140010a24
mov rbx, rax
test rax, rax
je 0x14000e8a0
test rsi, rsi
je 0x14000e84b
cmp byte [rsi], bpl
je 0x14000e84b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x14000e828
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14000e8b0
mov dword [rsp + 0x60], eax
jmp 0x14000e846
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x140015a50]
cmp qword [rbx + 8], rbp
je 0x14000e879
mov rcx, rbx
call fcn.14000e8b0
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e8b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x14000e8fa
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x14000e936
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14000e92f
dec edx
je 0x14000e927
cmp edx, 2
je 0x14000e921
mov rdx, rsi
jmp 0x14000e984
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14000e98c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14000e98c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14000e98c
mov rcx, rbx
call fcn.14000df30
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14000e979
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret