joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063220
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1400632a0
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x140063244
call fcn.140062930
mov edx, ebx
mov rcx, rdi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140063257
call fcn.140062930
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400635c0
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movabs rax, 0x6a09e667f3bcc908
mov rbx, rdx
mov qword [rcx], rax
mov rdi, rcx
movabs rax, 0xbb67ae8584caa73b
xor edx, edx
mov qword [rcx + 8], rax
mov r8d, 0x129
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
add rcx, 0x40
call fcn.14007e440
mov rax, qword [rbx]
xor qword [rdi], rax
mov rax, qword [rbx + 8]
xor qword [rdi + 8], rax
mov rax, qword [rbx + 0x10]
xor qword [rdi + 0x10], rax
mov rax, qword [rbx + 0x18]
xor qword [rdi + 0x18], rax
mov rax, qword [rbx + 0x20]
xor qword [rdi + 0x20], rax
mov rax, qword [rbx + 0x28]
xor qword [rdi + 0x28], rax
mov rax, qword [rbx + 0x30]
xor qword [rdi + 0x30], rax
mov rax, qword [rbx + 0x38]
xor qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140069c00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x10
mov rax, qword [0x1400ce288]
xor rax, rsp
mov qword [rsp + 8], rax
xor r8d, r8d
lea r15, [0x1400ab3c0]
mov dword [rsp], r8d
mov r9, rcx
movzx edi, byte [rsp + 3]
xor eax, eax
movzx esi, byte [rsp + 2]
movzx ebx, r8b
movzx ebp, byte [rsp + 1]
movzx r14d, r8b
mov word [rsp + 4], r8w
movzx r11d, byte [rsp + 5]
nop dword [rax]
movzx edx, byte [r9 + rax]
movzx ecx, byte [rax + r15]
movzx r10d, byte [rax + r15 + 0xc0]
xor cl, dl
or cl, r14b
xor r10b, dl
movzx r14d, cl
or r10b, r8b
movzx ecx, byte [rax + r15 + 0x20]
movzx r8d, r10b
xor cl, dl
or cl, bpl
movzx ebp, cl
movzx ecx, byte [rax + r15 + 0x40]
xor cl, dl
or cl, sil
movzx esi, cl
movzx ecx, byte [rax + r15 + 0x60]
xor cl, dl
or cl, dil
movzx edi, cl
movzx ecx, byte [rax + r15 + 0x80]
xor cl, dl
or cl, bl
movzx ebx, cl
movzx ecx, byte [rax + r15 + 0xa0]
inc rax
xor cl, dl
or cl, r11b
movzx r11d, cl
cmp rax, 0x1f
jb 0x140069c60
movzx ecx, byte [rax + r9]
movzx r9d, byte [rax + r15 + 0xc0]
and cl, 0x7f
movzx edx, byte [rax + r15 + 0xa0]
movzx r8d, cl
xor edx, r8d
movzx ecx, r10b
or edx, r11d
xor r9d, r8d
dec edx
or r9d, ecx
dec r9d
or r9d, edx
movzx edx, byte [rax + r15 + 0x80]
xor edx, r8d
or edx, ebx
dec edx
or r9d, edx
movzx edx, byte [rax + r15]
xor edx, r8d
or edx, r14d
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x20]
xor edx, r8d
or edx, ebp
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x40]
movzx eax, byte [rax + r15 + 0x60]
xor edx, r8d
xor eax, r8d
or edx, esi
or eax, edi
dec edx
dec eax
or r9d, edx
or eax, r9d
shr eax, 8
and eax, 1
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.14007c270
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x10
pop r15
pop r14
pop rdi
ret
Function at 0x14006a5e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
ret
Function at 0x14006eb90
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x3c], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x30], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x38], eax
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
ret
Function at 0x1400778f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx edx, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, edx
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x10
jl 0x140077900
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret
Function at 0x140079990
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x18
mov rax, rdx
test r9, r9
jne 0x1400799c6
mov ebx, 0x79622d32
mov r10d, 0x61707865
mov r11d, 0x3320646e
mov r9d, 0x6b206574
jmp 0x1400799d5
mov r10d, dword [r9]
mov r11d, dword [r9 + 4]
mov ebx, dword [r9 + 8]
mov r9d, dword [r9 + 0xc]
mov ecx, dword [r8 + 0x18]
mov edx, dword [r8 + 0x14]
mov r14d, dword [r8]
mov r15d, dword [r8 + 4]
mov r12d, dword [r8 + 8]
mov ebp, dword [r8 + 0xc]
mov r13d, dword [r8 + 0x10]
mov edi, dword [rax + 8]
mov esi, dword [rax + 0xc]
mov dword [rsp + 0x68], ecx
mov ecx, dword [r8 + 0x1c]
mov r8d, dword [rax + 4]
mov dword [rsp + 0x78], edx
mov edx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, dword [rsp + 0x78]
mov qword [rsp + 8], 0xa
nop dword [rax]
lea eax, [rcx + r10]
rol eax, 7
xor ebp, eax
lea eax, [r10 + rbp]
rol eax, 9
xor edi, eax
lea eax, [rdi + rbp]
rol eax, 0xd
xor ecx, eax
lea eax, [rdi + rcx]
ror eax, 0xe
xor r10d, eax
lea eax, [r14 + r11]
rol eax, 7
xor esi, eax
lea eax, [rsi + r11]
rol eax, 9
xor dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
add eax, esi
rol eax, 0xd
xor r14d, eax
mov eax, dword [rsp + 0x68]
add eax, r14d
ror eax, 0xe
xor r11d, eax
lea eax, [rdx + rbx]
rol eax, 7
xor dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
add eax, ebx
rol eax, 9
xor r15d, eax
mov eax, dword [rsp + 0x70]
add eax, r15d
rol eax, 0xd
xor edx, eax
lea eax, [rdx + r15]
ror eax, 0xe
xor ebx, eax
lea eax, [r9 + r13]
rol eax, 7
xor r12d, eax
lea eax, [r12 + r9]
rol eax, 9
xor r8d, eax
lea eax, [r8 + r12]
rol eax, 0xd
xor r13d, eax
lea eax, [r8 + r13]
ror eax, 0xe
xor r9d, eax
lea eax, [r12 + r10]
rol eax, 7
xor r14d, eax
mov dword [rsp], r14d
lea eax, [r14 + r10]
rol eax, 9
xor r15d, eax
lea eax, [r15 + r14]
rol eax, 0xd
xor r12d, eax
lea eax, [r12 + r15]
ror eax, 0xe
xor r10d, eax
lea eax, [r11 + rbp]
rol eax, 7
xor edx, eax
lea eax, [rdx + r11]
rol eax, 9
xor r8d, eax
lea eax, [r8 + rdx]
rol eax, 0xd
xor ebp, eax
lea eax, [r8 + rbp]
ror eax, 0xe
xor r11d, eax
lea eax, [rsi + rbx]
rol eax, 7
xor r13d, eax
lea eax, [rbx + r13]
mov r14d, dword [rsp + 0x70]
rol eax, 9
xor edi, eax
lea eax, [rdi + r13]
rol eax, 0xd
xor esi, eax
lea eax, [rsi + rdi]
ror eax, 0xe
xor ebx, eax
mov eax, dword [rsp + 0x70]
add eax, r9d
rol eax, 7
xor ecx, eax
lea eax, [rcx + r9]
rol eax, 9
xor dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
add eax, ecx
rol eax, 0xd
xor r14d, eax
mov eax, dword [rsp + 0x68]
add eax, r14d
mov dword [rsp + 0x70], r14d
mov r14d, dword [rsp]
ror eax, 0xe
xor r9d, eax
sub qword [rsp + 8], 1
jne 0x140079a20
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov dword [rcx], r10d
mov dword [rcx + 4], r11d
mov dword [rcx + 8], ebx
mov dword [rcx + 0xc], r9d
mov dword [rcx + 0x10], edx
mov dword [rcx + 0x14], r8d
mov dword [rcx + 0x18], edi
mov dword [rcx + 0x1c], esi
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14008f568
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008f358
Function at 0x140094c90
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, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140094cc2
call fcn.140086900
mov dword [rax], 0x16
call fcn.140082128
jmp 0x140094de1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140094de1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140094de1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140094cf1
lock or dword [rcx + 0x14], 0x10
jmp 0x140094de1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140094d05
call fcn.1400951fc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140093a04
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140097a50
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140094dcf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140094d9a
mov rcx, rsi
call fcn.140093a04
cmp eax, edi
je 0x140094d85
mov rcx, rsi
call fcn.140093a04
cmp eax, 0xfffffffe
je 0x140094d85
mov rcx, rsi
call fcn.140093a04
movsxd rbx, eax
lea r14, [0x1400d0e30]
mov rcx, rsi
sar rbx, 6
call fcn.140093a04
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140094d8c
lea rdx, [0x1400ce620]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140094d9a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140094dbe
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140094dbe
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140094dbe
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 0x140094de4
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 0x140094dfc
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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140094b1e
call fcn.140086900
mov dword [rax], 0x16
call fcn.140082128
jmp 0x140094c6e
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140094c6e
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140094c6e
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140094b4d
lock or dword [rcx + 0x14], 0x10
jmp 0x140094c6e
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140094b61
call fcn.1400951fc
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140094b71
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140094b74
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140093a04
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140097a50
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140094c5c
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140094c07
mov rcx, rbx
call fcn.140093a04
cmp eax, 0xffffffff
je 0x140094bf2
mov rcx, rbx
call fcn.140093a04
cmp eax, 0xfffffffe
je 0x140094bf2
mov rcx, rbx
call fcn.140093a04
movsxd rdi, eax
lea rsi, [0x1400d0e30]
mov rcx, rbx
sar rdi, 6
call fcn.140093a04
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140094bf9
lea rdx, [0x1400ce620]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140094c07
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140094c2b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140094c2b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140094c2b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140094c49
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140094c54
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140094c73
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140094ae8
Function at 0x140097324
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.14007bcd0
sub rsp, rax
mov rax, qword [0x1400ce288]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140093a04
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140097373
mov rax, rbp
jmp 0x14009747b
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 + 0xd0e30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140098228
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd0e30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140097477
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 0x140097477
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140098228
test rax, rax
js 0x140097477
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140097477
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140097469
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140097469
cmp byte [rcx], 0xd
jne 0x14009744f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009745e
cmp byte [rcx + 1], 0xa
jne 0x14009745e
inc rcx
jmp 0x14009745e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xce670]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140097431
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009747b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007c270
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 0x1400975a4
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, [0x1400d0e30]
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 0x140097602
cmp word [rdx], r12w
jne 0x140097602
or byte [rax + r8*8 + 0x38], cl
jmp 0x140097608
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140097763
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14009773e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140097641
mov rcx, r9
jmp 0x140097664
cmp r9, rdx
jae 0x14009767b
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 0x140097625
jmp 0x140097763
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 0x140097738
cmp dword [rsp + 0x80], edi
je 0x140097738
mov rdx, r14
lea r11, [0x1400d0e30]
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 0x140097711
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400976e4
mov word [rbx], r12w
jmp 0x14009775f
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 0x1400976ed
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14009775f
cmp word [rsp + 0x70], r12w
jne 0x14009771e
cmp rbx, rsi
je 0x1400976de
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140098230
cmp word [rsp + 0x70], r12w
je 0x140097763
mov word [rbx], r13w
jmp 0x14009775f
lea r11, [0x1400d0e30]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14009775b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140097763
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 0x14009b5f4
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 0x14009b624
xor eax, eax
jmp 0x14009b6e7
mov rbp, rbx
cmp word [rax], si
je 0x14009b649
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009b630
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009b62c
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.140099d64
movsxd r14, eax
test eax, eax
jne 0x14009b687
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009b61d
mov rcx, r14
call fcn.140092654
mov rdi, rax
test rax, rax
jne 0x14009b6a0
xor ecx, ecx
call fcn.140092618
jmp 0x14009b67c
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.140099d64
test eax, eax
jne 0x14009b6d1
mov rcx, rdi
call fcn.140092618
jmp 0x14009b6db
xor ecx, ecx
call fcn.140092618
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 0x1400a26b4
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.14008783c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a273e
cmp byte [rbp - 0x21], r15b
je 0x1400a2739
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a2774
call fcn.140095530
test eax, eax
jne 0x1400a2760
cmp byte [rbp - 0x21], r15b
je 0x1400a2758
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a2774
cmp byte [rbp - 0x21], r15b
je 0x1400a2771
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.14008ed94
test eax, eax
jne 0x1400a2814
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008783c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a27b3
cmp byte [rbp - 0x21], r15b
je 0x1400a27e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a27e8
call fcn.140095530
test eax, eax
jne 0x1400a27d4
cmp byte [rbp - 0x21], r15b
je 0x1400a27cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a27e8
cmp byte [rbp - 0x21], r15b
je 0x1400a27e5
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.14008ed94
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a2814
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a2817
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a2825
mov rcx, rdi
call fcn.140092618
cmp byte [rbp + 0x3f], r15b
je 0x1400a2834
mov rcx, qword [rbp + 0x27]
call fcn.140092618
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 0x1400a3620
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.140098230
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140098230
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a3770
cmp rax, 0xffffffffffffffff
je 0x1400a3770
xor edi, edi
test rbp, rbp
jle 0x1400a371b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400925a0
mov rbx, rax
test rax, rax
jne 0x1400a36a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a3711
mov edx, 0x8000
mov ecx, r14d
call fcn.1400903ec
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.140096d04
cmp eax, 0xffffffff
je 0x1400a36f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a36b8
mov edx, r15d
mov ecx, r14d
call fcn.1400903ec
jmp 0x1400a3711
cmp byte [rsi + 0x38], dil
je 0x1400a3708
cmp dword [rsi + 0x34], 5
jne 0x1400a3708
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a3711
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140092618
jmp 0x1400a3784
jns 0x1400a3784
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140098230
cmp rax, 0xffffffffffffffff
jne 0x1400a373c
cmp byte [rsi + 0x30], dil
je 0x1400a3784
mov edi, dword [rsi + 0x2c]
jmp 0x1400a3784
mov ecx, r14d
call fcn.14009c314
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a3784
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 0x1400a3784
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a377d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a3782
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140098230
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