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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14007e314
cmp r8d, 0xff
jne 0x14007e251
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14007e23b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xa6140]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14005ac20
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14005ac20
cmp r8d, 0xfb
jne 0x14007e263
lea r9, str.WILL
jmp 0x14007e2a1
cmp r8d, 0xfc
jne 0x14007e275
lea r9, str.WONT
jmp 0x14007e2a1
cmp r8d, 0xfd
jne 0x14007e287
lea r9, [0x1400a6b64]
jmp 0x14007e2a1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14007e2fd
cmp r10d, 0x27
jg 0x14007e2d4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xa6760]
test r8, r8
jne 0x14007e2e4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14005ac20
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14007e2bb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14005ac20
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14005ac20
add rsp, 0x38
ret

Function at 0x14007e660
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 0x14007e6bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005aaa0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14007e1f0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14007e870
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14007ea18
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 0x14007e8d5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14007e8d5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14007e8d5
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 0x14007e90c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14007e962
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007e962
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007e962
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007e962
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007e962
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.14007e320
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 0x14007e9c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005aaa0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14007e6f0
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 0x14007ea10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005aaa0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140080180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14013c8c0]
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 0x140080215
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 0x140080276
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14005aaa0
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.140093c90
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 0x140080331
sub ecx, 1
je 0x1400803a4
sub ecx, 1
je 0x1400802e0
cmp ecx, 1
je 0x1400802c3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400a45c0]
call fcn.14005aaa0
jmp 0x1400803a4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14007feb0
test eax, eax
je 0x1400803a4
jmp 0x14008024a
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 0x1400803a4
sub rax, rsi
cmp rax, rbp
jae 0x1400803a4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14005ac20
jmp 0x1400803a4
cmp r8d, 4
jle 0x1400803a4
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 0x1400803a4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14005a9c0
mov esi, eax
test eax, eax
je 0x140080383
mov edx, 5
mov rcx, rbx
call fcn.140080e70
mov eax, esi
jmp 0x14008024a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400692a0
mov rcx, r14
call fcn.140069580
test eax, eax
je 0x140080248
mov edx, 5
mov rcx, rbx
call fcn.140080e70
mov eax, Ordinal_45
jmp 0x14008024a
Function at 0x140093140
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 [str.xK_t_]
mov rdi, rax
test rax, rax
jne 0x140093182
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 0x1400931c9
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 0x140093222
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 0x1400931e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140093263
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400a9d4a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400a9d4b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140093230
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 0x140093288
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1400a9e50]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400932c2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400932c7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140093310
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140093310
dec r8
sub rdx, 1
jne 0x1400932f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400947d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009481e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009481e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009481e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009481e
cmp dword [rcx + 0x84], 0xe
jbe 0x14009481e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140094820
xor al, al
add rsp, 0x28
ret
Function at 0x245861e1c
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rdx, qword [str.expand_32_byte_k]
lea rax, [rbp - 0x40]
mov r8d, 4
mov rcx, rax
call fcn.245861519
lea rax, [rbp - 0x40]
add rax, 0x10
mov rdx, qword [rbp + 0x18]
mov r8d, 8
mov rcx, rax
call fcn.245861519
lea rax, [rbp - 0x40]
add rax, 0x30
mov rdx, qword [rbp + 0x20]
mov r8d, 4
mov rcx, rax
call fcn.245861519
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.2458618f0
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x10]
mov r8d, 4
mov rcx, rax
call fcn.2458615ee
lea rax, [rbp - 0x40]
add rax, 0x30
mov rdx, qword [rbp + 0x10]
lea rcx, [rdx + 0x10]
mov r8d, 4
mov rdx, rax
call fcn.2458615ee
lea rax, [rbp - 0x40]
mov edx, 0x40
mov rcx, rax
call fcn.2458618a9
nop
add rsp, 0x60
pop rbp
ret
Function at 0x245867b6f
Capabilities:
Hash data using sha512

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 8], 0
jmp 0x245867bbc
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
lea rax, [0x2458840a0]
mov rcx, qword [rdx + rax]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov qword [rax + rdx*8], rcx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 7
jbe 0x245867b94
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
shl rax, 8
xor rax, qword [rbp + 0x18]
xor rax, rdx
xor rax, 0x1010000
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x40], 0
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x48], 0
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax + 0xd8], rdx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0xd0], 0
mov qword [rbp - 0x10], 0
jmp 0x245867c42
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
add rdx, 0xa
mov qword [rax + rdx*8], 0
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0xf
jbe 0x245867c29
cmp qword [rbp + 0x28], 0
je 0x245867d43
mov qword [rbp - 0xa0], 0
mov qword [rbp - 0x98], 0
mov qword [rbp - 0x90], 0
mov qword [rbp - 0x88], 0
mov qword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x18], 0
jmp 0x245867d0d
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x18]
add rax, rdx
movzx eax, byte [rax]
lea rcx, [rbp - 0xa0]
mov rdx, qword [rbp - 0x18]
add rdx, rcx
mov byte [rdx], al
add qword [rbp - 0x18], 1
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp + 0x28]
jb 0x245867cea
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0x50]
lea rax, [rbp - 0xa0]
mov r8d, 0x10
mov rdx, rax
call fcn.245861583
mov rax, qword [rbp + 0x10]
mov qword [rax + 0xd0], pe_nt_image_headers64
nop
add rsp, 0xc0
pop rbp
ret
Function at 0x24587b063
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp - 0x10], 0xffffffffffffffff
mov qword [rbp - 8], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x18], 0
cmp qword [rbp + 0x20], 0
je 0x24587b0ad
cmp qword [rbp + 0x28], 0
je 0x24587b0ad
cmp qword [rbp + 0x30], 0
jne 0x24587b0b7
mov eax, 0
jmp 0x24587b1f1
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
je 0x24587b195
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0xffffffff
je 0x24587b198
mov ebx, dword [rbp - 0x14]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x24587b19b
lea r8, [rbp - 0x18]
mov ecx, dword [rbp - 0x14]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x24587b19e
mov eax, dword [rbp - 0x18]
cmp dword [rbp - 0x14], eax
jne 0x24587b19e
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x28]
mov qword [rax], rdx
mov rax, qword [rbp + 0x30]
mov edx, dword [rbp - 0x14]
mov dword [rax], edx
jmp 0x24587b19f
nop
jmp 0x24587b19f
nop
jmp 0x24587b19f
nop
jmp 0x24587b19f
nop
cmp qword [rbp - 0x10], 0xffffffffffffffff
je 0x24587b1b6
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
test rax, rax
jne 0x24587b1ea
cmp qword [rbp - 8], 0
je 0x24587b1ea
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x24587b3e5
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 8], 0xffffffffffffffff
mov dword [rbp - 0xc], 0
cmp qword [rbp + 0x10], 0
je 0x24587b41c
cmp qword [rbp + 0x18], 0
je 0x24587b41c
cmp dword [rbp + 0x20], 0
jne 0x24587b426
mov eax, 0
jmp 0x24587b4c8
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
je 0x24587b4a1
lea r8, [rbp - 0xc]
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x24587b4a4
mov eax, dword [rbp - 0xc]
cmp dword [rbp + 0x20], eax
jmp 0x24587b4a5
nop
jmp 0x24587b4a5
nop
cmp qword [rbp - 8], 0xffffffffffffffff
je 0x24587b4bc
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0xc]
cmp dword [rbp + 0x20], eax
sete al
movzx eax, al
add rsp, 0x50
pop rbp
ret
Function at 0x24587b5d2
Capabilities:
Get system firmware table

Disassembly:
push rbp
push rdi
sub rsp, 0x858
lea rbp, [rsp + 0x80]
mov eax, dword [0x245888020]
test eax, eax
je 0x24587b5f9
lea rax, [0x245888030]
jmp 0x24587b892
mov eax, 0x52
movsx eax, al
shl eax, 0x18
mov edx, eax
mov eax, 0x53
movsx eax, al
shl eax, 0x10
or edx, eax
mov eax, 0x4d
movsx eax, al
shl eax, 8
or edx, eax
mov eax, 0x42
movsx eax, al
or eax, edx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call rax
mov dword [rbp + 0x7cc], eax
mov eax, dword [rbp + 0x7cc]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7c0], rax
cmp qword [rbp + 0x7c0], 0
jne 0x24587b675
mov eax, 0
jmp 0x24587b892
mov eax, 0x52
movsx eax, al
shl eax, 0x18
mov edx, eax
mov eax, 0x53
movsx eax, al
shl eax, 0x10
or edx, eax
mov eax, 0x4d
movsx eax, al
shl eax, 8
or edx, eax
mov eax, 0x42
movsx eax, al
or eax, edx
mov ecx, dword [rbp + 0x7cc]
mov rdx, qword [rbp + 0x7c0]
mov r9d, ecx
mov r8, rdx
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call rax
cmp dword [rbp + 0x7cc], eax
jne 0x24587b87d
mov rax, qword [rbp + 0x7c0]
add rax, 8
mov qword [rbp + 0x7a8], rax
mov rax, qword [rbp + 0x7c0]
lea rdx, [rax + 8]
mov rax, qword [rbp + 0x7c0]
mov eax, dword [rax + 4]
mov eax, eax
add rax, rdx
mov qword [rbp + 0x7b8], rax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x100
mov rdi, rdx
rep stosq qword [rdi], rax
jmp 0x24587b851
mov rax, qword [rbp + 0x7a8]
movzx eax, byte [rax]
cmp al, 1
jne 0x24587b83e
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x7a8]
mov rcx, rax
call fcn.24587b4f2
mov qword [rbp + 0x7b0], rax
mov rax, qword [rbp + 0x7b0]
add rax, 8
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [0x245888030], rax
mov qword [0x245888038], rdx
lea rax, [0x245888030]
mov edx, dword [rax]
lea rax, [0x245888030]
rol edx, 0x10
mov dword [rax], edx
lea rax, [0x245888030]
movzx eax, word [rax]
shr ax, 8
mov edx, eax
lea rax, [0x245888030]
movzx eax, word [rax]
movzx eax, ax
shl eax, 8
or edx, eax
lea rax, [0x245888030]
mov word [rax], dx
lea rax, [0x245888032]
movzx eax, word [rax]
shr ax, 8
mov edx, eax
lea rax, [0x245888032]
movzx eax, word [rax]
movzx eax, ax
shl eax, 8
or edx, eax
lea rax, [0x245888032]
mov word [rax], dx
lea rax, [0x245888034]
movzx eax, word [rax]
shr ax, 8
mov edx, eax
lea rax, [0x245888034]
movzx eax, word [rax]
movzx eax, ax
shl eax, 8
or edx, eax
lea rax, [0x245888034]
mov word [rax], dx
lea rax, [0x245888036]
movzx eax, word [rax]
shr ax, 8
mov edx, eax
lea rax, [0x245888036]
movzx eax, word [rax]
movzx eax, ax
shl eax, 8
or edx, eax
lea rax, [0x245888036]
mov word [rax], dx
mov dword [0x245888020], 1
jmp 0x24587b865
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x7a8]
mov rcx, rax
call fcn.24587b4f2
mov rax, qword [rbp + 0x7a8]
cmp qword [rbp + 0x7b8], rax
jne 0x24587b721
mov rax, qword [rbp + 0x7c0]
mov rcx, rax
call sub.msvcrt.dll_free
lea rax, [0x245888030]
jmp 0x24587b892
nop
mov rax, qword [rbp + 0x7c0]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
add rsp, 0x858
pop rdi
pop rbp
ret
Function at 0x24587bca4
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 8]
mov r9d, 0
mov r8d, 0
lea rdx, [0x24588509e]
mov rcx, rax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x24587bcda
mov eax, 0
jmp 0x24587bd06
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov r9d, 0
mov r8d, 0x10
mov rcx, rax
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x24587bd01
mov eax, 0
jmp 0x24587bd06
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x24587c2fe
Capabilities:
Enumerate processes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov dword [rax], 0x238
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
mov dword [rbp - 4], eax
jmp 0x24587c356
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 8]
cmp dword [rbp + 0x18], eax
jne 0x24587c343
mov eax, 1
jmp 0x24587c361
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.KERNEL32.dll_Process32NextW
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x24587c330
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x24587c6a9
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 1
jne 0x24587c6f4
mov rdx, qword [rbp + 0x10]
lea rax, [rbp - 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [0x24587c62a]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x24587c8b0
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 fcn.2458822d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2458822d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]