joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a250
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x1400111c0]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x11001e
mov dword [rbp - 0x1c], 0xf000e
mov dword [rbp - 0x18], 0x700038
mov dword [rbp - 0x14], 0x7b0041
mov dword [rbp - 0x10], 0x3b000d
mov dword [rbp - 0xc], 0x78003c
call fcn.140002f20
mov rcx, rax
call rbx
mov rbx, qword [0x1400111c0]
lea rcx, [rbp - 0x20]
mov qword [0x1400111a0], rax
mov dword [rbp - 0x20], 0x10001a
mov dword [rbp - 0x1c], 0xa0005
mov dword [rbp - 0x18], 0x26003a
mov dword [rbp - 0x14], 0x7b0007
mov dword [rbp - 0x10], 0x3b000d
mov dword [rbp - 0xc], 0x78003c
call fcn.140002f20
mov rcx, rax
call rbx
movdqa xmm0, xmmword [0x1400100d0]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140011130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400111b0], rax
mov word [rbp - 0x10], 0x1a3a
mov byte [rbp - 0xe], 0x57
call fcn.140004f40
mov rcx, qword [0x1400111a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140011130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0xf0e111e
mov dword [rbp - 0x1c], 0x300b0638
mov dword [rbp - 0x18], 0x1d24220a
mov word [rbp - 0x14], 0x5305
call fcn.140001180
mov rcx, qword [0x1400111a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140011130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x61f1704
mov dword [rbp - 0x1c], 0x21162d26
mov dword [rbp - 0x18], 0x16352726
mov word [rbp - 0x14], 0x5313
call fcn.140001180
mov rcx, qword [0x1400111b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140010050]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140011130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400110e8], rax
mov byte [rbp - 0x10], 0x4c
call fcn.140001590
mov rcx, qword [0x1400111b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140010130]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140011130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400110f0], rax
mov dword [rbp - 0x10], 0x4a322128
call fcn.140002ad0
mov rcx, qword [0x1400111b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140010100]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140011130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400110e0], rax
mov byte [rbp - 0x10], 0x4c
call fcn.140001590
mov rcx, qword [0x1400111b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140010080]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140011130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400110d8], rax
mov dword [rbp - 0x10], 0xb392225
mov byte [rbp - 0xc], 0x46
call fcn.140003870
mov rcx, qword [0x1400111b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140010120]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140011130]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x10], 0xc22
mov byte [rbp - 0xe], 0x57
call fcn.140004f40
mov rcx, qword [0x1400111b0]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp rax
Function at 0x14000c0e0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000c142
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.140009d70
test al, al
jne 0x14000c154
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000c110
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x50
mov dword [rbp - 0x20], 0x3c0006
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x2d0039
mov dword [rbp - 0x18], 0xf0011
mov dword [rbp - 0x14], 0x140031
mov dword [rbp - 0x10], 0x12003a
call fcn.140005b80
mov rcx, rax
call 0x14000c0e0
mov qword [0x1400111b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x69
mov dword [rbp - 0x20], 0x3c0006
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2d0039
mov dword [rbp - 0x18], 0xf0011
mov dword [rbp - 0x14], 0x670040
call fcn.140002670
mov rcx, rax
call 0x14000c0e0
lea rcx, [rbp - 0x20]
mov qword [0x1400111a8], rax
mov dword [rbp - 0x20], 0xd0023
mov dword [rbp - 0x1c], 0xf000f
mov dword [rbp - 0x18], 0x430038
call fcn.1400059c0
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000c0e0
Function at 0x14000de90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000c142
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.140009d70
test al, al
jne 0x14000c154
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000c110
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x50
mov dword [rbp - 0x20], 0x3c0006
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x2d0039
mov dword [rbp - 0x18], 0xf0011
mov dword [rbp - 0x14], 0x140031
mov dword [rbp - 0x10], 0x12003a
call fcn.140005b80
mov rcx, rax
call 0x14000c0e0
mov qword [0x1400111b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x69
mov dword [rbp - 0x20], 0x3c0006
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2d0039
mov dword [rbp - 0x18], 0xf0011
mov dword [rbp - 0x14], 0x670040
call fcn.140002670
mov rcx, rax
call 0x14000c0e0
lea rcx, [rbp - 0x20]
mov qword [0x1400111a8], rax
mov dword [rbp - 0x20], 0xd0023
mov dword [rbp - 0x1c], 0xf000f
mov dword [rbp - 0x18], 0x430038
call fcn.1400059c0
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000c0e0
Function at 0x14000fc00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r10, qword [rsp + 0x28]
movabs rax, 0x9e3779b185ebca87
mov r11, rdx
mov rsi, rdx
imul r11, rax
shr rsi, 4
mov rbx, r8
xor r9d, r9d
mov rbp, rdx
mov rdi, rcx
nop dword [rax]
mov eax, r9d
inc r9d
shl eax, 4
mov ecx, eax
mov r8, qword [rax + rdi]
mov rax, qword [rax + rbx + 8]
mov rdx, qword [rcx + rbx]
sub rax, r10
xor rax, qword [rcx + rdi + 8]
lea rcx, [rdx + r10]
xor rcx, r8
mul rcx
xor rax, rdx
add r11, rax
cmp r9d, 8
jb 0x14000fc40
mov rax, qword [rbx + 0x7f]
mov r8d, 8
mov rcx, qword [rbx + 0x77]
sub rax, r10
xor rax, qword [rdi + rbp - 8]
add rcx, r10
xor rcx, qword [rdi + rbp - 0x10]
movabs rbp, 0x165667919e3779f9
mul rcx
mov rcx, r11
shr rcx, 0x25
mov r9, rax
xor rcx, r11
xor r9, rdx
imul rcx, rbp
mov r11, rcx
shr r11, 0x20
xor r11, rcx
cmp esi, r8d
jbe 0x14000fd07
nop dword [rax]
nop dword [rax + rax]
mov eax, r8d
inc r8d
shl eax, 4
mov edx, eax
add eax, 0xffffff80
mov ecx, eax
mov rax, qword [rax + rbx + 0xb]
mov rcx, qword [rcx + rbx + 3]
sub rax, r10
xor rax, qword [rdx + rdi + 8]
add rcx, r10
xor rcx, qword [rdx + rdi]
mul rcx
xor rax, rdx
add r9, rax
cmp r8d, esi
jb 0x14000fcd0
mov rbx, qword [rsp + 8]
lea rax, [r9 + r11]
mov rsi, qword [rsp + 0x18]
mov rcx, rax
mov rdi, qword [rsp + 0x20]
shr rcx, 0x25
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x10]
mov rax, rcx
shr rax, 0x20
xor rax, rcx
ret

Function at 0x140019dd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1404b3028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140019ea3
cmp byte [rcx + 0x71], 0
je 0x140019ea3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140019e9f
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 0x140019e64
sub eax, 1
je 0x140019e68
cmp eax, 2
jne 0x140019e9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003b100
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140019e96
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 0x140019e9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140019e4c
xor al, al
jmp 0x140019e4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003b100
add rsp, 0x60
pop rbx
ret
Function at 0x14001c820
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1404b3028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14001c84d
xor eax, eax
jmp 0x14001c9b6
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 0x14001c88d
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 0x14001c88d
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 0x14001c9ae
cmp qword [rdi + 0x80], 0
je 0x14001c9a9
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 0x14001c8c7
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 0x14001c8f2
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 0x14001c9ae
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 0x14001c961
sub eax, 1
je 0x14001c961
cmp eax, 2
jne 0x14001c9a9
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 0x14001c9ae
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14001c98f
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 0x14001c9a9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14001c9ae
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003b100
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001ff00
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 0x14001ff31
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 0x14001ff4f
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 0x14001ff99
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 0x140020011
mov rcx, rbp
call fcn.14001a7b0
cmp rbx, 0xfff
jbe 0x14001fff1
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 0x140020032
cmp rbx, rax
ja 0x14001ffc0
test rdi, rdi
je 0x140020011
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 0x140020014
Function at 0x140020040
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 0x140020068
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 0x1400200dc
test rax, rax
jle 0x1400200bc
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 0x1400200dc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400200dc
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 0x140023ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1404b3028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x90]
mov rdi, rdx
test eax, eax
movd edx, xmm3
mov r11d, 6
mov rbp, r8
mov r10d, r11d
mov r14, rcx
cmovns r10d, eax
mov eax, edx
and eax, 0x7fffff
shr edx, 0x17
lea r9d, [rax + rax]
test edx, edx
jne 0x140023f50
neg eax
sbb ecx, ecx
and ecx, 0xffffff82
jmp 0x140023f53
lea ecx, [rdx - 0x7f]
mov eax, r9d
mov r15d, reloc.WLDAP32.dll_Ordinal_45
bts eax, 0x18
test edx, edx
cmovne r9d, eax
mov eax, ecx
cdq
mov esi, eax
mov eax, Ordinal_45
xor esi, edx
sub esi, edx
test ecx, ecx
cmovns r15d, eax
cmp esi, 0xa
jae 0x140023f84
lea edx, [rax - 0x27]
jmp 0x140023f8d
cmp esi, 0x64
sbb rdx, rdx
add rdx, r11
mov rcx, rbp
movsxd r8, r10d
sub rcx, rdi
cmp rcx, r8
jge 0x140023fab
mov qword [r14], rbp
mov dword [r14 + 8], 0x84
jmp 0x1400240f7
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x140023f9b
mov qword [rsp + 0x70], rbx
cmp r10d, r11d
jge 0x140023fed
lea r8d, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea eax, [r8 - 1]
or eax, r9d
movzx ecx, r11b
mov edx, 1
shl edx, cl
and edx, eax
and edx, r8d
add r9d, edx
mov eax, r9d
and r9d, 0xffffff
shr eax, 0x18
add al, 0x30
mov byte [rdi], al
inc rdi
test r10d, r10d
jle 0x140024074
mov byte [rdi], reloc.WLDAP32.dll_Ordinal_46
lea r11, [0x140315ab8]
mov eax, r9d
lea r8d, [r10 - 1]
shr rax, 0x14
mov ecx, reloc.WS2_32.dll_sendto
movzx eax, byte [rax + r11]
mov byte [rdi + 1], al
add rdi, 2
test r8d, r8d
je 0x140024074
mov edx, 0x100000
test ecx, ecx
je 0x14002405e
lea eax, [rdx - 1]
sub ecx, 4
and r9d, eax
ror edx, 4
mov eax, r9d
shr rax, cl
movzx eax, byte [rax + r11]
mov byte [rdi], al
inc rdi
sub r8d, 1
jne 0x140024036
jmp 0x140024074
movsxd rbx, r8d
mov edx, Ordinal_50
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
add rdi, rbx
mov byte [rdi], reloc.WS2_32.dll_WSASetLastError
lea r9, [rsp + 0x40]
mov byte [rdi + 1], r15b
add rdi, 2
nop dword [rax]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul esi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub sil, cl
add sil, 0x30
mov byte [r9], sil
mov esi, edx
test edx, edx
jne 0x140024090
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rdi
cmp rax, rbx
jge 0x1400240d5
mov dword [r14 + 8], 0x84
jmp 0x1400240ef
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rdi]
mov qword [r14], rbp
mov rbx, qword [rsp + 0x70]
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003b100
lea r11, [rsp + 0x50]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140024120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1404b3028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x90]
mov rsi, rdx
test eax, eax
movq rdx, xmm3
mov r9, rdx
mov r11d, reloc.WS2_32.dll_listen
mov r10d, r11d
movabs rbx, 0xfffffffffffff
cmovns r10d, eax
mov rbp, r8
and r9, rbx
shr rdx, 0x34
mov r14, rcx
test edx, edx
jne 0x140024193
mov rax, r9
neg rax
sbb ecx, ecx
and ecx, 0xfffffc02
jmp 0x140024199
lea ecx, [rdx - 0x3ff]
mov rax, r9
movabs r8, 0x10000000000000
or rax, r8
mov r15d, reloc.WLDAP32.dll_Ordinal_45
test edx, edx
cmovne r9, rax
mov eax, ecx
cdq
mov edi, eax
mov eax, Ordinal_45
xor edi, edx
sub edi, edx
test ecx, ecx
cmovns r15d, eax
cmp edi, 0xa
jae 0x1400241d3
lea edx, [rax - 0x27]
jmp 0x1400241ec
cmp edi, 0x64
jae 0x1400241df
mov edx, 5
jmp 0x1400241ec
cmp edi, 0x3e8
sbb rdx, rdx
add rdx, 7
mov rcx, rbp
movsxd r8, r10d
sub rcx, rsi
cmp rcx, r8
jl 0x14002432b
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x14002432b
cmp r10d, r11d
jge 0x140024241
lea r8, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea rax, [r8 - 1]
or rax, r9
movzx ecx, r11b
mov edx, 1
shl rdx, cl
and rdx, rax
and rdx, r8
add r9, rdx
mov rax, r9
and r9, rbx
shr rax, 0x34
add al, 0x30
mov byte [rsi], al
inc rsi
test r10d, r10d
jle 0x1400242d2
mov byte [rsi], reloc.WLDAP32.dll_Ordinal_46
lea r11, [0x140315ab8]
mov rax, r9
lea r8d, [r10 - 1]
shr rax, 0x30
mov ecx, Ordinal_50
movzx eax, byte [rax + r11]
mov byte [rsi + 1], al
add rsi, 2
test r8d, r8d
je 0x1400242d2
movabs rdx, 0x1000000000000
nop dword [rax]
test ecx, ecx
je 0x1400242bc
lea rax, [rdx - 1]
sub ecx, 4
and r9, rax
ror rdx, 4
mov rax, r9
shr rax, cl
mov eax, eax
movzx eax, byte [rax + r11]
mov byte [rsi], al
inc rsi
sub r8d, 1
jne 0x140024290
jmp 0x1400242d2
movsxd rbx, r8d
mov edx, Ordinal_50
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
add rsi, rbx
mov byte [rsi], reloc.WS2_32.dll_WSASetLastError
lea r9, [rsp + 0x40]
mov byte [rsi + 1], r15b
add rsi, 2
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x1400242f0
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rsi
cmp rax, rbx
jge 0x140024335
mov dword [r14 + 8], 0x84
jmp 0x14002434f
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rsi]
mov qword [r14], rbp
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003b100
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140036010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rbx, rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea ecx, [rdi + 0x20]
call fcn.14003b21c
test rax, rax
je 0x140036050
mov dword [rax], 1
mov dword [rax + 4], 2
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdi
mov dword [rax + 0x18], edi
jmp 0x140036053
mov rax, rdi
mov qword [rsp + 0x60], rax
mov ecx, 8
call fcn.14003b21c
test rax, rax
je 0x14003606c
mov qword [rax], rbx
jmp 0x14003606f
mov rax, rdi
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400276a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140036121
cmp dword [rsp + 0x58], 0
je 0x140036130
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x140036130
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140036105
mov eax, 0xfffffffe
lock xadd dword [rcx + 4], eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140036105
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140036105
lea edx, [rax + 0x1f]
call fcn.14003b258
cmp dword [rsp + 0x58], 0
je 0x140036113
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov dword [rsp + 0x58], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3