joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001470
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rbx, r8
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x28], 0x20007
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007b20
add rsp, 0x60
pop rbx
ret
Function at 0x1400079b0
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x36
syscall
ret

Function at 0x1400079bb
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x55
syscall
ret

Function at 0x1400079d1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x27
syscall
ret

Function at 0x1400079dc
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x33
syscall
ret

Function at 0x1400079e7
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 6
syscall
ret

Function at 0x1400079f2
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 8
syscall
ret

Function at 0x1400085a4
Capabilities:
Parse pe header

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

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

Function at 0x140010940
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001073c
Function at 0x14001671c
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 0x14001674c
xor eax, eax
jmp 0x14001680f
mov rbp, rbx
cmp word [rax], si
je 0x140016771
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140016758
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016754
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.14001663c
movsxd r14, eax
test eax, eax
jne 0x1400167af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016745
mov rcx, r14
call fcn.140012030
mov rdi, rax
test rax, rax
jne 0x1400167c8
xor ecx, ecx
call fcn.1400113b8
jmp 0x1400167a4
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.14001663c
test eax, eax
jne 0x1400167f9
mov rcx, rdi
call fcn.1400113b8
jmp 0x140016803
xor ecx, ecx
call fcn.1400113b8
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 0x14001a9fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001aa12
mov al, 1
jmp 0x14001aa72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001aa23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001aa70
mov ecx, dword [rcx + 0x18]
nop
call fcn.140016f84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001aa70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001aa70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001aa70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001aa72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c2e8
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.140014cac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001c372
cmp byte [rbp - 0x21], r15b
je 0x14001c36d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001c3a8
call fcn.140011608
test eax, eax
jne 0x14001c394
cmp byte [rbp - 0x21], r15b
je 0x14001c38c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001c3a8
cmp byte [rbp - 0x21], r15b
je 0x14001c3a5
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.140014b30
test eax, eax
jne 0x14001c448
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014cac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001c3e7
cmp byte [rbp - 0x21], r15b
je 0x14001c41c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c41c
call fcn.140011608
test eax, eax
jne 0x14001c408
cmp byte [rbp - 0x21], r15b
je 0x14001c401
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c41c
cmp byte [rbp - 0x21], r15b
je 0x14001c419
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.140014b30
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c448
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c44b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c459
mov rcx, rdi
call fcn.1400113b8
cmp byte [rbp + 0x3f], r15b
je 0x14001c468
mov rcx, qword [rbp + 0x27]
call fcn.1400113b8
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 0x14001ea50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ea78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ea78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400289e4
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.14001c2f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c2f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028b34
cmp rax, 0xffffffffffffffff
je 0x140028b34
xor edi, edi
test rbp, rbp
jle 0x140028adf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ec08
mov rbx, rax
test rax, rax
jne 0x140028a6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028ad5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c58
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.14001cfd0
cmp eax, 0xffffffff
je 0x140028ab5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a7c
mov edx, r15d
mov ecx, r14d
call fcn.140019c58
jmp 0x140028ad5
cmp byte [rsi + 0x38], dil
je 0x140028acc
cmp dword [rsi + 0x34], 5
jne 0x140028acc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028ad5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a9b8
jmp 0x140028b48
jns 0x140028b48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c2f4
cmp rax, 0xffffffffffffffff
jne 0x140028b00
cmp byte [rsi + 0x30], dil
je 0x140028b48
mov edi, dword [rsi + 0x2c]
jmp 0x140028b48
mov ecx, r14d
call fcn.14001878c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028b48
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 0x140028b48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028b41
mov eax, dword [rsi + 0x2c]
jmp 0x140028b46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c2f4
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 0x140029c40
Capabilities:
Parse pe header

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

Function at 0x14102d0f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14102d0fe
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14102d127
pop rbp
sub rbp, 0x33
sub rbp, 0x102d0f4
sub rsp, 0x20
jmp 0x14102d146
mov rax, 0x102d0f4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffc6533a42
xor byte [rax], dl
inc rax
dec rcx
jne 0x14102d165
jmp 0x14102d17c
or cl, bl
stosd dword [rdi], eax
leave
retf
Function at 0x1800015a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, r8
lea r9, [rsp + 0x58]
mov r14d, edx
mov r15, rcx
mov esi, 0xffffffff
xor edi, edi
xor r8d, r8d
mov dword [rsp + 0x58], edi
xor edx, edx
lea ecx, [rsi + 0x11]
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x180001647
mov qword [rsp + 0x40], rbx
nop word [rax + rax]
mov ebx, dword [rsp + 0x58]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
test rdi, rdi
je 0x180001618
mov r9, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x180001621
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x10
mov rdi, rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x1800015f0
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x18000167c
mov esi, eax
test rdi, rdi
je 0x180001666
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov r8d, dword [rdi]
xor edx, edx
test r8d, r8d
je 0x18000164d
lea rcx, [rdi + 0xe]
nop word [rax + rax]
movzx eax, word [rcx - 6]
cmp eax, r14d
jne 0x18000169e
cmp word [rcx], bp
je 0x1800016ab
inc edx
add rcx, 0x18
cmp edx, r8d
jb 0x180001690
jmp 0x180001652
lea rcx, [rdx + rdx*2]
xor esi, esi
mov rax, qword [rdi + rcx*8 + 0x10]
mov qword [r15], rax
jmp 0x180001652
Function at 0x180001700
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea r9, [rsp + 0x38]
mov rbp, rcx
mov dword [rsp + 0x38], esi
xor r8d, r8d
xor edx, edx
mov ebx, esi
lea ecx, [rsi + 0xb]
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1800017a3
nop dword [rax + rax]
mov eax, dword [rsp + 0x38]
test rbx, rbx
je 0x180001768
lea edi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, edi
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x180001782
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x180001740
test eax, eax
jne 0x1800017d3
cmp dword [rbx], esi
jbe 0x1800017d3
nop dword [rax + rax]
mov eax, esi
mov rdx, rbp
imul rdi, rax, 0x128
lea rcx, [rdi + 0x30]
add rcx, rbx
call sub.ntdll.dll_strstr
test rax, rax
jne 0x1800017fe
inc esi
cmp esi, dword [rbx]
jb 0x1800017b0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rdi + rbx + 0x18]
jmp 0x1800017e9

Function at 0x180001810
Capabilities:
Load ntoskrnl

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea rcx, [0x18000f408]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x180001869
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180001869
lea rcx, str.ntoskrnl.exe
call fcn.180001700
sub rbx, rdi
add rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180001af0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
test rcx, rcx
je 0x180001b52
push rbx
sub rsp, 0x30
mov edx, dword [rcx]
mov rbx, rcx
xor ecx, ecx
mov qword [rsp + 0x40], rdi
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180001b48
mov r8d, dword [rbx]
lea rdx, [rbx + 4]
mov rcx, rax
call sub.ntdll.dll_memcpy
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
Function at 0x180009b88
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 0x180009bb8
xor eax, eax
jmp 0x180009c7b
mov rbp, rbx
cmp word [rax], si
je 0x180009bdd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009bc4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009bc0
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.180009aa8
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180009c1e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009bb1
call fcn.18000ae80
mov rdi, rax
test rax, rax
jne 0x180009c34
xor ecx, ecx
call fcn.180008060
jmp 0x180009c13
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.180009aa8
test eax, eax
jne 0x180009c65
mov rcx, rdi
call fcn.180008060
jmp 0x180009c6f
xor ecx, ecx
call fcn.180008060
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 0x140004250
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.14000fdf0
sub rsp, rax
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbp, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor r14d, r14d
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
je 0x1400042d2
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.1400028d0
test al, al
jne 0x1400042da
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_read_module_headers
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, r14
jmp 0x1400043c2
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
inc rdi
cmp byte [rdi + rbp], r14b
jne 0x140004301
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, r14d
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
cmp r14w, r15w
jae 0x14000437c
nop dword [rax]
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, rbp
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140004375
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r14b
jne 0x140004363
cmp rdi, rax
je 0x1400043fc
inc esi
cmp esi, r15d
jb 0x140004340
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_find_section
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, r14
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call fcn.1400040e0
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000eba0
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x14000437c
mov edx, dword [rbx + 8]
lea rcx, [rsp + 0x50]
add rcx, rax
je 0x14000437c
test edx, edx
je 0x14000437c
lea rax, [rsp + 0x50]
mov r14d, edx
sub rcx, rax
lea rdx, [rcx + r13]
jmp 0x1400043a2
Function at 0x140005750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000577d
xor eax, eax
jmp 0x1400058e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400057b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400057b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400058e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400058dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400057fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005825
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400058e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005894
sub eax, 1
je 0x140005894
cmp eax, 2
jne 0x1400058dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400058e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400058c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400058dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400058e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000eba0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret