joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029fa4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001b058
xor ebx, ebx
mov rdi, rax
cmp qword [0x14004f680], rbx
jne 0x14002a0aa
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14002a17f
lea rdx, [0x14003a1f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a17f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14004f680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140038d78]
mov rcx, rsi
mov qword [0x14004f688], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14004f690], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14004f6a0], rax
test rax, rax
je 0x14002a0a1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14004f698], rax
jmp 0x14002a0b1
mov rax, qword [0x14004f698]
jmp 0x14002a0b8
mov rax, qword [0x14004f698]
mov r11, qword [0x14004f6a0]
cmp rax, rdi
je 0x14002a120
cmp r11, rdi
je 0x14002a120
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14004f6a0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002a120
test rax, rax
je 0x14002a120
call rsi
test rax, rax
je 0x14002a11a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002a11a
test byte [rsp + 0x38], 1
jne 0x14002a120
bts ebp, 0x15
jmp 0x14002a15e
mov rcx, qword [0x14004f688]
cmp rcx, rdi
je 0x14002a15e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a15e
call rax
mov rbx, rax
test rax, rax
je 0x14002a15e
mov rcx, qword [0x14004f690]
cmp rcx, rdi
je 0x14002a15e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a15e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004f680]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002a17f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002a181
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140029a0c
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.14001d0d4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d0d4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b5c
cmp rax, 0xffffffffffffffff
je 0x140029b5c
xor edi, edi
test rbp, rbp
jle 0x140029b07
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fa00
mov rbx, rax
test rax, rax
jne 0x140029a94
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029afd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aa08
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.14001ddb0
cmp eax, 0xffffffff
je 0x140029add
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029aa4
mov edx, r15d
mov ecx, r14d
call fcn.14001aa08
jmp 0x140029afd
cmp byte [rsi + 0x38], dil
je 0x140029af4
cmp dword [rsi + 0x34], 5
jne 0x140029af4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029afd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b79c
jmp 0x140029b70
jns 0x140029b70
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d0d4
cmp rax, 0xffffffffffffffff
jne 0x140029b28
cmp byte [rsi + 0x30], dil
je 0x140029b70
mov edi, dword [rsi + 0x2c]
jmp 0x140029b70
mov ecx, r14d
call fcn.140018ec4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b70
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 0x140029b70
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b69
mov eax, dword [rsi + 0x2c]
jmp 0x140029b6e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d0d4
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 0x14002ac60
Capabilities:
Parse pe header

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

Function at 0x140033220
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
xor esp, dword [rax - 0x63cc77cd]
xor eax, dword [rdx - 0x7acc5ecd]
xor ebp, dword [rbx + rsi + 0x338a3397]
mov byte [rbx], dh
cmpsb byte [rsi], byte [rdi]
xor edi, dword [rbx + rsi - 0x60]
xor ebp, dword [rbx - 0x73cc60cd]
xor ecx, dword [rbx - 0x60cc7ecd]
xor eax, dword [rbp + 0x68338a33]
xor esp, dword [rax + 0x66339533]
xor edi, dword [rbp + 0x33]
popfq
xor ecx, dword [rbp + 0x64338a33]
xor ebx, dword [rdi - 0x5ecc6acd]
xor eax, dword [rbx + rsi + 0x3382339c]
pushfq
xor edi, dword [rbp + 0x33]
invalid
Function at 0x180009630
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180009652
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1800096cc
mov rdi, r14
mov rcx, rbx
call fcn.18000c250
test rax, rax
jle 0x1800096a4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180064340
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800096bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800096c4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180009666
sub r14, rdi
jmp 0x1800097af
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800096e3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800096e5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180009717
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180064340
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800097ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180009752
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000978d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180046d3c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800097ac
cmp rbp, rax
ja 0x180009760
test rbp, rbp
je 0x1800097ac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180046d3c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1800107d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800109f0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800108d7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180010834
mov rax, qword [0x18009d008]
cmp qword [rsp + 0x20], rax
ja 0x180010834
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800107f6
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800649e0
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180010863
jmp 0x1800108d7
cmp dword [rsp + 0x50], 0x10000
jne 0x1800108ba
cmp qword [rsp + 0x48], 0x10000
jb 0x1800108ba
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800108a8
mov rax, qword [rsp + 0x28]
jmp 0x1800108d9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800108d2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800109f0
mov qword [rsp + 0x20], rax
jmp 0x1800107f6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800108e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180010a30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800109e3
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18001093b
mov rax, qword [0x18009d008]
cmp qword [rsp + 0x20], rax
ja 0x18001093b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800108fd
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800649e0
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18001096a
jmp 0x1800109e3
cmp dword [rsp + 0x50], 0x10000
jne 0x1800109c1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800109c1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800109af
mov rax, qword [rsp + 0x28]
jmp 0x1800109e5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800109de
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180010a30
mov qword [rsp + 0x20], rax
jmp 0x1800108fd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180010a80
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180011010
mov qword [rsp + 0x28], 0
cmp qword [0x18009efd8], 0
jne 0x180010ac8
cmp qword [0x18009efd0], 0
je 0x180010ac8
mov rax, qword [0x18009efd0]
mov qword [0x18009efd8], rax
cmp qword [0x18009efd8], 0
je 0x180010b6e
mov rax, qword [0x18009efd8]
cmp qword [rax + 0x10], 0
je 0x180010b6e
mov rax, qword [0x18009efd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180010b6e
mov rax, qword [0x18009efd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180010b6e
mov rax, qword [0x18009efd8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180010b34
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180010b3b
xor eax, eax
jmp 0x180010ce9
mov rax, qword [0x18009efd8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.1800649e0
mov rax, qword [rsp + 0x28]
jmp 0x180010ce9
mov rax, qword [0x18009efd0]
mov qword [0x18009efd8], rax
jmp 0x180010b90
mov rax, qword [0x18009efd8]
mov rax, qword [rax + 8]
mov qword [0x18009efd8], rax
cmp qword [0x18009efd8], 0
je 0x180010bdd
cmp qword [0x18009efd8], 0
je 0x180010bdb
mov rax, qword [0x18009efd8]
cmp qword [rax + 0x10], 0
je 0x180010bdb
mov rax, qword [0x18009efd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180010bdb
mov rax, qword [0x18009efd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180010bdb
jmp 0x180010b0c
jmp 0x180010b7e
mov rcx, qword [rsp + 0x60]
call fcn.180012c40
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180010cf0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180010ce7
mov rax, qword [rsp + 0x48]
mov qword [0x18009efd8], rax
mov rax, qword [0x18009efd8]
mov dword [rax], 0x52727464
mov rax, qword [0x18009efd8]
mov qword [rax + 0x10], 0
mov rax, qword [0x18009efd8]
mov rcx, qword [0x18009efd0]
mov qword [rax + 8], rcx
mov rax, qword [0x18009efd8]
mov qword [0x18009efd0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18009efd8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180010c98
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180010cd2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180010c8e
mov rax, qword [0x18009efd8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180010b0c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18002fc7c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18001c7e6
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18001c7c9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18001c7b4

Function at 0x180044948
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 0x1800447fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800447fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800447fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800447fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800447fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800447fb
cmp dword [rcx + 0xf8], 0
je 0x1800447fb
mov ecx, ebx
call fcn.1800448ac
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.180044688
nop
cmp dword [rbp + 0x20], 0
je 0x180044849
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180044854
int3
xor r8d, r8d
xor edx, edx
jmp 0x18004478c

Function at 0x180055bec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180055c02
mov al, 1
jmp 0x180055c62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180055c13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180055c60
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800602f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180055c60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180055c60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180055c60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180055c62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180057b58
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.18003ab40
sub rsp, rax
mov rax, qword [0x18009d0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180051234
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180057ba7
mov rax, rbp
jmp 0x180057caf
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa0440]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180058aa4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa0440]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180057cab
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 0x180057cab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180058aa4
test rax, rax
js 0x180057cab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180057cab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180057c9d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180057c9d
cmp byte [rcx], 0xd
jne 0x180057c83
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180057c92
cmp byte [rcx + 1], 0xa
jne 0x180057c92
inc rcx
jmp 0x180057c92
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9d4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180057c65
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180057caf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003a040
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 0x180057e44
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, [0x1800a0440]
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 0x180057e9b
cmp word [rdx], r13w
jne 0x180057e9b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180057ea0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180057fc5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180057fe6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180057ed9
mov rdx, r9
mov word [rbx], cx
jmp 0x180057f00
cmp r9, r8
jae 0x180057f10
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 0x180057eba
jmp 0x180057fc5
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 0x180057fba
cmp dword [rsp + 0x80], esi
je 0x180057fba
lea r8, [0x1800a0440]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180057f92
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180057f62
mov word [rbx], r13w
jmp 0x180057fc2
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 0x180057f6f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180057fc2
cmp word [rsp + 0x70], r13w
jne 0x180057f9f
cmp rbx, r14
je 0x180057f5c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180058aac
cmp word [rsp + 0x70], r13w
je 0x180057fc5
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, [0x1800a0440]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180057fbf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180057fc5
Function at 0x18005b554
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 0x18005b584
xor eax, eax
jmp 0x18005b647
mov rbp, rbx
cmp word [rax], si
je 0x18005b5a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005b590
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005b58c
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.18005952c
movsxd r14, eax
test eax, eax
jne 0x18005b5e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005b57d
mov rcx, r14
call fcn.18004fea0
mov rdi, rax
test rax, rax
jne 0x18005b600
xor ecx, ecx
call fcn.18004fe64
jmp 0x18005b5dc
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.18005952c
test eax, eax
jne 0x18005b631
mov rcx, rdi
call fcn.18004fe64
jmp 0x18005b63b
xor ecx, ecx
call fcn.18004fe64
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 0x18005b664
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 0x18005b6eb
mov rsi, rbx
cmp word [rax], bp
je 0x18005b6aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005b694
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005b690
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18004fea0
mov rdi, rax
test rax, rax
je 0x18005b6d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180064340
mov rbp, rdi
xor ecx, ecx
call fcn.18004fe64
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