joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064a70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140064b94
cmp r8d, 0xff
jne 0x140064ad1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140064abb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x88420]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400410d0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400410d0
cmp r8d, 0xfb
jne 0x140064ae3
lea r9, str.WILL
jmp 0x140064b21
cmp r8d, 0xfc
jne 0x140064af5
lea r9, str.WONT
jmp 0x140064b21
cmp r8d, 0xfd
jne 0x140064b07
lea r9, [0x140088e44]
jmp 0x140064b21
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x140064b7d
cmp r10d, 0x27
jg 0x140064b54
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x88a40]
test r8, r8
jne 0x140064b64
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400410d0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x140064b3b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400410d0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400410d0
add rsp, 0x38
ret

Function at 0x140064ee0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140064f3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140040f50
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140064a70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400650f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140065298
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140065155
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140065155
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140065155
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14006518c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400651e2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400651e2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400651e2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400651e2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400651e2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140064ba0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140065244
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140040f50
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140064f70
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140065290
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140040f50
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140066a00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140099080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140066a95
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140066af6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140040f50
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140079b90
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140066bb1
sub ecx, 1
je 0x140066c24
sub ecx, 1
je 0x140066b60
cmp ecx, 1
je 0x140066b43
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400868a0]
call fcn.140040f50
jmp 0x140066c24
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140066730
test eax, eax
je 0x140066c24
jmp 0x140066aca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140066c24
sub rax, rsi
cmp rax, rbp
jae 0x140066c24
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400410d0
jmp 0x140066c24
cmp r8d, 4
jle 0x140066c24
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140066c24
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140040e70
mov esi, eax
test eax, eax
je 0x140066c03
mov edx, 5
mov rcx, rbx
call fcn.1400676f0
mov eax, esi
jmp 0x140066aca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14004f950
mov rcx, r14
call fcn.14004fc30
test eax, eax
je 0x140066ac8
mov edx, 5
mov rcx, rbx
call fcn.1400676f0
mov eax, Ordinal_46
jmp 0x140066aca
Function at 0x1400799c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140079a02
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140079a49
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140079aa2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140079a60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140079ae3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008c02a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008c02b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140079ab0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007aa90
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x257d515f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x257d57064]
mov r12, rcx
test ebx, ebx
jle 0x257d51720
mov rax, qword [0x257d57068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x257d5163c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x257d516c3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x257d51620
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x257d51742
mov rax, qword [0x257d57068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x257d57068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x257d51727
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x257d516bc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x257d516d0
add dword [0x257d57064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x257d57068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x257d516bc
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 ebx, ebx
jmp 0x257d51647
mov rax, qword [0x257d57068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x257d519e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x257d570a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x257d57080]
test rbx, rbx
je 0x257d51a34
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x257d51a2b
test r12, r12
je 0x257d51a2b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x257d51a10
lea rcx, [0x257d570a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x257d51c50
Capabilities:
Parse pe header

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

Function at 0x257d51c80
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x257d51ccc
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x257d51cc3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x257d51cce
add rax, 0x28
cmp rax, r9
jne 0x257d51cb0
xor eax, eax
ret

Function at 0x257d51cd0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x257d51d60
mov rdx, qword [0x257d54200]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x257d51d4e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x257d51d4e
cmp word [rax + 0x18], 0x20b
jne 0x257d51d4e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x257d51d60
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x257d51d39
add r12, 0x28
cmp r12, rsi
je 0x257d51d60
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x257d51d30
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x257d54200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x257d51d90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x257d51d98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x257d51d90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x257d51de5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x257d51ddc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x257d51d90
add rax, 0x28
cmp rax, r9
jne 0x257d51dc8
xor eax, eax
ret

Function at 0x257d51df0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x257d54200]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x257d51e10
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x257d51e18
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x257d51e10
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x257d51e30
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x257d54200]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x257d51e50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x257d51e58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x257d51e50
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x257d51e98
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x257d51e8f
test rcx, rcx
je 0x257d51e50
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x257d51e80
xor eax, eax
ret

Function at 0x257d51ea0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x257d54200]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x257d51ec0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x257d51ec8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x257d54200]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x257d51f00
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x257d51f08
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x257d51f00
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x257d51f00
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x257d51f44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x257d51f58
add rax, 0x28
cmp r9, rax
jne 0x257d51f30
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x257d54200]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x257d51f92
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x257d51fa0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x257d51f92
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x257d51f92
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x257d51f92
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x257d51fed
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x257d52000
add rdx, 0x28
cmp r10, rdx
jne 0x257d51fd8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x257d5200f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x257d5201f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x257d51ff6
test ecx, ecx
jg 0x257d52008
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180001f30
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x102a0
call fcn.180006b30
sub rsp, rax
mov r9, rcx
mov rsi, rdx
lea r8, [0x180016d40]
lea rcx, [rsp + 0x2a0]
mov edx, 0x8000
call fcn.180006530
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180002062
mov qword [rsp + 0x102b8], rbp
xor ebp, ebp
mov qword [rsp + 0x102b0], rbx
movzx edx, word [rsp + 0x7c]
movzx ecx, word [rsp + 0x7e]
cmp dx, word [0x180016d4c]
jne 0x180001fb0
cmp cx, word [0x180016d4e]
je 0x180002020
cmp dx, word [0x180016d50]
jne 0x180001fd3
cmp cx, word [0x180016d52]
jne 0x180001fd3
movzx eax, word [rsp + 0x80]
cmp ax, word [0x180016d54]
je 0x180002020
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x7c]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x180
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x180002020
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x40]
mov rcx, rax
movaps xmmword [rsp + 0x40], xmm0
call fcn.180001ea0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180001f94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbp, qword [rsp + 0x102b8]
mov rbx, qword [rsp + 0x102b0]
xor eax, eax
mov rsi, qword [rsp + 0x102c0]
add rsp, 0x102a0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18000204f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x102c0]
add rsp, 0x102a0
pop rdi
ret
Function at 0x180002090
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
xor ebp, ebp
mov rbx, rcx
mov esi, r8d
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x24c
mov edi, ebp
mov dword [rsp + 0x2d8], ebp
mov dword [rsp + 0x50], ebp
call fcn.180006b90
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], di
jne 0x1800020d4
add rcx, 5
cmp esi, 0x20
jg 0x1800022d4
cmp rcx, 0x8000
jae 0x1800022d4
mov edx, 2
call fcn.180006488
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1800022d4
lea r8, str._s.
mov r9, rbx
mov edx, 0x8000
mov rcx, rax
call fcn.180006530
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1800022b5
mov rsi, rax
nop dword [rax]
test byte [rsp + 0x50], 0x10
je 0x180002284
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, word [0x180016d4c]
jne 0x18000217b
cmp ax, word [0x180016d4e]
je 0x180002254
cmp cx, word [0x180016d50]
jne 0x1800021a2
cmp ax, word [0x180016d52]
jne 0x1800021a2
movzx eax, word [rsp + 0x80]
cmp ax, word [0x180016d54]
je 0x180002254
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1800021b0
lea rdx, [rsp + 0x7c]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1800021d0
lea rsi, [rax + rcx]
mov edx, 2
lea rcx, [rsi + 0x20]
call fcn.180006488
mov rdi, rax
test rax, rax
je 0x180002248
lea rax, [rsp + 0x7c]
lea r8, str._s_s
lea rdx, [rsi + 0x20]
mov r9, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180006530
mov rax, qword [rsp + 0x2c8]
mov r8d, dword [rsp + 0x2d0]
movups xmm0, xmmword [rax]
lea rdx, [rsp + 0x40]
inc r8d
mov rcx, rdi
movaps xmmword [rsp + 0x40], xmm0
call fcn.180002090
mov rcx, rdi
mov ebp, eax
call fcn.1800064cc
mov rsi, qword [rsp + 0x30]
mov edi, dword [rsp + 0x2d8]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180002150
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1800064cc
mov eax, ebp
jmp 0x1800022d6
test edi, edi
jne 0x180002254
mov rax, qword [rsp + 0x2c8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
call fcn.180001f30
mov edi, 1
mov ebp, eax
mov dword [rsp + 0x2d8], edi
jmp 0x180002254
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800022c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rsi
call fcn.1800064cc
mov eax, ebp
jmp 0x1800022d6
xor eax, eax
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800033b0
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r14, rcx
xor r15d, r15d
mov qword [r11 + 0x18], r15
mov dword [r11 - 0x40], r15d
xor eax, eax
mov qword [r11 - 0x38], rax
mov dword [r11 + 0x10], 0x10
mov edi, r15d
mov ebx, r15d
lea ecx, [rax + 0x20]
call fcn.180006e0c
mov rsi, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x1800034f2
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1800034f2
mov ecx, 0x208
call fcn.180006e0c
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1800034f2
mov ecx, 0x208
call fcn.180006e0c
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800034f2
mov qword [rsp + 0x20], rsi
lea r9, str._s
or r8, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rdi
call fcn.18000650c
mov qword [rsp + 0x20], r14
lea r9, str.localhost_pipe__s
or r8, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rbx
call fcn.18000650c
nop
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call fcn.1800011f0
test eax, eax
jne 0x1800034dc
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9, rbx
xor r8d, r8d
mov edx, 0x100
mov rcx, qword [rsp + 0xb0]
call fcn.180001320
lea rcx, [rsp + 0xb0]
call fcn.1800012e0
nop
jmp 0x1800034f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x180003505
mov rcx, rsi
call fcn.1800064cc
test rdi, rdi
je 0x180003512
mov rcx, rdi
call fcn.1800064cc
test rbx, rbx
je 0x18000351f
mov rcx, rbx
call fcn.1800064cc
cmp qword [rsp + 0xb0], 0
je 0x180003537
lea rcx, [rsp + 0xb0]
call fcn.1800012e0
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret