joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140153580
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14015358d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14015359d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140153585
lea eax, [rcx + 1]
jmp 0x1401535ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401535be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401535a4
sub eax, 3
jb 0x1401535de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14015362d
sar eax, 1
movsxd rbp, eax
jb 0x140153614
jmp 0x1401535ec
add ebx, ebx
jne 0x1401535ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140153614
inc ecx
add ebx, ebx
jne 0x1401535fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140153614
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14015360d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401535fc
add ecx, 2
jmp 0x140153619
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140153542
jmp 0x14015358d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xcf800
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140153679
cmp rsi, rcx
jae 0x140153681
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140153660
cmp al, 0x8f
ja 0x140153660
cmp byte [rsi - 2], 0xf
je 0x140153666
sub al, 0xe8
cmp al, 1
ja 0x14015364a
cmp rsi, rcx
jae 0x140153681
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140153650
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140153681
lodsb al, byte [rsi]
jmp 0x140153660
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x14e000]
mov eax, dword [rdi]
or eax, eax
je 0x1401536ea
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x156ff0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14015368e
jns 0x1401536c3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401536cd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401536e4
mov qword [rbx], rax
add rbx, 8
jmp 0x1401536ae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140153724
cmp al, 0xef
ja 0x140153716
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401536f6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140153705
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140153778
sub rsp, 0xffffffffffffff80
jmp 0x1400c98e8
Function at 0x140006040
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r14d, r14d
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov rcx, rax
mov qword [rbp - 0x18], r14
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x20], r14d
call fcn.140012fd8
mov ebx, eax
test eax, eax
js 0x140006106
jmp 0x1400060e5
mov rcx, qword [rbp - 0x18]
mov edx, 0xfffd
movzx eax, word [rcx]
sub ax, 0x2d
test dx, ax
jne 0x140006147
lea rbx, [rcx + 2]
mov rdx, rbx
lea rcx, str.standalone
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400060cb
mov dword [rsi], 1
jmp 0x1400060e5
mov rdx, rbx
lea rcx, str.standalone:temp
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140006130
mov dword [rdi], 1
mov rcx, qword [rbp - 0x10]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x18]
call fcn.140012fd8
mov ebx, eax
test eax, eax
je 0x140006092
test eax, eax
cmovns ebx, r14d
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140006114
call fcn.140010d48
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
mov rdx, rbx
lea rcx, str.standalone:delete
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, 0x80070057
jmp 0x140006106
mov ebx, 0x80070057
jmp 0x14000610a
Function at 0x14000e614
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10b8]
mov eax, 0x11b8
call fcn.1400149c0
sub rsp, rax
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rbp + 0x10a0], rax
mov rdi, qword [rbp + 0x1110]
mov rsi, r8
and qword [rsp + 0x38], 0
mov r15, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x1154
lea rcx, [rsp + 0x40]
and qword [rdi], 0
mov r14, r9
call fcn.140015700
or r9, 0xffffffffffffffff
mov dword [rsp + 0x40], 0x1154
mov r8, rbx
mov dword [rsp + 0x44], 7
mov edx, 0x80
lea rcx, [rsp + 0x48]
call fcn.140018a60
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1048
mov qword [rsp + 0x28], rax
lea rdx, str.Path
lea rax, [rbp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e74e
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea rdx, str.Priority
lea rax, [rbp + 0x1090]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e74e
lea r9, [rsp + 0x38]
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14000e550
mov ebx, eax
test eax, eax
js 0x14000e74e
mov rax, qword [rsp + 0x38]
xor edx, edx
mov qword [rdi], rax
xor ebx, ebx
mov qword [rsp + 0x38], rdx
jmp 0x14000e753
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000e76d
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rcx, qword [rbp + 0x10a0]
xor rcx, rsp
call fcn.1400148c0
add rsp, 0x11b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000eb68
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x258]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x14000eb93
lea ebx, [rcx + 2]
jmp 0x14000ec6d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x14000ec6d
cmp dword [rdi + 0x18], ebx
jne 0x14000ec6d
and qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x34]
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x258], rax
mov esi, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x14000ebfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ec6d
mov rdx, qword [rdi + 0x248]
xor r9d, r9d
mov rcx, qword [rdi + 0x258]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000ec30
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ec6d
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14000ec55
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ec6d
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov r9, qword [rcx]
call qword [r9 + 0xa0]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x14000ec88
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001016c
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 + 0x18], 0
mov rdi, rcx
and dword [rsp + 0x78], 0
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400101a2
lea r8, [r11 + 0x18]
mov rdx, rax
xor ecx, ecx
call fcn.1400103d0
mov ebx, eax
test eax, eax
jmp 0x140010208
mov r9d, dword [rdx + 0x1c]
lea rax, [rsp + 0x80]
mov r8d, dword [rdx + 0x18]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x20]
mov dl, byte [rdx + 0x16]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14001020a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010245
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14001023c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010245
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140010258
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400103d0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov r14d, 0x44
mov r15, rdx
mov dword [rbp - 0x10], r14d
mov r12, rcx
mov dword [rbp + 0x48], 0xff
mov ecx, r14d
mov r13, r8
lea edx, [r14 - 0x43]
call fcn.1400144f8
mov rdi, rax
test rax, rax
jne 0x140010427
mov ebx, 0x8007000e
jmp 0x140010527
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010764
mov ebx, eax
test eax, eax
js 0x140010527
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001051f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001050d
cmp dword [rbp - 0x10], r14d
jbe 0x1400104ba
mov edx, dword [rbp - 0x10]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.14001455c
mov r14, rax
test rax, rax
jne 0x1400104b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010527
mov rdi, r14
cmp dword [rbp + 0x48], 0xff
jbe 0x1400104d5
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010764
mov ebx, eax
test eax, eax
js 0x140010527
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001051f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010527
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140010535
call fcn.140010d48
test rdi, rdi
je 0x140010542
mov rcx, rdi
call fcn.14001452c
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140010560
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbp, rdx
mov ebx, edi
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140010620
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140010620
movzx eax, word [rsi]
xor edx, edx
mov rcx, rsi
test ax, ax
je 0x14001061b
lea r8d, [rdi + 0x5c]
cmp ax, r8w
cmove rdi, rcx
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1400105ae
test rdi, rdi
je 0x14001061b
mov word [rdi], dx
mov rcx, rsi
mov rdx, rbp
call fcn.140010560
mov ebx, eax
mov eax, 0x5c
mov word [rdi], ax
test ebx, ebx
js 0x140010620
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140010617
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140010607
mov ebx, 1
jmp 0x140010620
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010620
xor ebx, ebx
jmp 0x140010620
mov ebx, 0x80070003
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140010714
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
and qword [rdx], 0
mov rbx, rdx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140010747
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140010751
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140010e78
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x10058
call fcn.1400149c0
sub rsp, rax
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rsp + 0x10040], rax
and qword [rsp + 0x38], 0
xor ebx, ebx
and dword [rsp + 0x30], 0
mov r14, r9
cmp qword [0x140037b38], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x140010efb
mov eax, dword [0x140037b40]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x140037b38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140010efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010fc0
mov rcx, qword [0x140037b38]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140010f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010fc0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x10000
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010f77
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010fc0
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x140010f96
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x140010f22
xor ebx, ebx
mov r9, r14
and dword [rsp + 0x20], ebx
mov r8, rbp
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140010fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140010fd0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.1400148c0
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400114c0
Capabilities:
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r12d, r12d
mov r15, r9
mov qword [rbp + 0x40], r12
mov rsi, rdx
mov rdi, rcx
mov r13d, r12d
test rcx, rcx
je 0x14001152e
cmp word [rcx], r12w
je 0x14001152e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rdi
lea ecx, [rax + 3]
add ecx, ebx
movsxd r8, ecx
lea rcx, [rbp + 0x40]
call fcn.1400108d0
mov ebx, eax
test eax, eax
js 0x1400116dd
mov rdi, rsi
jmp 0x140011568
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rbp + 0x40]
movsxd rdx, eax
call fcn.140010764
mov ebx, eax
test eax, eax
js 0x1400116dd
mov rcx, qword [rbp + 0x40]
or r9, 0xffffffffffffffff
mov r8, rsi
lea edx, [r9 + 5]
call fcn.140018a60
lea rdi, [rsi + 6]
mov rdx, qword [rbp + 0x40]
mov r8d, 0x5c
movzx ecx, word [rdx]
cmp r8w, cx
jne 0x140011582
cmp r8w, word [rdx + 2]
je 0x1400115b3
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140011599
sub cx, 0x41
cmp cx, 0x19
ja 0x1400116d6
mov eax, 0x3a
cmp ax, word [rdx + 2]
jne 0x1400116d6
cmp r8w, word [rdx + 4]
jne 0x1400116d6
test r15, r15
je 0x1400115cb
mov dword [rbp - 0x20], 0x18
lea r13, [rbp - 0x20]
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x10], r12d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x40]
movsxd rcx, eax
movzx eax, word [rdi]
lea r14, [rdx + rcx*2]
test ax, ax
je 0x1400116e1
mov r12d, dword [rbp + 0x60]
xor ecx, ecx
lea r8d, [rcx + 0x5c]
cmp r8w, ax
jne 0x140011604
cmp rdi, rsi
je 0x1400116c4
mov word [r14], ax
cmp r8w, ax
jne 0x1400116bc
mov word [r14 + 2], cx
mov rdx, r13
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
test eax, eax
jne 0x140011684
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
jne 0x140011672
test r15, r15
je 0x14001166e
mov edx, dword [rbp + 0x50]
mov r8, r15
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
xor ecx, ecx
test eax, eax
jne 0x14001166e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116dd
mov ebx, ecx
jmp 0x140011684
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116dd
test r12d, r12d
je 0x1400116b6
mov rcx, qword [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
test eax, eax
jne 0x1400116b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116dd
mov r8d, 0x5c
mov rdx, qword [rbp + 0x40]
add r14, 2
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x1400115f5
jmp 0x1400116e1
mov ebx, 0x80070057
jmp 0x1400116e1
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x1400116ee
mov rcx, rdx
call fcn.140010d48
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011760
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
test r9d, r9d
je 0x1400117b5
mov rdx, rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x1400117a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, ebx
test esi, esi
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400117a3
test esi, esi
jne 0x14001178f
xor edx, edx
mov rcx, rdi
call fcn.140010638
test eax, eax
je 0x14001178f
lea ebx, [rsi + 1]
jmp 0x1400117a3

Function at 0x1400117e0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
and qword [rax - 0x20], 0
mov r15, rdx
and qword [rax - 0x28], 0
mov r12, rcx
mov esi, 0x104
lea rcx, [rax - 0x20]
mov edx, esi
mov r14, r9
mov rbp, r8
or rdi, 0xffffffffffffffff
call fcn.140010ac8
mov ebx, eax
test eax, eax
js 0x140011919
mov rdx, qword [rsp + 0x48]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
cmp rdi, 0xffffffffffffffff
jne 0x1400118dc
mov r8, qword [rsp + 0x48]
lea rdx, str._s_S_05d._S
mov qword [rsp + 0x28], r15
lea rcx, [rsp + 0x40]
mov r9, r12
mov dword [rsp + 0x20], esi
call fcn.140010b20
mov ebx, eax
test eax, eax
js 0x140011919
and qword [rsp + 0x30], 0
lea eax, [rdi + 2]
mov rcx, qword [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400118ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x1400118ca
xor ebx, ebx
jmp 0x1400118ce
test ebx, ebx
js 0x140011919
inc esi
cmp esi, 0x3e8
jl 0x140011840
test rbp, rbp
je 0x1400118f9
mov rdx, qword [rsp + 0x40]
mov r9d, 0xfde9
xor r8d, r8d
mov rcx, rbp
call fcn.14001097c
mov ebx, eax
test r14, r14
je 0x140011901
mov qword [r14], rdi
test ebx, ebx
js 0x14001190a
test r14, r14
jne 0x140011919
cmp rdi, 0xffffffffffffffff
je 0x140011919
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011928
call fcn.140010d48
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140011937
call fcn.140010d48
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret