joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400039c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x79], 0
je 0x1400039d4
xor eax, eax
jmp 0x140003bfd
mov r8, qword [rcx + 0x48]
mov r9, qword [rcx + 0x50]
test byte [rcx], 1
je 0x140003a0f
lea rdx, [rcx + 8]
mov rax, qword [rcx + 0x58]
cmp qword [rcx + 0x38], 0xffffffffffffffff
mov rdi, rcx
mov rcx, qword [rcx + 0x60]
je 0x140003b46
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
jmp 0x140003b55
cmp byte [rcx + 0x1a], 0
je 0x140003a2f
mov rsi, r8
xor eax, eax
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
jne 0x140003b95
jmp 0x140003bc7
mov rax, qword [rcx + 8]
movzx edx, byte [rcx + 0x18]
jmp 0x140003a47
add rax, r10
mov qword [rcx + 8], rax
mov r10d, edx
xor dl, 1
test rax, rax
je 0x140003a76
cmp rax, r9
jae 0x140003a70
cmp byte [r8 + rax], 0xbf
jg 0x140003a76
jmp 0x140003c05
jne 0x140003c05
cmp rax, r9
je 0x140003b6e
movzx ebx, byte [r8 + rax]
movzx r11d, bl
test r11b, r11b
jns 0x140003af0
mov esi, r11d
and esi, 0x1f
movzx edi, byte [r8 + rax + 1]
and edi, 0x3f
cmp r11b, 0xdf
jbe 0x140003ada
movzx r11d, byte [r8 + rax + 2]
shl edi, 6
and r11d, 0x3f
or r11d, edi
cmp bl, 0xf0
jb 0x140003b32
movzx edi, byte [r8 + rax + 3]
and esi, 7
shl esi, 0x12
shl r11d, 6
and edi, 0x3f
or edi, r11d
or edi, esi
mov r11d, edi
test r10b, 1
je 0x140003af6
jmp 0x140003b3e
shl esi, 6
or esi, edi
mov r11d, esi
nop word cs:[rax + rax]
test r10b, 1
jne 0x140003b3e
mov r10d, 1
cmp r11d, 0x80
jb 0x140003a40
mov r10d, 2
cmp r11d, 0x800
jb 0x140003a40
cmp r11d, 0x10000
mov r10d, 4
sbb r10, 0
jmp 0x140003a40
shl esi, 0xc
or r11d, esi
test r10b, 1
je 0x140003af6
mov byte [rcx + 0x18], dl
mov r9, rax
jmp 0x140003b77
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x38]
mov rsi, r8
call fcn.1400037c0
mov rcx, rdi
test byte [rsp + 0x38], 1
jne 0x140003b95
jmp 0x140003bc7
mov byte [rcx + 0x18], dl
test r10b, 1
je 0x140003bb2
mov rsi, r8
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r9
mov eax, 1
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
je 0x140003bc7
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov r9, qword [rcx + 0x68]
sub rdx, r9
mov rax, rsi
add rax, r9
mov qword [rcx + 0x68], r8
jmp 0x140003bfd
mov rsi, r8
mov byte [rcx + 0x1a], 1
xor eax, eax
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
jne 0x140003b95
cmp byte [rcx + 0x79], 0
jne 0x1400039cd
mov byte [rcx + 0x79], 1
cmp byte [rcx + 0x78], 1
jne 0x140003be5
mov rax, qword [rcx + 0x68]
mov rdx, qword [rcx + 0x70]
jmp 0x140003bf6
mov rax, qword [rcx + 0x68]
mov rdx, qword [rcx + 0x70]
cmp rdx, rax
je 0x1400039cd
sub rdx, rax
add rax, qword [rcx + 0x48]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rcx + 0x18], dl
lea rcx, [0x14004ebe8]
mov qword [rsp + 0x20], rcx
mov rcx, r8
mov rdx, r9
mov r8, rax
call fcn.140020db0
int3
Function at 0x1400084c0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140008560
jmp 0x14000854f
jae 0x14000862e
cmp r8, 0x201
jae 0x140008560
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400085c6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000859e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001fd70
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400085ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000869a
mov r8d, r13d
cmp r12, r8
jne 0x140008540
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400086ce
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000854f
jmp 0x140008560
cmp r14, r8
jb 0x1400086e8
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000a720
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140008683
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140005be0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000866e
jmp 0x140008683
lea rcx, str.internal_error:_entered_unreachable_code_rustc_8d6b88b168e45ee1624699c19443c49665322a91library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140020940
jmp 0x1400086fd
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140020c90
ud2
Function at 0x14000ed60
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140010080
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x14000edbb
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.140010ea0
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x14000edc6
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000edf0
test rdi, rdi
je 0x14000ee1c
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140005be0
xor eax, eax
jmp 0x14000edbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14000edbe
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140005be0
jmp 0x14000edbb
xor eax, eax
jmp 0x14000edbe

Function at 0x14000ee20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400509e8]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000eeb6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14000eee3
test eax, eax
js 0x14000eec2
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14000eed9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.14000a2b0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140006820
mov ecx, 7
int 0x29
ud2
Function at 0x14000f8a0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14005c141]
mov ecx, 0x10
mov edx, 8
call fcn.140005bd0
test rax, rax
je 0x14000f98b
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, case.0x14000b5ae.306
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14000f97d
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
je 0x14000f93a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000f954
mov r8, qword [rax + 0x10]
call fcn.140005be0
mov edx, 0x10
mov r8d, 8
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
Function at 0x14001f414
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f45e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f45e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f45e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f45e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f45e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001f460
xor al, al
add rsp, 0x28
ret
Function at 0x1406c4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406c41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c406f
add dl, dl
jne 0x1406c4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c40f6
xor eax, eax
add dl, dl
jne 0x1406c40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c41ad
add dl, dl
jne 0x1406c40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c407e
mov eax, 1
add dl, dl
jne 0x1406c4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c40fb
sub eax, ebx
mov ebx, 1
jne 0x1406c414c
mov ecx, 1
add dl, dl
jne 0x1406c412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c415d
cmp eax, 0x7d00
jae 0x1406c419b
cmp eax, 0x500
jb 0x1406c4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c407e
cmp eax, 0x7f
ja 0x1406c419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c41d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x1068
call fcn.1400011d0
sub rsp, rax
mov rax, qword [0x14001d080]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.HTTPGET
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000110d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.https:__webhook.site_28512a2b_3758_46e3_9cc5_6241555f3b4e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140001101
lea rdx, [0x14001d044]
lea rcx, str.html.txt
call fcn.140004aa0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400010f5
lea r9, [rsp + 0x30]
mov r8d, 0xfff
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400010ea
cmp dword [rsp + 0x30], 0
je 0x1400010ea
mov eax, dword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov r8d, eax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140004e1c
nop
jmp 0x1400010a6
mov rcx, qword [rsp + 0x38]
call fcn.14000494c
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140001230
add rsp, 0x1068
ret

Function at 0x140001c1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c66
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c68
xor al, al
add rsp, 0x28
ret
Function at 0x1400059d8
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 0x140005a47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005a47
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005a47
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005a47
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005a47
cmp dword [rcx + 0x84], 0xe
jbe 0x140005a47
cmp dword [rcx + 0xf8], 0
je 0x140005a47
mov ecx, ebx
call fcn.140005af8
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.1400058d4
nop
cmp dword [rbp + 0x20], 0
je 0x140005a95
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005aa0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400059d8

Function at 0x140005bdc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400059d8
Function at 0x140008d10
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140008d26
mov al, 1
jmp 0x140008d86
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140008d37
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140008d84
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000b588
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140008d84
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140008d84
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140008d84
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140008d86
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000aa68
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 0x14000aa98
xor eax, eax
jmp 0x14000ab5b
mov rbp, rbx
cmp word [rax], si
je 0x14000aabd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000aaa4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000aaa0
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.14000a988
movsxd r14, eax
test eax, eax
jne 0x14000aafb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000aa91
mov rcx, r14
call fcn.14000bb44
mov rdi, rax
test rax, rax
jne 0x14000ab14
xor ecx, ecx
call fcn.14000669c
jmp 0x14000aaf0
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.14000a988
test eax, eax
jne 0x14000ab45
mov rcx, rdi
call fcn.14000669c
jmp 0x14000ab4f
xor ecx, ecx
call fcn.14000669c
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 0x14000e294
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, [0x14001e730]
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 0x14000e2eb
cmp word [rdx], r13w
jne 0x14000e2eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000e2f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000e415
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000e436
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000e329
mov rdx, r9
mov word [rbx], cx
jmp 0x14000e350
cmp r9, r8
jae 0x14000e360
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 0x14000e30a
jmp 0x14000e415
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 0x14000e40a
cmp dword [rsp + 0x80], esi
je 0x14000e40a
lea r8, [0x14001e730]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000e3e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000e3b2
mov word [rbx], r13w
jmp 0x14000e412
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 0x14000e3bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000e412
cmp word [rsp + 0x70], r13w
jne 0x14000e3ef
cmp rbx, r14
je 0x14000e3ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14000dfcc
cmp word [rsp + 0x70], r13w
je 0x14000e415
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, [0x14001e730]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000e40f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000e415
Function at 0x14000fae0
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.140009a58
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000fb6a
cmp byte [rbp - 0x21], r15b
je 0x14000fb65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000fba0
call fcn.14000c354
test eax, eax
jne 0x14000fb8c
cmp byte [rbp - 0x21], r15b
je 0x14000fb84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000fba0
cmp byte [rbp - 0x21], r15b
je 0x14000fb9d
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.140009038
test eax, eax
jne 0x14000fc40
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009a58
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000fbdf
cmp byte [rbp - 0x21], r15b
je 0x14000fc14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000fc14
call fcn.14000c354
test eax, eax
jne 0x14000fc00
cmp byte [rbp - 0x21], r15b
je 0x14000fbf9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000fc14
cmp byte [rbp - 0x21], r15b
je 0x14000fc11
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.140009038
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000fc40
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000fc43
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000fc51
mov rcx, rdi
call fcn.14000669c
cmp byte [rbp + 0x3f], r15b
je 0x14000fc60
mov rcx, qword [rbp + 0x27]
call fcn.14000669c
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