joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004cb9c
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 0x18004cbcc
xor eax, eax
jmp 0x18004cc8f
mov rbp, rbx
cmp word [rax], si
je 0x18004cbf1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004cbd8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004cbd4
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.18004b284
movsxd r14, eax
test eax, eax
jne 0x18004cc2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004cbc5
mov rcx, r14
call fcn.1800480b8
mov rdi, rax
test rax, rax
jne 0x18004cc48
xor ecx, ecx
call fcn.1800461ec
jmp 0x18004cc24
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.18004b284
test eax, eax
jne 0x18004cc79
mov rcx, rdi
call fcn.1800461ec
jmp 0x18004cc83
xor ecx, ecx
call fcn.1800461ec
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 0x180050888
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180044320
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180050929
cmp ebx, dword [rsp + 0x30]
je 0x180050922
test esi, esi
je 0x180050922
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800508fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18005090a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800508e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18005090e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18005092b
mov eax, 1
jmp 0x18005092b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180051fb4
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.180049be8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180049be8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180052104
cmp rax, 0xffffffffffffffff
je 0x180052104
xor edi, edi
test rbp, rbp
jle 0x1800520af
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180046174
mov rbx, rax
test rax, rax
jne 0x18005203c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800520a5
mov edx, 0x8000
mov ecx, r14d
call fcn.180051e38
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.180047760
cmp eax, 0xffffffff
je 0x180052085
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005204c
mov edx, r15d
mov ecx, r14d
call fcn.180051e38
jmp 0x1800520a5
cmp byte [rsi + 0x38], dil
je 0x18005209c
cmp dword [rsi + 0x34], 5
jne 0x18005209c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800520a5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800461ec
jmp 0x180052118
jns 0x180052118
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180049be8
cmp rax, 0xffffffffffffffff
jne 0x1800520d0
cmp byte [rsi + 0x30], dil
je 0x180052118
mov edi, dword [rsi + 0x2c]
jmp 0x180052118
mov ecx, r14d
call fcn.18004e1dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180052118
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 0x180052118
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180052111
mov eax, dword [rsi + 0x2c]
jmp 0x180052116
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180049be8
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 0x180053140
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180053168
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180053168
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x3107f1d60
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x3107f1d81
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x3107f1e40
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [fcn.31080cfa0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
ret
Function at 0x310806360
Capabilities:
Access peb ldr_data
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
je 0x31080656b
xor r10d, r10d
nop dword [rax]
mov rdx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov eax, dword [rdx + rcx + 0x88]
test eax, eax
je 0x3108063cf
lea r10, [rdx + rax]
mov ecx, dword [r10 + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x3108063cf
mov eax, dword [rcx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x3108063e4
mov r8, qword [r8]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
jne 0x310806390
test r10, r10
je 0x31080656b
mov eax, dword [r10 + 0x18]
mov edi, dword [r10 + 0x24]
xor r9d, r9d
lea r12, [0x31080e0a4]
mov ebp, dword [r10 + 0x1c]
lea ecx, [rax - 1]
mov eax, dword [r10 + 0x20]
add rdi, rdx
add rbp, rdx
lea rbx, [rdi + rcx*2]
add rax, rdx
lea rsi, [rax + rcx*4]
jmp 0x31080642c
sub rsi, 4
lea rax, [rbx - 2]
cmp rdi, rbx
je 0x3108064b0
mov rbx, rax
mov eax, dword [rsi]
add rax, rdx
cmp word [rax], 0x775a
jne 0x310806418
mov ecx, r9d
cmp byte [rax], 0
lea r13, [r12 + rcx*8]
je 0x310806560
cmp byte [rax + 1], 0
mov r8d, 0x705e233b
je 0x31080647e
mov ecx, 1
mov r10d, 1
nop
mov r11d, r8d
movzx ecx, word [rax + rcx]
add r10d, 1
ror r11d, 8
add ecx, r11d
xor r8d, ecx
mov ecx, r10d
cmp byte [rax + rcx], 0
jne 0x310806460
mov dword [r13], r8d
movzx eax, word [rbx]
add r9d, 1
mov eax, dword [rbp + rax*4]
mov dword [r13 + 4], eax
cmp r9d, 0x1f4
jne 0x310806418
mov dword [0x31080e0a0], 0x1f4
jmp 0x3108064bd
mov dword [0x31080e0a0], r9d
cmp r9d, 1
je 0x310806538
xor ebx, ebx
sub r9d, 1
lea r11, [0x31080e0a4]
nop word [rax + rax]
mov r10d, dword [0x31080e0a8]
xor ecx, ecx
cmp ebx, r9d
je 0x310806530
nop
lea eax, [rcx + 1]
mov rdx, rax
lea rax, [r11 + rax*8]
mov r8d, dword [rax + 4]
cmp r8d, r10d
jae 0x310806550
mov r9d, dword [rax]
lea rcx, [r11 + rcx*8]
mov r8d, dword [rcx]
mov dword [rcx], r9d
mov r9d, dword [rax + 4]
mov dword [rcx + 4], r9d
mov dword [rax], r8d
mov r9d, dword [0x31080e0a0]
mov dword [rax + 4], r10d
sub r9d, 1
mov eax, r9d
sub eax, ebx
cmp eax, edx
jbe 0x310806530
mov ecx, edx
jmp 0x3108064e0
add ebx, 1
cmp ebx, r9d
jb 0x3108064d0
mov eax, 1
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, r9d
sub eax, ebx
cmp edx, eax
jae 0x310806530
mov r10d, r8d
mov ecx, edx
jmp 0x3108064e0
mov r8d, 0x81dc70f1
jmp 0x31080647e
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x310806a40
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x1992691d
call fcn.3108065e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x310806a90
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xf9f18f1
call fcn.3108065e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x310807430
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.31080cfa0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.31080cfa0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x3108074a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x31084aac4]
mov rbx, rcx
test esi, esi
jle 0x3108075d0
mov rax, qword [0x31084aac8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3108074eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x310807575
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3108074d0
mov rcx, rbx
call fcn.310807d00
mov rdi, rax
test rax, rax
je 0x3108075f2
mov rax, qword [0x31084aac8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.310807e40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x31084aac8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3108075d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x31080756e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x310807580
add dword [0x31084aac4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x31084aac8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x31080756e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.310807430
nop dword [rax]
xor esi, esi
jmp 0x3108074f8
mov rax, qword [0x31084aac8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.310807430
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.310807430
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x310807970
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x31084ab00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x31084aae0]
test rbx, rbx
je 0x3108079cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x3108079c3
test rsi, rsi
je 0x3108079c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3108079a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x310807d00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3108360b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x310807d20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x310807d28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x310807d20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x310807d7d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x310807d74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x310807d20
add rax, 0x28
cmp rax, r9
jne 0x310807d60
xor eax, eax
ret

Function at 0x310807d80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3108360b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x310807d9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x310807da8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x310807d9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x310807e40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3108360b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x310807e5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x310807e68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1403045c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1403045cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1403045dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1403045c5
lea eax, [rcx + 1]
jmp 0x1403045eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1403045fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1403045e4
sub eax, 3
jb 0x14030461e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14030466d
sar eax, 1
movsxd rbp, eax
jb 0x140304654
jmp 0x14030462c
add ebx, ebx
jne 0x14030462a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140304654
inc ecx
add ebx, ebx
jne 0x14030463a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140304654
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14030464d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14030463c
add ecx, 2
jmp 0x140304659
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140304582
jmp 0x1403045cd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1fbc00
mov dl, 0x50
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1403046b9
cmp rsi, rcx
jae 0x1403046c1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1403046a0
cmp al, 0x8f
ja 0x1403046a0
cmp byte [rsi - 2], 0xf
je 0x1403046a6
sub al, 0xe8
cmp al, 1
ja 0x14030468a
cmp rsi, rcx
jae 0x1403046c1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140304690
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1403046c1
lodsb al, byte [rsi]
jmp 0x1403046a0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2ff000]
mov eax, dword [rdi]
or eax, eax
je 0x14030472a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x304608]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1403046ce
jns 0x140304703
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14030470d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140304724
mov qword [rbx], rax
add rbx, 8
jmp 0x1403046ee
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14030476e
cmp al, 0xef
ja 0x140304756
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140304736
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140304745
mov eax, dword [rdi]
add rdi, 4
jmp 0x140304745
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1403047c2
sub rsp, 0xffffffffffffff80
jmp 0x1401d5cbc
Function at 0x140001000
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r8d, ecx
xor edi, edi
mov ecx, 0x1fffff
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000108c
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x78], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov rbx, qword [rsp + 0x78]
je 0x14000108c
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [rsp + 0x20], edi
sete dil
mov eax, edi
jmp 0x140001091
mov eax, 2
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001a80
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140001270
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, rcx
mov qword [rsp + 0x20], rcx
mov r12, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400012b6
mov r12, qword [rcx]
mov rsi, 0xffffffffffffffff
mov r14d, 0xffffffff
inc rsi
cmp word [r12 + rsi*2], 0
jne 0x1400012c3
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140001404
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001404
mov ebx, dword [rsp + 0x38]
mov ecx, 0x20a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400013c9
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400013c0
mov r9d, 0x104
mov r8, rdi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400013c9
cmp rbx, rsi
jb 0x1400013c9
sub rbx, rsi
lea rax, [rdi + rbx*2]
mov r8, r12
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400013a7
add rax, 2
test ecx, ecx
jne 0x140001393
test edx, edx
cmove r14d, dword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp r14d, 0xffffffff
jne 0x140001404
jmp 0x1400013c9
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rsp + 0x5c]
mov r8, r12
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400013e8
add rax, 2
test ecx, ecx
jne 0x1400013d4
test edx, edx
je 0x1400013ff
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14000130e
mov r14d, dword [rsp + 0x38]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 8
jb 0x140001449
lea rdx, [rdx*2 + 2]
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140001444
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000148f
mov rcx, r8
call fcn.140001adc
xor eax, eax
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], 7
mov word [r15], ax
mov eax, r14d
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001a80
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180004080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13b0
call fcn.18004e5f0
sub rsp, rax
mov rdi, rcx
movsxd rsi, r8d
xor ecx, ecx
movsxd rbp, edx
call fcn.18005e368
mov rcx, rax
mov dword [rsp + 0x24], eax
mov r9d, 1
mov dword [rsp + 0x13a4], 0xffffffff
nop word [rax + rax]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, r9d
mov dword [rsp + r9*4 + 0x24], ecx
inc r9
cmp r9, 0x270
jb 0x1800040d0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.180015260
mov ecx, eax
lea rbx, [rcx + rcx*2]
test ebx, ebx
jne 0x180004125
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.180015260
mov ecx, eax
lea rbx, [rcx + rcx*2]
cmp ebx, 1
jb 0x180004110
shr rbx, 0x20
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc ebx
sub ebx, 1
je 0x180004167
sub ebx, 1
je 0x180004151
cmp ebx, 1
jne 0x18000418f
mov rcx, rsi
call fcn.18004e1a4
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x18]
jmp 0x180004183
mov rdi, qword [rdi]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x18000417f
mov rdi, qword [rdi]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rdi + 0x18]
mov rbx, rax
call fcn.180002400
mov qword [rax + rbp*8], rbx
lea r11, [rsp + 0x13b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret