joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400811a0
Capabilities:
Hash data using sha256

Disassembly:
mov r8, rcx
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x70], xmm0
mov qword [rcx + 0x80], rax
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
xor ecx, 0x6a09e667
mov dword [r8], ecx
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
xor ecx, 0xbb67ae85
mov dword [r8 + 4], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
xor ecx, 0x3c6ef372
mov dword [r8 + 8], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
xor ecx, 0xa54ff53a
mov dword [r8 + 0xc], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
xor ecx, 0x510e527f
mov dword [r8 + 0x10], ecx
movzx ecx, byte [rdx + 0x17]
movzx eax, byte [rdx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
xor ecx, 0x9b05688c
mov dword [r8 + 0x14], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
xor ecx, 0x1f83d9ab
mov dword [r8 + 0x18], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
xor ecx, 0x5be0cd19
mov dword [r8 + 0x1c], ecx
movzx eax, byte [rdx]
mov qword [r8 + 0x78], rax
xor eax, eax
ret
Function at 0x1400a2320
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, rdx
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x50], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rbp - 0x50], 1
lea r9, [rbp + 0x30]
xor r8d, r8d
mov edx, 0x4000
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400a2446
mov rdi, 0xffffffffffffffff
mov r8, rdi
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.14008d720
nop
mov rcx, qword [rax]
mov qword [rax], rsi
mov qword [rbp - 0x30], rcx
mov rcx, qword [rax + 8]
mov qword [rax + 8], rsi
mov qword [rbp - 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rax + 0x10], rsi
mov qword [rbp - 0x20], rcx
mov dword [rbp - 0x50], 0x11
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400a23cc
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a23cc
mov rcx, qword [rbp - 0x18]
call fcn.1402275a0
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call fcn.1400a8290
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400a23f7
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a23f7
mov rcx, qword [rbp - 0x30]
call fcn.1402275a0
mov rdx, qword [rbx]
mov rax, qword [rbp - 0x48]
mov qword [rbx], rax
mov qword [rbp - 0x48], rdx
mov rcx, qword [rbx + 8]
mov rax, qword [rbp - 0x40]
mov qword [rbx + 8], rax
mov qword [rbp - 0x40], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbp - 0x38]
mov qword [rbx + 0x10], rax
mov qword [rbp - 0x38], rcx
test rdx, rdx
je 0x1400a243c
lock xadd dword [rdx], edi
cmp edi, 1
jne 0x1400a243c
mov rcx, qword [rbp - 0x48]
call fcn.1402275a0
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a5210
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov r15, r8
mov qword [rsp + 0x60], rbp
mov r13, r9
mov rsi, rdx
mov qword [rsp + 0x68], rdx
mov r14, rcx
mov r8, rdx
lea rbp, [r15 - 1]
mov r10, rdx
sar rbp, 1
cmp rdx, rbp
jge 0x1400a5319
mov qword [rsp + 0x70], rdi
nop dword [rax + rax]
lea rdi, [r10 + r10]
mov rcx, rbx
lea rax, [rdi + 2]
imul rdx, rax, 0x38
add rdx, r14
lea r8, [rdx - 0x38]
call fcn.1400a6a30
movzx r10d, al
xor r10, 1
imul rdx, rsi, 0x38
inc r10
add rdx, r14
add r10, rdi
imul r8, r10, 0x38
mov rcx, qword [rdx]
mov rsi, r10
add r8, r14
mov rax, qword [r8]
mov qword [rdx], rax
mov qword [r8], rcx
mov rax, qword [r8 + 8]
mov rcx, qword [rdx + 8]
mov qword [rdx + 8], rax
mov qword [r8 + 8], rcx
mov rax, qword [r8 + 0x10]
mov rcx, qword [rdx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r8 + 0x10], rcx
mov rax, qword [r8 + 0x18]
mov rcx, qword [rdx + 0x18]
mov qword [rdx + 0x18], rax
mov qword [r8 + 0x18], rcx
mov rax, qword [r8 + 0x20]
mov rcx, qword [rdx + 0x20]
mov qword [rdx + 0x20], rax
mov qword [r8 + 0x20], rcx
mov rax, qword [r8 + 0x28]
mov rcx, qword [rdx + 0x28]
mov qword [rdx + 0x28], rax
mov qword [r8 + 0x28], rcx
mov rax, qword [r8 + 0x30]
mov rcx, qword [rdx + 0x30]
mov qword [rdx + 0x30], rax
mov qword [r8 + 0x30], rcx
cmp r10, rbp
jl 0x1400a5260
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
cmp r10, rbp
mov rbp, qword [rsp + 0x60]
jne 0x1400a53b1
test r15b, 1
jne 0x1400a53b1
imul r9, r15, 0x38
imul rdx, rsi, 0x38
add r9, r14
lea rsi, [r15 - 1]
mov rax, qword [r9 - 0x38]
add rdx, r14
mov rcx, qword [rdx]
mov qword [rdx], rax
mov qword [r9 - 0x38], rcx
mov rax, qword [r9 - 0x30]
mov rcx, qword [rdx + 8]
mov qword [rdx + 8], rax
mov qword [r9 - 0x30], rcx
mov rax, qword [r9 - 0x28]
mov rcx, qword [rdx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r9 - 0x28], rcx
mov rax, qword [r9 - 0x20]
mov rcx, qword [rdx + 0x18]
mov qword [rdx + 0x18], rax
mov qword [r9 - 0x20], rcx
mov rax, qword [r9 - 0x18]
mov rcx, qword [rdx + 0x20]
mov qword [rdx + 0x20], rax
mov qword [r9 - 0x18], rcx
mov rax, qword [r9 - 0x10]
mov rcx, qword [rdx + 0x28]
mov qword [rdx + 0x28], rax
mov qword [r9 - 0x10], rcx
mov rax, qword [r9 - 8]
mov rcx, qword [rdx + 0x30]
mov qword [rdx + 0x30], rax
mov qword [r9 - 8], rcx
mov r9, r13
mov qword [rsp + 0x80], rbx
mov rdx, rsi
mov rcx, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
jmp fcn.1400a53e0
Function at 0x1400ccc40
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rdi, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rax - 0x68], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rax - 0x68], 1
mov qword [rax + 0x18], r12
lea r9, [rax + 0x18]
xor r8d, r8d
mov edx, 0x4000
mov rcx, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1400ccd23
mov rsi, 0xffffffffffffffff
mov r8, rsi
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.14008d720
nop
mov rbp, qword [rax]
mov qword [rax], r12
mov r14, qword [rax + 8]
mov qword [rax + 8], r12
mov r15, qword [rax + 0x10]
mov qword [rax + 0x10], r12
mov dword [rsp + 0x20], 9
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400cccf4
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cccf4
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
mov rcx, qword [rbx]
mov qword [rbx], rbp
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r15
test rcx, rcx
je 0x1400ccd15
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x1400ccd15
call fcn.1402275a0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp qword [rbx + 0x10], 0
jne 0x1400ccd9b
mov rax, qword [rdi]
cmp rax, qword [0x14034d6a0]
jne 0x1400ccd55
mov rax, qword [rdi + 8]
cmp rax, qword [0x14034d6a8]
jne 0x1400ccd55
mov qword [rsp + 0x30], 0x11
lea rax, str.C:_tempqt_common
jmp 0x1400ccd7e
mov rax, qword [rdi]
cmp rax, qword [0x14034d6c0]
jne 0x1400ccd9b
mov rax, qword [rdi + 8]
cmp rax, qword [0x14034d6c8]
jne 0x1400ccd9b
mov qword [rsp + 0x30], 0xf
lea rax, str.C:_tempqt_user
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140086c70
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401066b0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov rbx, qword [rcx + 8]
lea rsi, [rbx + 0x78]
xor bpl, bpl
mov r12d, 1
test rsi, rsi
je 0x1401066fa
mov rax, qword [rsi]
test rax, rax
jne 0x1401066ee
lock cmpxchg qword [rsi], r12
je 0x1401066f6
mov rcx, rsi
call fcn.140107e90
movzx ebp, r12b
xor r15d, r15d
cmp byte [rbx + 0x84], r15b
je 0x1401067fc
cmp byte [rbx + 0xa8], r15b
jne 0x14010671f
mov byte [rbx + 0xa9], r12b
jmp 0x1401067fc
xor edx, edx
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rdi, qword [r14 + 8]
mov byte [rdi + 0x86], 1
mov dword [rdi + 0x94], 7
mov rbx, qword [rdi + 0xb0]
movzx edx, byte [rsp + 0x50]
mov rcx, r14
call fcn.1400ee5a0
mov r8, qword [rdi + 0xb0]
mov edx, 0x34
xor ecx, ecx
call fcn.1400f5830
lea rcx, [rbx + 0x78]
call fcn.140183580
mov rax, qword [rdi + 0xb0]
mov rbx, qword [rax + 0x70]
test rbx, rbx
je 0x1401067c1
mov qword [rsp + 0x50], r15
mov rdx, qword [rdi + 0xb0]
mov rax, qword [rsp + 0x50]
nop
nop
mov qword [rdx + 0x70], rax
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xb0]
call qword [case.0x1400f4c10.0]
mov rax, qword [rbx]
mov edx, r12d
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4c10.0]
mov word [rdi + 0x84], 0x100
mov byte [rdi + 0x86], 0
mov byte [rdi + 0x87], 0
cmp dword [rdi + 0xa4], 0
jne 0x1401067f5
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x98], r15
mov dword [rdi + 0xa0], r15d
test bpl, bpl
je 0x140106813
mov rax, r12
lock cmpxchg qword [rsi], r15
je 0x140106813
mov rcx, rsi
call fcn.140108480
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140115a70
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov r8, rdx
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
mov r9, rdx
test r8, r8
je 0x140115acc
mov r9, qword [0x140395960]
mov rax, qword [0x140397300]
bt rax, 8
jae 0x140115acc
mov rax, qword [0x140397300]
test al, 0x20
je 0x140115acc
mov rax, qword [0x140397300]
bt rax, 0x1c
jae 0x140115ac7
mov rax, qword [0x140397300]
bt rax, 0x16
jb 0x140115690
jmp 0x140115580
jmp 0x1401153f0
cmp rdx, 8
jbe 0x1401159c0
jmp 0x140115b90
Function at 0x140115b50
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
test r8, r8
je 0x140115b86
nop dword [rax]
movzx eax, word [r9]
lea r9, [r9 + 2]
shl edx, 4
add edx, eax
mov eax, edx
shr edx, 0x17
and edx, 0x1e0
xor edx, eax
and edx, 0xfffffff
sub r8, 1
jne 0x140115b60
mov eax, edx
ret
Function at 0x14013d9c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xd4], 1
je 0x14013d9f9
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4c10.0]
mov dword [rbx + 0xd4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14014f260
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x28]
mov rcx, qword [rcx + 0xa8]
test rcx, rcx
jne 0x14014f36f
cmp dword [rsi + 0xd0], 0xffffffff
jne 0x14014f3ee
mov rcx, qword [rsi + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014f3e5
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x58], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14014f332
nop word [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014f32a
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014f32a
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14014f2e0
test rdi, rdi
je 0x14014f332
mov rax, rdi
jmp 0x14014f3fc
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140111160
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14013b460
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14014f3e5
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jmp 0x14014f3d9
call fcn.140237cc8
mov ecx, eax
call fcn.140237ac4
cmp rax, 0xffffffffffffffff
je 0x14014f3ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14014f3ee
mov rcx, qword [rsi + 0xa8]
call fcn.140235980
test eax, eax
je 0x14014f3ee
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140111340
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14013b460
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014f3e5
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014f3e5
mov rcx, qword [rsp + 0x30]
call fcn.1402275a0
mov rax, 0xffffffffffffffff
jmp 0x14014f3fc
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14013da20
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14013da20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r15, rdx
mov rbp, rcx
mov r12, qword [rcx + 0x28]
test r8, r8
js 0x14013db86
xor ebx, ebx
cmp qword [rcx + 0xa8], rbx
je 0x14013dae9
mov r8, rsi
sub r8, rbx
lea rcx, [rbx + r15]
mov r9, qword [rbp + 0xa8]
mov edx, 1
call fcn.14022f488
mov rdi, rax
mov rcx, qword [rbp + 0xa8]
call fcn.140235980
test eax, eax
setne r14b
test eax, eax
je 0x14013da9c
test rdi, rdi
je 0x14013dac9
add rbx, rdi
test eax, eax
jne 0x14013db37
test rdi, rdi
jne 0x14013dabb
call fcn.1402334b8
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14013dac3
xor ecx, ecx
cmp rbx, rsi
setl cl
test ecx, ecx
jne 0x14013da63
jmp 0x14013db37
mov rcx, qword [rbp + 0xa8]
call fcn.14022f184
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0xa8]
call fcn.14022f7a0
jmp 0x14013db37
cmp dword [rcx + 0xd0], 0xffffffff
je 0x14013db49
nop dword [rax]
nop word [rax + rax]
mov rax, rsi
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + r15]
mov ecx, dword [rbp + 0xd0]
call fcn.140236268
movsxd rcx, eax
test eax, eax
jle 0x14013db33
add rbx, rcx
cmp rbx, rsi
jl 0x14013db00
test eax, eax
sete r14b
test r14b, r14b
jne 0x14013dbcd
test rbx, rbx
jne 0x14013dbcd
mov rbx, 0xffffffffffffffff
call fcn.1402334b8
mov edx, dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140111340
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r12
call fcn.14013b460
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14013dbcd
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jmp 0x14013dbc1
mov edx, 0x16
lea rcx, [rsp + 0x20]
call fcn.140111340
nop
mov r8, rax
mov edx, 1
mov rcx, r12
call fcn.14013b460
nop
mov rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14013dbcd
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013dbcd
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14013e540
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
and dword [rbx + 0x70], 0xfdffffff
cmp dword [rbx + 0xd4], 2
je 0x14013e580
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4c10.0]
mov dword [rbx + 0xd4], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14014f910
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x28]
cmp qword [rcx + 0xa8], 0
jne 0x14014fa2b
cmp dword [rcx + 0xd0], 0xffffffff
jne 0x14014fa2b
mov rcx, qword [rcx + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014fa22
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x58], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14014f9df
nop dword [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014f9da
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014f9da
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14014f990
test rdi, rdi
je 0x14014f9df
mov rax, rdi
jmp 0x14014fa30
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140111160
nop
mov r8, rax
mov edx, 2
mov rcx, r15
call fcn.14013b460
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014fa22
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014fa22
mov rcx, qword [rsp + 0x30]
call fcn.1402275a0
mov rax, 0xffffffffffffffff
jmp 0x14014fa30
call fcn.14013e5a0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140140850
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov r14, r8
mov rax, rdx
mov rdi, rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
mov rbx, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14013bf80
nop
mov rcx, rax
call fcn.140094620
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test eax, eax
setne dil
mov ebx, 0xffffffff
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1401408dc
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x1401408dc
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1401408f9
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1401408f9
mov rcx, qword [rsp + 0x38]
call fcn.1402275a0
test esi, esi
jne 0x140140917
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], 2
mov rcx, qword [rsp + 0x78]
mov qword [r14], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140140bc0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movzx ebp, r8b
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], 2
lea rax, [0x1402d7b90]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, 1
lea rdx, [rsp + 0x30]
call fcn.1400928a0
mov r14d, 0x5c
test al, al
je 0x140140c33
lea r8d, [r14 - 0x5b]
movzx edx, r14w
mov rcx, rbx
call fcn.14008b350
cmp rax, 3
jle 0x140140dae
cmp qword [rbx + 0x10], 2
jne 0x140140c49
mov rax, qword [rbx + 8]
cmp word [rax + 2], 0x3a
je 0x140140dae
mov rdi, 0xffffffffffffffff
test bpl, bpl
je 0x140140ca5
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14014e870
nop
lea rcx, [rsp + 0x58]
call fcn.140094620
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140140c9a
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140140c9a
mov rcx, qword [rsp + 0x58]
call fcn.1402275a0
test ebp, ebp
je 0x140140ca5
mov al, 1
jmp 0x140140db0
mov r9d, 1
mov r8, rdi
movzx edx, r14w
mov rcx, rbx
call fcn.14008e510
nop
cmp eax, 1
jl 0x140140dae
movsxd r8, eax
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
jb 0x140140cf0
mov rcx, qword [rbx]
mov qword [rsp + 0x40], rcx
mov rax, qword [rbx + 8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdx
test rcx, rcx
je 0x140140cff
lock inc dword [rcx]
jmp 0x140140cff
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.1400868e0
nop
mov r8b, 1
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140140bc0
test al, al
je 0x140140d8a
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14014e870
nop
lea rcx, [rsp + 0x70]
call fcn.140094620
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140140d58
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140140d58
mov rcx, qword [rsp + 0x70]
call fcn.1402275a0
test esi, esi
je 0x140140d60
mov bl, 1
jmp 0x140140d8c
mov byte [rsp + 0xc8], 0
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140143780
test al, al
je 0x140140d8a
cmp byte [rsp + 0xc8], 0
je 0x140140d8a
mov bl, 1
jmp 0x140140d8c
xor bl, bl
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140140da9
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140140da9
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
movzx eax, bl
jmp 0x140140db0
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140141040
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor r8d, r8d
mov edx, 0x104
lea rcx, [rsp + 0x28]
call fcn.140086b60
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14014107b
mov eax, dword [rax]
cmp eax, 1
jle 0x140141090
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.14008ff30
mov rdx, qword [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp eax, 0x104
jbe 0x1401410ea
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140091da0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1401410c6
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x1401410db
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.14008ff30
mov rdx, qword [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 2
jb 0x140141133
mov rax, qword [rsp + 0x30]
cmp word [rax + 2], 0x3a
jne 0x140141133
movzx ecx, word [rax]
call fcn.140093470
mov esi, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140141116
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x14014112b
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.14008ff30
mov rax, qword [rsp + 0x30]
mov word [rax], si
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140091da0
movzx r8d, byte [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14013b500
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140141175
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140141175
mov rcx, qword [rsp + 0x28]
call fcn.1402275a0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret