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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20b0
call fcn.14001cdc0
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x20a0], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14000eed7
xor eax, eax
jmp 0x14000ef84
lea rcx, [rsp + 0x20]
call qword [sym.imp.LIBEAY32.dll_Ordinal_503]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x14000ef3f
nop dword [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0xa0]
mov edx, 1
mov r8d, 0x2000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.LIBEAY32.dll_Ordinal_504]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14000ef00
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call qword [sym.imp.LIBEAY32.dll_Ordinal_502]
mov rax, qword [rdi]
sub rax, qword [rsp + 0x80]
jne 0x14000ef7a
mov rax, qword [rdi + 8]
sub rax, qword [rsp + 0x88]
jne 0x14000ef7a
mov eax, dword [rdi + 0x10]
mov ecx, dword [rsp + 0x90]
sub rax, rcx
xor ecx, ecx
test rax, rax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x20a0]
xor rcx, rsp
call fcn.14001bfa0
mov rbx, qword [rsp + 0x20c8]
add rsp, 0x20b0
pop rdi
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function
Get file size
Read file on windows
Terminate process

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, rdx
cmp ecx, 2
jge 0x140001097
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rax + 8]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov r8d, 1
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010ee
lea rcx, str.Failed_to_open_file._n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edx, edx
mov qword [rsp + 0x70], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140001126
lea rcx, str.Failed_to_get_file_size._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, rsi
mov qword [rsp + 0x50], rdi
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x14000116b
lea rcx, str.Failed_to_allocate_memory._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400011be
lea rcx, str.Failed_to_read_file._n
call fcn.140001010
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.POWRPROF.dll_EnumPwrSchemes]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001220
add rsp, 0x58
ret

Function at 0x140001ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b2c
xor al, al
add rsp, 0x28
ret
Function at 0x140130000
Capabilities:
Access peb ldr_data
Get number of processors
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
xchg r9, r14
jb 0x140130adb
mov edx, 4
xchg r11, r9
mov qword [rsp + 0x40], r11
je 0x1401308e2
jne 0x1401308e2
cpuid
lea r9d, [rdx - 0x15f9]
ret
jmp 0x140130cd6
xchg rcx, r12
test rcx, rcx
je 0x1401308a2
rdtsc
shl rdx, 0x20
or rax, rdx
jmp 0x140130a6d
mov r14, qword [rcx + 0x10]
xchg r14, rax
mov rcx, qword [rax]
mov r9, qword [rcx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
test eax, eax
jne 0x1401313da
xchg rbp, rax
jmp 0x140130c84
cmp r10, rcx
jb 0x140130cb2
xchg r11, rbx
mov rax, rbx
xchg rbx, r11
mul r8
jmp 0x140130c4d
imul rcx, rcx, 0x64
sub r8, rcx
cmp r8, 0x4b
jmp 0x14013089c
xchg r9, r8
mov r9, rax
xchg r9, r8
jmp 0x140130a4c
mov byte [r9], al
xchg rcx, rsi
mov rsi, qword [rbp + 0x120]
xchg rcx, rsi
add r10, 0x1000
add rcx, qword [rbp + 0x118]
jmp 0x1401309d1
jb 0x140130b7f
movzx eax, byte [r9]
sub al, 0x8c
add al, 2
add al, dl
jmp 0x140130ad8
shr rcx, 1
add rcx, rdx
shr rcx, 5
shr rcx, 1
jmp 0x140130a5d
je 0x140130b3e
nop dword [rax]
movzx eax, byte [r9]
test al, al
je 0x140130b99
movzx eax, byte [r9]
inc al
jmp 0x140130b96
mov byte [r9], al
inc ecx
movsxd rax, ecx
cmp rax, rdx
jmp 0x140130b38
Function at 0x14013439d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rbp + 9], 0xf6f6f6f6
mov dword [rbp + 0x3d], 0x2a797e2a
jl 0x14013440e
jnp 0x140134420
mov dword [rbp + 5], 0xf6f6f6f6
mov dword [rbp + 0x39], 0x6e6f7c73
je 0x1401343c9
jne 0x1401343c9
lea ebp, [rbp - 0x876b]
call rcx
popfq
or ebp, 0x59b8d834
mov ebp, 0xbe8e13f1
movabs rbx, 0x6f2cc1fffffe37e9
lea r14d, [rdx - 0x2869]
and r15d, 0x4cc70952
call rax
call 0x140134a5d
jmp 0x140134205
Function at 0x140002610
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400026e3
cmp byte [rcx + 0x71], 0
je 0x1400026e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400026df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400026a4
sub eax, 1
je 0x1400026a8
cmp eax, 2
jne 0x1400026df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004520
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400026d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400026df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000268c
xor al, al
jmp 0x14000268c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004520
add rsp, 0x60
pop rbx
ret
Function at 0x140002ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140002f0d
xor eax, eax
jmp 0x140003076
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140002f4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140002f4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14000306e
cmp qword [rdi + 0x80], 0
je 0x140003069
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140002f87
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140002fb2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000306e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003021
sub eax, 1
je 0x140003021
cmp eax, 2
jne 0x140003069
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000306e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000304f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140003069
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000306e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004520
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400037f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140003821
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14000383f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140003889
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140003901
mov rcx, rbp
call fcn.140002720
cmp rbx, 0xfff
jbe 0x1400038e1
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140003922
cmp rbx, rax
ja 0x1400038b0
test rdi, rdi
je 0x140003901
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x140003904
Function at 0x140003930
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140003958
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400039cc
test rax, rax
jle 0x1400039ac
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400039cc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400039cc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x140004e5c
Capabilities:
Parse pe header

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

Function at 0x141612058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416121df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141612089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14161206f
add dl, dl
jne 0x141612096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416120f6
xor eax, eax
add dl, dl
jne 0x1416120a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416121ad
add dl, dl
jne 0x1416120b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416120c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416120d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416120dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416120ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14161207e
mov eax, 1
add dl, dl
jne 0x141612106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141612113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416120fb
sub eax, ebx
mov ebx, 1
jne 0x14161214c
mov ecx, 1
add dl, dl
jne 0x14161212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14161213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141612123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14161207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141612168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141612175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14161215d
cmp eax, 0x7d00
jae 0x14161219b
cmp eax, 0x500
jb 0x141612196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14161207e
cmp eax, 0x7f
ja 0x14161219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14161207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416121d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14161207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010d0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
lea r8, [rdx + 2]
mov rbx, rdx
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul r8
mov rax, 0xffffffffffffffff
mov rsi, rdx
shr rsi, 1
shl rsi, 2
mov rcx, rsi
add rcx, 1
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140001228
xor eax, eax
test rbx, rbx
je 0x1400011df
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r10, r14
cmp rax, rbx
jae 0x14000117a
movzx r8d, byte [rax + rdi]
lea rcx, [rax + rdi]
inc rax
cmp rax, rbx
jae 0x14000117d
movzx r9d, byte [rax + rdi]
lea rcx, [rax + rdi]
inc rax
mov rdx, rax
cmp rax, rbx
jae 0x140001180
movzx ecx, byte [rdx + rdi]
inc rax
jmp 0x140001182
xor r8d, r8d
xor r9d, r9d
xor ecx, ecx
shl r8, 8
add r8, r9
shl r8, 8
add r8, rcx
mov rcx, r8
shr rcx, 0x12
movzx ecx, byte [rcx + r11]
mov byte [r10], cl
mov rcx, r8
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r11]
mov byte [r10 + 1], cl
mov rcx, r8
shr rcx, 6
and r8d, 0x3f
and ecx, 0x3f
movzx ecx, byte [rcx + r11]
mov byte [r10 + 2], cl
movzx ecx, byte [r8 + r11]
mov byte [r10 + 3], cl
add r10, 4
cmp rax, rbx
jb 0x14000114c
mov rax, rbp
mul rbx
mov rax, rbp
shr rdx, 1
inc rdx
lea r9, [rdx + rdx*2]
sub r9, rbx
mul r9
shr rdx, 1
lea rax, [rdx + rdx*2]
sub r9, rax
je 0x140001220
lea rcx, [rsi - 1]
mov r8, r9
add rcx, r14
mov dl, 0x3d
sub rcx, r9
inc rcx
call sub.VCRUNTIME140.dll_memset
nop dword [rax + rax]
mov byte [r14 + rsi], 0
mov rax, r14
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140001650
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x1038
call fcn.140002d50
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r10, rcx
lea rcx, [rsp + 0x20]
sub rcx, rdx
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001680
lea rax, [rsp + 0x20]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140001696
movzx ecx, word [0x1400033e8]
mov r8, 0xffffffffffffffff
mov word [rax], cx
movzx ecx, byte [0x1400033ea]
mov byte [rax + 2], cl
lea rax, [rsp + 0x20]
inc r8
cmp byte [rax + r8], 0
jne 0x1400016c0
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rcx, r10
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140001e20
add rsp, 0x1038
ret
Function at 0x140002804
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret