joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
call fcn.140011d88
mov rcx, qword [rax]
mov qword [0x140041218], rcx
lea rcx, str._JAVA_LAUNCHER_DEBUG
call fcn.14001201c
test rax, rax
je 0x14000106c
lea rcx, str.Windows_original_main_args:_n
call fcn.14000115c
xor ebx, ebx
call fcn.140011794
cmp dword [rax], ebx
jle 0x14000106c
xor edi, edi
call fcn.14001179c
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.14000115c
inc ebx
lea rdi, [rdi + 8]
call fcn.140011794
cmp ebx, dword [rax]
jl 0x140001043
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call fcn.140001304
call fcn.1400013a8
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.1400011b8
mov rbx, rax
call fcn.1400013b0
xor r9d, r9d
test edi, edi
jle 0x1400010b8
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a5
mov rdx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rdx, rdx
jne 0x1400010cf
mov rdx, qword [rbx]
mov rcx, qword [section..data]
test rcx, rcx
jne 0x1400010de
mov rcx, qword [rbx]
mov r9, qword [0x14003fcf0]
mov r8d, 1
test r9, r9
setne al
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 1
mov byte [rsp + 0x58], 1
mov byte [rsp + 0x50], al
lea rax, [0x14002d4dc]
mov qword [rsp + 0x48], rdx
mov rdx, rbx
mov qword [rsp + 0x40], rcx
mov ecx, edi
mov qword [rsp + 0x38], rax
lea rax, [0x14002d4e0]
mov qword [rsp + 0x30], rax
mov rax, qword [0x14003fcf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call fcn.140001da4
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000656c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov ebx, r9d
mov rbp, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400065df
cmp dword [rsp + 0x34], 1
jne 0x1400065df
cmp dword [rsp + 0x30], ebx
jae 0x1400065df
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
jmp 0x1400065e1
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006cd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14003f068]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x38], 0
mov r15, rcx
movdqa xmm0, xmmword [0x14002eed0]
xor edi, edi
movdqu xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + rdi*8 + 0x48]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140006e69
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x60]
mov rcx, r14
mov r9d, 0x104
xor edx, edx
xor esi, esi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140006e69
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x60]
inc esi
call fcn.140007148
test eax, eax
je 0x140006daa
test rbx, rbx
je 0x140006d9d
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140007260
test eax, eax
jle 0x140006daa
mov rcx, rbx
call fcn.1400011e4
lea rcx, [rsp + 0x60]
call fcn.14000127c
mov rbx, rax
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140006d6b
test rbx, rbx
je 0x140006e69
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rbx
test eax, eax
je 0x140006e0a
call fcn.1400011e4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140006e69
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006e69
call fcn.1400011e4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.JavaHome
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140006dfd
test rcx, rcx
je 0x140006e57
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.14000127c
mov rbx, rax
test rax, rax
jne 0x140006eb1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006e79
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, 1
jle 0x140006d17
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000ac60
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006ec1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140006e88
Function at 0x140007aa8
Capabilities:
Enumerate files 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 ebx, 0x10
mov ecx, ebx
call fcn.1400011b8
lea ecx, [rbx + 0x70]
mov rsi, rax
mov dword [rax + 0xc], ebx
call fcn.1400011b8
and dword [rsi + 8], 0
mov ecx, ebx
mov qword [rsi], rax
call fcn.1400011b8
lea rdx, [0x14003fdf0]
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x140007b1f
mov rcx, r14
call fcn.1400011e4
mov rcx, rsi
call fcn.1400077e8
xor eax, eax
jmp 0x140007c57
lea r13, [0x14003fe1c]
mov qword [r14], rax
mov qword [r14 + 8], r13
mov rbp, qword [r14 + 8]
test rbp, rbp
je 0x140007b3d
and qword [r14 + 8], 0
jmp 0x140007b5b
mov rcx, qword [r14]
lea rdx, [0x14003fdf0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb rbp, rbp
and rbp, r13
je 0x140007c3a
mov rcx, rbp
call fcn.140012200
cmp eax, 4
jl 0x140007b2d
movsxd rcx, eax
cmp byte [rcx + rbp - 4], 0x2e
jne 0x140007b2d
lea rbx, [rcx + rbp]
lea rcx, [rbx - 3]
lea rdx, [0x14002eef0]
call fcn.1400184c0
test eax, eax
je 0x140007b9e
lea rdx, [0x14002eef4]
lea rcx, [rbx - 3]
call fcn.1400184c0
test eax, eax
jne 0x140007b2d
mov edx, 0x3b
mov rcx, rbp
call fcn.14000bfb8
test rax, rax
jne 0x140007b2d
mov rcx, r12
call fcn.140012200
mov rcx, rbp
mov rdi, rax
call fcn.140012200
mov rbx, rax
lea ecx, [rax + rdi]
movsxd rcx, ecx
call fcn.1400011b8
lea ecx, [rdi - 1]
mov rdx, r12
movsxd r8, ecx
mov r15, rax
mov rcx, rax
call fcn.14000b4a0
lea ecx, [rbx + 1]
mov rdx, rbp
movsxd r8, ecx
movsxd rcx, edi
dec rcx
add rcx, r15
call fcn.14000b4a0
mov ecx, dword [rsi + 8]
mov eax, dword [rsi + 0xc]
inc ecx
cmp eax, ecx
jge 0x140007c27
add eax, eax
cmp eax, ecx
jl 0x140007c0c
mov rcx, qword [rsi]
movsxd rdx, eax
shl rdx, 3
mov dword [rsi + 0xc], eax
call fcn.1400011ec
mov qword [rsi], rax
movsxd rcx, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + rcx*8], r15
inc dword [rsi + 8]
jmp 0x140007b2d
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [r14 + 8]
call fcn.1400011e4
mov rcx, r14
call fcn.1400011e4
mov rax, rsi
mov rbx, qword [rsp + 0x50]
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 0x14000b174
Capabilities:
Parse pe header

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

Function at 0x14001266c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400124d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400124d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400124d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400124d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400124d7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400124d7
cmp dword [rcx + 0xf8], 0
je 0x1400124d7
mov ecx, ebx
call fcn.140012588
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140012364
nop
cmp dword [rbp + 0x20], 0
je 0x140012525
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012530
int3
xor r8d, r8d
xor edx, edx
jmp 0x140012468

Function at 0x140019b00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140019b37
call fcn.140019688
mov dword [rax], 0x16
call fcn.14001e35c
xor eax, eax
jmp 0x140019bc5
mov rdx, r9
mov rcx, r8
call fcn.140019a9c
mov rbx, rax
test rax, rax
je 0x140019bc2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400199c8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140019baf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400195fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140019b96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140019ba5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001e43c
jmp 0x140019bc2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140019bbf
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001a5b4
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 [0x14003f068]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400344e0]
mov rbp, rcx
call fcn.140024a64
xor edi, edi
test rax, rax
je 0x14001a69a
mov ebx, edi
call fcn.140019688
mov r14d, dword [rax]
call fcn.140019688
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400249b0
mov rsi, rax
test rax, rax
je 0x14001a62b
call fcn.140019688
mov dword [rax], r14d
jmp 0x14001a655
call fcn.140019688
cmp dword [rax], 0x22
jne 0x14001a692
call fcn.140019688
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400249b0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14001a692
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14001a659
cmp rax, 3
je 0x14001a674
mov rcx, rsi
call fcn.14001a510
test al, al
je 0x14001a685
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14001a685
mov dil, 1
mov rcx, rbx
call fcn.140012340
mov al, dil
jmp 0x14001a69c
mov rcx, rbx
call fcn.140012340
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000ac60
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 0x14001c930
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, [0x140040a40]
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 0x14001c987
cmp word [rdx], r13w
jne 0x14001c987
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c98c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001cab1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001cad2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c9c5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c9ec
cmp r9, r8
jae 0x14001c9fc
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 0x14001c9a6
jmp 0x14001cab1
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 0x14001caa6
cmp dword [rsp + 0x80], esi
je 0x14001caa6
lea r8, [0x140040a40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ca7e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001ca4e
mov word [rbx], r13w
jmp 0x14001caae
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 0x14001ca5b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001caae
cmp word [rsp + 0x70], r13w
jne 0x14001ca8b
cmp rbx, r14
je 0x14001ca48
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019510
cmp word [rsp + 0x70], r13w
je 0x14001cab1
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, [0x140040a40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001caab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001cab1
Function at 0x140021a08
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 0x140021a38
xor eax, eax
jmp 0x140021afb
mov rbp, rbx
cmp word [rax], si
je 0x140021a5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021a44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021a40
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.140020df4
movsxd r14, eax
test eax, eax
jne 0x140021a9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021a31
mov rcx, r14
call fcn.14001ee50
mov rdi, rax
test rax, rax
jne 0x140021ab4
xor ecx, ecx
call fcn.14001e43c
jmp 0x140021a90
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.140020df4
test eax, eax
jne 0x140021ae5
mov rcx, rdi
call fcn.14001e43c
jmp 0x140021aef
xor ecx, ecx
call fcn.14001e43c
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 0x140021b18
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140021b9f
mov rsi, rbx
cmp word [rax], bp
je 0x140021b5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021b48
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021b44
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001ee50
mov rdi, rax
test rax, rax
je 0x140021b8c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000b4a0
mov rbp, rdi
xor ecx, ecx
call fcn.14001e43c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400268b8
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.140019510
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140019510
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140026a08
cmp rax, 0xffffffffffffffff
je 0x140026a08
xor edi, edi
test rbp, rbp
jle 0x1400269b3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e3c4
mov rbx, rax
test rax, rax
jne 0x140026940
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400269a9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b064
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.14002365c
cmp eax, 0xffffffff
je 0x140026989
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140026950
mov edx, r15d
mov ecx, r14d
call fcn.14001b064
jmp 0x1400269a9
cmp byte [rsi + 0x38], dil
je 0x1400269a0
cmp dword [rsi + 0x34], 5
jne 0x1400269a0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400269a9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001e43c
jmp 0x140026a1c
jns 0x140026a1c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140019510
cmp rax, 0xffffffffffffffff
jne 0x1400269d4
cmp byte [rsi + 0x30], dil
je 0x140026a1c
mov edi, dword [rsi + 0x2c]
jmp 0x140026a1c
mov ecx, r14d
call fcn.140022c24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140026a1c
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 0x140026a1c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140026a15
mov eax, dword [rsi + 0x2c]
jmp 0x140026a1a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140019510
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 0x140028344
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002835a
mov al, 1
jmp 0x1400283ba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002836b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400283b8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022c24
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400283b8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400283b8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400283b8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400283ba
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140028870
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400145d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400288fa
cmp byte [rbp - 0x21], r15b
je 0x1400288f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028930
call fcn.14001e6e4
test eax, eax
jne 0x14002891c
cmp byte [rbp - 0x21], r15b
je 0x140028914
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028930
cmp byte [rbp - 0x21], r15b
je 0x14002892d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140019748
test eax, eax
jne 0x1400289d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400145d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002896f
cmp byte [rbp - 0x21], r15b
je 0x1400289a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400289a4
call fcn.14001e6e4
test eax, eax
jne 0x140028990
cmp byte [rbp - 0x21], r15b
je 0x140028989
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400289a4
cmp byte [rbp - 0x21], r15b
je 0x1400289a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140019748
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400289d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400289d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400289e1
mov rcx, rdi
call fcn.14001e43c
cmp byte [rbp + 0x3f], r15b
je 0x1400289f0
mov rcx, qword [rbp + 0x27]
call fcn.14001e43c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400295a4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003f068]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400295ee
call fcn.140019668
mov dword [rax], 0xf
call fcn.140019688
mov dword [rax], 0xd
call fcn.14001e35c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000ac60
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400295f9
lea eax, [rbx + 1]
jmp 0x1400295db
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 0x1400295d9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400295db