joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005e84
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x140005f79
lea rdx, [rsp + 0x50]
call fcn.140005d50
test eax, eax
je 0x140006009
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005f00
mov al, byte [r8 + rcx]
test al, al
je 0x140005f00
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005ee1
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x140005f66
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x140005f55
sub ecx, 1
je 0x140005f4c
sub ecx, 1
je 0x140005f43
cmp ecx, 1
jne 0x140005f66
lea r8, [0x140009988]
jmp 0x140005f5c
lea r8, str.alpha
jmp 0x140005f5c
lea r8, str.mips
jmp 0x140005f5c
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.140007448
lea r8, [0x1400096f0]
mov edx, edi
mov rcx, rbx
call fcn.140007448
jmp 0x140005fb8
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140005faa
mov al, byte [r9 + rcx]
test al, al
je 0x140005faa
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140005f8b
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.1400064bc
test eax, eax
jne 0x140005fdd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x14000600d
mov dword [0x14000cd00], 1
test esi, esi
je 0x140006029
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.14000661c
test eax, eax
jne 0x140006029
cmp dword [0x14000cd00], eax
je 0x140006009
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x140006035
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
jmp 0x140006009
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007c60
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400064bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x1400064d7
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140006549
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004a30
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [0x14000d544], ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rax, [rdi - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x14000658f
sub rdx, rbx
mov r8, rbp
sub r8, rsi
mov rcx, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x14000657f
mov al, byte [r8 + rcx]
test al, al
je 0x14000657f
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140006563
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140006596
test edi, edi
je 0x140006596
mov byte [rsi], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
mov rcx, rsi
call fcn.140007448
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, 0xffffffffffffffff
je 0x140006518
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140006518
test al, 0x10
je 0x140006518
and dword [0x14000d544], 0
mov eax, 1
jmp 0x140006534
Function at 0x14000704c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x1400070d3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140007111
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x1400070a2
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [0x140009638]
mov rcx, rbx
test eax, eax
je 0x140007107
call qword [sym.imp.KERNEL32.dll_FreeResource]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.1400010c0
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x14000707e
jmp 0x14000711d
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x14000711d
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007c60
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14000731c
mov al, byte [r9 + rcx]
test al, al
je 0x14000731c
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400072fd
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.140007448
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140007362
test al, 0x10
jne 0x140007362
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x14000736f
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007c60
add rsp, 0x148
ret
Function at 0x140007388
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14000740b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14000740b
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x1400073ee
and qword [rsp + 0x20], rax
jmp 0x1400073f3
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x14000742f
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004a30
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007730
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x1400078a9
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400078a3
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x1400078a3
cmp dword [rsp + 0x54], 4
jne 0x1400078a3
cmp dword [rsp + 0x58], 0xa
jae 0x1400078a3
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400078a3
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400078a3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x1400096f0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000783c
mov eax, dword [0x14000c20c]
jmp 0x1400078ab
lea rdx, [rbp - 0x10]
mov cl, byte [rdx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140007856
add edi, 0xfffffffd
movsx eax, cl
shl edi, 4
add edi, eax
jmp 0x140007875
cmp cl, 0x61
jl 0x14000785e
add cl, 0xe0
movsx r8d, cl
sub r8d, 0x37
lea eax, [r8 - 0xa]
cmp eax, 5
ja 0x140007883
shl edi, 4
add edi, r8d
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextA]
mov rdx, rax
jmp 0x140007840
lea rax, [rbp - 0x10]
cmp rdx, rax
je 0x1400078a3
and edi, 0x3ff
cmp edi, esi
je 0x14000789b
cmp edi, 0xd
jne 0x1400078a3
mov dword [0x14000c20c], esi
jmp 0x1400078a9
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140007c60
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007a04
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140008100
add rsp, 0x28
jmp 0x140007a04
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000cb78], rbx
je 0x140007a5d
cmp rax, rbx
jne 0x140007a50
mov edi, 1
jmp 0x140007a5d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007a37
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007a72
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140007adf
mov eax, dword [0x14000cb80]
test eax, eax
jne 0x140007ad5
mov dword [0x14000cb80], 1
lea r14, [0x140009670]
lea rbx, [0x140009658]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140007ac7
test eax, eax
jne 0x140007acb
cmp qword [rbx], 0
je 0x140007abc
mov rax, qword [rbx]
mov rcx, qword [0x140009638]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140007a9d
test eax, eax
je 0x140007adf
mov eax, 0xff
jmp 0x140007c32
mov dword [0x14000c224], 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007b07
lea rdx, [0x140009650]
lea rcx, [0x140009640]
call sub.msvcrt.dll__initterm
mov dword [0x14000cb80], 2
test edi, edi
jne 0x140007b14
xor eax, eax
xchg qword [0x14000cb78], rax
cmp qword [0x14000cb88], 0
je 0x140007b48
lea rcx, [0x14000cb88]
call fcn.140008080
test eax, eax
je 0x140007b48
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000cb88]
mov r9, qword [0x140009638]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
cmp byte [rbx], 0x20
ja 0x140007bd1
cmp byte [rbx], 0
je 0x140007b69
test edi, edi
jne 0x140007bd1
mov al, byte [rbx]
dec al
cmp al, 0x1f
ja 0x140007b7b
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007b69
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002a20
mov dword [0x14000c220], eax
cmp dword [0x14000c240], 0
jne 0x140007bba
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c224], 0
jne 0x140007bcf
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c220]
jmp 0x140007c32
cmp byte [rbx], 0x22
jne 0x140007be3
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rbx]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140007bf8
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007b5b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140007f90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007fdc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007fd4
cmp dword [rcx + 0x3c], edx
jl 0x140007fd4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007fd4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140007fdc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140e02058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e021df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e02089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e0206f
add dl, dl
jne 0x140e02096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e020f6
xor eax, eax
add dl, dl
jne 0x140e020a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e021ad
add dl, dl
jne 0x140e020b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e020c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e020d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e020dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e020ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e0207e
mov eax, 1
add dl, dl
jne 0x140e02106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e02113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e020fb
sub eax, ebx
mov ebx, 1
jne 0x140e0214c
mov ecx, 1
add dl, dl
jne 0x140e0212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e0213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e02123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e0207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e02168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e02175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e0215d
cmp eax, 0x7d00
jae 0x140e0219b
cmp eax, 0x500
jb 0x140e02196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e0207e
cmp eax, 0x7f
ja 0x140e0219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e0207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e021d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e0207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x428
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x410], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x927c0
jb 0x1400010fb
lea rdx, [rsp + 0x30]
mov ecx, 7
lea rax, [0x140017850]
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140001040
movups xmm0, xmmword [rax]
mov ecx, dword [rax + 0x50]
lea r9, [rsp + 0x20]
movups xmm1, xmmword [rax + 0x10]
mov r8d, 0x40
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmmword [rdx + 0x40], xmm0
mov dword [rdx + 0x50], ecx
mov edx, 0x3d4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsp + 0x30]
call rax
xor eax, eax
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140001120
add rsp, 0x428
ret
mov ecx, 1
call fcn.1400049b8
int3

Function at 0x140001b0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b56
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b58
xor al, al
add rsp, 0x28
ret
Function at 0x1400047b4
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 0x140004823
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004823
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004823
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004823
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004823
cmp dword [rcx + 0x84], 0xe
jbe 0x140004823
cmp dword [rcx + 0xf8], 0
je 0x140004823
mov ecx, ebx
call fcn.1400048d4
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.1400046b0
nop
cmp dword [rbp + 0x20], 0
je 0x140004871
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000487c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400047b4

Function at 0x1400049b8
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 0x140004823
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004823
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004823
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004823
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004823
cmp dword [rcx + 0x84], 0xe
jbe 0x140004823
cmp dword [rcx + 0xf8], 0
je 0x140004823
mov ecx, ebx
call fcn.1400048d4
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.1400046b0
nop
cmp dword [rbp + 0x20], 0
je 0x140004871
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000487c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400047b4
Function at 0x1400085a8
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 0x1400085d8
xor eax, eax
jmp 0x14000869b
mov rbp, rbx
cmp word [rax], si
je 0x1400085fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400085e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400085e0
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.1400084c8
movsxd r14, eax
test eax, eax
jne 0x14000863b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400085d1
mov rcx, r14
call fcn.140009368
mov rdi, rax
test rax, rax
jne 0x140008654
xor ecx, ecx
call fcn.140006b28
jmp 0x140008630
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.1400084c8
test eax, eax
jne 0x140008685
mov rcx, rdi
call fcn.140006b28
jmp 0x14000868f
xor ecx, ecx
call fcn.140006b28
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 0x14000ba70
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.140007598
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000bafa
cmp byte [rbp - 0x21], r15b
je 0x14000baf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000bb30
call fcn.140009b78
test eax, eax
jne 0x14000bb1c
cmp byte [rbp - 0x21], r15b
je 0x14000bb14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000bb30
cmp byte [rbp - 0x21], r15b
je 0x14000bb2d
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.140006b78
test eax, eax
jne 0x14000bbd0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007598
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000bb6f
cmp byte [rbp - 0x21], r15b
je 0x14000bba4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000bba4
call fcn.140009b78
test eax, eax
jne 0x14000bb90
cmp byte [rbp - 0x21], r15b
je 0x14000bb89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000bba4
cmp byte [rbp - 0x21], r15b
je 0x14000bba1
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.140006b78
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000bbd0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000bbd3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000bbe1
mov rcx, rdi
call fcn.140006b28
cmp byte [rbp + 0x3f], r15b
je 0x14000bbf0
mov rcx, qword [rbp + 0x27]
call fcn.140006b28
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 0x14000ea20
Capabilities:
Parse pe header

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