joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400812d0
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 0x1400a2a30
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 0x1400a2b56
mov rdi, 0xffffffffffffffff
mov r8, rdi
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.14008e200
nop
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x20], rcx
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov dword [rbp - 0x50], 0x11
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400a2adc
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a2adc
mov rcx, qword [rbp - 0x18]
call fcn.14021b7f0
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call fcn.1400a9010
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400a2b07
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400a2b07
mov rcx, qword [rbp - 0x30]
call fcn.14021b7f0
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 0x1400a2b4c
lock xadd dword [rdx], edi
cmp edi, 1
jne 0x1400a2b4c
mov rcx, qword [rbp - 0x48]
call fcn.14021b7f0
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 0x1400a56a0
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 0x1400a57a9
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.1400a6d40
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 0x1400a56f0
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
cmp r10, rbp
mov rbp, qword [rsp + 0x60]
jne 0x1400a5841
test r15b, 1
jne 0x1400a5841
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.1400a5870
Function at 0x1400cd040
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 0x1400cd123
mov rsi, 0xffffffffffffffff
mov r8, rsi
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.14008e200
nop
mov rbp, qword [rax]
mov r14, qword [rax + 8]
mov r15, qword [rax + 0x10]
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov dword [rsp + 0x20], 9
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400cd0f4
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cd0f4
mov rcx, qword [rsp + 0x40]
call fcn.14021b7f0
mov rcx, qword [rbx]
mov qword [rbx], rbp
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r15
test rcx, rcx
je 0x1400cd115
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x1400cd115
call fcn.14021b7f0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp qword [rbx + 0x10], 0
jne 0x1400cd19b
mov rax, qword [rdi]
cmp rax, qword [0x14033eed0]
jne 0x1400cd155
mov rax, qword [rdi + 8]
cmp rax, qword [0x14033eed8]
jne 0x1400cd155
mov qword [rsp + 0x30], 0x11
lea rax, str.C:_tempqt_common
jmp 0x1400cd17e
mov rax, qword [rdi]
cmp rax, qword [0x14033eef0]
jne 0x1400cd19b
mov rax, qword [rdi + 8]
cmp rax, qword [0x14033eef8]
jne 0x1400cd19b
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.140087430
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 0x140105800
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 0x14010584a
mov rax, qword [rsi]
test rax, rax
jne 0x14010583e
lock cmpxchg qword [rsi], r12
je 0x140105846
mov rcx, rsi
call fcn.140107100
movzx ebp, r12b
xor r15d, r15d
cmp byte [rbx + 0x84], r15b
je 0x14010594e
cmp byte [rbx + 0xa8], r15b
jne 0x14010586f
mov byte [rbx + 0xa9], r12b
jmp 0x14010594e
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.1400ee4a0
mov r8, qword [rdi + 0xb0]
mov edx, 0x34
xor ecx, ecx
call fcn.1400f5650
lea rcx, [rbx + 0x78]
call fcn.14017e620
mov rax, qword [rdi + 0xb0]
mov rbx, qword [rax + 0x70]
test rbx, rbx
je 0x140105911
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.0x1400f4a30.0]
mov rax, qword [rbx]
mov edx, r12d
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a30.0]
mov word [rdi + 0x84], 0x100
mov byte [rdi + 0x86], 0
mov eax, r15d
xchg byte [rdi + 0x87], al
cmp dword [rdi + 0xa4], 0
jne 0x140105947
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 0x140105965
mov rax, r12
lock cmpxchg qword [rsi], r15
je 0x140105965
mov rcx, rsi
call fcn.1401076c0
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 0x14010f2c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbp, rcx
mov qword [rsp + 0x90], 0x7ffe
lea r12, [0x140385858]
mov qword [rsp + 0x30], r12
mov rax, qword [0x140385858]
mov r13d, 1
test rax, rax
jne 0x14010f30c
lock cmpxchg qword [0x140385858], r13
je 0x14010f314
mov rcx, r12
call fcn.140107100
mov byte [rsp + 0x38], r13b
xor r15d, r15d
cmp qword [rbp + 0x10], 0x7ffe
jg 0x14010f33c
mov rcx, rbp
call fcn.140094f20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14010f421
mov ecx, 0xfffe
call fcn.140214374
mov rsi, rax
mov rbx, r15
mov rcx, qword [rbp + 0x10]
test rcx, rcx
jle 0x14010f418
mov r14, qword [rsp + 0x90]
nop dword [rax]
nop word [rax + rax]
mov r8, rcx
sub r8, rbx
mov rax, r14
cmp r8, 0x7ffe
cmovl rax, r8
mov r9, qword [rbp + 8]
mov rdx, rbx
cmp rbx, rcx
jg 0x14010f3d0
test rbx, rbx
jns 0x14010f3b4
test rax, rax
js 0x14010f3ac
add rax, rbx
cmp rax, rcx
jge 0x14010f3ac
test rax, rax
jle 0x14010f3d0
mov rdx, r15
jmp 0x14010f3bb
mov rdx, r15
mov rax, rcx
jmp 0x14010f3bb
cmp rax, r8
cmova rax, r8
lea rcx, [r9 + rdx*2]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x20]
jmp 0x14010f3de
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea rax, [rsp + 0x40]
mov rdi, qword [rax]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14010f3f6
lea r8, [rdi + rdi]
mov rcx, rsi
call fcn.14023ffe0
mov word [rsi + rdi*2], r15w
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rbx, 0x7ffe
mov rcx, qword [rbp + 0x10]
cmp rbx, rcx
jl 0x14010f370
mov rcx, rsi
call fcn.140214330
nop
mov rax, r13
lock cmpxchg qword [0x140385858], r15
je 0x14010f437
mov rcx, r12
call fcn.1401076c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401135f0
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 0x14011364c
mov r9, qword [0x1403858b0]
mov rax, qword [0x140387240]
bt rax, 8
jae 0x14011364c
mov rax, qword [0x140387240]
test al, 0x20
je 0x14011364c
mov rax, qword [0x140387240]
bt rax, 0x1c
jae 0x140113647
mov rax, qword [0x140387240]
bt rax, 0x16
jb 0x140113210
jmp 0x140113100
jmp 0x140112f70
cmp rdx, 8
jbe 0x140113540
jmp 0x140113710
Function at 0x1401136d0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
test r8, r8
je 0x140113706
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 0x1401136e0
mov eax, edx
ret
Function at 0x140137170
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 0x1401371a9
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a30.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 0x14014a3d0
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 0x14014a4df
cmp dword [rsi + 0xd0], 0xffffffff
jne 0x14014a55e
mov rcx, qword [rsi + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014a555
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 0x14014a4a2
nop word [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014a49a
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014a49a
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 0x14014a450
test rdi, rdi
je 0x14014a4a2
mov rax, rdi
jmp 0x14014a56c
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1401100d0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140134c50
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14014a555
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jmp 0x14014a549
call fcn.14022bbe8
mov ecx, eax
call fcn.14022b9e4
cmp rax, 0xffffffffffffffff
je 0x14014a55e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14014a55e
mov rcx, qword [rsi + 0xa8]
call fcn.1402298a0
test eax, eax
je 0x14014a55e
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1401102b0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140134c50
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014a555
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014a555
mov rcx, qword [rsp + 0x30]
call fcn.14021b7f0
mov rax, 0xffffffffffffffff
jmp 0x14014a56c
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.1401371d0
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 0x1401371d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push 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 0x14013731e
xor ebx, ebx
cmp qword [rcx + 0xa8], rbx
je 0x140137296
nop dword [rax + rax]
mov r8, rsi
sub r8, rbx
lea rcx, [rbx + r15]
mov r9, qword [rbp + 0xa8]
mov edx, 1
call fcn.1402235c8
mov rdi, rax
mov rcx, qword [rbp + 0xa8]
call fcn.1402298a0
test eax, eax
setne r14b
test eax, eax
je 0x140137249
test rdi, rdi
je 0x140137276
add rbx, rdi
test eax, eax
jne 0x1401372d8
test rdi, rdi
jne 0x140137268
call fcn.1402273d8
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140137270
xor ecx, ecx
cmp rbx, rsi
setl cl
test ecx, ecx
jne 0x140137210
jmp 0x1401372d8
mov rcx, qword [rbp + 0xa8]
call fcn.1402232c4
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0xa8]
call fcn.1402238e0
jmp 0x1401372d8
cmp dword [rcx + 0xd0], 0xffffffff
je 0x1401372e6
nop
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.14022a188
movsxd rcx, eax
test eax, eax
jle 0x1401372d1
add rbx, rcx
cmp rbx, rsi
jl 0x1401372a0
cmp ecx, 0xffffffff
setne r14b
test r14b, r14b
jne 0x140137365
test rbx, rbx
jne 0x140137365
mov rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1401102b0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r12
call fcn.140134c50
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140137365
mov ecx, ebx
lock xadd dword [rax], ecx
cmp ecx, 1
jmp 0x140137359
mov edx, 0x16
lea rcx, [rsp + 0x20]
call fcn.1401102b0
nop
mov r8, rax
mov edx, 1
mov rcx, r12
call fcn.140134c50
nop
mov rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140137365
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140137365
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
mov rax, rbx
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140137ca0
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 0x140137ce0
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a30.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 0x14014a800
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 0x14014a91b
cmp dword [rcx + 0xd0], 0xffffffff
jne 0x14014a91b
mov rcx, qword [rcx + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014a912
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 0x14014a8cf
nop dword [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014a8ca
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014a8ca
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 0x14014a880
test rdi, rdi
je 0x14014a8cf
mov rax, rdi
jmp 0x14014a920
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1401100d0
nop
mov r8, rax
mov edx, 2
mov rcx, r15
call fcn.140134c50
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014a912
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014a912
mov rcx, qword [rsp + 0x30]
call fcn.14021b7f0
mov rax, 0xffffffffffffffff
jmp 0x14014a920
call fcn.140137d00
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 0x140139ee0
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.140135770
nop
mov rcx, rax
call fcn.140094f20
mov rbx, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
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 0x140139f6c
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140139f6c
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140139f89
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x140139f89
mov rcx, qword [rsp + 0x38]
call fcn.14021b7f0
test esi, esi
jne 0x140139fa7
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 0x14013a250
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movzx esi, r8b
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x20], 2
lea rax, [0x1402ca5a0]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, 1
lea rdx, [rsp + 0x30]
call fcn.140093300
mov r14d, 0x5c
test al, al
je 0x14013a2c3
lea r8d, [r14 - 0x5b]
movzx edx, r14w
mov rcx, rbx
call fcn.14008c010
cmp rax, 3
jle 0x14013a414
cmp qword [rbx + 0x10], 2
jne 0x14013a2d9
mov rax, qword [rbx + 8]
cmp word [rax + 2], 0x3a
je 0x14013a414
mov rdi, 0xffffffffffffffff
test sil, sil
je 0x14013a335
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140149a60
nop
lea rcx, [rsp + 0x40]
call fcn.140094f20
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14013a32a
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013a32a
mov rcx, qword [rsp + 0x40]
call fcn.14021b7f0
test esi, esi
je 0x14013a335
mov al, 1
jmp 0x14013a416
mov r9d, 1
mov r8, rdi
movzx edx, r14w
mov rcx, rbx
call fcn.14008f030
nop
cmp eax, 1
jl 0x14013a414
movsxd r8, eax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14008f0c0
nop
mov r8b, 1
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.14013a250
test al, al
je 0x14013a3f0
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140149a60
nop
lea rcx, [rsp + 0x58]
call fcn.140094f20
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14013a3be
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013a3be
mov rcx, qword [rsp + 0x58]
call fcn.14021b7f0
test esi, esi
je 0x14013a3c6
mov bl, 1
jmp 0x14013a3f2
mov byte [rsp + 0xc8], 0
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.14013cb60
test al, al
je 0x14013a3f0
cmp byte [rsp + 0xc8], 0
je 0x14013a3f0
mov bl, 1
jmp 0x14013a3f2
xor bl, bl
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14013a40f
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013a40f
mov rcx, qword [rsp + 0x70]
call fcn.14021b7f0
movzx eax, bl
jmp 0x14013a416
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