joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c97b64
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov word [rsp + 8], 0x7d04
push qword [rsp + 0x28]
popfq

Function at 0x1416a5da6
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x30]
call fcn.141853593
add byte [rdi], al
mov dl, dl
add dword ds:[rsi - 0x7669a1d0], edx
out 0x6c, al
mov ecx, 0x7ed4ef6e
invalid
push rdx
jg 0x141705b07
or edx, dword [rsp + 3]
mov rdx, qword [rsp + 0x18]
jb 0x140c97b70
add word [rsp], 0x37aa
cmp word [rsp], 0x431f
call fcn.140c97b64
test r10, r10
call fcn.1415e1d07
cmpsd dword [rsi], dword [rdi]
or eax, 0x550e4cc8
invalid
call fcn.140c70ab8
popfq
cpuid
nop
call fcn.1415fc26e
or ebp, eax
sub byte [rsi - 0x175d0014], cl
push rdi
jmp 0xf0d74e23
Function at 0x140003220
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x14], 3
je 0x140003254
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x14], 4
jne 0x1400033a9
lea rcx, [0x140038020]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x60], rax
lea rdx, str.RtlGetCompressionWorkSpaceSize
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
lea rdx, str.RtlCompressBuffer
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x68], 0
je 0x1400032a4
cmp qword [rsp + 0x70], 0
jne 0x1400032ae
mov eax, 0x12
jmp 0x140003491
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x14]
dec eax
bts eax, 8
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x48]
movzx ecx, ax
call qword [rsp + 0x68]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400033a1
mov eax, dword [rsp + 0x48]
mov ecx, eax
call fcn.14000f2a0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003397
mov eax, dword [0x14003ba44]
mov ecx, eax
call fcn.14000f2a0
mov qword [0x14003ba58], rax
cmp qword [0x14003ba58], 0
je 0x140003383
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x14]
dec eax
bts eax, 8
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea rcx, [0x14003ba48]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov ecx, dword [0x14003ba44]
mov dword [rsp + 0x20], ecx
mov r9, qword [0x14003ba58]
mov r8d, dword [0x14003ba44]
mov rdx, qword [0x14003ba50]
movzx ecx, ax
call qword [rsp + 0x70]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140003381
mov dword [rsp + 0x40], 0x12
jmp 0x14000338b
mov dword [rsp + 0x40], 6
mov rcx, qword [rsp + 0x50]
call fcn.14000f28c
jmp 0x14000339f
mov dword [rsp + 0x40], 6
jmp 0x1400033a9
mov dword [rsp + 0x40], 0x12
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x14], 2
jne 0x140003467
mov ecx, dword [0x14003ba44]
call fcn.140001bdf
mov eax, eax
mov ecx, eax
call fcn.14000f2a0
mov qword [0x14003ba58], rax
cmp qword [0x14003ba58], 0
je 0x14000345f
mov ecx, dword [0x14003ba44]
call fcn.140001bd9
mov eax, eax
mov ecx, eax
call fcn.14000f2a0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140003455
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8d, dword [0x14003ba44]
mov rdx, qword [0x14003ba58]
mov rcx, qword [0x14003ba50]
call fcn.140002696
mov dword [0x14003ba48], eax
cmp dword [0x14003ba48], 0xffffffff
jne 0x140003449
mov dword [rsp + 0x40], 0x12
mov rcx, qword [rsp + 0x58]
call fcn.14000f28c
jmp 0x14000345d
mov dword [rsp + 0x40], 6
jmp 0x140003467
mov dword [rsp + 0x40], 6
cmp dword [rsp + 0x40], 0
jne 0x14000348d
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x14], 1
je 0x14000348d
mov rax, qword [rsp + 0x90]
mov ecx, dword [0x14003ba48]
mov dword [rax + 4], ecx
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x140003800
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140003834
xor eax, eax
jmp 0x14000385d
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov dword [rsp + 0x30], eax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140006f80
Capabilities:
Encrypt data using speck

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x140039a80]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 8], rax
mov dword [rsp], 0
jmp 0x140006fb8
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jae 0x140006fd2
mov eax, dword [rsp]
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x40]
mov eax, dword [rdx + rax*4]
mov dword [rsp + rcx*4 + 0x10], eax
jmp 0x140006fb0
mov dword [rsp], 0
jmp 0x140006fe3
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x1b
jae 0x14000712e
mov eax, 4
imul rax, rax, 0
mov eax, dword [rsp + rax + 8]
shr eax, 8
mov ecx, 4
imul rcx, rcx, 0
mov ecx, dword [rsp + rcx + 8]
shl ecx, 0x18
or eax, ecx
mov ecx, 4
imul rcx, rcx, 1
add eax, dword [rsp + rcx + 8]
mov ecx, 4
imul rcx, rcx, 0
xor eax, dword [rsp + rcx + 0x10]
mov ecx, 4
imul rcx, rcx, 0
mov dword [rsp + rcx + 8], eax
mov eax, 4
imul rax, rax, 1
mov eax, dword [rsp + rax + 8]
shr eax, 0x1d
mov ecx, 4
imul rcx, rcx, 1
mov ecx, dword [rsp + rcx + 8]
shl ecx, 3
or eax, ecx
mov ecx, 4
imul rcx, rcx, 0
xor eax, dword [rsp + rcx + 8]
mov ecx, 4
imul rcx, rcx, 1
mov dword [rsp + rcx + 8], eax
mov eax, 4
imul rax, rax, 3
mov eax, dword [rsp + rax + 0x10]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov eax, dword [rsp + rax + 0x10]
shr eax, 8
mov ecx, 4
imul rcx, rcx, 1
mov ecx, dword [rsp + rcx + 0x10]
shl ecx, 0x18
or eax, ecx
mov ecx, 4
imul rcx, rcx, 0
add eax, dword [rsp + rcx + 0x10]
xor eax, dword [rsp]
mov ecx, 4
imul rcx, rcx, 3
mov dword [rsp + rcx + 0x10], eax
mov eax, 4
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x10]
shr eax, 0x1d
mov ecx, 4
imul rcx, rcx, 0
mov ecx, dword [rsp + rcx + 0x10]
shl ecx, 3
or eax, ecx
mov ecx, 4
imul rcx, rcx, 3
xor eax, dword [rsp + rcx + 0x10]
mov ecx, 4
imul rcx, rcx, 0
mov dword [rsp + rcx + 0x10], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 1
mov eax, dword [rsp + rax + 0x10]
mov dword [rsp + rcx + 0x10], eax
mov eax, 4
imul rax, rax, 2
mov ecx, dword [rsp + 4]
mov dword [rsp + rax + 0x10], ecx
jmp 0x140006fdb
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140008400
add rsp, 0x38
ret
Function at 0x140007150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140039a80]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x88], 0
je 0x1400072cb
mov dword [rsp + 0x20], 0
jmp 0x1400071b0
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x10
jae 0x1400071ce
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x40], al
jmp 0x1400071a6
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.1400072f0
cmp dword [rsp + 0x88], 0x10
jbe 0x1400071f1
mov dword [rsp + 0x2c], 0x10
jmp 0x1400071fc
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
jmp 0x140007218
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jae 0x140007248
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0x40]
mov rdx, qword [rsp + 0x30]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x14000720e
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x10
jmp 0x140007286
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x1400072c6
mov eax, dword [rsp + 0x20]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
inc al
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x20]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x38]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1400072c4
jmp 0x1400072c6
jmp 0x14000727c
jmp 0x14000718e
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140008400
add rsp, 0x68
ret
Function at 0x140007610
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, dword [rsp + 0x58]
xor ecx, ecx
call fcn.140007d80
test eax, eax
je 0x14000769b
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
mov edx, eax
mov ecx, 1
call fcn.14000f284
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140007664
mov eax, 6
jmp 0x140007729
lea r9, [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.140007d80
test eax, eax
je 0x14000769b
mov eax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x60]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14000d184
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14000771d
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140007717
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x20]
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140023b90
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, qword [rsp + 0x28]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rsp + 0x30]
call fcn.14000f28c
xor eax, eax
add rsp, 0x48
ret

Function at 0x140008de0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008e2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008e2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008e2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008e2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140008e2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008e2c
xor al, al
add rsp, 0x28
ret
Function at 0x14000f5b0
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 0x14000f41b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f41b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f41b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f41b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f41b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f41b
cmp dword [rcx + 0xf8], 0
je 0x14000f41b
mov ecx, ebx
call fcn.14000f4cc
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.14000f2a8
nop
cmp dword [rbp + 0x20], 0
je 0x14000f469
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f474
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f3ac

Function at 0x1400115dc
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 [0x140039a80]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140026720]
mov rbp, rcx
call fcn.140019254
xor edi, edi
test rax, rax
je 0x1400116c2
mov ebx, edi
call fcn.140014aac
mov r14d, dword [rax]
call fcn.140014aac
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400191a0
mov rsi, rax
test rax, rax
je 0x140011653
call fcn.140014aac
mov dword [rax], r14d
jmp 0x14001167d
call fcn.140014aac
cmp dword [rax], 0x22
jne 0x1400116ba
call fcn.140014aac
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400191a0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400116ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140011681
cmp rax, 3
je 0x14001169c
mov rcx, rsi
call fcn.140011538
test al, al
je 0x1400116ad
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400116ad
mov dil, 1
mov rcx, rbx
call fcn.14000f28c
mov al, dil
jmp 0x1400116c4
mov rcx, rbx
call fcn.14000f28c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140008400
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 0x14001713c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017152
mov al, 1
jmp 0x1400171b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017163
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400171b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011c9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400171b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400171b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400171b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400171b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001afcc
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 0x14001affc
xor eax, eax
jmp 0x14001b0bf
mov rbp, rbx
cmp word [rax], si
je 0x14001b021
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b008
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b004
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.14001aeec
movsxd r14, eax
test eax, eax
jne 0x14001b05f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001aff5
mov rcx, r14
call fcn.1400173d8
mov rdi, rax
test rax, rax
jne 0x14001b078
xor ecx, ecx
call fcn.140014b44
jmp 0x14001b054
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.14001aeec
test eax, eax
jne 0x14001b0a9
mov rcx, rdi
call fcn.140014b44
jmp 0x14001b0b3
xor ecx, ecx
call fcn.140014b44
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 0x14001b0dc
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 0x14001b163
mov rsi, rbx
cmp word [rax], bp
je 0x14001b122
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001b10c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001b108
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400173d8
mov rdi, rax
test rax, rax
je 0x14001b150
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140023b90
mov rbp, rdi
xor ecx, ecx
call fcn.140014b44
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 0x14001c880
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.14001d554
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d554
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001c9d0
cmp rax, 0xffffffffffffffff
je 0x14001c9d0
xor edi, edi
test rbp, rbp
jle 0x14001c97b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140014acc
mov rbx, rax
test rax, rax
jne 0x14001c908
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001c971
mov edx, 0x8000
mov ecx, r14d
call fcn.140012c3c
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.140016d3c
cmp eax, 0xffffffff
je 0x14001c951
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001c918
mov edx, r15d
mov ecx, r14d
call fcn.140012c3c
jmp 0x14001c971
cmp byte [rsi + 0x38], dil
je 0x14001c968
cmp dword [rsi + 0x34], 5
jne 0x14001c968
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001c971
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140014b44
jmp 0x14001c9e4
jns 0x14001c9e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d554
cmp rax, 0xffffffffffffffff
jne 0x14001c99c
cmp byte [rsi + 0x30], dil
je 0x14001c9e4
mov edi, dword [rsi + 0x2c]
jmp 0x14001c9e4
mov ecx, r14d
call fcn.140011c9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001c9e4
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 0x14001c9e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001c9dd
mov eax, dword [rsi + 0x2c]
jmp 0x14001c9e2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d554
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 0x14001ca14
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, [0x14003b250]
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 0x14001ca6b
cmp word [rdx], r13w
jne 0x14001ca6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001ca70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001cb95
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001cbb6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001caa9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001cad0
cmp r9, r8
jae 0x14001cae0
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 0x14001ca8a
jmp 0x14001cb95
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 0x14001cb8a
cmp dword [rsp + 0x80], esi
je 0x14001cb8a
lea r8, [0x14003b250]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001cb62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001cb32
mov word [rbx], r13w
jmp 0x14001cb92
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 0x14001cb3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001cb92
cmp word [rsp + 0x70], r13w
jne 0x14001cb6f
cmp rbx, r14
je 0x14001cb2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001d554
cmp word [rsp + 0x70], r13w
je 0x14001cb95
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, [0x14003b250]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001cb8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001cb95