joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019d80
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140015bc0
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x140019dd6
lea rcx, [rbp - 0x50]
call fcn.140013cb0
mov qword [rsi], rdi
jmp 0x140019fd9
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x408], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140019e60
jmp 0x140019e4f
jae 0x140019f23
cmp r8, 0x201
jae 0x140019e60
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140019eb8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140019e8f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.14002ee00
mov rdi, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x418], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140019ee4
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140019f63
mov r8d, r14d
cmp r15, r8
jne 0x140019e40
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001a00f
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140019e4f
jmp 0x140019e60
cmp rsi, r8
jb 0x14001a029
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140017b10
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rbx, 0x8000000000000000
jmp 0x140019f89
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rbx, 0x8000000000000000
mov qword [rbp + 0x3d0], rbx
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140019fa6
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.1400050b0
cmp qword [rbp + 0x3d0], rbx
jne 0x140019fee
mov qword [rsi], rbx
lea rcx, [rbp + 0x3d8]
call fcn.140013cb0
cmp qword [rbp + 0x408], 0
je 0x140019fd9
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.1400050b0
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140019fc8
jmp 0x140019fd9
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14002e1b0
jmp 0x14001a03e
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002e130
ud2
Function at 0x140025520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140015bc0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
movabs rbx, 0x8000000000000000
cmp rcx, rbx
jne 0x14002555d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x14002558a
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.140025450
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x1400255a3
lea rcx, [rsp + 0x30]
call fcn.140013cb0
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400255c8
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x140025597
mov qword [rsi], rbx
test r14, r14
je 0x140025597
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400050b0
Function at 0x140028280
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400282bf
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14001aa40]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14002dff0
ud2

Function at 0x14002db10
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18003966e
mov r9, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1800319f0]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x38
ret

Function at 0x18003e44c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18003e44c
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 0x18003e4bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003e4bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003e4bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003e4bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003e4bb
cmp dword [rcx + 0x84], 0xe
jbe 0x18003e4bb
cmp dword [rcx + 0xf8], 0
je 0x18003e4bb
mov ecx, ebx
call fcn.18003e3b8
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.18003e5f0
nop
cmp dword [rbp + 0x20], 0
jne 0x18003e51c
call fcn.180045674
cmp eax, 1
jne 0x18003e50c
xor dl, dl
jmp 0x18003e516
call fcn.180045640
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18003e527
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18003e41c
int3

Function at 0x180041770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180041798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180041798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800467f8
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 0x180046828
xor eax, eax
jmp 0x1800468eb
mov rbp, rbx
cmp word [rax], si
je 0x18004684d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180046834
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180046830
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.180046718
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18004688e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180046821
call fcn.180047800
mov rdi, rax
test rax, rax
jne 0x1800468a4
xor ecx, ecx
call fcn.180044cf0
jmp 0x180046883
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.180046718
test eax, eax
jne 0x1800468d5
mov rcx, rdi
call fcn.180044cf0
jmp 0x1800468df
xor ecx, ecx
call fcn.180044cf0
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 0x140001080
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov ecx, 2
lea rbx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rax
call fcn.140002290
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140002240
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._nDisplay_directory_information_from_TIFF_files_n_n
call fcn.140002010
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140007110]
lea rdx, str.usage:__s___h____o_offset____m_maxitems__file.tif_..._n
mov rcx, rax
call fcn.140002010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001d50
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x13e8
call fcn.14000f0a0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1360], 0xfffffffffffffffe
mov esi, edx
mov rdi, rcx
mov ecx, 0x40
call fcn.14000eda4
movaps xmm0, xmmword [0x140039040]
movups xmmword [rbp + 0x1340], xmm0
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
movups xmmword [rax], xmm0
movups xmm0, xmmword [0x14004492e]
movups xmmword [rax + 0x2e], xmm0
movups xmm0, xmmword [0x140044920]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x140044910]
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x3e], 0
mov qword [rbp + 0x1330], rax
call fcn.14000f908
mov dword [rbp + 0x132c], 0xffffffff
mov dword [rbp - 0x54], eax
mov ecx, 3
nop word cs:[rax + rax]
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add rax, rcx
add rax, 0xfffffffffffffffe
mov dword [rbp + rcx*4 - 0x5c], eax
cmp rcx, 0x271
je 0x140001e2d
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
add eax, 0xffffffff
mov dword [rbp + rcx*4 - 0x58], eax
add rcx, 2
jmp 0x140001df0
mov dword [rbp - 0x58], 0x270
movabs rax, 0x3d00000000
mov qword [rbp + 0x1350], rax
mov qword [rdi], 0
movaps xmm0, xmmword [section..rdata]
movups xmmword [rdi + 0x10], xmm0
mov byte [rdi], 0
test esi, esi
jle 0x140001f54
mov qword [rbp + 0x1358], rdi
add esi, 0xffffffff
mov r9d, 0x3d
xor r8d, r8d
lea r14, [rbp + 0x1350]
lea r15, [rbp - 0x58]
lea rdi, [rbp + 0x1330]
nop word [rax + rax]
mov rcx, r14
mov rdx, r15
call fcn.140009c30
cmp qword [rbp + 0x1348], 0x10
mov rcx, rdi
jb 0x140001eaf
mov rcx, qword [rbp + 0x1330]
cdqe
movzx r9d, byte [rcx + rax]
mov rcx, qword [rbp + 0x1358]
mov rax, qword [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
cmp rax, rbx
jae 0x140001ef0
lea rdx, [rax + 1]
mov qword [rcx + 0x10], rdx
mov rdx, rcx
cmp rbx, 0x10
jb 0x140001ede
mov rdx, qword [rcx]
mov byte [rdx + rax], r9b
mov byte [rdx + rax + 1], 0
jmp 0x140001efa
mov edx, 1
call fcn.140009ac0
sub esi, 1
jb 0x140001f0f
mov r8d, dword [rbp + 0x1350]
mov r9d, dword [rbp + 0x1354]
jmp 0x140001e90
mov rax, qword [rbp + 0x1348]
cmp rax, 0x10
mov rdi, qword [rbp + 0x1358]
jb 0x140001f65
mov rcx, qword [rbp + 0x1330]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140001f60
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140001f78
add rax, 0x28
mov rdx, rax
mov rcx, rbx
jmp 0x140001f60
mov edx, 0x40
mov rcx, qword [rbp + 0x1330]
call fcn.14000ede8
mov rax, rdi
add rsp, 0x13e8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call fcn.14001d528
int3
Function at 0x1400106a0
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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400106ce
xor eax, eax
jmp 0x1400107b4
cmp qword [rcx + 0x68], 0
je 0x1400106df
call fcn.14000fe04
jmp 0x1400107b4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400106f6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400106f8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001072a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140013c90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400107ae
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140010761
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001078a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001e788
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400107ae
cmp rsi, rbx
ja 0x140010768
test rsi, rsi
je 0x1400107ae
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001e788
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x1400118b8
Capabilities:
Parse pe header

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

Function at 0x14001a858
Capabilities:
Parse pe header

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

Function at 0x140022b40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140022b68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140022b68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002ddb4
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.14000f0a0
sub rsp, rax
mov rax, qword [0x14004e440]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002a470
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002de03
mov rax, rbp
jmp 0x14002df0b
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 + 0x509a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002dadc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x509a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002df07
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 0x14002df07
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002dadc
test rax, rax
js 0x14002df07
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002df07
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002def9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002def9
cmp byte [rcx], 0xd
jne 0x14002dedf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002deee
cmp byte [rcx + 1], 0xa
jne 0x14002deee
inc rcx
jmp 0x14002deee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4ef40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002dec1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002df0b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f100
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 0x14002e294
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 0x14002e2c4
xor eax, eax
jmp 0x14002e387
mov rbp, rbx
cmp word [rax], si
je 0x14002e2e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002e2d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002e2cc
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.1400260a4
movsxd r14, eax
test eax, eax
jne 0x14002e327
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002e2bd
mov rcx, r14
call fcn.140025fe8
mov rdi, rax
test rax, rax
jne 0x14002e340
xor ecx, ecx
call fcn.140025fac
jmp 0x14002e31c
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.1400260a4
test eax, eax
jne 0x14002e371
mov rcx, rdi
call fcn.140025fac
jmp 0x14002e37b
xor ecx, ecx
call fcn.140025fac
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 0x14002fb80
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 0x14002fbb2
call fcn.14001cca4
mov dword [rax], 0x16
call fcn.14001d508
jmp 0x14002fcd1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002fcd1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002fcd1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002fbe1
lock or dword [rcx + 0x14], 0x10
jmp 0x14002fcd1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002fbf5
call fcn.1400321e0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002a470
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002ff50
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002fcbf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002fc8a
mov rcx, rsi
call fcn.14002a470
cmp eax, edi
je 0x14002fc75
mov rcx, rsi
call fcn.14002a470
cmp eax, 0xfffffffe
je 0x14002fc75
mov rcx, rsi
call fcn.14002a470
movsxd rbx, eax
lea r14, [0x1400509a0]
mov rcx, rsi
sar rbx, 6
call fcn.14002a470
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002fc7c
lea rdx, [0x14004e9a0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002fc8a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002fcae
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002fcae
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002fcae
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 0x14002fcd4
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 0x14003078c
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, [0x1400509a0]
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 0x1400307ea
cmp word [rdx], r12w
jne 0x1400307ea
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400307f0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003094b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140030926
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140030829
mov rcx, r9
jmp 0x14003084c
cmp r9, rdx
jae 0x140030863
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 0x14003080d
jmp 0x14003094b
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 0x140030920
cmp dword [rsp + 0x80], edi
je 0x140030920
mov rdx, r14
lea r11, [0x1400509a0]
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 0x1400308f9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400308cc
mov word [rbx], r12w
jmp 0x140030947
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 0x1400308d5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140030947
cmp word [rsp + 0x70], r12w
jne 0x140030906
cmp rbx, rsi
je 0x1400308c6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002da38
cmp word [rsp + 0x70], r12w
je 0x14003094b
mov word [rbx], r13w
jmp 0x140030947
lea r11, [0x1400509a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140030943
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003094b
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