joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005912
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x14001cbe4]
cmp r15, 1
jne 0x1400059f8
push qword [0x14001ccd4]
pop rcx
call fcn.14000ba20
mov r15, rax
and r15, r15
jle 0x14000598e
mov rcx, qword [0x14001ccd4]
call fcn.14000ba28
mov rcx, qword [0x14001ccd4]
call fcn.14000ba3c
or rax, rax
je 0x14000598e
mov rbp, qword [0x14001ccdc]
push qword [rbp + 0x10]
pop rcx
call fcn.1400122d0
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x14000598c
mov rbp, qword [0x14001ccdc]
push qword [rbp + 0x10]
pop rcx
call fcn.140010270
jmp 0x14000594f
push qword [0x14001cce4]
pop rcx
call fcn.14000ba20
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400059f8
push 5
push 0
push 1
push qword [0x14001cce4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009170
mov rcx, qword [0x14001cce4]
call fcn.14000ba28
mov rcx, qword [0x14001cce4]
call fcn.14000ba3c
or rax, rax
je 0x1400059f8
mov rbp, qword [0x14001ccec]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x1400059d5
mov rax, 1
jmp 0x140005a04
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140009b30
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140009ba7
movsxd rdx, ecx
lea rcx, [0x140009a8c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14001cd00]
test rbx, rbx
je 0x140009c1a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140009b9d
cmp byte [rbx + 0x20], 0
je 0x140009b9d
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 0x140009b63
jmp 0x140009c1a
mov rbx, qword [0x14001cd00]
test rbx, rbx
je 0x140009c1a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140009c12
cmp byte [rbx + 0x21], 0
je 0x140009bd6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140009c02
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, [0x14001cd00]
call fcn.140013834
mov rbx, rdi
test rdi, rdi
jne 0x140009bb3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140009cf4
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 [0x14001d6a0]
call fcn.140012fdc
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140009dba
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140009d48
add rax, r9
cmp byte [rax], r10b
je 0x140009d40
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140009d7e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140009d79
cmp cl, 0x22
je 0x140009d6c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140009d5e
cmp byte [rax], 0
je 0x140009d79
mov rcx, rax
add rax, r9
jmp 0x140009da0
mov rcx, rax
jmp 0x140009da0
test dl, dl
je 0x140009d9d
mov rbx, rax
cmp dl, r10b
je 0x140009d93
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140009d85
cmp byte [rax], 0
mov rcx, rax
je 0x140009da0
jmp 0x140009d74
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140009daa
test rdi, rdi
jne 0x140009dc4
test r8d, r8d
je 0x140009db2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140009d3b
test rdi, rdi
jne 0x140009dd6
movsxd rax, esi
jmp 0x140009dd9
test rbx, rbx
je 0x140009dd6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140009dd9
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 0x140009eb4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14001d6a0]
call fcn.140012fdc
xor ecx, ecx
add rsp, 0x28
jmp fcn.140009cf4

Function at 0x140009fa8
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140009fc8
test rax, rax
lea rdx, [0x14001965e]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x14000a184
Capabilities:
Read file on windows

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, 0x30
mov r14, qword [rsp + 0x80]
or rbp, 0xffffffffffffffff
xor edi, edi
mov rsi, r9
mov r15, r8
mov r12, rdx
mov rbx, rcx
test r9, r9
je 0x14000a1df
cmp byte [r9], dil
je 0x14000a1df
mov rcx, r9
call fcn.140014ac0
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.14000a910
mov rdi, rax
jmp 0x14000a1f4
cmp dword [rcx + 0x10], edi
je 0x14000a2e6
movsxd rcx, dword [rcx + 0x18]
mov rax, qword [rbx + 8]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
je 0x14000a2e6
test r14, r14
je 0x14000a21a
mov r8, qword [rdi]
mov rcx, qword [0x14001c9f4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, qword [rdi]
mov r12, rax
test r12, r12
je 0x14000a2e6
cmp r15, qword [rdi]
jl 0x14000a2e6
mov edx, dword [rdi + 0x10]
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8, qword [rdi + 8]
cmp r8, qword [rdi]
jne 0x14000a276
mov r8d, dword [rdi]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x80]
cmp qword [rdi], r11
jne 0x14000a2e6
mov rbp, r11
jmp 0x14000a2e6
mov rcx, qword [0x14001c9f4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000a2e6
mov r8d, dword [rdi + 8]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x80]
cmp qword [rdi + 8], r11
jne 0x14000a2d4
mov rbx, qword [rdi]
mov r8, r15
mov rdx, r12
mov rcx, r13
call fcn.14000aadc
movsxd rcx, eax
cmp rcx, rbx
cmove rbp, rbx
mov rcx, qword [0x14001c9f4]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
je 0x14000a315
cmp rbp, 0xffffffffffffffff
jne 0x14000a30c
test r12, r12
je 0x14000a308
mov rcx, qword [0x14001c9f4]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebp, ebp
jmp 0x14000a315
mov rcx, qword [rdi]
mov rbp, r12
mov qword [r14], rcx
test rsi, rsi
je 0x14000a327
cmp byte [rsi], 0
je 0x14000a327
mov rcx, rsi
call fcn.140014ba0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000a430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rcx
mov rcx, r9
mov rsi, r8
mov r15, rdx
xor ebx, ebx
call fcn.140014ac0
mov rcx, qword [0x14001c9f4]
lea edi, [rsi + 0x18]
xor edx, edx
movsxd r8, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000a555
mov r9d, edi
mov r8, rax
mov edx, esi
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 5
call fcn.14000ab64
movsxd rdi, eax
test eax, eax
je 0x14000a4b4
cmp rdi, rsi
jge 0x14000a4b4
mov r15, r13
jmp 0x14000a4b6
mov edi, esi
mov rcx, r14
call sub.msvcrt.dll_strlen
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov word [rbp - 0x10], ax
movsxd rax, edi
lea rdx, [rbp - 0x20]
mov r8d, 0x12
mov qword [rbp - 0x20], rsi
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp + 0x30], 0x12
jne 0x14000a53b
movsx r8d, word [rbp - 0x10]
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsx r11d, word [rbp - 0x10]
cmp r11d, dword [rbp + 0x30]
jne 0x14000a53b
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov r8d, edi
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [rbp + 0x30]
mov eax, 1
cmove rbx, rax
mov rcx, r12
call fcn.14000a718
mov rcx, qword [0x14001c9f4]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call fcn.140014ba0
lea r11, [rsp + 0x50]
mov rax, rbx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000a784
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
cmp qword [rcx + 8], 0
mov rbx, rcx
mov esi, 0x40
jne 0x14000a8f8
mov rcx, qword [0x14001c9f4]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbx + 0x14], 0
lea edi, [rsi - 0x3c]
mov qword [rbx + 8], rax
mov edx, edi
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
cmp dword [rbx + 0x1c], 0x706c7a31
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
jne 0x14000a827
lea rdx, [rbp - 0x18]
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x18
jne 0x14000a8f8
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
movzx eax, word [rbp - 8]
mov word [rbp - 0x20], ax
jmp 0x14000a841
lea rdx, [rbp - 0x30]
mov r8d, 0x12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x12
jne 0x14000a8f8
cmp dword [rbx + 0x14], esi
jl 0x14000a86a
mov r8, qword [rbx + 8]
mov rcx, qword [0x14001c9f4]
add esi, 0x40
movsxd r9, esi
mov edx, 8
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx + 8], rax
movsx r8, word [rbp - 0x20]
mov rcx, qword [0x14001c9f4]
xor edx, edx
add r8, 0x19
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp - 0x30]
and qword [rsp + 0x20], 0
mov qword [rax], rcx
mov rcx, qword [rbp - 0x28]
lea rdx, [rax + 0x14]
mov qword [rax + 8], rcx
movsx r8d, word [rbp - 0x20]
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx r11, word [rbp - 0x20]
mov byte [r11 + r12 + 0x14], 0
cmp dword [rbx + 0x1c], 0x706c7a31
movsx rax, word [rbp - 0x20]
jne 0x14000a8cf
lea edi, [rdi + rax + 0x18]
jmp 0x14000a8d3
lea edi, [rdi + rax + 0x12]
mov dword [r12 + 0x10], edi
movsxd rcx, dword [rbx + 0x14]
add edi, dword [rbp - 0x28]
mov rax, qword [rbx + 8]
mov r9d, 1
mov qword [rax + rcx*8], r12
inc dword [rbx + 0x14]
mov edx, dword [rbp - 0x28]
jmp 0x14000a7d1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x14000c894
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 [0x14001d860]
call fcn.140012ef4
mov rsi, rax
test rax, rax
je 0x14000c90d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000c8d2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000c90d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400140d0
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.140014270
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000cdfc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000cf11
mov eax, dword [rsp + 0x30]
dec eax
je 0x14000ceee
dec eax
jne 0x14000cf11
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000ce69
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14000cee7
dec eax
je 0x14000cee0
dec eax
je 0x14000ceb6
dec eax
jne 0x14000cf11
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000ceaa
dec eax
je 0x14000ce9e
dec eax
jne 0x14000cf11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14000cf11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14000cf11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14000cf11
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000ced9
dec eax
je 0x14000ced2
dec eax
jne 0x14000cf11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14000cf11
mov ebx, 0x3c
jmp 0x14000cf11
mov ebx, 0x32
jmp 0x14000cf11
mov ebx, 0x14
jmp 0x14000cf11
mov ebx, 5
jmp 0x14000cf11
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000cf0c
cmp eax, 0xa
je 0x14000cf05
cmp eax, 0x5a
jne 0x14000cf11
lea ebx, [rax - 0x32]
jmp 0x14000cf11
mov ebx, 0x1e
jmp 0x14000cf11
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000e250
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 0x14000e2f9
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000e2f9
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e2f9
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e2f9
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e2f9
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 0x14000e2f9
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14000e3a3
test rbx, rbx
je 0x14000e338
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e32b
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e32b
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000e338
mov edx, 1
mov rcx, rbx
call fcn.14000e1fc
test rdi, rdi
je 0x14000e352
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14000e3a3
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14000e3a3
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000e3a3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14000e3a3
mov rcx, qword [0x14001d880]
lea rdx, [rdi - 1]
call fcn.140012ef4
test rax, rax
je 0x14000e3a3
mov rax, qword [rax + 0x10]
jmp 0x14000e3a5
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140010074
Capabilities:
Allocate thread local storage

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

Function at 0x14001008c
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.1400140d0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x1400100cb
cmp byte [rbx + rdi - 1], 0x5c
je 0x1400100cb
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140014270
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 0x1400100ec
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400100ff
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x140010101
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400101a4
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.1400140d0
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 0x140010216
lea rdx, [0x140019c48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001020d
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.140014270
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 0x14001023c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140010267
test dl, 2
je 0x14001025a
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 0x140010269
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14001023c

Function at 0x140010270
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140010267
test dl, 2
je 0x14001025a
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 0x140010269
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14001023c

Function at 0x140010278
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x1400102eb
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 0x1400102d7
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x1400102ca
cmp al, 0x5c
je 0x1400102ca
cmp al, 0x2f
jne 0x1400102d7
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1400102b8
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x1400102ed
xor eax, eax
add rsp, 0x138
ret

Function at 0x140010400
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 0x140010446
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 0x140010b50
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 0x140010be1
cmp byte [rdx], bl
je 0x140010be1
mov rdx, rcx
mov rcx, qword [0x14001da10]
call fcn.140012ef4
mov r11, rax
test rax, rax
je 0x140010bdd
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140010bbf
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.140010d80
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 0x140010c00
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 0x140010c78
test r8d, r8d
je 0x140010c78
mov rdx, rcx
mov rcx, qword [0x14001da10]
call fcn.140012ef4
test rax, rax
je 0x140010c74
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140010c61
mov rcx, rax
call fcn.140010d80
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 0x140010c90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x14001da10]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.140012ef4
mov rbx, rax
test rax, rax
je 0x140010d70
test rsi, rsi
je 0x140010d1b
cmp byte [rsi], bpl
je 0x140010d1b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x140010cf8
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140010d80
mov dword [rsp + 0x60], eax
jmp 0x140010d16
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, [0x140019c70]
cmp qword [rbx + 8], rbp
je 0x140010d49
mov rcx, rbx
call fcn.140010d80
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 0x140010d80
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 0x140010dca
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 0x140010e06
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x140010dff
dec edx
je 0x140010df7
cmp edx, 2
je 0x140010df1
mov rdx, rsi
jmp 0x140010e54
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x140010e5c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x140010e5c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x140010e5c
mov rcx, rbx
call fcn.140010400
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x140010e49
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