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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004056c0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004056d0]
mov dword [rax], 1
mov rax, qword [0x004056e0]
mov dword [rax], 1
mov rax, qword [0x004056b0]
mov dword [rax], 1
mov rax, qword [0x004055a0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004056a0]
mov dword [0x0040800c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00405660]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00405550]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x4020d4
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401f6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401ff9
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401f50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402109
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4020ec
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401ff2
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402074
add dword [0x00408624], 1
cmp edi, 8
jae 0x402030
test dil, 4
jne 0x4020c0
test edi, edi
je 0x40201c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4020db
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40201c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x402060
jmp 0x40201c
add rsi, qword [0x00408628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401ff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40201c
xor esi, esi
jmp 0x401f77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40201c
mov rax, qword [0x00408628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x402860
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4028b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4028ab
test rsi, rsi
je 0x4028ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402890
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402af0
Capabilities:
Parse pe header

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

Function at 0x402b10
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 0x402b51
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402b48
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402b53
add rax, 0x28
cmp rax, r9
jne 0x402b34
xor eax, eax
ret

Function at 0x402bf0
Capabilities:
Enumerate pe sections

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

Function at 0x402d60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004055a0]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x402d80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402d78
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402ddd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402dd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402de4
add rax, 0x28
cmp rax, r9
jne 0x402dc0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402e00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004055a0]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x402e6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402e6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402e6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402e6e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402e65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402e75
add rcx, 0x28
cmp rcx, rax
jne 0x402e50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402e88
jmp 0x402e6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402e96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402e6e
test r9d, r9d
jg 0x402e80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x4030e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140011390
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, byte [0x14003f352]
mov ebx, r9d
movzx r9d, cl
test al, al
je 0x1400113b0
xor al, al
add rsp, 0x30
pop rbx
ret
movzx ecx, r8w
add ecx, 8
movzx r8d, r8w
mov eax, ecx
mov byte [0x140069ae0], cl
shr ecx, 0x10
mov byte [0x140069ae2], cl
lea rcx, [0x140069ae8]
shr eax, 8
mov byte [0x14003f352], 1
mov byte [0x140069ae1], al
mov byte [0x140069ae3], r9b
mov dword [0x140069ae4], ebx
call fcn.1400276a0
xor eax, eax
lea r8, [0x140010510]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140013e10
Capabilities:
Parse pe header

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

Function at 0x14001e088
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001de84
Function at 0x140021ab8
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 0x140021ae8
xor eax, eax
jmp 0x140021bab
mov rbp, rbx
cmp word [rax], si
je 0x140021b0d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021af4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021af0
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.1400219d8
movsxd r14, eax
test eax, eax
jne 0x140021b4b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021ae1
mov rcx, r14
call fcn.1400222d8
mov rdi, rax
test rax, rax
jne 0x140021b64
xor ecx, ecx
call fcn.14001f870
jmp 0x140021b40
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.1400219d8
test eax, eax
jne 0x140021b95
mov rcx, rdi
call fcn.14001f870
jmp 0x140021b9f
xor ecx, ecx
call fcn.14001f870
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 0x140026d70
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, r8
mov rdi, rdx
xorps xmm0, xmm0
lea rcx, [rbp - 0x40]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
lea rdx, str.powershell_Compress_Archive
mov r8d, 0x1c
call fcn.140001228
lea r14, [rbp - 0x60]
lea r8, [rbp - 0x18]
mov rcx, rdi
mov rdx, r14
call fcn.1400015ec
mov r8, qword [rbp - 0x50]
cmp qword [rbp - 0x48], 0x10
jb 0x1400010f3
mov r14, qword [rbp - 0x60]
lea rbx, [rbp - 0x40]
mov rcx, rbx
mov rdx, r14
call fcn.140001452
lea rdx, [0x1400047f9]
mov r8d, 1
mov rcx, rax
call fcn.140001452
mov r14, rax
lea r15, [rbp - 0x18]
lea r8, [rbp + 8]
mov rcx, rsi
mov rdx, r15
call fcn.1400015ec
mov r8, qword [rbp - 8]
cmp qword [rbp], 0x10
jb 0x14000113c
mov r15, qword [rbp - 0x18]
mov rcx, r14
mov rdx, r15
call fcn.140001452
lea rdx, str.__Force
mov r8d, 7
mov rcx, rax
call fcn.140001452
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140001172
mov rcx, qword [rbp - 0x18]
inc rdx
call fcn.1400015b6
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140001188
mov rcx, qword [rbp - 0x60]
inc rdx
call fcn.1400015b6
cmp qword [rbp - 0x28], 0x10
jb 0x140001193
mov rbx, qword [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1400011b2
mov rcx, qword [rbp - 0x40]
inc rdx
call fcn.1400015b6
mov rcx, rdi
call fcn.140001d28
mov rcx, rsi
call fcn.140001d28
nop
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret

Function at 0x1400022d4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000230e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140002313
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000235c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400044b0]
cmp byte [rcx + rax], 0
je 0x14000235c
dec r8
sub rdx, 1
jne 0x140002342
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140002b7c
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140c271df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c27089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c2706f
add dl, dl
jne 0x140c27096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c270f6
xor eax, eax
add dl, dl
jne 0x140c270a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c271ad
add dl, dl
jne 0x140c270b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c270c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c270d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c270dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c270ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c2707e
mov eax, 1
add dl, dl
jne 0x140c27106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c27113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c270fb
sub eax, ebx
mov ebx, 1
jne 0x140c2714c
mov ecx, 1
add dl, dl
jne 0x140c2712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c2713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c27123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c2707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c27168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c27175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c2715d
cmp eax, 0x7d00
jae 0x140c2719b
cmp eax, 0x500
jb 0x140c27196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c2707e
cmp eax, 0x7f
ja 0x140c2719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c2707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c271d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c2707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001070
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x4a8
mov rax, qword [0x180004008]
xor rax, rsp
mov qword [rsp + 0x490], rax
cmp edx, 1
jne 0x1800011dc
lea rax, str.C:WindowsSystem32WindowsPowerShell_v1.0ModulesClipboard_User_ServiceClipboard_User_Service_57ffe2.ps1
mov edx, 0x168
movups xmm0, xmmword [rax]
lea rcx, [rsp + 0xe0]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
lea r9, [rsp + 0xe0]
movups xmm0, xmmword [rax - 0x60]
lea r8, str.powershell__ExecutionPolicy_Bypass__File___s_
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
mov rax, qword [rax + 0x50]
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm1
mov qword [rcx + 0x50], rax
lea rcx, [rsp + 0x1c0]
call fcn.180001010
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x1c0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800011dc
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180001210
add rsp, 0x4a8
ret
Function at 0x2fed03080
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x2fed030f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2fed0e074]
mov rbx, rcx
test esi, esi
jle 0x2fed03220
mov rax, qword [0x2fed0e078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2fed0313b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2fed031c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2fed03120
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2fed03242
mov rax, qword [0x2fed0e078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2fed0e078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2fed03227
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2fed031be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2fed031d0
add dword [0x2fed0e074], 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 [0x2fed0e078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2fed031be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x2fed03148
mov rax, qword [0x2fed0e078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2fed035c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2fed0e0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2fed0e080]
test rbx, rbx
je 0x2fed0361c
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 0x2fed03613
test rsi, rsi
je 0x2fed03613
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2fed035f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]