joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004a84
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 rsi, rdx
mov edi, 2
mov r8d, edi
mov rdx, 0xffffffffffffffea
mov ebp, ecx
call fcn.140019fbc
mov rbx, rax
test rax, rax
js 0x140004c14
lea r8d, [rdi + 0x14]
mov rdx, rsi
mov ecx, ebp
call fcn.14001d90c
test eax, eax
js 0x140004c14
movzx eax, byte [rsi + 2]
movzx ecx, byte [rsi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x140004b21
mov rcx, rsi
call fcn.140004ff4
test eax, eax
je 0x140004b19
mov r8, rbx
mov rdx, rsi
mov ecx, ebp
call fcn.140004c34
mov rbx, rax
mov rax, rbx
jmp 0x140004c18
mov r8d, edi
xor edx, edx
mov ecx, ebp
call fcn.140019fbc
mov r15, rax
test rax, rax
js 0x140004c14
mov r14d, 0x10015
mov r8d, edi
cmp rax, r14
mov ebx, r14d
mov ecx, ebp
cmovl rbx, rax
mov rdx, rbx
neg rdx
call fcn.140019fbc
test rax, rax
js 0x140004c14
mov ecx, r14d
call fcn.140012e04
mov rdi, rax
test rax, rax
je 0x140004c14
mov r8d, ebx
mov rdx, rax
mov ecx, ebp
call fcn.14001d90c
test eax, eax
js 0x140004c0c
movsxd r14, eax
add eax, 0xffffffea
movsxd rbx, eax
add r14, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x140004c0c
cmp byte [rbx], 0x50
jne 0x140004be3
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x140004be3
movzx eax, byte [rbx + 0x14]
movzx ecx, byte [rbx + 0x15]
shl rcx, 8
or rcx, rax
lea rax, [rbx + 0x16]
add rax, rcx
cmp rax, r14
je 0x140004be8
dec rbx
jmp 0x140004b9a
mov r8d, 0x16
mov rdx, rbx
mov rcx, rsi
call fcn.14000b4e0
mov rcx, rdi
call fcn.140012df0
sub rbx, r14
add rbx, r15
jmp 0x140004afd
mov rcx, rdi
call fcn.140012df0
or rax, 0xffffffffffffffff
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

Function at 0x140004c34
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov esi, ecx
lea rdx, [r8 - 0x14]
xor r8d, r8d
call fcn.140019fbc
mov rdi, rax
test rax, rax
js 0x140004c9b
mov r8d, 0x14
mov rdx, rbx
mov ecx, esi
call fcn.14001d90c
test eax, eax
js 0x140004c9b
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
cmp ecx, 0x7064b50
jne 0x140004c9b
mov rax, rdi
jmp 0x140004c9f
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140005070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x80
cmp qword [rdx + 8], 0xffffffffffffffff
mov r14, r8
mov rbx, rdx
mov esi, ecx
je 0x1400051c1
cmp qword [rdx], 0xffffffffffffffff
je 0x1400051c1
mov rdx, qword [rdx + 0x10]
xor r8d, r8d
call fcn.140019fbc
test rax, rax
js 0x1400051c1
mov rcx, qword [rbx + 8]
inc rcx
call fcn.140012e04
mov rdi, rax
test rax, rax
je 0x1400051c1
mov r8d, dword [rbx + 8]
mov rdx, rax
mov ecx, esi
call fcn.14001d90c
movsxd rcx, eax
mov rax, qword [rbx + 8]
cmp rcx, rax
jne 0x1400051b9
cmp dword [rbx + 0x18], 0
jne 0x14000510d
mov byte [rax + rdi], 0
test r14, r14
je 0x140005105
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov rax, rdi
jmp 0x1400051c3
cmp dword [rbx + 0x18], 8
jne 0x1400051b9
and qword [rsp + 0x50], 0
lea r8, str.1.2.13
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x60], 0
mov r9d, 0x58
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea edx, [r9 - 0x67]
call fcn.140009468
test eax, eax
js 0x1400051b9
mov rcx, qword [rbx]
inc rcx
call fcn.140012e04
mov rsi, rax
test rax, rax
je 0x1400051b9
mov ecx, dword [rbx]
mov edx, 4
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
call fcn.140007d70
mov rcx, rdi
cmp eax, 1
je 0x140005190
call fcn.140012df0
mov rcx, rsi
jmp 0x1400051bc
mov rax, qword [rbx]
mov byte [rsi + rax], 0
call fcn.140012df0
lea rcx, [rsp + 0x20]
call fcn.140009420
test eax, eax
js 0x14000518b
test r14, r14
je 0x1400051b4
mov eax, dword [rbx]
mov dword [r14], eax
mov rax, rsi
jmp 0x1400051c3
mov rcx, rdi
call fcn.140012df0
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140005464
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rsi, r8
mov qword [rsp + 0x28], rax
mov r9, r8
mov dword [rsp + 0x20], 0x10000
mov rbp, rcx
mov r8, rcx
xor ecx, ecx
mov rdi, rdx
call fcn.14001a648
mov rbx, rax
test rax, rax
jne 0x1400054cb
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8, rbp
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call fcn.14001a648
mov rbx, rax
cmp dword [0x14003f040], 0
je 0x140005582
lea rcx, str.J2D_D3D
call fcn.140012ac4
test rax, rax
je 0x140005502
lea rdx, str.false
mov rcx, rax
call fcn.14001c434
neg eax
sbb ecx, ecx
and dword [0x14003f040], ecx
lea rcx, str.J2D_D3D_PRELOAD
call fcn.140012ac4
mov rdi, rax
test rax, rax
je 0x140005537
lea rdx, str.false
mov rcx, rax
call fcn.14001c434
neg eax
sbb ecx, ecx
and ecx, dword [0x14003f040]
mov dword [0x14003f040], ecx
jmp 0x14000553d
mov ecx, dword [0x14003f040]
test ecx, ecx
jns 0x140005574
and dword [0x14003f040], 0
test rdi, rdi
je 0x140005582
lea rdx, str.true
mov rcx, rdi
call fcn.14001c434
mov ecx, dword [0x14003f040]
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [0x14003f040], ecx
test ecx, ecx
je 0x140005582
lea rcx, str.preloadD3D
call fcn.1400052ec
test rbx, rbx
je 0x1400055ac
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400055b5
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [0x14003fda8], 0
je 0x1400055cc
mov rax, qword [0x14003fdd0]
test rax, rax
je 0x1400055cc
call rax
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000648c
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 0x140006500
cmp dword [rsp + 0x34], 1
jne 0x140006500
cmp dword [rsp + 0x30], ebx
jae 0x140006500
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rbp
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140006500
mov al, 1
jmp 0x140006502
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 0x140006b64
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 [0x14002fe80]
xor esi, esi
movdqu xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + rsi*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 0x140006cf5
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x60]
mov rcx, r14
mov r9d, 0x104
xor edx, edx
xor ebx, ebx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140006cf5
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x60]
inc ebx
call fcn.140007090
test eax, eax
je 0x140006c3e
test rdi, rdi
je 0x140006c31
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400071a8
test eax, eax
jle 0x140006c3e
mov rcx, rdi
call fcn.1400011e4
lea rcx, [rsp + 0x60]
call fcn.14000127c
mov rdi, rax
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140006bff
test rdi, rdi
je 0x140006cf5
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rdi
mov ebx, eax
call fcn.1400011e4
mov rcx, qword [rsp + 0x30]
test ebx, ebx
je 0x140006ca0
test rcx, rcx
je 0x140006cf5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006cf5
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x28], rax
lea rdx, str.JavaHome
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140006c93
test rcx, rcx
je 0x140006ce3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.14000127c
mov rbx, rax
test rax, rax
jne 0x140006d3d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006d05
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rsi
cmp rsi, 1
jle 0x140006bab
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000ac80
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 0x140006d4d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140006d14
Function at 0x140007a04
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, [0x14003fde0]
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x140007a7b
mov rcx, r14
call fcn.1400011e4
mov rcx, rsi
call fcn.14000773c
xor eax, eax
jmp 0x140007bb9
lea r13, [0x14003fe0c]
mov qword [r14], rax
mov qword [r14 + 8], r13
mov rbp, qword [r14 + 8]
test rbp, rbp
je 0x140007a99
and qword [r14 + 8], 0
jmp 0x140007ab1
mov rcx, qword [r14]
lea rdx, [0x14003fde0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb rbp, rbp
and rbp, r13
test rbp, rbp
je 0x140007b9c
mov rcx, rbp
call fcn.140012cb0
cmp eax, 4
jl 0x140007a89
movsxd rcx, eax
cmp byte [rcx + rbp - 4], 0x2e
jne 0x140007a89
lea rbx, [rcx + rbp]
lea rcx, [rbx - 3]
lea rdx, [0x14002fea0]
call fcn.140019000
test eax, eax
je 0x140007afd
lea rdx, [0x14002fea4]
lea rcx, [rbx - 3]
call fcn.140019000
test eax, eax
jne 0x140007a89
mov edx, 0x3b
mov rcx, rbp
call fcn.14000bba8
test rax, rax
jne 0x140007a89
mov rcx, r12
call fcn.140012cb0
mov rcx, rbp
mov rdi, rax
call fcn.140012cb0
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.14000b4e0
lea ecx, [rbx + 1]
mov rdx, rbp
movsxd r8, ecx
movsxd rcx, edi
dec rcx
add rcx, r15
call fcn.14000b4e0
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 0xc]
lea eax, [rdx + 1]
cmp ecx, eax
jge 0x140007b8a
add ecx, ecx
cmp ecx, eax
jl 0x140007b6c
movsxd rdx, ecx
mov dword [rsi + 0xc], ecx
mov rcx, qword [rsi]
shl rdx, 3
call fcn.1400011ec
mov edx, dword [rsi + 8]
mov qword [rsi], rax
mov rax, qword [rsi]
movsxd rcx, edx
mov qword [rax + rcx*8], r15
inc dword [rsi + 8]
jmp 0x140007a89
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 0x140013128
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 0x140012f87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012f87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012f87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012f87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012f87
cmp dword [rcx + 0x84], 0xe
jbe 0x140012f87
cmp dword [rcx + 0xf8], 0
je 0x140012f87
mov ecx, ebx
call fcn.140013044
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.140012e14
nop
cmp dword [rbp + 0x20], 0
je 0x140012fd5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012fe0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140012f18

Function at 0x14001b0ec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14003f068]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400350c0]
mov rbp, rcx
call fcn.140025570
xor edi, edi
test rax, rax
je 0x14001b1d2
mov ebx, edi
call fcn.14001a1d0
mov r14d, dword [rax]
call fcn.14001a1d0
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400254bc
mov rsi, rax
test rax, rax
je 0x14001b163
call fcn.14001a1d0
mov dword [rax], r14d
jmp 0x14001b18d
call fcn.14001a1d0
cmp dword [rax], 0x22
jne 0x14001b1ca
call fcn.14001a1d0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400254bc
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14001b1ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14001b191
cmp rax, 3
je 0x14001b1ac
mov rcx, rsi
call fcn.14001b048
test al, al
je 0x14001b1bd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14001b1bd
mov dil, 1
mov rcx, rbx
call fcn.140012df0
mov al, dil
jmp 0x14001b1d4
mov rcx, rbx
call fcn.140012df0
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000ac80
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001d460
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, [0x140040a20]
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 0x14001d4be
cmp word [rdx], r12w
jne 0x14001d4be
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001d4c4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001d61f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001d5fa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001d4fd
mov rcx, r9
jmp 0x14001d520
cmp r9, rdx
jae 0x14001d537
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 0x14001d4e1
jmp 0x14001d61f
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 0x14001d5f4
cmp dword [rsp + 0x80], edi
je 0x14001d5f4
mov rdx, r14
lea r11, [0x140040a20]
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 0x14001d5cd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001d5a0
mov word [rbx], r12w
jmp 0x14001d61b
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 0x14001d5a9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001d61b
cmp word [rsp + 0x70], r12w
jne 0x14001d5da
cmp rbx, rsi
je 0x14001d59a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001a058
cmp word [rsp + 0x70], r12w
je 0x14001d61f
mov word [rbx], r13w
jmp 0x14001d61b
lea r11, [0x140040a20]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001d617
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001d61f
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 0x140022504
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 0x140022534
xor eax, eax
jmp 0x1400225f7
mov rbp, rbx
cmp word [rax], si
je 0x140022559
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022540
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002253c
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.140021920
movsxd r14, eax
test eax, eax
jne 0x140022597
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002252d
mov rcx, r14
call fcn.14001f99c
mov rdi, rax
test rax, rax
jne 0x1400225b0
xor ecx, ecx
call fcn.14001ef78
jmp 0x14002258c
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.140021920
test eax, eax
jne 0x1400225e1
mov rcx, rdi
call fcn.14001ef78
jmp 0x1400225eb
xor ecx, ecx
call fcn.14001ef78
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 0x140022614
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 0x14002269b
mov rsi, rbx
cmp word [rax], bp
je 0x14002265a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022644
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022640
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001f99c
mov rdi, rax
test rax, rax
je 0x140022688
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000b4e0
mov rbp, rdi
xor ecx, ecx
call fcn.14001ef78
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 0x140024734
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140024711
call fcn.14001a1d0
mov dword [rax], 0x16
call fcn.14001ee98
or eax, 0xffffffff
jmp 0x14002472e
sub dword [rcx + 0x10], 1
jns 0x140024720
add rsp, 0x28
jmp 0x140029a34
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400246f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140029a66
call fcn.14001a1d0
mov dword [rax], 0x16
call fcn.14001ee98
jmp 0x140029b85
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140029b85
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140029b85
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140029a95
lock or dword [rcx + 0x14], 0x10
jmp 0x140029b85
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140029aa9
call fcn.140029ba8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140020fe0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001d90c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140029b73
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140029b3e
mov rcx, rsi
call fcn.140020fe0
cmp eax, edi
je 0x140029b29
mov rcx, rsi
call fcn.140020fe0
cmp eax, 0xfffffffe
je 0x140029b29
mov rcx, rsi
call fcn.140020fe0
movsxd rbx, eax
lea r14, [0x140040a20]
mov rcx, rsi
sar rbx, 6
call fcn.140020fe0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140029b30
lea rdx, [0x14003f2d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140029b3e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140029b62
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140029b62
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140029b62
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140029b88
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400273c0
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.14001a058
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001a058
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027510
cmp rax, 0xffffffffffffffff
je 0x140027510
xor edi, edi
test rbp, rbp
jle 0x1400274bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ef00
mov rbx, rax
test rax, rax
jne 0x140027448
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400274b1
mov edx, 0x8000
mov ecx, r14d
call fcn.14001bb88
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.140024174
cmp eax, 0xffffffff
je 0x140027491
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027458
mov edx, r15d
mov ecx, r14d
call fcn.14001bb88
jmp 0x1400274b1
cmp byte [rsi + 0x38], dil
je 0x1400274a8
cmp dword [rsi + 0x34], 5
jne 0x1400274a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400274b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ef78
jmp 0x140027524
jns 0x140027524
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001a058
cmp rax, 0xffffffffffffffff
jne 0x1400274dc
cmp byte [rsi + 0x30], dil
je 0x140027524
mov edi, dword [rsi + 0x2c]
jmp 0x140027524
mov ecx, r14d
call fcn.140023720
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027524
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 0x140027524
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002751d
mov eax, dword [rsi + 0x2c]
jmp 0x140027522
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001a058
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