joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400734e0
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r9, r9
je 0x1400735b4
cmp r9, 0x40
jb 0x140073593
lea r11, [rcx - 1]
lea rax, [r8 - 1]
add r11, r9
add rax, r9
cmp rcx, rax
ja 0x140073512
cmp r11, r8
jae 0x140073593
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140073523
cmp r11, rdx
jae 0x140073593
mov rax, r9
and rax, 0xffffffffffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [r8]
add r10, 0x40
movdqu xmm1, xmmword [rdx]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x10]
movdqu xmmword [rcx], xmm1
movdqu xmm1, xmmword [rdx + 0x10]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x20]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm1, xmmword [rdx + 0x20]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x30]
add r8, 0x40
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm1, xmmword [rdx + 0x30]
add rdx, 0x40
xorps xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
cmp r10, rax
jb 0x140073530
cmp r10, r9
jae 0x1400735b4
sub rdx, rcx
sub r8, rcx
sub r9, r10
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor al, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1400735a0
ret

Function at 0x1400786d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x14007876c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x14007873c
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_ReadFile]
jmp 0x14007874d
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x14007878b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x140078710
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x1400787a8
cmp eax, 0x3e5
je 0x1400787af
mov eax, 0xffffffff
jmp 0x140078772
cmp eax, 0x3e4
jne 0x1400787a1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x140078772
Function at 0x1400787c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x14007885c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x14007882c
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_WriteFile]
jmp 0x14007883d
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x14007887b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x140078800
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x140078898
cmp eax, 0x3e5
je 0x14007889f
mov eax, 0xffffffff
jmp 0x140078862
cmp eax, 0x3e4
jne 0x140078891
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x140078862
Function at 0x140079700
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140079937
test rdx, rdx
je 0x140079937
test r8, r8
je 0x140079937
test rbx, rbx
je 0x140079937
mov ecx, dword [r9 + 8]
mov ebp, dword [r8 + 8]
add ecx, 0x18
add ebp, ecx
mov dword [rsp + 0x50], 0x18
mov ecx, ebp
call fcn.14008a674
mov r15, rax
test rax, rax
je 0x140079937
mov dword [rax], 0x31415352
mov ecx, dword [rbx + 8]
shl ecx, 3
mov dword [rax + 4], ecx
mov ecx, dword [r14 + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 0xc], ecx
mov qword [rsp + 0x98], r12
xor r12d, r12d
mov qword [rax + 0x10], r12
mov ecx, dword [rsp + 0x50]
mov r8d, dword [r14 + 8]
add rcx, rax
mov rdx, qword [r14]
call fcn.1400a1550
mov ecx, dword [r14 + 8]
add ecx, dword [rsp + 0x50]
mov r8d, dword [rbx + 8]
add rcx, r15
mov rdx, qword [rbx]
call fcn.1400a1550
mov rcx, qword [0x1400e7198]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], r12d
lea r8, str.RSAPUBLICBLOB
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x50], r12d
call sub.bcrypt.dll_BCryptImportKeyPair
mov ebx, eax
test eax, eax
js 0x140079920
mov r8d, dword [rsi + 8]
lea rax, [rsp + 0x90]
mov rdx, qword [rsi]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x140079916
mov ebx, dword [rsp + 0x90]
cmp ebx, dword [rdi + 8]
je 0x140079867
mov rcx, qword [rdi]
mov edx, ebx
call fcn.14008b0e4
test rax, rax
je 0x140079911
mov dword [rdi + 8], ebx
mov ebx, dword [rsp + 0x90]
mov qword [rdi], rax
mov eax, dword [rsi + 8]
cmp eax, ebx
jbe 0x140079877
mov ebx, eax
mov dword [rsp + 0x90], eax
mov ecx, ebx
call fcn.14008a674
mov rbp, rax
test rax, rax
je 0x140079911
mov r9d, dword [rsi + 8]
mov rcx, rax
mov r8, qword [rsi]
mov edx, dword [rsp + 0x90]
call fcn.14007bbb0
mov ecx, dword [rdi + 8]
lea rax, [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call sub.bcrypt.dll_BCryptEncrypt
mov rcx, rbp
mov ebx, eax
call fcn.14008b0d0
test ebx, ebx
js 0x140079916
mov esi, dword [rsp + 0x50]
cmp esi, dword [rdi + 8]
je 0x140079916
mov rcx, qword [rdi]
mov edx, esi
call fcn.14008b0e4
test rax, rax
je 0x140079916
mov qword [rdi], rax
mov dword [rdi + 8], esi
jmp 0x140079916
mov ebx, 0xc0000017
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov rcx, r15
call fcn.14008b0d0
mov r12, qword [rsp + 0x98]
sar ebx, 0x1f
mov eax, ebx
jmp 0x14007993c
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140079a40
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov ebp, dword [rdx + 0x10]
mov r14, r9
mov r13, qword [rsp + 0xa0]
mov eax, r8d
mov rdi, rcx
test ebp, ebp
je 0x140079a74
mov r15, qword [rcx + 0x18]
jmp 0x140079a77
mov r15, r14
mov qword [rsp + 0x88], r12
test eax, eax
jne 0x140079ac9
test ebp, ebp
jne 0x140079ac9
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x140079b09
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x140079c21
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x80], rsi
call fcn.14008a674
mov rsi, rax
test rax, rax
je 0x140079c14
cmp dword [rsp + 0x90], 0
jne 0x140079b86
test ebp, ebp
jne 0x140079b86
mov ecx, dword [rsp + 0xa0]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rdi + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x140079bc9
mov rcx, qword [rdi]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rsp + 0xa0]
mov rdx, r15
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 0x24]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x140079c0a
mov rcx, r14
test ebp, ebp
je 0x140079bfa
mov r9, r13
mov r8, rsi
mov rdx, r14
call fcn.1400734e0
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x18]
call fcn.140072d70
mov rcx, rsi
call fcn.14008b0d0
jmp 0x140079c19
mov r8d, dword [rsp + 0xa0]
mov rdx, rsi
call fcn.1400a1550
mov rcx, rsi
call fcn.14008b0d0
jmp 0x140079c19
mov ebx, 0xc0000017
mov rsi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
sar ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x14007aa40
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
sar eax, 0x1f
add rsp, 0x28
ret
Function at 0x14007aea0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x68
mov r13d, r9d
mov r14, rdx
cmp rdx, 0x14
jne 0x14007aed2
mov rbx, qword [0x1400e7150]
lea rax, str.SHA1
jmp 0x14007af16
cmp r14, 0x20
jne 0x14007aee8
mov rbx, qword [0x1400e7158]
lea rax, str.SHA256
jmp 0x14007af16
cmp r14, 0x30
jne 0x14007aefe
mov rbx, qword [0x1400e7160]
lea rax, str.SHA384
jmp 0x14007af16
cmp r14, 0x40
jne 0x14007b117
mov rbx, qword [0x1400e7168]
lea rax, str.SHA512
mov esi, dword [rsp + 0xc8]
mov ecx, esi
mov qword [rsp + 0x50], rax
call fcn.14008a674
mov rbp, rax
test rax, rax
je 0x14007b117
mov rcx, r14
mov qword [rsp + 0xb8], r12
call fcn.14008a674
mov r12, rax
mov rcx, rbp
test rax, rax
jne 0x14007af5f
call fcn.14008b0d0
lea eax, [r12 - 1]
jmp 0x14007b033
mov rdx, qword [rsp + 0xc0]
mov r8, rsi
mov qword [rsp + 0x60], r15
call fcn.1400a1550
xor edi, edi
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x40]
lea rdx, str.HashDigestLength
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r9d, [rdi + 4]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x14007b019
cmp dword [rsp + 0x40], r14d
jne 0x14007b019
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0xa8]
mov rcx, rbx
lea rdx, str.ObjectLength
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x14007b019
mov ecx, dword [rsp + 0xa8]
call fcn.14008a674
mov r15, rax
test rax, rax
je 0x14007b019
mov r9d, dword [rsp + 0xa8]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x30], edi
mov r8, rax
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jns 0x14007b048
mov rcx, r15
call fcn.14008b0d0
mov rcx, rbp
call fcn.14008b0d0
mov rcx, r12
call fcn.14008b0d0
mov eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0xb8]
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdi, qword [rsp + 0x48]
xor r9d, r9d
mov ebx, dword [rsp + 0x40]
mov rcx, rdi
mov r8d, esi
mov rdx, rbp
call sub.bcrypt.dll_BCryptHashData
xor r9d, r9d
mov r8d, ebx
mov rdx, r12
mov rcx, rdi
mov esi, eax
call sub.bcrypt.dll_BCryptFinishHash
mov rcx, rdi
mov ebx, eax
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, r15
call fcn.14008b0d0
or esi, ebx
mov rcx, rbp
sar esi, 0x1f
call fcn.14008b0d0
test esi, esi
jne 0x14007b021
mov rcx, r13
call fcn.14008a674
mov rdi, rax
test rax, rax
je 0x14007b021
mov rdx, qword [rsp + 0xb0]
mov r8, r13
mov rcx, rax
call fcn.1400a1550
mov ecx, dword [rsp + 0xd0]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
test cl, 2
mov rcx, qword [rsp + 0xa0]
mov eax, 0
cmove rdx, rax
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rcx, qword [rcx]
call sub.bcrypt.dll_BCryptVerifySignature
mov rcx, r12
mov ebx, eax
call fcn.14008b0d0
mov rcx, rdi
call fcn.14008b0d0
sar ebx, 0x1f
mov eax, ebx
jmp 0x14007b02e
mov eax, 0xffffffff
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007b130
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov r8d, edx
xor r9d, r9d
mov rdx, rcx
mov rcx, qword [0x1400e7140]
call sub.bcrypt.dll_BCryptGenRandom
sar eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400853c4
Capabilities:
Parse pe header

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

Function at 0x140091444
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140091240

Function at 0x140096968
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, [0x1400e6a90]
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 0x1400969bf
cmp word [rdx], r13w
jne 0x1400969bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400969c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140096ae9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140096b0a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400969fd
mov rdx, r9
mov word [rbx], cx
jmp 0x140096a24
cmp r9, r8
jae 0x140096a34
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 0x1400969de
jmp 0x140096ae9
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 0x140096ade
cmp dword [rsp + 0x80], esi
je 0x140096ade
lea r8, [0x1400e6a90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140096ab6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140096a86
mov word [rbx], r13w
jmp 0x140096ae6
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 0x140096a93
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140096ae6
cmp word [rsp + 0x70], r13w
jne 0x140096ac3
cmp rbx, r14
je 0x140096a80
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140097730
cmp word [rsp + 0x70], r13w
je 0x140096ae9
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, [0x1400e6a90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140096ae3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140096ae9
Function at 0x1400986dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400986f2
mov al, 1
jmp 0x140098752
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140098703
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140098750
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009b01c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140098750
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x140098750
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x140098750
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140098752
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009a508
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 0x14009a538
xor eax, eax
jmp 0x14009a5fb
mov rbp, rbx
cmp word [rax], si
je 0x14009a55d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009a544
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009a540
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.14009a428
movsxd r14, eax
test eax, eax
jne 0x14009a59b
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14009a531
mov rcx, r14
call fcn.140091f74
mov rdi, rax
test rax, rax
jne 0x14009a5b4
xor ecx, ecx
call fcn.140093f60
jmp 0x14009a590
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.14009a428
test eax, eax
jne 0x14009a5e5
mov rcx, rdi
call fcn.140093f60
jmp 0x14009a5ef
xor ecx, ecx
call fcn.140093f60
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 0x14009fdf8
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.140092960
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14009fe82
cmp byte [rbp - 0x21], r15b
je 0x14009fe7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009feb8
call fcn.140093994
test eax, eax
jne 0x14009fea4
cmp byte [rbp - 0x21], r15b
je 0x14009fe9c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009feb8
cmp byte [rbp - 0x21], r15b
je 0x14009feb5
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.140098db4
test eax, eax
jne 0x14009ff58
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140092960
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009fef7
cmp byte [rbp - 0x21], r15b
je 0x14009ff2c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14009ff2c
call fcn.140093994
test eax, eax
jne 0x14009ff18
cmp byte [rbp - 0x21], r15b
je 0x14009ff11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14009ff2c
cmp byte [rbp - 0x21], r15b
je 0x14009ff29
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.140098db4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14009ff58
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14009ff5b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14009ff69
mov rcx, rdi
call fcn.140093f60
cmp byte [rbp + 0x3f], r15b
je 0x14009ff78
mov rcx, qword [rbp + 0x27]
call fcn.140093f60
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 0x1400a0c30
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.140097730
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140097730
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a0d80
cmp rax, 0xffffffffffffffff
je 0x1400a0d80
xor edi, edi
test rbp, rbp
jle 0x1400a0d2b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140098d28
mov rbx, rax
test rax, rax
jne 0x1400a0cb8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a0d21
mov edx, 0x8000
mov ecx, r14d
call fcn.1400914c0
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.1400981e0
cmp eax, 0xffffffff
je 0x1400a0d01
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a0cc8
mov edx, r15d
mov ecx, r14d
call fcn.1400914c0
jmp 0x1400a0d21
cmp byte [rsi + 0x38], dil
je 0x1400a0d18
cmp dword [rsi + 0x34], 5
jne 0x1400a0d18
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a0d21
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140093f60
jmp 0x1400a0d94
jns 0x1400a0d94
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140097730
cmp rax, 0xffffffffffffffff
jne 0x1400a0d4c
cmp byte [rsi + 0x30], dil
je 0x1400a0d94
mov edi, dword [rsi + 0x2c]
jmp 0x1400a0d94
mov ecx, r14d
call fcn.14009b01c
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a0d94
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 0x1400a0d94
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a0d8d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a0d92
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140097730
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 0x1400a13e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a1408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a1408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret