joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f9a0
Capabilities:
Set registry value

Disassembly:
push rdi
mov eax, 0x1090
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10b8], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x1088], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x1080], r8d
lea rcx, [rsp + 0x38]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x1080]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.140014ff0
test ebx, ebx
je 0x14002fa6c
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400230c0
nop
mov rcx, rax
call fcn.140012310
mov r8, rax
mov r9d, ebx
lea rdx, str.Could_not_set_registry_value_as_32_bit_unsigned_int_with_name__s___i_.
lea rcx, [rsp + 0x60]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x60]
call fcn.1401419e8
nop
mov rcx, qword [rsp + 0x1088]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x1090
pop rdi
ret

Function at 0x140030860
Capabilities:
Get session information

Disassembly:
push rdi
mov eax, 0x10a0
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10c0], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x1088], eax
mov qword [rsp + 0x1080], rax
lea rax, [rsp + 0x1088]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1080]
mov r8d, 0x18
mov edx, dword [rcx]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x14003090a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rdi]
lea rdx, str.Could_not_get_domain_for_session_ID__i___i_.
lea rcx, [rsp + 0x60]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x60]
call fcn.1401419e8
int3
lea rdx, [rsp + 0x1080]
lea rcx, [rsp + 0x48]
call fcn.140030ca0
nop
mov rdx, qword [rsp + 0x1080]
add rdx, 0x60
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140030930
mov rcx, rbx
call fcn.140023060
nop
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x48]
call fcn.140030c20
mov rax, rbx
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x10c0]
add rsp, 0x10a0
pop rdi
ret
Function at 0x140030990
Capabilities:
Get session information

Disassembly:
push rdi
mov eax, 0x10a0
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10c0], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x1088], eax
mov qword [rsp + 0x1080], rax
lea rax, [rsp + 0x1088]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1080]
mov r8d, 0x18
mov edx, dword [rcx]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x140030a3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rdi]
lea rdx, str.Could_not_get_username_for_session_ID__i___i_.
lea rcx, [rsp + 0x60]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x60]
call fcn.1401419e8
int3
lea rdx, [rsp + 0x1080]
lea rcx, [rsp + 0x48]
call fcn.140030ca0
nop
mov rdx, qword [rsp + 0x1080]
add rdx, 0x82
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140030a60
mov rcx, rbx
call fcn.140023060
nop
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x48]
call fcn.140030c20
mov rax, rbx
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x10c0]
add rsp, 0x10a0
pop rdi
ret

Function at 0x140030f80
Capabilities:
Delete file

Disassembly:
push rdi
mov eax, 0x1070
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete bl
lea rcx, [rsp + 0x28]
call fcn.140014ff0
test bl, bl
je 0x14003101e
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400230c0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140012310
mov r8, rax
mov r9d, ebx
lea rdx, str.Could_not_delete_file_at___s____i_.
lea rcx, [rsp + 0x50]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x50]
call fcn.1401419e8
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret

Function at 0x140031030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.140014ff0
cmp ebx, 0xffffffff
je 0x140031078
test bl, 0x10
jne 0x140031078
mov al, 1
jmp 0x14003107a
xor al, al
add rsp, 0x50
pop rbx
ret
Function at 0x1400320e0
Capabilities:
Connect pipe

Disassembly:
push rbx
mov eax, 0x1040
call fcn.140114010
sub rsp, rax
mov rbx, rcx
lea rdx, [rcx + 0x1010]
mov rcx, qword [rcx + 0x1030]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140032155
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140032131
cmp eax, 0x3e5
jne 0x140032178
mov dword [rbx + 0x1038], 0x11
add rsp, 0x1040
pop rbx
ret
mov rcx, qword [rbx + 0x1000]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x14003219b
mov dword [rbx + 0x1038], 2
add rsp, 0x1040
pop rbx
ret
lea rdx, str.ConnectNamedPipe_returned_non_null_value_while_trying_to_connect_named_pipe_server_instance.
lea rcx, [rsp + 0x20]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x20]
call fcn.1401419e8
int3
lea rdx, str.Failed_trying_to_connect_named_pipe_server_instance.
lea rcx, [rsp + 0x20]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x20]
call fcn.1401419e8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_set_event___i_.
lea rcx, [rsp + 0x20]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x20]
call fcn.1401419e8
int3

Function at 0x1400321d0
Capabilities:
Create pipe

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x10b0
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x10a8], rax
mov rbx, r8
mov rsi, rcx
xor eax, eax
mov qword [rsp + 0x1090], rax
mov qword [rsp + 0x1098], rax
mov qword [rsp + 0x10a0], rax
test r8, r8
je 0x140032242
mov dword [rsp + 0x1090], 0x18
mov dword [rsp + 0x10a0], 1
mov rax, qword [r8]
mov qword [rsp + 0x1098], rax
lea rcx, [rsp + 0x50]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
lea rcx, [rsp + 0x1090]
xor edx, edx
test rbx, rbx
cmove rcx, rdx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
cmp rax, qword [rsi + 0x1030]
je 0x1400322ca
lea rcx, [rsi + 0x1030]
call fcn.14002a6d0
mov qword [rsi + 0x1030], rdi
lea rcx, [rsp + 0x40]
call fcn.14002a630
nop
lea rcx, [rsp + 0x50]
call fcn.140014ff0
cmp qword [rsi + 0x1030], 0xffffffffffffffff
jne 0x14003230c
lea rdx, str.Could_not_create_named_pipe_while_trying_to_create_named_pipe_server_instance.
lea rcx, [rsp + 0x70]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x70]
call fcn.1401419e8
int3
mov rcx, qword [rsp + 0x10a8]
xor rcx, rsp
call fcn.140113910
add rsp, 0x10b0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400325d0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
lea rax, [rcx + 0x1010]
mov qword [r11 - 0x48], rax
lea r9, [rcx + 0x1058]
mov r8d, 0x1000
mov rdx, rcx
mov rcx, qword [rcx + 0x1030]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
test al, al
je 0x1400326ab
cmp dword [rdi + 0x1058], 0
je 0x140032716
lea rbx, [rdi + 0x1040]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140027860
mov r9d, dword [rdi + 0x1058]
add r9, rdi
mov r8, rdi
mov rdx, qword [rax]
mov rcx, rbx
call fcn.140032b70
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14001a210
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov rax, qword [rdi + 0x1008]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov rax, qword [rbx]
mov qword [rbx + 8], rax
jmp 0x14003269f
mov dword [rdi + 0x1038], 2
jmp 0x140032726
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400326c6
mov dword [rdi + 0x1038], 0x12
xor al, al
jmp 0x140032728
cmp eax, 0xea
jne 0x140032716
lea rdx, [rsp + 0x48]
lea rcx, [rdi + 0x1040]
call fcn.140027860
lea r9, [rdi + 0x1000]
mov r8, rdi
mov rdx, qword [rax]
lea rcx, [rdi + 0x1040]
call fcn.140032b70
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 0x1040]
call fcn.14001a210
mov dword [rdi + 0x1038], 2
xor al, al
jmp 0x140032728
mov rcx, rdi
call fcn.140032330
mov rcx, rdi
call fcn.1400320e0
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14003dc70
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
mov eax, 0x1080
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1098], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x1078], rax
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x1070], rax
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x1070]
call fcn.140027c30
nop
lea rax, [rdi + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x14003df40]
xor edx, edx
xor ecx, ecx
call fcn.14014b7c4
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x30], 0
mov rcx, qword [rdi]
cmp rax, rcx
je 0x14003dd43
test rcx, rcx
je 0x14003dd40
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14003dd39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_close_handle___i_.
lea rcx, [rsp + 0x50]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x50]
call fcn.1401419e8
int3
mov qword [rdi], 0
mov qword [rdi], rbx
lea rcx, [rsp + 0x30]
call fcn.140023ea0
mov qword [rsp + 0x38], 0
cmp qword [rdi], 0
sete bl
lea rcx, [rsp + 0x38]
call fcn.140023ea0
test bl, bl
je 0x14003dd8e
lea rdx, str.Thread_cannot_start.
lea rcx, [rsp + 0x50]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x50]
call fcn.1401419e8
int3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
lea rcx, [rsp + 0x1070]
call fcn.140027cc0
mov rcx, qword [rsp + 0x1078]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x1098]
add rsp, 0x1080
pop rdi
ret

Function at 0x14003ddd0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x28]
call fcn.140027c30
nop
movzx eax, byte [rbx + 0x80]
test al, al
je 0x14003de22
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003de22
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
xchg byte [rbx + 0x80], al
lea rcx, [rsp + 0x28]
call fcn.140027cc0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140113910
add rsp, 0x40
pop rbx
ret

Function at 0x14003e170
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x68]
mov ebx, edx
mov rax, r8
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x68], edx
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14003e1cb
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140113910
add rsp, 0x80
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rdx, str.Could_not_write__i_bytes_to_file_stream___i_.
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.14003e0d0
lea rdx, [0x1403080b0]
lea rcx, [rsp + 0x30]
call fcn.1401419e8
int3
Function at 0x14003e4a0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rbp + 0xfd8], rax
mov rsi, r9
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rbp + 0xfb8]
call fcn.14003e790
nop
xor eax, eax
mov qword [rbp + 0xfa0], rax
mov qword [rbp + 0xfa8], rax
mov qword [rbp + 0xfb0], rax
test rsi, rsi
je 0x14003e530
mov dword [rbp + 0xfa0], 0x18
mov dword [rbp + 0xfb0], 1
mov rax, qword [rsi]
mov qword [rbp + 0xfa8], rax
lea rax, vtable.Mutex.0
mov qword [rdi], rax
mov qword [rdi + 8], r14
mov dword [rsp + 0x20], 1
lea rdx, [rbp + 0xfb8]
lea rcx, [rsp + 0x40]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
lea rcx, [rbp + 0xfa0]
test rsi, rsi
cmove rcx, r14
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 8]
call fcn.14002e1c0
nop
lea rcx, [rsp + 0x28]
call fcn.140023ea0
nop
lea rcx, [rsp + 0x40]
call fcn.140014ff0
cmp qword [rdi + 8], 0
jne 0x14003e635
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14003e5ea
lea rcx, [rbp + 0xfb8]
call fcn.140012310
mov r8, rax
lea rdx, str.Access_is_denied_when_creating_mutex:__s
lea rcx, [rsp + 0x40]
call fcn.14003e410
lea rdx, [0x1403080f0]
lea rcx, [rsp + 0x40]
call fcn.1401419e8
int3
lea rdx, [rbp + 0xfb8]
lea rcx, [rsp + 0x40]
call fcn.1400230c0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140012310
mov r8, rax
mov r9d, ebx
lea rdx, str.Could_not_create_open_mutex_with_name__s___i_.
lea rcx, [rbp - 0x80]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rbp - 0x80]
call fcn.1401419e8
nop
lea rcx, [rbp + 0xfb8]
call fcn.1400091f0
mov rax, rdi
mov rcx, qword [rbp + 0xfd8]
xor rcx, rsp
call fcn.140113910
add rsp, 0x10e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140048c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.140014ff0
cmp ebx, 0xffffffff
je 0x140048c68
test bl, 0x10
je 0x140048c68
mov al, 1
jmp 0x140048c6a
xor al, al
add rsp, 0x50
pop rbx
ret
Function at 0x140048c70
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x1070
call fcn.140114010
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete bl
lea rcx, [rsp + 0x28]
call fcn.140014ff0
test bl, bl
je 0x140048d10
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400230c0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140012310
mov r8, rax
mov r9d, ebx
lea rdx, str.Could_not_create_directory_at__s___i_.
lea rcx, [rsp + 0x50]
call fcn.140023c00
lea rdx, [0x140307e10]
lea rcx, [rsp + 0x50]
call fcn.1401419e8
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret
Function at 0x14004ed00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x80
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
lea rax, [r11 - 0x38]
mov qword [r11 - 0x68], rax
mov rdx, rcx
lea rcx, [r11 - 0x38]
call fcn.140009400
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140023130
nop
mov rcx, rax
call fcn.1400157e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140014ff0
cmp ebx, 0xffffffff
je 0x14004ed75
test bl, 0x10
jne 0x14004ed7f
lea rcx, [rsp + 0x50]
call fcn.140048c70
mov rcx, rdi
call fcn.140012310
mov rcx, rax
call fcn.1400fd6a0
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.1400091f0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x14004edd0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x20], 0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140317348], eax
jle 0x14004ee78
lea rcx, [0x140317348]
call fcn.140113e28
cmp dword [0x140317348], 0xffffffff
jne 0x14004ee78
mov r9d, 6
lea r8, str.Temp_
lea rcx, [0x140317328]
call fcn.140022cc0
nop
lea rcx, [0x1401f7690]
call fcn.14011385c
nop
lea rcx, [0x140317348]
call fcn.140113dc8
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.140141ad0
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14004ef7e
cmp eax, 0x104
jae 0x14004eec7
mov r9d, eax
lea r8, [rsp + 0x70]
mov rcx, rbx
call fcn.140022cc0
nop
mov dword [rsp + 0x20], 1
jmp 0x14004efde
lea edx, [rax + 1]
lea rcx, [rsp + 0x28]
call fcn.14004f1d0
nop
mov rcx, qword [rsp + 0x28]
call fcn.14000a090
mov rcx, qword [rsp + 0x30]
sub rcx, qword [rsp + 0x28]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
test eax, eax
je 0x14004ef50
mov rcx, qword [rsp + 0x28]
call fcn.14000a090
mov r9d, edi
mov r8, rax
mov rcx, rbx
call fcn.140022cc0
nop
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14004efde
mov r8, qword [rsp + 0x38]
sub r8, rdx
lea rcx, [rsp + 0x28]
call fcn.14000a5b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
jmp 0x14004efde
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14004ef7e
mov r8, qword [rsp + 0x38]
sub r8, rdx
lea rcx, [rsp + 0x28]
call fcn.14000a5b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x50]
call fcn.14004f010
nop
lea rcx, [rsp + 0x50]
call fcn.140009110
mov rcx, rbx
test eax, eax
je 0x14004efb5
lea r8, [0x140317328]
lea rdx, [rsp + 0x50]
call fcn.140022660
mov dword [rsp + 0x20], 1
jmp 0x14004efd4
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
call fcn.1400093c0
nop
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.1400091f0
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140113910
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004f010
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.140141ad0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x14004f143
cmp eax, 0x104
jae 0x14004f093
mov r9d, eax
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.140022cc0
nop
jmp 0x14004f15d
lea edx, [rax + 1]
lea rcx, [rsp + 0x28]
call fcn.14004f1d0
nop
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
sub rbx, rcx
call fcn.14000a090
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, eax
test eax, eax
je 0x14004f115
mov rcx, qword [rsp + 0x28]
call fcn.14000a090
mov r9d, ebx
mov r8, rax
mov rcx, rdi
call fcn.140022cc0
nop
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14004f165
mov r8, qword [rsp + 0x38]
sub r8, rdx
lea rcx, [rsp + 0x28]
call fcn.14000a5b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
jmp 0x14004f165
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14004f143
mov r8, qword [rsp + 0x38]
sub r8, rdx
lea rcx, [rsp + 0x28]
call fcn.14000a5b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, rdi
call fcn.1400093c0
nop
mov dword [rsp + 0x20], 1
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x1400585a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140058778
cmp byte [rcx + 0x71], 0
je 0x140058778
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400585fa
xor al, al
jmp 0x14005877a
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x60]
call fcn.140015740
nop
nop dword [rax]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.140009110
add rbx, rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rbx
mov r8, rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x14005867c
sub eax, 1
jne 0x140058758
jmp 0x140058680
mov byte [rdi + 0x71], 0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
mov rbx, qword [rsp + 0x30]
sub rbx, rax
je 0x1400586d8
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
mov rcx, rax
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.1401615d8
cmp rbx, rax
jne 0x14005875d
cmp byte [rdi + 0x71], 0
je 0x140058767
test rbx, rbx
jne 0x140058610
lea rcx, [rsp + 0x60]
call fcn.1400099c0
mov rcx, qword [rax]
not rcx
cmp rcx, 8
lea rcx, [rsp + 0x60]
jbe 0x140058761
call fcn.1400099c0
mov rbx, qword [rax]
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x60]
call fcn.14000a700
test al, al
je 0x140058610
lea rcx, [rsp + 0x60]
call fcn.1400099c0
xor r9d, r9d
lea r8d, [r9 + 8]
mov rdx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.1400164a0
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x60]
call fcn.14000a7f0
jmp 0x140058610
sub eax, 2
je 0x140058767
xor bl, bl
jmp 0x140058769
call fcn.14000a680
int3
mov bl, 1
lea rcx, [rsp + 0x60]
call fcn.1400091f0
movzx eax, bl
jmp 0x14005877a
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140113910
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret