joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140111280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1401112f9
mov eax, dword [rdi + 0xc4]
mov esi, dword [rdi + 0xc0]
cmp eax, esi
jae 0x140111349
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rdi + 0xa0]
mov rdx, rbp
add dword [rdi + 0xc4], esi
add dword [rdi + 0x9c], esi
mov r8d, esi
call fcn.14010dc40
mov dword [rdi + 0xa0], eax
mov eax, esi
jmp 0x14011134b
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x140111342
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140111349
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x9c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0xa0]
call fcn.14010dc40
mov dword [rdi + 0xa0], eax
mov eax, ebx
jmp 0x14011134b
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140111c00
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
jne 0x140111c08
xor eax, eax
ret
jmp fcn.140111c70

Function at 0x140111c10
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
mov r10, rcx
movsx rax, dl
mov r8d, r9d
xor r8, rax
shr r9d, 8
movzx eax, r8b
lea r8, [0x14018d2a0]
mov edx, dword [r8 + rax*4]
xor edx, r9d
movzx eax, dl
add eax, dword [rcx + 4]
mov dword [rcx], edx
imul edx, eax, 0x8088405
inc edx
mov dword [rcx + 4], edx
mov ecx, dword [rcx + 8]
movzx eax, cl
shr rdx, 0x18
xor rdx, rax
shr ecx, 8
mov eax, dword [r8 + rdx*4]
xor eax, ecx
mov dword [r10 + 8], eax
ret
Function at 0x140111c70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x140111d11
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x58], rbp
mov rax, rcx
test rcx, rcx
je 0x140111cb0
cmp dword [rbx + 0x58], edi
jae 0x140111cb0
call sub.mfc140u.dll_operator_1
xor eax, eax
mov qword [rbx + 0x50], 0
test rax, rax
jne 0x140111cc4
lea ecx, [rdi + rdi]
call sub.mfc140u.dll_operator
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call sub.VCRUNTIME140.dll_memcpy
test edi, edi
je 0x140111d08
mov qword [rsp + 0x60], r14
xor esi, esi
mov rax, qword [rbx + 0x50]
lea rcx, [rbx + 0x44]
movzx edx, byte [rsi + rax]
call fcn.140111da0
mov rcx, qword [rbx + 0x50]
lea rsi, [rsi + 1]
mov byte [rsi + rcx - 1], al
sub rbp, 1
jne 0x140111ce0
mov r14, qword [rsp + 0x60]
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x140111d51
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x140111d36
mov dword [rbx + 0x24], 0x30000
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
add dword [rbx + 0x38], edi
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140111d80
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov dword [rbx + 0x24], 0x1000000
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400027d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
movzx esi, word [rdx + 6]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x14000282d
lea rdx, [rsp + 0x30]
call fcn.1400029e0
movzx ecx, word [rdi + 0x14]
add rcx, 0x18
add rcx, rdi
mov qword [rsp + 0x30], rcx
cmp bp, si
jae 0x140002889
mov rax, rcx
mov rdi, rcx
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140002864
mov qword [rdx], rcx
add qword [rbx + 8], 8
jmp 0x140002874
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140002ae0
mov rax, rdi
lea rcx, [rax + 0x28]
mov qword [rsp + 0x30], rcx
mov rax, rcx
mov rdi, rcx
sub rsi, 1
jne 0x140002850
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140004ab0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003b20
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], rbx
mov ecx, 8
call fcn.140004ad8
mov rcx, rax
mov qword [rdi], rax
add rax, 8
mov qword [rdi + 0x10], rax
lea rax, [rcx + 8]
xor edx, edx
mov qword [rcx], rdx
mov qword [rdi + 8], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x40]
mov r8d, 1
mov rdx, qword [rdi]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov ebx, dword [rsp + 0x40]
shr rbx, 3
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
sar rcx, 3
cmp rbx, rcx
jae 0x140003bd6
lea rax, [rdx + rbx*8]
mov qword [rdi + 8], rax
jmp 0x140003c15
jbe 0x140003c15
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 3
cmp rbx, rax
jbe 0x140003bf5
mov rdx, rbx
mov rcx, rdi
call fcn.1400046c0
jmp 0x140003c15
sub rbx, rcx
lea rbx, [rbx*8]
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + rsi]
mov qword [rdi + 8], rdx
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004ab0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140005008
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005052
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005052
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005052
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005052
cmp dword [rcx + 0x84], 0xe
jbe 0x140005052
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005054
xor al, al
add rsp, 0x28
ret
Function at 0x3226513d4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
lea rax, str.kodah_26206.portmap.host
mov qword [rbp + 0x218], rax
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x218]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0
jne 0x32265147e
lea rax, str.Failed_to_resolve_hostname._n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x3226515d1
mov word [rbp + 0x60], 2
mov rax, qword [rbp + 0x208]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x64], eax
mov ecx, 0x665e
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x210]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
cmp eax, 0xffffffff
jne 0x32265151c
lea rax, str.Failed_to_connect._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x3226515d1
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x101
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rax, str.cmd.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x2a0
pop rbp
ret

Function at 0x3226517e0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x322651850
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x32265c064]
mov rbx, rcx
test esi, esi
jle 0x322651980
mov rax, qword [0x32265c068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x32265189b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x322651925
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x322651880
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x3226519a2
mov rax, qword [0x32265c068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x32265c068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x322651987
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x32265191e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x322651930
add dword [0x32265c064], 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 [0x32265c068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x32265191e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x3226518a8
mov rax, qword [0x32265c068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x322651d20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x32265c0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x32265c080]
test rbx, rbx
je 0x322651d7c
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 rsi, rsi
je 0x322651d73
test eax, eax
jne 0x322651d73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x322651d58
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 0x322651f90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x322651fa8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x322651fb0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x322651fc0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x32265200d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x322652004
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x32265200f
add rax, 0x28
cmp rax, r9
jne 0x322651ff0
xor eax, eax
ret

Function at 0x322652010
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x3226520a0
mov rdx, qword [0x3226595c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x32265208e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x32265208e
cmp word [rax + 0x18], 0x20b
jne 0x32265208e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x3226520a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x322652079
add rbx, 0x28
cmp rbx, rdi
je 0x3226520a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x322652070
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x3226595c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3226520d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3226520d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3226520d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x32265212d
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 0x322652124
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3226520d0
add rax, 0x28
cmp rax, r9
jne 0x322652110
xor eax, eax
ret

Function at 0x322652130
Capabilities:
Parse pe header

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

Function at 0x322652170
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3226595c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x322652190
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x322652198
ret
cmp word [rdx + 0x18], 0x20b
jne 0x322652190
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x3226521e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3226521d7
test rcx, rcx
je 0x322652190
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x3226521c8
xor eax, eax
ret
Function at 0x3226521f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3226595c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x32265220f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x322652218
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x3226595c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x322652250
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x322652258
ret
cmp word [r8 + 0x18], 0x20b
jne 0x322652250
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x322652250
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x3226522a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x3226522b0
add rdx, 0x28
cmp rdx, r9
jne 0x322652290
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x3226595c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3226522e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3226522f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3226522e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3226522e2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x3226522e2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x322652345
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x322652358
add rdx, 0x28
cmp r10, rdx
jne 0x322652330
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x322652367
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x322652377
mov edx, dword [rax + 0xc]
test edx, edx
je 0x32265234e
test ecx, ecx
jg 0x322652360
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x140009070]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x7c
mov r9, qword [rsp + 0x38]
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001089
mov eax, dword [rsp + 0x110]
jmp 0x140001099
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140006740
add rsp, 0xf8
ret
Function at 0x1400010c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0x30
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x88], 0x240
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
lea r8, [rsp + 0x70]
mov edx, 0xf003f
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001173
jmp 0x14000127d
mov dword [rsp + 0x34], 0
jmp 0x140001187
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x8000001a
jne 0x1400011c4
jmp 0x140001273
mov eax, dword [rsp + 0x38]
mov ecx, eax
call fcn.1400062dc
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001217
jmp 0x140001273
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 4], 1
je 0x14000122e
jmp 0x140001273
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call fcn.140005f64
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140006324
mov qword [rsp + 0x40], 0
jmp 0x14000117d
xor eax, eax
test eax, eax
jne 0x14000114e
cmp qword [rsp + 0x48], 0
je 0x140001290
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x40], 0
je 0x1400012ac
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140006324
add rsp, 0xb8
ret
Function at 0x1400024b4
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x448
mov rax, qword [0x140009070]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov dword [rsp + 0x20], 4
jmp 0x1400024e7
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf4240
jge 0x140002568
mov qword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
je 0x140002513
jmp 0x1400024dc
mov r8d, 0x200
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140006480
movzx eax, al
test eax, eax
je 0x140002558
mov rdx, qword [rsp + 0x450]
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_wcsstr
test rax, rax
je 0x140002558
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
movsxd rax, dword [rsp + 0x20]
jmp 0x14000256a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400024dc
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140006740
add rsp, 0x448
ret