joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026fc4
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001adb8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001adb8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027114
cmp rax, 0xffffffffffffffff
je 0x140027114
xor edi, edi
test rbp, rbp
jle 0x1400270bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001d3d0
mov rbx, rax
test rax, rax
jne 0x14002704c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400270b5
mov edx, 0x8000
mov ecx, r14d
call fcn.140014fc0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001baac
cmp eax, 0xffffffff
je 0x140027095
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002705c
mov edx, r15d
mov ecx, r14d
call fcn.140014fc0
jmp 0x1400270b5
cmp byte [rsi + 0x38], dil
je 0x1400270ac
cmp dword [rsi + 0x34], 5
jne 0x1400270ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400270b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019468
jmp 0x140027128
jns 0x140027128
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001adb8
cmp rax, 0xffffffffffffffff
jne 0x1400270e0
cmp byte [rsi + 0x30], dil
je 0x140027128
mov edi, dword [rsi + 0x2c]
jmp 0x140027128
mov ecx, r14d
call fcn.140016534
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027128
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027128
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027121
mov eax, dword [rsi + 0x2c]
jmp 0x140027126
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001adb8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400021e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000222a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000222a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000222a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000222a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000222a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000222c
xor al, al
add rsp, 0x28
ret
Function at 0x14000d420
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x30], 0
lea rdx, [0x14002ad14]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400057b0
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x2a8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x14000d4c2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400057b0
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400072c0
lea rcx, [rsp + 0x48]
call fcn.140006e20
nop
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400129a0
add rsp, 0x298
ret
Function at 0x14000d800
Capabilities:
Persist via run registry key

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x48], 0xffffffff80000001
lea rcx, [rsp + 0x70]
call fcn.140005e50
mov edx, 0x18
lea rcx, [rsp + 0x78]
call fcn.14000c300
lea rcx, [rsp + 0x78]
call fcn.140005c30
nop
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rsp + 0x40]
call fcn.1400050c0
nop
lea rdx, [0x14002ab50]
lea rcx, [rsp + 0x38]
call fcn.1400050c0
nop
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.14000e910
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140008fd0
movzx eax, al
test eax, eax
jne 0x14000d8ab
mov dword [rsp + 0x2c], 1
jmp 0x14000d8b3
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x70], al
lea rcx, [rsp + 0x68]
call fcn.140006be0
nop
lea rcx, [rsp + 0x38]
call fcn.140006be0
nop
lea rcx, [rsp + 0x40]
call fcn.140006be0
nop
movzx eax, byte [rsp + 0x70]
test eax, eax
je 0x14000d947
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
lea rcx, [rsp + 0x58]
call fcn.1400050c0
nop
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rdx, str.PCAppStore
lea rcx, [rsp + 0x50]
call fcn.1400050c0
nop
mov eax, dword [rsp + 0x24]
or eax, 2
mov dword [rsp + 0x24], eax
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.14000e800
movzx eax, al
test eax, eax
je 0x14000d947
mov byte [rsp + 0x20], 1
jmp 0x14000d94c
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x24]
and eax, 2
test eax, eax
je 0x14000d970
and dword [rsp + 0x24], 0xfffffffd
lea rcx, [rsp + 0x50]
call fcn.140006be0
nop
mov eax, dword [rsp + 0x24]
and eax, 1
test eax, eax
je 0x14000d98b
and dword [rsp + 0x24], 0xfffffffe
lea rcx, [rsp + 0x58]
call fcn.140006be0
nop
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x14000d9fe
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c870
movzx eax, byte [rax]
test eax, eax
je 0x14000d9ed
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c870
movzx eax, byte [rax]
cmp eax, 2
je 0x14000d9ed
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c870
movzx eax, byte [rax]
cmp eax, 6
je 0x14000d9ed
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c870
movzx eax, byte [rax]
cmp eax, 8
je 0x14000d9ed
mov dword [rsp + 0x30], 0
jmp 0x14000d9f5
mov dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x70], al
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x29], al
lea rcx, [rsp + 0x78]
call fcn.140006ec0
movzx eax, byte [rsp + 0x29]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400129a0
add rsp, 0xa8
ret
Function at 0x14000db40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14000db99
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000dbe6
mov rcx, qword [rsp + 0x290]
call fcn.14000c920
mov rdx, rax
lea rcx, [rsp + 0x5c]
call fcn.14001b214
test eax, eax
jne 0x14000dbc6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000dbe6
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000db99
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400129a0
add rsp, 0x288
ret
Function at 0x14000e800
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], 0x1000
mov eax, dword [rsp + 0x58]
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.14000ecd0
nop
mov rcx, qword [rsp + 0x90]
call fcn.140002e10
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000e8ef
mov rcx, qword [rsp + 0x88]
call fcn.14000cd90
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
call fcn.140002e10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000e8e0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14000e8f1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14000e8f1
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400129a0
add rsp, 0x78
ret

Function at 0x14000e910
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14000c300
lea rcx, [rsp + 0x60]
call fcn.140005180
nop
mov dword [rsp + 0x50], 0x1000
mov rcx, qword [rsp + 0xa0]
call fcn.140002e10
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000ea35
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140008c40
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x98]
call fcn.140002e10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.1400095b0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.140005090
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.140006be0
mov rax, qword [rsp + 0x90]
jmp 0x14000ea66
lea rdx, [0x14002a748]
mov rcx, qword [rsp + 0x90]
call fcn.1400050c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.140006be0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400129a0
add rsp, 0x88
ret
Function at 0x1400113f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140011432
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140011437
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140011480
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14002b850]
cmp byte [rcx + rax], 0
je 0x140011480
dec r8
sub rdx, 1
jne 0x140011466
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001311c
Capabilities:
Parse pe header

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

Function at 0x14001b390
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14001b3cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ad88
call fcn.14001ae14
mov eax, dword [rax]
jmp 0x14001b442
cmp rdi, qword [rbx + 0x18]
ja 0x14001b3d7
mov qword [rbx + 0x20], rdi
jmp 0x14001b440
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14001b3ee
mov rcx, qword [rbx + 0x10]
call fcn.14001d784
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14001d7c0
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14001b442
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14001b3b5
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b85c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14001b893
call fcn.14001ae14
mov dword [rax], 0x16
call fcn.140018124
xor eax, eax
jmp 0x14001b921
mov rdx, r9
mov rcx, r8
call fcn.14001b7f8
mov rbx, rax
test rax, rax
je 0x14001b91e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14001b724]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001b90b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ad88
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001b8f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001b901
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001d784
jmp 0x14001b91e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001b91b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Function at 0x14001c114
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001bf10
Function at 0x1400214b4
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 0x14002153b
mov rsi, rbx
cmp word [rax], bp
je 0x1400214fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400214e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400214e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d7c0
mov rdi, rax
test rax, rax
je 0x140021528
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400272b0
mov rbp, rdi
xor ecx, ecx
call fcn.14001d784
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
Function at 0x140026f10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140026f38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140026f38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001b20
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001b6c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001b66
test eax, eax
jne 0x140001b66
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001b3e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001d20
Capabilities:
Parse pe header

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

Function at 0x140001d44
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001d7e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001d75
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001d80
inc r8d
add rax, 0x28
jmp 0x140001d5c
xor eax, eax
ret

Function at 0x140001df1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004360]
mov r8, rcx
mov rcx, r9
call fcn.140001d20
test eax, eax
je 0x140001e1d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140001d44
xor eax, eax
add rsp, 0x28
ret

Function at 0x140002110
Capabilities:
Execute command

Disassembly:
jmp qword [sym.imp.msvcrt.dll_system]
sub rsp, 0x28
call fcn.1400013ce
lea rcx, str.shutdown__s__t_1
add rsp, 0x28
jmp 0x1400020a8
Function at 0x140003f30
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1080
call fcn.140010720
sub rsp, rax
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov r14, qword [rsp + 0x10d0]
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x140004059
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea r9d, [rbx + 0x28]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x28], ebx
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], 0x33
mov qword [rsp + 0x68], 0x1000
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140003fd5
lea rdx, str.____Cant_read_module_headers
jmp 0x14000403d
movsxd rax, dword [rsp + 0xac]
lea rcx, [rsp + 0x70]
add rcx, rax
mov r8d, ebx
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
test r9d, r9d
je 0x140004036
nop dword [rax]
mov eax, r8d
lea rcx, [rax + rax*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x14000402e
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], bl
jne 0x140004020
cmp rax, 4
je 0x14000408d
inc r8d
cmp r8d, r9d
jb 0x140004000
lea rdx, str.____Cant_find_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140006010
lea rdx, [0x1400061f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbx
mov r8d, ebx
mov r9, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.140003d50
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14000f510
add rsp, 0x1080
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140004036
mov ecx, dword [rdx + 8]
mov edx, eax
lea rax, [rsp + 0x70]
add rax, rdx
je 0x140004036
test ecx, ecx
je 0x140004036
mov ebx, ecx
add rdx, rdi
jmp 0x14000405c
Function at 0x140004e40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140004e70
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004e98
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004e9a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004ef3
test ecx, ecx
jle 0x140004ed3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004ef3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004ef3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140004f20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004f42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140004f51
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004f74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004f76
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140004fb0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005057
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140004feb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005031
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005070
cmp rbx, rax
ja 0x140005000
mov r8, rdi
test rdi, rdi
je 0x140005057
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000505a