joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011f60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
lea rdx, [rcx + 0x20]
mov rcx, rbx
call fcn.140002cf0
test al, al
je 0x140011fe4
lea rdx, [rdi + 0x230]
mov r8d, 4
mov rcx, rbx
call fcn.140002ca0
test al, al
je 0x140011fe4
lea rdx, [rdi + 0x234]
mov r8d, 4
mov rcx, rbx
call fcn.140002ca0
test al, al
je 0x140011fe4
lea rdx, [rdi + 0x238]
mov r8d, 4
mov rcx, rbx
call fcn.140002ca0
test al, al
je 0x140011fe4
lea rdx, [rdi + 0x120]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140012870
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x140012000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
lea rdx, [rcx + 0x20]
mov rcx, rbx
call fcn.140002cf0
test al, al
je 0x14001209d
lea rdx, [rdi + 0x230]
mov r8d, 4
mov rcx, rbx
call fcn.140002ca0
test al, al
je 0x14001209d
lea rdx, [rdi + 0x234]
mov r8d, 4
mov rcx, rbx
call fcn.140002ca0
test al, al
je 0x14001209d
lea rdx, [rdi + 0x238]
mov r8d, 4
mov rcx, rbx
call fcn.140002ca0
test al, al
je 0x14001209d
lea rdx, [rdi + 0x23c]
mov r8d, 4
mov rcx, rbx
call fcn.140002ca0
test al, al
je 0x14001209d
lea rdx, [rdi + 0x120]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140012870
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x140012870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov r8d, 4
add rdx, 0x108
mov rsi, rcx
call fcn.140002ca0
test al, al
jne 0x1400128ab
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, dword [rdi + 0x108]
test r8d, r8d
je 0x1400128d5
mov rdx, qword [rdi + 0x100]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140002ca0
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140013700
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rcx
test rcx, rcx
je 0x14001378f
nop word [rax + rax]
mov edx, 0x2f
mov rcx, rdi
call fcn.140049d64
test rax, rax
je 0x14001373c
mov ecx, eax
lea rdi, [rax + 1]
sub ecx, ebx
jmp 0x14001374e
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140013743
xor edi, edi
test ecx, ecx
jle 0x14001378a
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140014c10
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140013780
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001379c
lea rcx, [rsp + 0x30]
call fcn.140014d00
test rdi, rdi
jne 0x140013720
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rsp + 0x30]
call fcn.140014d00
mov rbx, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x140013870
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1400a68b8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov r10, rdx
mov rbx, rcx
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x69], 0
lea r9, [rbp - 0x69]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x1400138c4
mov rcx, rbx
call fcn.140014cb0
jmp 0x1400139df
lea rcx, [rbp - 0x39]
call fcn.1400130e0
nop
mov r8, qword [rbp - 0x69]
mov r9, r8
cmp word [r8], 0
je 0x1400138eb
nop dword [rax]
add r9, 2
cmp word [r9], 0
jne 0x1400138e0
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.1400146d0
nop
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [rbp - 0x51]
mov r8, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x49]
test rdx, rdx
je 0x140013976
lea rax, [rbp - 0x61]
cmp rcx, 0x10
cmovae rax, r8
cmp byte [rdx + rax - 1], 0x5c
je 0x140013976
lea rax, [rbp - 0x61]
cmp rcx, 0x10
cmovae rax, r8
cmp byte [rdx + rax - 1], 0x2f
je 0x140013976
cmp rdx, rcx
jae 0x14001395b
lea rax, [rdx + 1]
mov qword [rbp - 0x51], rax
lea rax, [rbp - 0x61]
cmp rcx, 0x10
cmovae rax, r8
mov word [rax + rdx], 0x5c
jmp 0x14001396e
mov r9b, 0x5c
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x61]
call fcn.140012b70
mov r8, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x49]
lea rdx, [rbp - 0x61]
cmp rcx, 0x10
cmovae rdx, r8
mov rcx, rbx
call fcn.140014b60
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x1400139c2
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400139bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400139ff
call fcn.14001e080
mov qword [rbp - 0x51], 0
mov qword [rbp - 0x49], 0xf
mov byte [rbp - 0x61], 0
lea rcx, [rbp - 0x39]
call fcn.140013580
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14001e120
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rbp
ret
call fcn.140059cb8
nop
int3
Function at 0x140013a10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
movsxd rsi, edx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.140014cb0
mov dword [rsp + 0x30], 1
cmp esi, 7
ja case.default.0x140013a57
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x13c5c]
add rcx, rdx
jmp rcx
lea rcx, [rsp + 0x60]
call fcn.1400137c0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140014d40
nop
lea rcx, [rsp + 0x60]
call fcn.140014d00
jmp case.default.0x140013a57
test rbx, rbx
je 0x140013a94
mov edx, 0x104
mov rcx, rbx
call fcn.140015940
mov rdi, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test rbx, rbx
mov edi, eax
je 0x140013abf
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140015e10
test edi, edi
je case.default.0x140013a57
mov rcx, rbx
call fcn.1400153b0
jmp case.default.0x140013a57
test rbx, rbx
je 0x140013ae8
mov edx, 0x104
mov rcx, rbx
call fcn.140015940
jmp 0x140013aeb
mov rax, rdi
mov edx, 0x1c
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test rbx, rbx
mov esi, eax
je 0x140013b17
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140015e10
test esi, esi
je case.default.0x140013a57
jmp case.0x140013a57.1
test rbx, rbx
je 0x140013b3d
mov edx, 0x104
mov rcx, rbx
call fcn.140015940
mov edx, 0x23
jmp 0x140013af0
mov rax, rdi
mov edx, 0x23
jmp 0x140013af0
lea rdx, [0x1400800c8]
lea rcx, [rsp + 0x60]
call fcn.140013870
nop
mov rdx, rax
mov rcx, rbx
call fcn.140014d40
nop
lea rcx, [rsp + 0x60]
call fcn.140014d00
jmp case.default.0x140013a57
lea rdx, [0x1400800a8]
lea rcx, [rsp + 0x60]
call fcn.140013870
nop
mov rdx, rax
mov rcx, rbx
call fcn.140014d40
nop
lea rcx, [rsp + 0x60]
call fcn.140014d00
mov rax, qword [rbx]
cmp qword [rax - 0x10], 0
je case.default.0x140013a57
lea rdx, str.VST3_
mov rcx, rbx
call fcn.140015020
jmp case.default.0x140013a57
lea rdx, [0x1400800b8]
lea rcx, [rsp + 0x60]
call fcn.140013870
nop
mov rdx, rax
mov rcx, rbx
call fcn.140014d40
nop
jmp 0x140013b92
lea rcx, [rsp + 0x60]
call fcn.1400137c0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140014d40
nop
lea rcx, [rsp + 0x60]
call fcn.140014d00
lea rdx, str.VST3
mov rcx, rbx
call fcn.140015020
mov dl, 0x2f
mov rcx, rbx
call fcn.140014ff0
mov r8b, 0x2f
mov dl, 0x5c
mov rcx, rbx
call fcn.140015e60
mov rax, qword [rbx]
cmp qword [rax - 0x10], 0
je 0x140013c48
mov rcx, rbx
call fcn.14001a990
mov rcx, qword [rbx]
movsxd rax, dword [rcx - 0x10]
cmp byte [rax + rcx - 1], 0x2f
je 0x140013c48
mov dl, 0x2f
mov rcx, rbx
call fcn.140014ff0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140013c80
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rcx
mov dword [rsp + 0x20], 0
call fcn.140013a10
mov dword [rsp + 0x20], 1
mov rax, qword [rsi]
cmp qword [rax - 0x10], 0
je 0x140013d7f
test rbx, rbx
je 0x140013d7f
nop word [rax + rax]
mov edx, 0x2f
mov rcx, rbx
call fcn.140049d64
mov rdi, rax
test rax, rax
je 0x140013ceb
mov ecx, edi
sub ecx, ebx
jmp 0x140013cfb
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140013cf2
test ecx, ecx
jle 0x140013d6d
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140014c10
nop
mov rdx, rax
mov rcx, rsi
call fcn.140014fc0
nop
lea rcx, [rsp + 0x58]
call fcn.140014d00
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140013d63
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140013d63
lea rcx, [rsp + 0x28]
call fcn.1400137c0
nop
mov rdx, rax
mov rcx, rsi
call fcn.140014d40
nop
lea rcx, [rsp + 0x28]
call fcn.140014d00
mov dl, 0x2f
mov rcx, rsi
call fcn.140014ff0
test rdi, rdi
je 0x140013d7f
lea rbx, [rdi + 1]
test rbx, rbx
jne 0x140013cd0
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140014450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x1400145e4
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x1400145e4
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x1400144eb
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14001460b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140014502
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140014502
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140014515
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140014562
mov r8d, eax
cmp eax, 0x800
jae 0x14001452f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140014562
cmp eax, 0x10000
jae 0x140014549
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140014562
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x1400145e4
add qword [r14], 2
test sil, sil
jne 0x140014583
cmp r10d, 3
jae 0x14001458f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x1400145c1
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x1400145a0
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14001449f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x1400145f2
Function at 0x1400199f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400a68b8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, r9
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140014cb0
nop
cmp byte [rbx + 8], 0
je 0x140019a3c
cmp dword [rbx + 0x20], 0
jne 0x140019a3c
mov rcx, qword [rbx]
call fcn.14005967c
mov byte [rbx + 8], 0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rsi
test rdi, rdi
je 0x140019b2b
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140014dc0
lea rcx, [rsp + 0x20]
call fcn.14001a990
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.14001ab20
test eax, eax
jne 0x140019ab7
test rdi, rdi
je 0x140019b2b
mov dword [rbx + 0x20], eax
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x158]
call fcn.140014dc0
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.14001aa80
test eax, eax
je 0x140019abe
xor bl, bl
jmp 0x140019b4b
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140019ad0
lea rcx, [0x14007f128]
lea r8, [rsp + 0x30]
test rax, rax
cmove r8, rcx
lea rdx, [rbx + 0x158]
lea rcx, [rsp + 0x28]
call fcn.140014ee0
lea rdx, [rbx + 0x28]
mov rcx, qword [rsp + 0x28]
call fcn.1400596a4
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140019b1f
mov byte [rbx + 0x150], 1
mov byte [rbx + 8], 1
lea rcx, [rsp + 0x28]
call fcn.140014d00
jmp 0x140019b47
mov rax, 0xffffffffffffffff
mov dword [rbx + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rbx + 0x20], eax
cmp eax, 0
setne al
mov byte [rbx + 8], al
movzx ebx, byte [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.140014d00
movzx eax, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e120
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001b6c0
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x28
xor r9d, r9d
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x14001b6e7
add rsp, 0x28
ret
mov rax, qword [rsp + 0x38]
add rax, 0xfffff
shr rax, 0x14
add rsp, 0x28
ret
Function at 0x14006d3cc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14006d3a9
call fcn.140059e04
mov dword [rax], 0x16
call fcn.140059c98
or eax, 0xffffffff
jmp 0x14006d3c6
sub dword [rcx + 0x10], 1
jns 0x14006d3b8
add rsp, 0x28
jmp 0x140077bec
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14006d388
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 0x140077c1e
call fcn.140059e04
mov dword [rax], 0x16
call fcn.140059c98
jmp 0x140077d3d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140077d3d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140077d3d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140077c4d
lock or dword [rcx + 0x14], 0x10
jmp 0x140077d3d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140077c61
call fcn.14007ae84
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14006a5dc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140079080
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140077d2b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140077cf6
mov rcx, rsi
call fcn.14006a5dc
cmp eax, edi
je 0x140077ce1
mov rcx, rsi
call fcn.14006a5dc
cmp eax, 0xfffffffe
je 0x140077ce1
mov rcx, rsi
call fcn.14006a5dc
movsxd rbx, eax
lea r14, [0x1400ba160]
mov rcx, rsi
sar rbx, 6
call fcn.14006a5dc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140077ce8
lea rdx, [0x1400a6c90]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140077cf6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140077d1a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140077d1a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140077d1a
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 0x140077d40
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 0x14006dcf4
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.14001e420
sub rsp, rax
mov rax, qword [0x1400a68b8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006a5dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006dd43
mov rax, rbp
jmp 0x14006de4b
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 + 0xba160]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006d9a4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xba160]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006de47
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 0x14006de47
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006d9a4
test rax, rax
js 0x14006de47
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006de47
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006de39
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006de39
cmp byte [rcx], 0xd
jne 0x14006de1f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006de2e
cmp byte [rcx + 1], 0xa
jne 0x14006de2e
inc rcx
jmp 0x14006de2e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa73f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006de01
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006de4b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001e120
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 0x14006f354
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 0x14006f384
xor eax, eax
jmp 0x14006f447
mov rbp, rbx
cmp word [rax], si
je 0x14006f3a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006f390
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006f38c
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.14006ac60
movsxd r14, eax
test eax, eax
jne 0x14006f3e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006f37d
mov rcx, r14
call fcn.140068c10
mov rdi, rax
test rax, rax
jne 0x14006f400
xor ecx, ecx
call fcn.140068bd4
jmp 0x14006f3dc
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.14006ac60
test eax, eax
jne 0x14006f431
mov rcx, rdi
call fcn.140068bd4
jmp 0x14006f43b
xor ecx, ecx
call fcn.140068bd4
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 0x14006f464
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 0x14006f4eb
mov rsi, rbx
cmp word [rax], bp
je 0x14006f4aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006f494
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006f490
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140068c10
mov rdi, rax
test rax, rax
je 0x14006f4d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400485d0
mov rbp, rdi
xor ecx, ecx
call fcn.140068bd4
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 0x140078bd4
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, [0x1400ba160]
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 0x140078c32
cmp word [rdx], r12w
jne 0x140078c32
or byte [rax + r8*8 + 0x38], cl
jmp 0x140078c38
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140078d93
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140078d6e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140078c71
mov rcx, r9
jmp 0x140078c94
cmp r9, rdx
jae 0x140078cab
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 0x140078c55
jmp 0x140078d93
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 0x140078d68
cmp dword [rsp + 0x80], edi
je 0x140078d68
mov rdx, r14
lea r11, [0x1400ba160]
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 0x140078d41
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140078d14
mov word [rbx], r12w
jmp 0x140078d8f
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 0x140078d1d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140078d8f
cmp word [rsp + 0x70], r12w
jne 0x140078d4e
cmp rbx, rsi
je 0x140078d0e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14006d9ac
cmp word [rsp + 0x70], r12w
je 0x140078d93
mov word [rbx], r13w
jmp 0x140078d8f
lea r11, [0x1400ba160]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140078d8b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140078d93
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