joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000103c
Capabilities:
Read file on windows

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 r13
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov r13d, 0x2000
mov ecx, r13d
mov r14, r8
mov rdi, rdx
xor ebx, ebx
call fcn.1400130e0
mov rsi, rax
test rax, rax
jne 0x14000107f
or eax, 0xffffffff
jmp 0x1400010d9
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x1400010cf
cmp rdi, r13
mov rbp, rdi
mov r9, r15
mov r8d, 1
cmova rbp, r13
mov rcx, rsi
mov rdx, rbp
call fcn.14000e62c
cmp rax, 1
jb 0x1400010cc
mov r9, r14
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call fcn.14000ed6c
cmp rax, 1
jb 0x1400010cc
sub rdi, rbp
jne 0x140001087
jmp 0x1400010cf
or ebx, 0xffffffff
mov rcx, rsi
call fcn.1400130cc
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret

Function at 0x1400010f8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r14d, r14d
lea rcx, [rbp - 0x60]
mov r13, r8
mov qword [rbp - 0x30], r14
mov rdi, rdx
mov qword [rbp - 0x28], r14
lea rdx, str.1.3.1
mov qword [rbp - 0x20], r14
lea r8d, [r14 + 0x58]
mov dword [rbp - 0x58], r14d
mov r12, r9
mov qword [rbp - 0x60], r14
mov esi, r14d
call fcn.1400095b8
mov ebx, eax
test eax, eax
je 0x140001163
or eax, 0xffffffff
jmp 0x140001252
mov ecx, 0x2000
call fcn.1400130e0
mov r15, rax
test rax, rax
je 0x140001237
mov ecx, 0x2000
call fcn.1400130e0
mov rsi, rax
test rax, rax
je 0x140001237
mov r14d, dword [rdi + 8]
mov eax, 0x2000
mov rdi, qword [rbp + 0x30]
cmp r14, rax
mov rbx, r14
mov r9, rdi
cmova rbx, rax
mov edx, 1
mov r8, rbx
mov rcx, r15
call fcn.14000e62c
cmp rax, rbx
jne 0x140001234
mov rcx, rdi
call fcn.14000e3a0
test eax, eax
jne 0x140001234
sub r14, rbx
mov dword [rbp - 0x58], ebx
mov qword [rbp - 0x60], r15
mov eax, 0x2000
xor edx, edx
mov dword [rbp - 0x48], eax
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x50], rsi
call fcn.140007e54
mov edi, eax
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x1400012a7
cmp eax, 2
je 0x140001234
mov ecx, dword [rbp - 0x48]
mov eax, 0x2000
mov ebx, eax
sub rbx, rcx
test r13, r13
je 0x140001273
mov r9, r13
mov r8, rbx
mov edx, 1
mov rcx, rsi
call fcn.14000ed6c
cmp rax, rbx
jne 0x140001234
mov rcx, r13
call fcn.14000e3a0
test eax, eax
je 0x140001289
or ebx, 0xffffffff
lea rcx, [rbp - 0x60]
call fcn.140009468
mov rcx, r15
call fcn.1400130cc
mov rcx, rsi
call fcn.1400130cc
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test r12, r12
je 0x14000128e
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.14000ab80
add r12, rbx
mov eax, 0x2000
cmp dword [rbp - 0x48], 0
je 0x1400011d9
cmp edi, 1
je 0x1400012ac
test r14, r14
je 0x140001234
jmp 0x140001198
cmp edi, 1
jne 0x140001234
xor ebx, ebx
jmp 0x140001237
Function at 0x1400013b8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rdx
mov rbp, rcx
add rcx, 0x70
lea rdx, [0x140029638]
xor ebx, ebx
call fcn.140003370
mov rsi, rax
test rax, rax
je 0x140001446
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbp]
mov rcx, rsi
call fcn.14000e964
test eax, eax
js 0x14000143b
mov ecx, dword [rdi + 0xc]
call fcn.1400130e0
mov rbx, rax
test rax, rax
je 0x14000143b
cmp byte [rdi + 0x10], 1
jne 0x14000145f
mov r9, rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.1400010f8
test eax, eax
je 0x14000143b
mov rcx, rbx
call fcn.1400130cc
xor ebx, ebx
mov rcx, rsi
call fcn.14000e2dc
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov edi, dword [rdi + 0xc]
mov r14, rbx
test rdi, rdi
je 0x14000143b
mov r15d, 0x2000
cmp rdi, r15
mov rbp, rdi
mov r9, rsi
mov r8d, 1
cmova rbp, r15
mov rcx, r14
mov rdx, rbp
call fcn.14000e62c
cmp rax, 1
jb 0x140001431
add r14, rbp
sub rdi, rbp
jne 0x140001470
jmp 0x14000143b
Function at 0x140001678
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, [0x140029638]
add rcx, 0x70
or edi, 0xffffffff
call fcn.140003370
mov rsi, rax
test rax, rax
je 0x14000180a
lea ebp, [rdi + 9]
mov r8d, ebp
lea rdx, [0x14002a0a0]
lea rcx, [rsp + 0x20]
call fcn.14000ab80
add byte [rsp + 0x23], 0xc
lea rdx, [rsp + 0x20]
mov r8d, ebp
mov rcx, rsi
call fcn.140006c50
mov rbp, rax
test rax, rax
je 0x140001802
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.14000e964
test eax, eax
js 0x140001802
lea rcx, [rbx + 0x18]
mov r9, rsi
lea edx, [rdi + 0x59]
lea r8d, [rdi + 2]
call fcn.14000e62c
cmp rax, 1
jb 0x140001802
mov ecx, dword [rbx + 0x20]
call fcn.1400130e8
mov ecx, dword [rbx + 0x24]
mov dword [rbx + 0x20], eax
call fcn.1400130e8
mov ecx, dword [rbx + 0x28]
mov dword [rbx + 0x24], eax
call fcn.1400130e8
mov ecx, dword [rbx + 0x2c]
mov dword [rbx + 0x28], eax
call fcn.1400130e8
and dword [rbx + 0x5078], 0
mov ecx, eax
mov dword [rbx + 0x2c], eax
xor r8d, r8d
mov eax, dword [rbx + 0x20]
sub rbp, rax
add rbp, 0x58
mov qword [rbx], rbp
mov dword [0x140039c94], ecx
mov rcx, rsi
mov edx, dword [rbx + 0x24]
add rdx, qword [rbx]
call fcn.14000e964
movsxd rcx, dword [rbx + 0x28]
call fcn.1400130e0
mov qword [rbx + 8], rax
test rax, rax
je 0x140001802
movsxd rdx, dword [rbx + 0x28]
lea r8d, [rdi + 2]
mov r9, rsi
mov rcx, rax
call fcn.14000e62c
cmp rax, 1
jb 0x140001802
movsxd rax, dword [rbx + 0x28]
mov rcx, rsi
add rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
call fcn.14000e3a0
test eax, eax
jne 0x140001802
mov rdi, qword [rbx + 8]
jmp 0x1400017fa
mov ecx, dword [rdi]
call fcn.1400130e8
mov ecx, dword [rdi + 4]
mov dword [rdi], eax
call fcn.1400130e8
mov ecx, dword [rdi + 8]
mov dword [rdi + 4], eax
call fcn.1400130e8
mov ecx, dword [rdi + 0xc]
mov dword [rdi + 8], eax
call fcn.1400130e8
mov dword [rdi + 0xc], eax
movsxd rax, dword [rdi]
add rdi, rax
cmp rdi, qword [rbx + 0x10]
jb 0x1400017ca
xor edi, edi
mov rcx, rsi
call fcn.14000e2dc
mov eax, edi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140009e00
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140006120
Capabilities:
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x4030
call fcn.140009da0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400072d8
mov rdi, rax
test rax, rax
je 0x140006224
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.1400130cc
test ebx, ebx
je 0x140006224
lea rcx, [rsp + 0x20]
call fcn.1400071bc
test eax, eax
je 0x14000619e
lea rcx, [rsp + 0x20]
call fcn.140015984
jmp 0x1400061b0
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140016154
mov rbx, rax
test rax, rax
je 0x140006224
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.14000b230
mov rcx, rbx
jmp 0x140006202
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140015edc
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rdi + 2]
mov edx, 0x5c
call fcn.14000b858
mov rdi, rax
test rax, rax
jne 0x1400061d2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
jmp 0x140006226
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009e00
mov rbx, qword [rsp + 0x4048]
add rsp, 0x4030
pop rdi
ret

Function at 0x140006248
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140009da0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140029638]
call fcn.140003370
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.1400066a0
xor ebx, ebx
mov rdi, rax
test rsi, rsi
je 0x140006324
mov rcx, rsi
test rax, rax
je 0x14000632c
call fcn.14000e374
test eax, eax
jne 0x140006310
mov r9, rsi
lea edx, [rax + 1]
mov r8d, 0x1000
lea rcx, [rsp + 0x20]
call fcn.14000e62c
test rax, rax
jne 0x1400062da
mov rcx, rsi
call fcn.14000e3a0
test eax, eax
je 0x140006300
mov rcx, rsi
jmp 0x140006308
mov r9, rdi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000ed6c
test rax, rax
je 0x140006305
mov rcx, rdi
call fcn.14000e3a0
test eax, eax
jne 0x140006305
mov rcx, rsi
jmp 0x1400062a5
mov rcx, rdi
call fcn.140017258
or ebx, 0xffffffff
mov rcx, rsi
call fcn.14000e2dc
mov rcx, rdi
call fcn.14000e2dc
mov eax, ebx
jmp 0x140006334
test rdi, rdi
je 0x140006331
mov rcx, rdi
call fcn.14000e2dc
or eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140009e00
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006490
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2050
call fcn.140009da0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
lea r15, [0x14002a0ac]
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x14000650f
mov rcx, r15
call fcn.140006600
mov rcx, rsi
mov rdi, rax
call fcn.140006120
mov rbp, rax
test rax, rax
je 0x140006590
mov rdx, rax
lea rcx, [0x14002a0b0]
call fcn.140016584
mov rcx, rbp
mov ebx, eax
call fcn.1400130cc
test ebx, ebx
jne 0x140006590
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002280
xor ebp, ebp
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14001723c
mov rcx, rax
mov rbx, rax
call fcn.140007298
test eax, eax
je 0x140006594
mov rcx, rbx
call fcn.1400130cc
inc ebp
cmp ebp, 5
jl 0x14000653f
test rsi, rsi
je 0x140006590
mov rcx, r15
test rdi, rdi
je 0x14000658b
mov rdx, rdi
call fcn.1400069cc
mov rcx, rdi
call fcn.1400130cc
jmp 0x140006590
call fcn.140006a2c
xor eax, eax
jmp 0x1400065d6
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r14
call fcn.140007368
mov rcx, rbx
call fcn.1400130cc
test rsi, rsi
je 0x1400065d1
mov rcx, r15
test rdi, rdi
je 0x1400065cc
mov rdx, rdi
call fcn.1400069cc
mov rcx, rdi
call fcn.1400130cc
jmp 0x1400065d1
call fcn.140006a2c
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140009e00
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006600
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4030
call fcn.140009da0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400072d8
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebx, ebx
test eax, eax
je 0x140006684
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140007368
test rax, rax
je 0x140006684
cmp byte [rax], bl
je 0x140006684
mov rcx, rax
call fcn.14001912c
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009e00
add rsp, 0x4030
pop rbx
ret

Function at 0x140006a2c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400072d8
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.1400130cc
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006a68
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x2018]
mov eax, 0x2110
call fcn.140009da0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rbp + 0x2000], rax
mov rdx, rcx
xor esi, esi
lea rcx, [rbp]
mov dword [rsp + 0x50], esi
mov r8d, 0x1000
call fcn.1400072d8
lea edi, [rsi + 1]
mov edx, edi
lea rcx, [0x140006100]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], edi
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rbp - 0x68], rsi
xor ecx, ecx
movdqa xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x34], 0x101
mov word [rbp - 0x30], di
call fcn.140013710
mov rcx, rax
call fcn.1400191a4
mov ecx, eax
call fcn.140016dc8
or rbx, 0xffffffffffffffff
mov ecx, edi
cmp rax, rbx
cmove rax, rsi
mov qword [rbp - 0x20], rax
call fcn.140013710
mov rcx, rax
call fcn.1400191a4
mov ecx, eax
call fcn.140016dc8
cmp rax, rbx
lea ecx, [rsi + 2]
cmove rax, rsi
mov qword [rbp - 0x18], rax
call fcn.140013710
mov rcx, rax
call fcn.1400191a4
mov ecx, eax
call fcn.140016dc8
cmp rax, rbx
cmove rax, rsi
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rbp]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140006bc7
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [rsp + 0x50]
mov eax, ebx
mov rcx, qword [rbp + 0x2000]
xor rcx, rsp
call fcn.140009e00
lea r11, [rsp + 0x2110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140006c50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rbp, r8
mov ecx, 0x2000
mov r13, rdx
xor edi, edi
call fcn.1400130e0
mov r15, rax
test rax, rax
je 0x140006d3e
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, r12
call fcn.14000e964
test eax, eax
js 0x140006d3e
mov rcx, r12
call fcn.140017808
mov rbx, rax
cmp rax, rbp
jb 0x140006d3e
cmp rbx, 0x2000
lea rax, [rbx - 0x2000]
mov rsi, rdi
cmovae rsi, rax
sub rbx, rsi
cmp rbx, rbp
jb 0x140006d3e
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.14000e964
test eax, eax
js 0x140006d3e
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000e62c
cmp rax, rbx
jne 0x140006d3e
sub rbx, rbp
add rbx, 1
je 0x140006d29
lea r14, [r15 - 1]
add r14, rbx
mov r8, rbp
mov rdx, r13
mov rcx, r14
call fcn.14000b790
test eax, eax
je 0x140006d37
dec r14
sub rbx, 1
jne 0x140006d0e
lea rbx, [rbp - 1]
add rbx, rsi
test rsi, rsi
je 0x140006d3e
jmp 0x140006cb7
lea rdi, [rsi - 1]
add rdi, rbx
mov rcx, r15
call fcn.1400130cc
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140007298
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14003af40]
test rax, rax
je 0x1400072cf
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x1400072d2
or eax, 0xffffffff
add rsp, 0x48
ret
Function at 0x14000a84c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a896
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a896
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a896
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a896
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a896
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a898
xor al, al
add rsp, 0x28
ret

Function at 0x140013ff0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14002e9c8]
mov rbp, rcx
call fcn.14001dd50
xor edi, edi
test rax, rax
je 0x1400140d6
mov ebx, edi
call fcn.140013878
mov r14d, dword [rax]
call fcn.140013878
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140016154
mov rsi, rax
test rax, rax
je 0x140014067
call fcn.140013878
mov dword [rax], r14d
jmp 0x140014091
call fcn.140013878
cmp dword [rax], 0x22
jne 0x1400140ce
call fcn.140013878
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140016154
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400140ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140014095
cmp rax, 3
je 0x1400140b0
mov rcx, rsi
call fcn.140013f4c
test al, al
je 0x1400140c1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400140c1
mov dil, 1
mov rcx, rbx
call fcn.1400130cc
mov al, dil
jmp 0x1400140d8
mov rcx, rbx
call fcn.1400130cc
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140009e00
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400165bc
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400165dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400137ec
or eax, 0xffffffff
jmp 0x1400165de
xor eax, eax
add rsp, 0x28
ret

Function at 0x140016e40
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140016e60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400137ec
or eax, 0xffffffff
jmp 0x140016e62
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001762c
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.140009da0
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400191a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001767b
mov rax, rbp
jmp 0x140017783
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3b980]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001af9c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3b980]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001777f
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 0x14001777f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001af9c
test rax, rax
js 0x14001777f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001777f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140017771
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140017771
cmp byte [rcx], 0xd
jne 0x140017757
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140017766
cmp byte [rcx + 1], 0xa
jne 0x140017766
inc rcx
jmp 0x140017766
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x392e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140017739
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140017783
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009e00
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 0x140018894
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018690
Function at 0x14001a1d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003b980]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001a22b
cmp word [rdx], r13w
jne 0x14001a22b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a230
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a355
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a376
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a269
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a290
cmp r9, r8
jae 0x14001a2a0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001a24a
jmp 0x14001a355
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a34a
cmp dword [rsp + 0x80], esi
je 0x14001a34a
lea r8, [0x14003b980]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a322
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a2f2
mov word [rbx], r13w
jmp 0x14001a352
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001a2ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a352
cmp word [rsp + 0x70], r13w
jne 0x14001a32f
cmp rbx, r14
je 0x14001a2ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001afa4
cmp word [rsp + 0x70], r13w
je 0x14001a355
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003b980]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a34f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a355
Function at 0x14001c080
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c096
mov al, 1
jmp 0x14001c0f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c0a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c0f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140016dc8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c0f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c0f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c0f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c0f6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f0e4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14001f12e
call fcn.140013858
mov dword [rax], 0xf
call fcn.140013878
mov dword [rax], 0xd
call fcn.140019608
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140009e00
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14001f139
lea eax, [rbx + 1]
jmp 0x14001f11b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14001f119
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14001f11b