joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c703
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140045290
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xba
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4a8]
mov rax, qword [0x140062010]
xor rax, rbp
mov qword [rbp + 0x458], rax
lea rcx, [0x14006b11f]
call fcn.14001ce56
mov dword [rbp + 4], 0
mov dword [rbp + 0x30], 0x238
lea rax, [rbp + 0x424]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x448]
lea rcx, [rbp + 0x424]
call fcn.140042220
mov rcx, rax
call fcn.14001c974
xor edx, edx
mov ecx, eax
call fcn.14001c71c
mov qword [rbp + 0x288], rax
cmp qword [rbp + 0x288], 0xffffffffffffffff
jne 0x140045333
xor eax, eax
jmp 0x140045389
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x288]
call fcn.14001c901
test eax, eax
je 0x140045379
mov rdx, qword [rbp + 0x480]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140045365
mov dword [rbp + 4], 1
jmp 0x140045379
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x288]
call fcn.14001cc62
test eax, eax
jne 0x140045347
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140059fe0]
call fcn.14001cbf4
mov rax, rdi
mov rcx, qword [rbp + 0x458]
xor rcx, rbp
call fcn.14001c744
lea rsp, [rbp + 0x468]
pop rdi
pop rbp
ret

Function at 0x14001c82a
Capabilities:
Terminate process

Disassembly:
jmp 0x14004f000
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001ca0a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140051a00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140051a20
xor al, al
jmp 0x140051aa1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140051a33
xor al, al
jmp 0x140051aa1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140051a5d
xor al, al
jmp 0x140051aa1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140051a71
xor al, al
jmp 0x140051aa1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140051a83
xor al, al
jmp 0x140051aa1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140051a9f
xor al, al
jmp 0x140051aa1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001cb31
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14004c5b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xd2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x508]
mov rax, qword [0x140062010]
xor rax, rbp
mov qword [rbp + 0x4b8], rax
lea rcx, [0x14006b11f]
call fcn.14001ce56
mov dword [rbp + 0x10], 0x238
lea rax, [rbp + 0x14]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rax, [rbp + 0x404]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x428]
lea rcx, [rbp + 0x404]
call fcn.1400425d0
mov rcx, rax
call fcn.14001ca46
xor edx, edx
mov ecx, eax
call fcn.14001c71c
mov qword [rbp + 0x268], rax
cmp qword [rbp + 0x268], 0xffffffffffffffff
jne 0x14004c68b
lea rax, [rbp + 0x444]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x468]
lea rcx, [rbp + 0x444]
call fcn.140043060
mov rcx, rax
call fcn.14001c082
jmp 0x14004c713
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.14001c901
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.14001cc62
test eax, eax
je 0x14004c6d8
mov rdx, qword [rbp + 0x4e0]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14004c6d6
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
jmp 0x14004c713
jmp 0x14004c69b
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 0x484]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x4a8]
lea rcx, [rbp + 0x484]
call fcn.140043650
mov rcx, rax
call fcn.14001c082
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140059d20]
call fcn.14001cbf4
mov rax, rdi
mov rcx, qword [rbp + 0x4b8]
xor rcx, rbp
call fcn.14001c744
lea rsp, [rbp + 0x4c8]
pop rdi
pop rbp
ret

Function at 0x14001cb63
Capabilities:
Enumerate gui resources

Disassembly:
jmp 0x140044fe0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
mov rax, qword [0x140062010]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x14006b11f]
call fcn.14001ce56
mov dword [rbp + 4], 0
lea rdx, [rbp + 4]
lea rcx, [0x14001c492]
call qword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [rbp + 0x100]
cmp dword [rbp + 4], eax
jle 0x140045056
mov dword [rbp + 0xd4], 1
jmp 0x140045060
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005a320]
call fcn.14001cbf4
mov eax, edi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.14001c744
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14001cb90
Capabilities:
Set registry value

Disassembly:
jmp 0x1400450d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x140062010]
xor rax, rbp
mov qword [rbp + 0x1d0], rax
lea rcx, [0x14006b11f]
call fcn.14001ce56
lea rax, [rbp + 0xe4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0xe4]
call fcn.1400426a0
mov rcx, rax
call fcn.14001c43d
mov qword [rsp + 0x40], 0
lea rcx, [rbp + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140045207
lea rax, [rbp + 0x184]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x200]
call fcn.14001c6a9
inc rax
mov qword [rbp + 0x1c8], rax
lea rdx, [rbp + 0x1a8]
lea rcx, [rbp + 0x184]
call fcn.140043130
mov rcx, rax
call fcn.14001c465
mov rcx, qword [rbp + 0x1c8]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x200]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x50]
lea rdx, [0x140059c20]
call fcn.14001cbf4
mov rcx, qword [rbp + 0x1d0]
xor rcx, rbp
call fcn.14001c744
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret
Function at 0x2fc4c5050
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c6110
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5a52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c5aea
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c5ace
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5ac2
cmp qword [rbp - 0x10], 0
je 0x2fc4c5ac2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5a88
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c5aeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5bf0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5c18
mov eax, 0
jmp 0x2fc4c5c66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5c41
mov eax, 0
jmp 0x2fc4c5c66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5c61
mov eax, 0
jmp 0x2fc4c5c66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5c6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c5cea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5ce1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c5ce1
mov rax, qword [rbp - 8]
jmp 0x2fc4c5cff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5cb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002c50
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002c82
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002c82
nop word cs:[rax + rax]
jmp 0x180002c80
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002d58
mov rsi, r10
test r8b, r8b
je 0x180002d70
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002cf0
test r9b, r9b
je 0x180002d80
sub rsi, rcx
je 0x180002d54
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002d50
test ebp, ebp
jne 0x180002d50
add rbx, 1
cmp rsi, rbx
jne 0x180002d10
jmp 0x180002d54
test ebp, ebp
jne 0x180002cdc
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002d70
jmp 0x180002d80
Function at 0x1400075c0
Capabilities:
Check for debugger via api
Check for peb ntglobalflag flag

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1400076d9
xor ebx, ebx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x140007600
cmp dword [rsp + 0x48], ebx
jne 0x1400076bf
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r8, [rsp + 0x48]
mov edx, 0x1e
call qword [0x14006cfd0]
test eax, eax
jne 0x140007638
cmp qword [rsp + 0x48], rbx
jne 0x1400076cc
call fcn.140007720
test al, al
jne 0x1400076d9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0xd8]
cmp dword [rdx + rax + 0xc], ebx
jne 0x1400076d9
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x30]
call fcn.1400074e0
test eax, eax
mov edx, 0x70
mov ebx, 0x14
cmovne ebx, edx
call fcn.1400074e0
test eax, eax
mov ecx, 0x18
mov edx, 0x74
cmovne ecx, edx
test dword [rbx + rdi], 0xfffffffd
jne 0x1400076d9
cmp dword [rcx + rdi], 0
jne 0x1400076d9
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
jne 0x1400076d9
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.1400076f0
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.1400076f0
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.1400076f0
int3
Function at 0x140007720
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x140069480]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x58], rsi
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r14d, ebx
mov qword [rsp + 0x48], rbx
xor r15b, r15b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd r8, dword [rax + 0x3c]
add r8, rax
movzx eax, word [r8 + 0x14]
lea r9, [r8 + 0x18]
add r9, rax
mov edx, ebx
mov dword [rsp + 0x40], ebx
lea r10, [0x14004c2cc]
movzx eax, word [r8 + 6]
cmp edx, eax
jge 0x1400077ce
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rdi, [r9 + rcx*8]
mov rax, rbx
nop dword [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r10 + rax - 1]
jne 0x1400077c6
cmp rax, 7
jne 0x1400077b0
jmp 0x1400077d1
inc edx
mov dword [rsp + 0x40], edx
jmp 0x140007794
mov rdi, rbx
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000789b
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r12d, 1
mov r8d, r12d
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x14000789b
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000789b
mov ecx, dword [rdi + 0x10]
add ecx, dword [rdi + 0x14]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000789b
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0xd8]
sub edx, dword [rdi + 0xc]
add edx, dword [rdi + 0x14]
movzx r15d, r15b
cmp dword [rdx + rax + 0xc], 0
cmovne r15d, r12d
test r14, r14
je 0x1400078a9
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test rbx, rbx
je 0x1400078b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xffffffffffffffff
je 0x1400078c6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r15b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14002aaa0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140026500
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14002ae00
sub rsp, rax
mov rax, qword [0x140069480]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x1400265c2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140039cec
cmp rax, 1
jne 0x14002661e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002659f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140026593
cmp rcx, 1
jb 0x14002661e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140026560
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400265f3
lea rcx, [rsp + 0x80]
call fcn.14003c918
jmp 0x1400265f5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002aaa0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140039a98
int3
Function at 0x14002a5c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140069480]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14002a671
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140039cec
cmp rax, 1
jne 0x14002a6a7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14002a64d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14002a640
cmp rcx, 1
jb 0x14002a6a7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14002a610
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002aaa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140039a98
int3

Function at 0x14002a920
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140069480]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14002a9cf
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140039cec
cmp rax, 1
jne 0x14002aa05
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002a9ac
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14002a9a0
cmp rcx, 1
jb 0x14002aa05
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14002a970
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002aaa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140039a98
int3

Function at 0x14002b564
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002b5ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002b5ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002b5ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b5ae
cmp dword [rcx + 0x84], 0xe
jbe 0x14002b5ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002b5b0
xor al, al
add rsp, 0x28
ret
Function at 0x140031240
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 0x1400312af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400312af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400312af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400312af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400312af
cmp dword [rcx + 0x84], 0xe
jbe 0x1400312af
cmp dword [rcx + 0xf8], 0
je 0x1400312af
mov ecx, ebx
call fcn.140031360
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.14003113c
nop
cmp dword [rbp + 0x20], 0
je 0x1400312fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031308
int3
xor r8d, r8d
xor edx, edx
jmp 0x140031240

Function at 0x140031444
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 0x1400312af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400312af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400312af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400312af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400312af
cmp dword [rcx + 0x84], 0xe
jbe 0x1400312af
cmp dword [rcx + 0xf8], 0
je 0x1400312af
mov ecx, ebx
call fcn.140031360
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.14003113c
nop
cmp dword [rbp + 0x20], 0
je 0x1400312fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031308
int3
xor r8d, r8d
xor edx, edx
jmp 0x140031240
Function at 0x140041870
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 0x1400418f7
mov rsi, rbx
cmp word [rax], bp
je 0x1400418b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400418a0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004189c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003da9c
mov rdi, rax
test rax, rax
je 0x1400418e4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140047bf0
mov rbp, rdi
xor ecx, ecx
call fcn.14003ce68
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