joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b628
Capabilities:
Encode data using xor

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 r13
push r14
sub rsp, 0x30
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
xor ebx, ebx
mov r14, r9
mov r12d, r8d
mov r13d, edx
mov rsi, rcx
cmp edx, ebx
jne 0x14001b66e
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.14002c1a0
mov r9, r14
mov r8d, r12d
mov edx, r13d
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
call fcn.14001b190
cmp al, bl
jne 0x14001b729
cmp r12d, ebx
jne 0x14001b6ed
cmp qword [rsi + 0x38], rdi
je 0x14001b6c8
mov rcx, qword [rsi + 0x30]
call fcn.14002de0c
mov rcx, 0xffffffffffffffff
mov eax, 4
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.14002b924
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov r8, rbx
cmp rdi, rbx
jbe 0x14001b6ed
movzx edx, word [r8 + r14]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x30]
mov eax, dword [rax + rdx*4]
mov dword [rcx + r8*4], eax
add r8, 2
cmp r8, rdi
jb 0x14001b6d0
mov ecx, dword [rsi + 0x14]
mov rax, qword [rsi + 0x28]
imul ecx, r12d
add ecx, r13d
mov edx, dword [rax + rcx*4]
mov rax, qword [rsi + 8]
mov r8d, dword [rax + rdx*4]
cmp rdi, rbx
jbe 0x14001b729
mov rax, qword [rsi + 0x30]
mov ecx, dword [rax + rbx*4]
mov rax, qword [rsi]
add ecx, r8d
movzx ecx, word [rax + rcx*4]
xor word [rbx + rbp], cx
add rbx, 2
cmp rbx, rdi
jb 0x14001b70b
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x14001b984
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
mov eax, 0x1040
call fcn.1400394c0
sub rsp, rax
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1030], rax
xor r12d, r12d
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx], r12b
je 0x14001ba75
lea rdi, [rcx + 0x2022]
mov rcx, rdi
call fcn.140013174
mov rbp, rax
cmp rax, rdi
jbe 0x14001b9ff
mov rcx, rdi
mov word [rax - 2], r12w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [r12 + 0x5c]
mov word [rbp - 2], cx
cmp eax, 0xffffffff
je 0x14001b9ff
bt eax, 0xa
jae 0x14001b9ff
mov byte [rbx], r12b
lea rdx, str.System_Volume_Information_
mov rcx, rdi
call fcn.14002e2f8
cmp rax, r12
je 0x14001ba16
mov byte [rbx], r12b
cmp byte [rbx], r12b
je 0x14001ba75
mov rcx, qword [rsi + 0x5030]
cmp rcx, r12
je 0x14001ba42
mov r9b, 1
xor r8d, r8d
mov rdx, rdi
mov byte [rsp + 0x20], 1
call fcn.140006e88
cmp al, r12b
je 0x14001ba42
mov byte [rbx], r12b
cmp byte [rbx], r12b
je 0x14001ba75
lea rdx, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
call fcn.140013d48
lea rdx, [rsp + 0x30]
mov ecx, 0x54
call fcn.14000144c
lea rcx, [0x140050340]
call fcn.14000af98
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14001c254
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x50]
mov rax, r8
mov rcx, r9
cmp rax, rbx
mov r8, rbx
mov rdi, r9
cmovb r8, rax
add r8, r8
call fcn.14002c4a0
mov r8b, byte [rsp + 0x58]
lea rdx, [rbx + rbx]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14001c0fc

Function at 0x14001d8f4
Capabilities:
Hash data using sha1

Disassembly:
and dword [rcx + 0x18], 0
and dword [rcx + 0x14], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret

Function at 0x14001db8c
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x14001dedc
Capabilities:
Hash data using sha256

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
sub rsp, 0x140
mov rsi, qword [rcx + 0x20]
mov edi, dword [rcx + 0x20]
lea rbp, [rcx + 0x30]
shl rsi, 3
and edi, 0x3f
mov qword [rcx + 0x28], rbp
mov r12, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x30], 0x80
jmp 0x14001df2d
and edi, 0x3f
jne 0x14001df28
mov rcx, rbx
call fcn.14001dbcc
mov byte [rdi + rbx + 0x30], 0
inc edi
cmp edi, 0x38
jne 0x14001df1b
movsxd rax, edi
lea edx, [rdi - 0x30]
lea rcx, [rax + rbx + 0x30]
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14001df3f
mov rcx, rbx
call fcn.14001dbcc
xor r11d, r11d
xor r8d, r8d
mov eax, r11d
mov ecx, 3
inc r11d
and eax, 3
sub ecx, eax
mov rax, r8
inc r8
shr rax, 2
shl ecx, 3
mov edx, dword [rbx + rax*4]
shr edx, cl
mov byte [r12], dl
inc r12
cmp r11d, 0x20
jb 0x14001df63
and qword [rbx + 0x20], 0
lea rcx, [rsp + 0x20]
mov edx, 0x20
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
call fcn.14001c23c
lea rcx, [rsp + 0x40]
mov edx, 0x100
call fcn.14001c23c
mov edx, 0x40
mov rcx, rbp
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
jmp fcn.14001c23c

Function at 0x14001e92c
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001e992
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0x80000000
mov ecx, 0xd
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x48
ret
Function at 0x14001ef20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
cmp dword [rcx], esi
jbe 0x14001efcb
lea rdi, [rcx + 8]
lea rax, [rsp + 0x40]
lea r8, [0x14001eea0]
mov r9, rbx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x14001efa1
lea rdx, str.CreateThread_failed
lea rcx, [0x140050340]
call fcn.14000b174
lea rcx, [0x140050340]
call fcn.14000af98
lea edx, [rbp + 2]
lea rcx, [0x140050340]
call fcn.14000af18
mov qword [rdi], rbp
inc dword [rbx + 0x108]
mov edx, dword [0x14005961c]
test edx, edx
je 0x14001efbd
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc esi
add rdi, 8
cmp esi, dword [rbx]
jb 0x14001ef45
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14002dc4c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140032fa0
nop
cmp dword [0x140059928], 1
je 0x14002dbf8
mov dword [0x140059924], 1
mov byte [0x140059920], r12b
test ebx, ebx
jne 0x14002dbe4
mov rcx, qword [0x14005a9b8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002dbd1
mov rcx, qword [0x14005a9b0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14002db70
call fcn.14002ede8
cmp qword [rdi], rax
jne 0x14002db70
jmp 0x14002db56
cmp rdi, rsi
jb 0x14002dbd1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14002ede8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14005a9b8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14005a9b0]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002dbaf
cmp r13, rax
je 0x14002dbcf
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002db56
lea rdx, [0x14003b560]
lea rcx, [0x14003b548]
call fcn.14002d9a0
lea rdx, [0x14003b570]
lea rcx, [0x14003b568]
call fcn.14002d9a0
nop
test r12d, r12d
je 0x14002dc07
mov ecx, 8
call fcn.140032ea0
test r12d, r12d
jne 0x14002dc32
mov dword [0x140059928], 1
lea ecx, [r12 + 8]
call fcn.140032ea0
mov ecx, r15d
call fcn.14002d934
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002dac0

Function at 0x14002dc58
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002dac0
Function at 0x140030997
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140044948]
jne 0x14002c18a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002c186
repz ret
ror rcx, 0x10
jmp 0x1400308f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140059a10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140059b08]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140030975
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140059a10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140030997
mov rax, qword [rsp + 0x88]
mov qword [0x140059b08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140059aa8], rax
mov rax, qword [0x140059b08]
mov qword [0x140059980], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140059a90], rax
mov dword [0x140059970], 0xc0000409
mov dword [0x140059974], 1
mov rax, qword [0x140044948]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140044950]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140059a08], eax
mov ecx, 1
call fcn.140036668
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003d470]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140059a08], 0
jne 0x140030a1e
mov ecx, 1
call fcn.140036668
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140036c80
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.14002ede8
xor ebx, ebx
mov rdi, rax
cmp qword [0x14005a608], rbx
jne 0x140036d86
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140036e5b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140036e5b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14005a608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14005a610], 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 [0x14005a618], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14005a628], rax
test rax, rax
je 0x140036d7d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14005a620], rax
jmp 0x140036d8d
mov rax, qword [0x14005a620]
jmp 0x140036d94
mov rax, qword [0x14005a620]
mov r11, qword [0x14005a628]
cmp rax, rdi
je 0x140036dfc
cmp r11, rdi
je 0x140036dfc
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14005a628]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140036dfc
test rax, rax
je 0x140036dfc
call rsi
test rax, rax
je 0x140036df6
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 0x140036df6
test byte [rsp + 0x38], 1
jne 0x140036dfc
bts ebp, 0x15
jmp 0x140036e3a
mov rcx, qword [0x14005a610]
cmp rcx, rdi
je 0x140036e3a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140036e3a
call rax
mov rbx, rax
test rax, rax
je 0x140036e3a
mov rcx, qword [0x14005a618]
cmp rcx, rdi
je 0x140036e3a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140036e3a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14005a608]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140036e5b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140036e5d
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 0x140004180
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x1400041d8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x78
ret
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x48]
setl al
and al, 1
cmp al, 0
je 0x1400042e6
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x3c], ecx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rax]
add rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x3c]
lea r9, [rsp + 0x5c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x5c], 0
setbe al
and al, 1
cmp al, 0
jne 0x14000429c
cmp dword [rsp + 0x38], 0
jne 0x1400042d3
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x28]
mov eax, eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
mov eax, dword [rsp + 0x5c]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
jmp 0x140004218
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
Function at 0x140008720
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 0x14000878f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000878f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000878f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000878f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000878f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000878f
cmp dword [rcx + 0xf8], 0
je 0x14000878f
mov ecx, ebx
call fcn.140008840
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.14000861c
nop
cmp dword [rbp + 0x20], 0
je 0x1400087dd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400087e8
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140008720

Function at 0x140008924
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008720
Function at 0x14000ba18
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 0x14000ba48
xor eax, eax
jmp 0x14000bb0b
mov rbp, rbx
cmp word [rax], si
je 0x14000ba6d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ba54
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ba50
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.14000b938
movsxd r14, eax
test eax, eax
jne 0x14000baab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ba41
mov rcx, r14
call fcn.1400093e8
mov rdi, rax
test rax, rax
jne 0x14000bac4
xor ecx, ecx
call fcn.140006708
jmp 0x14000baa0
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.14000b938
test eax, eax
jne 0x14000baf5
mov rcx, rdi
call fcn.140006708
jmp 0x14000baff
xor ecx, ecx
call fcn.140006708
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 0x14000cfc0
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.1400075b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000d04a
cmp byte [rbp - 0x21], r15b
je 0x14000d045
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000d080
call fcn.1400096ec
test eax, eax
jne 0x14000d06c
cmp byte [rbp - 0x21], r15b
je 0x14000d064
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000d080
cmp byte [rbp - 0x21], r15b
je 0x14000d07d
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.14000743c
test eax, eax
jne 0x14000d120
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400075b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000d0bf
cmp byte [rbp - 0x21], r15b
je 0x14000d0f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000d0f4
call fcn.1400096ec
test eax, eax
jne 0x14000d0e0
cmp byte [rbp - 0x21], r15b
je 0x14000d0d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000d0f4
cmp byte [rbp - 0x21], r15b
je 0x14000d0f1
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.14000743c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000d120
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000d123
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000d131
mov rcx, rdi
call fcn.140006708
cmp byte [rbp + 0x3f], r15b
je 0x14000d140
mov rcx, qword [rbp + 0x27]
call fcn.140006708
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 0x14000f510
Capabilities:
Parse pe header

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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4161eb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430640
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x4160ae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4160c1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4160e5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4160f9
cmp rbx, 0x1000
jae 0x4160b8
nop
jmp 0x416169
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41610d
xor edx, edx
jmp 0x416160
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430640
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x4160ef
jmp 0x4160d5
call fcn.00461320
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004357a0
lea rax, [0x004d0484]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.004360a0
mov rax, qword [rsp + 0x38]
call fcn.00435da0
lea rax, [0x004d0514]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.004360a0
mov rax, qword [rsp + 0x30]
call fcn.00435da0
call fcn.00435a00
call fcn.00435820
lea rax, [0x004d25e8]
mov ebx, 0x21
call fcn.00434020
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045d780
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416040