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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140096e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402171f4]
mov rbx, rcx
test esi, esi
jle 0x140096f90
mov rax, qword [0x1402171f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140096eab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140096f35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140096e90
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140096fb2
mov rax, qword [0x1402171f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402171f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140096f97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140096f2e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140096f40
add dword [0x1402171f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402171f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x140096f2e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140096eb8
mov rax, qword [0x1402171f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140097540
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140217260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140217240]
test rbx, rbx
je 0x14009759c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140097593
test eax, eax
jne 0x140097593
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140097578
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400977b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400977c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400977d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400977e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009782d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140097824
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009782f
add rax, 0x28
cmp rax, r9
jne 0x140097810
xor eax, eax
ret

Function at 0x140097830
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400978c0
mov rdx, qword [0x140209190]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400978ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400978ae
cmp word [rax + 0x18], 0x20b
jne 0x1400978ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400978c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140097899
add rbx, 0x28
cmp rbx, rdi
je 0x1400978c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140097890
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400978d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140209190]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400978f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400978f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400978f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009794d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140097944
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400978f0
add rax, 0x28
cmp rax, r9
jne 0x140097930
xor eax, eax
ret

Function at 0x140097950
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140209190]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009796f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140097978
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009796f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140097990
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140209190]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400979b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400979b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400979b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140097a00
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400979f7
test rcx, rcx
je 0x1400979b0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400979e8
xor eax, eax
ret

Function at 0x140097a10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140209190]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140097a2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140097a38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140097a50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140209190]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140097a70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140097a78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140097a70
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140097a70
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140097ac4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140097ad0
add rdx, 0x28
cmp rdx, r9
jne 0x140097ab0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140097ae0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140209190]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140097b02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140097b10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140097b02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140097b02
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140097b02
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140097b65
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140097b78
add rdx, 0x28
cmp r10, rdx
jne 0x140097b50
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140097b87
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140097b97
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140097b6e
test ecx, ecx
jg 0x140097b80
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140005480
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400052ac
Function at 0x1400018c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r14, rdx
mov rbp, rcx
mov edx, 1
mov ecx, 0x100000
call fcn.14000a854
mov rdi, rax
test rax, rax
je 0x140001953
xor r9d, r9d
mov r8d, 0x100000
mov rdx, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140001953
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001953
mov eax, ebx
mov rdx, rbp
imul rcx, rax, 0x128
movzx eax, word [rcx + rdi + 0x2e]
add rax, 0x30
lea rsi, [rcx + rdi]
add rcx, rax
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14000197d
inc ebx
cmp ebx, dword [rdi]
jb 0x140001924
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140003eb0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140001953
lea rdx, str.FLTMGR.sys
mov rcx, rbp
call fcn.140019f40
test eax, eax
jne 0x140001a15
mov eax, dword [0x140023e38]
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [str.C:windows_system32drivers_]
mov dword [rsp + 0x38], eax
mov rdx, rbp
movzx eax, byte [0x140023e3c]
movaps xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [0x140023e30]
movsd qword [rsp + 0x30], xmm0
xorps xmm0, xmm0
mov byte [rsp + 0x3c], al
xor eax, eax
movups xmmword [rsp + 0x3d], xmm0
mov dword [rsp + 0x7d], eax
movups xmmword [rsp + 0x4d], xmm0
mov word [rsp + 0x81], ax
movups xmmword [rsp + 0x5d], xmm0
mov byte [rsp + 0x83], al
movups xmmword [rsp + 0x6d], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x140001a1e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140001953
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rbx, rdi
add rax, rbx
jmp 0x140001955
Function at 0x1400032c0
Capabilities:
Enumerate process modules
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1170
call fcn.140019bf0
sub rsp, rax
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x1160], rax
mov r12, rcx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x50]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x1400034df
mov r13d, dword [rsp + 0x20]
xor r15d, r15d
shr r13d, 2
test r13d, r13d
je 0x1400034df
nop dword [rax]
lea rbp, [rsp + 0x50]
mov r8d, dword [rbp + r15*4]
lea rbp, [rbp + r15*4]
test r8d, r8d
je 0x1400034d3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1400034d3
movzx ecx, word [0x140024080]
xor edx, edx
movsd xmm0, qword [str._unknown_]
mov r8d, 0xfa
mov word [rsp + 0x1058], cx
lea rcx, [rsp + 0x105a]
movsd qword [rsp + 0x1050], xmm0
call fcn.140005290
lea r9, [rsp + 0x24]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1400033cc
mov rdx, qword [rsp + 0x28]
lea r8, [rsp + 0x1050]
mov r9d, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
lea rcx, [rsp + 0x1050]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400033e0
cmp qword [r12 + 0x18], 0x10
mov rcx, r12
mov r8, qword [r12 + 0x10]
jb 0x1400033fd
mov rcx, qword [r12]
cmp r8, rax
jne 0x1400034ca
lea rdx, [rsp + 0x1050]
call fcn.140019ca0
test eax, eax
jne 0x1400034ca
mov ebp, dword [rbp]
lea ecx, [rax + 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000351b
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140003512
cmp dword [rsp + 0x3c], ebp
jne 0x140003499
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140003499
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi - 1]
cmp eax, 0xfffffffd
ja 0x140003512
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140003454
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x1050]
lea rcx, str.Skipping_Suspended_Process:__s_r_n
call fcn.140001010
jmp 0x1400034d3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r15d
cmp r15d, r13d
jb 0x140003330
xor eax, eax
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.140003eb0
lea r11, [rsp + 0x1170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
jmp 0x1400034e1
Function at 0x14000495c
Capabilities:
Parse pe header

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

Function at 0x14000a848
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 0x14000a6a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a6a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a6a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a6a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a6a7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a6a7
cmp dword [rcx + 0xf8], 0
je 0x14000a6a7
mov ecx, ebx
call fcn.14000a764
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.14000a534
nop
cmp dword [rbp + 0x20], 0
je 0x14000a6f5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a700
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000a638
Function at 0x140011924
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 0x140011954
xor eax, eax
jmp 0x140011a17
mov rbp, rbx
cmp word [rax], si
je 0x140011979
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140011960
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001195c
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.14000feec
movsxd r14, eax
test eax, eax
jne 0x1400119b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001194d
mov rcx, r14
call fcn.14000d9cc
mov rdi, rax
test rax, rax
jne 0x1400119d0
xor ecx, ecx
call fcn.14000c598
jmp 0x1400119ac
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.14000feec
test eax, eax
jne 0x140011a01
mov rcx, rdi
call fcn.14000c598
jmp 0x140011a0b
xor ecx, ecx
call fcn.14000c598
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 0x140017934
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.140008020
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400179be
cmp byte [rbp - 0x21], r15b
je 0x1400179b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400179f4
call fcn.14000c7ec
test eax, eax
jne 0x1400179e0
cmp byte [rbp - 0x21], r15b
je 0x1400179d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400179f4
cmp byte [rbp - 0x21], r15b
je 0x1400179f1
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.14000fc80
test eax, eax
jne 0x140017a94
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140008020
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017a33
cmp byte [rbp - 0x21], r15b
je 0x140017a68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140017a68
call fcn.14000c7ec
test eax, eax
jne 0x140017a54
cmp byte [rbp - 0x21], r15b
je 0x140017a4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140017a68
cmp byte [rbp - 0x21], r15b
je 0x140017a65
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.14000fc80
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017a94
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140017a97
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017aa5
mov rcx, rdi
call fcn.14000c598
cmp byte [rbp + 0x3f], r15b
je 0x140017ab4
mov rcx, qword [rbp + 0x27]
call fcn.14000c598
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 0x140019ab0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019ad8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140019ad8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000406c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400e8708]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [r8], 0
mov r14, r8
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140002400
lea r8, [0x1400b59f0]
lea rcx, [rsp + 0x30]
call fcn.140002488
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14000410e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x1400041df
mov edx, 0xc0
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400b593c]
call fcn.140003ba8
mov esi, eax
jmp 0x1400041e1
and dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140003f18
mov esi, eax
test eax, eax
jns 0x14000414b
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400b593c]
mov r9d, eax
mov edx, 0xc6
call fcn.140003b74
jmp 0x1400041e1
lea r8, [0x1400b59f8]
lea rcx, [rsp + 0x30]
call fcn.140002488
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14000417d
mov edx, 0xcc
jmp 0x1400040f4
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140003f18
mov esi, eax
test eax, eax
jns 0x1400041ba
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400b593c]
mov r9d, eax
mov edx, 0xce
call fcn.140003b74
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140004235
jmp 0x1400041e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000424e
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
xor esi, esi
test rdi, rdi
je 0x1400041f3
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000421c
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400a0800
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140003bc8
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140003bc8
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140003bc8
int3