joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003370
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rax, qword [0x140005a90]
mov rdi, qword [rax]
mov qword [rsp + 0x98], rdi
xor edi, edi
lea rdi, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 6
mov qword [rsp + 0x58], rax
xor eax, eax
rep stosd dword [rdi], eax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov qword [rsp + 0x48], rax
je 0x140003534
mov rcx, qword [rsp + 0x58]
mov r9d, 0x18
mov rdx, rax
lea r8, [rsp + 0x80]
call sub.KERNEL32.dll_K32GetModuleInformation
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x30], rcx
mov edx, 0x80000000
mov r12, qword [rsp + 0x80]
mov dword [rsp + 0x28], r8d
lea rcx, str.C:WindowsSystem32_ntdll.dll
mov r8d, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
xor r10d, r10d
xor edx, edx
mov qword [rsp + 0x28], r9
mov r8d, 0x1000002
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
mov qword [rsp + 0x50], rax
je 0x140003534
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rax
mov edx, 4
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rbp, dword [r12 + 0x3c]
mov r14, rax
add rbp, r12
lea r15, [rbp + 0x18]
cmp r13w, word [rbp + 6]
jae 0x14000350d
movzx r10d, word [rbp + 0x14]
lea rdx, str..text
movzx eax, r13w
imul rax, rax, 0x28
add r10, r15
lea rbx, [r10 + rax]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140003505
mov ecx, dword [rbx + 0xc]
lea r9, [rsp + 0x7c]
xor eax, eax
mov r8d, 0x40
mov edx, dword [rbx + 8]
mov qword [rsp + 0x68], r9
mov dword [rsp + 0x7c], eax
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov r9, qword [rsp + 0x68]
lea rax, [r12 + rsi]
add rsi, r14
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov r8d, dword [rsp + 0x7c]
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
inc r13d
jmp 0x140003487
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call rsi
mov rcx, qword [rsp + 0x60]
call rsi
mov rcx, qword [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140005a90]
mov rdi, qword [rsp + 0x98]
sub rdi, qword [rax]
je 0x14000354e
call fcn.140002520
nop
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140003570
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
mov rsi, rcx
test rbx, rbx
je 0x1400035b3
cmp word [rbx + 0x48], 0
je 0x1400035b1
mov rcx, qword [rbx + 0x50]
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x1400035ac
mov rbx, qword [rbx + 0x20]
jmp 0x1400035b3
mov rbx, qword [rbx]
jmp 0x14000358a
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400035c0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor eax, eax
cmp word [rcx], 0x5a4d
mov rbx, rcx
mov rbp, rdx
jne 0x140003641
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140003641
mov edi, dword [rdx + 0x88]
xor esi, esi
add rdi, rcx
mov r12d, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x14]
add r12, rcx
cmp esi, r13d
jae 0x14000363f
mov edx, dword [r12 + rsi*4]
mov rcx, rbp
add rdx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov edx, eax
lea rax, [rsi + 1]
test edx, edx
jne 0x14000363a
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx edx, word [rsi + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
jmp 0x140003641
mov rsi, rax
jmp 0x140003600
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b0750]
mov dword [rax], 1
mov rax, qword [0x1400b0760]
mov dword [rax], 1
mov rax, qword [0x1400b0770]
mov dword [rax], 1
mov rax, qword [0x1400b06e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140006140
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.140091190
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.140023c10
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400061a1
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x1400061b0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.140023c10
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x140006280
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.14001f4c0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14000633a
mov rdx, r14
mov rcx, rbx
call fcn.1400061b0
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x14000637c
sub qword [r14], 1
jne 0x140006301
mov rcx, r14
call fcn.1400061f0
sub qword [r13], 1
jne 0x140006310
mov rcx, r13
call fcn.1400061f0
sub qword [r12], 1
jne 0x14000632c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400061f0
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140023c10
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140006301
mov rcx, r15
call fcn.140006200
jmp 0x140006301
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x140086220
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c1109], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400862a8
lea rdx, [0x1400aeb5a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400863c0
mov rsi, qword [0x1400c0fc0]
jmp 0x140086265
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140086260
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.140073bf0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400c0fc0], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400c0fc0], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400c0fc0], rcx
test eax, eax
je 0x1400863a8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140086310
not eax
cmp r9d, eax
jne 0x140086428
mov byte [0x1400c1109], 1
jmp 0x14008623d
cmp byte [0x1400c1108], 0
jne 0x140086254
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400c1a68], rax
call rbx
mov qword [0x1400c1a60], rax
call rbx
mov qword [0x1400c1a58], rax
call rbx
mov qword [0x1400c1a50], rax
call rbx
mov qword [0x1400c1a48], rax
call rbx
mov qword [0x1400c1a40], rax
call rbx
mov qword [0x1400c1a38], rax
call rbx
mov byte [0x1400c1108], 1
mov qword [0x1400c1a30], rax
jmp 0x140086254
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14008fe90
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.1400a11f0
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.1400a11f0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140090b42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c1f28]
test eax, eax
je 0x140090bda
lea rax, [0x1400c1f00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c1f30]
mov qword [rbp - 8], rax
jmp 0x140090bbe
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 0x140090bb2
cmp qword [rbp - 0x10], 0
je 0x140090bb2
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 0x140090b78
lea rax, [0x1400c1f00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140090bdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140090ce0
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 0x140090d08
mov eax, 0
jmp 0x140090d56
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 0x140090d31
mov eax, 0
jmp 0x140090d56
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 0x140090d51
mov eax, 0
jmp 0x140090d56
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140090d5c
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 0x140090dda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140090dd1
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 0x140090dd1
mov rax, qword [rbp - 8]
jmp 0x140090def
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 0x140090da4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400019c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov r9, qword [rcx + 0x30]
lea rbx, str.cw
movzx r10d, byte [rdx]
mov r11, rcx
movzx eax, r10b
movzx r8d, byte [r9 + 0x1d]
xor al, byte [r8 + rbx]
xor byte [r9], al
mov r9b, 4
mov r8, qword [rcx + 0x30]
movzx eax, byte [r8 + 0x1e]
movzx eax, byte [rax + rbx]
xor byte [r8 + 1], al
mov r8d, 5
mov rcx, qword [rcx + 0x30]
movzx eax, byte [rcx + 0x1f]
movzx eax, byte [rax + rbx]
xor byte [rcx + 2], al
mov rcx, qword [r11 + 0x30]
movzx eax, byte [rcx + 0x1c]
movzx eax, byte [rax + rbx]
xor byte [rcx + 3], al
movzx eax, r10b
shr al, 7
add r10b, r10b
movzx eax, al
imul ecx, eax, 0x1b
xor cl, r10b
mov byte [rdx], cl
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r11 + 0x30]
movzx eax, r9b
add r9b, 4
lea rdx, [rcx + r8]
movzx ecx, byte [rax + rcx - 4]
xor byte [rdx - 1], cl
mov rax, qword [r11 + 0x30]
lea rcx, [rax + r8]
movzx eax, byte [rax + r8 - 4]
xor byte [rcx], al
mov rax, qword [r11 + 0x30]
lea rcx, [rax + r8]
movzx eax, byte [rax + r8 - 3]
xor byte [rcx + 1], al
mov rax, qword [r11 + 0x30]
lea rcx, [rax + r8]
movzx eax, byte [rax + r8 - 2]
xor byte [rcx + 2], al
lea r8, [r8 + 4]
cmp r9b, 0x10
jb 0x140001a40
mov rcx, qword [r11 + 0x30]
mov r9b, 0x14
movzx eax, byte [rcx + 0xc]
movzx eax, byte [rax + rbx]
xor byte [rcx + 0x10], al
mov rcx, qword [r11 + 0x30]
movzx eax, byte [rcx + 0xd]
movzx eax, byte [rax + rbx]
xor byte [rcx + 0x11], al
mov rcx, qword [r11 + 0x30]
movzx eax, byte [rcx + 0xe]
movzx eax, byte [rax + rbx]
xor byte [rcx + 0x12], al
mov rcx, qword [r11 + 0x30]
movzx eax, byte [rcx + 0xf]
movzx eax, byte [rax + rbx]
xor byte [rcx + 0x13], al
mov eax, 0x15
nop dword [rax + rax]
mov rdx, qword [r11 + 0x30]
movzx ecx, r9b
add r9b, 4
lea r8, [rdx + rax]
movzx edx, byte [rcx + rdx - 4]
xor byte [r8 - 1], dl
mov rcx, qword [r11 + 0x30]
lea rdx, [rcx + rax]
movzx ecx, byte [rcx + rax - 4]
xor byte [rdx], cl
mov rcx, qword [r11 + 0x30]
lea rdx, [rax + rcx]
movzx ecx, byte [rax + rcx - 3]
xor byte [rdx + 1], cl
mov rcx, qword [r11 + 0x30]
lea rdx, [rcx + rax]
movzx ecx, byte [rcx + rax - 2]
xor byte [rdx + 2], cl
lea rax, [rax + 4]
cmp r9b, 0x20
jb 0x140001ae0
mov rbx, qword [rsp + 8]
ret
Function at 0x140001b40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
xor al, al
lea r11, [rdx + 3]
mov byte [rsp + 0x40], al
mov qword [rsp + 0x50], r11
nop dword [rax]
movzx r12d, byte [r11 - 3]
movzx r15d, byte [r11 - 1]
movzx ebx, byte [r11]
movzx r14d, al
movzx ebp, bl
add r14, rdx
xor bpl, r15b
movzx r13d, bpl
movzx esi, byte [r14 + 1]
xor r13b, sil
xor r13b, r12b
movzx eax, r13b
add al, al
movzx ecx, al
movzx eax, cl
xor al, 0x1b
movzx r11d, al
test r13b, r13b
cmovns r11d, ecx
movzx r8d, r11b
xor r8b, r15b
xor r8b, r12b
movzx eax, r8b
add al, al
movzx edx, al
movzx eax, dl
xor al, 0x1b
movzx ecx, al
test r8b, r8b
movzx r8d, sil
cmovns ecx, edx
xor r11b, bl
movzx r10d, cl
xor r11b, sil
movzx eax, r11b
add al, al
movzx edx, al
movzx eax, dl
lea r9d, [r10 + r10]
xor al, 0x1b
movzx ecx, al
test r11b, r11b
cmovns ecx, edx
xor r8b, r12b
movzx ebx, cl
movzx eax, r8b
add al, al
movzx edx, al
movzx eax, r9b
xor al, 0x1b
movzx edi, al
lea r11d, [rbx + rbx]
movzx eax, r9b
test r10b, r10b
cmovns edi, eax
movzx eax, dl
xor al, 0x1b
movzx ecx, al
test r8b, r8b
mov rax, qword [rsp + 0x50]
movzx r8d, r15b
cmovns ecx, edx
xor r8b, sil
xor cl, dil
xor cl, r13b
xor cl, r12b
mov byte [rax - 3], cl
movzx eax, r8b
add al, al
movzx edx, al
movzx eax, r11b
xor al, 0x1b
movzx r9d, al
test bl, bl
movzx eax, r11b
cmovns r9d, eax
movzx eax, dl
xor al, 0x1b
test r8b, r8b
movzx ecx, al
cmovns ecx, edx
mov r11, qword [rsp + 0x50]
xor cl, sil
xor cl, r9b
movzx eax, bpl
add al, al
xor cl, r13b
mov byte [r14 + 1], cl
movzx r8d, byte [r11]
movzx ecx, al
movzx eax, cl
xor al, 0x1b
movzx edx, al
test bpl, bpl
cmovns edx, ecx
xor r8b, r12b
xor dl, dil
movzx eax, r8b
xor dl, r13b
add al, al
xor dl, r15b
movzx ecx, al
mov byte [r11 - 1], dl
movzx eax, cl
xor al, 0x1b
movzx edx, al
test r8b, r8b
movzx eax, byte [rsp + 0x40]
cmovns edx, ecx
add al, 4
xor dl, r9b
mov byte [rsp + 0x40], al
xor dl, r13b
xor byte [r11], dl
add r11, 4
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x50], r11
cmp al, 0x10
jb 0x140001b70
mov rbx, qword [rsp + 0x58]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400031f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r12
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov edx, dword [rcx + 0x30]
mov r8d, 0x3000
xor ecx, ecx
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14000323e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 4
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rsi
ret
test byte [rbx + 0x70], 8
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r15
je 0x140003283
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x80000fff
jge 0x140003278
dec eax
or eax, 0xfffff000
inc eax
add eax, 0x10f
and eax, 0xfffffff0
mov dword [rbx + 0x38], eax
mov eax, dword [rbx + 0x38]
lea rcx, [0x140003f70]
sub eax, ecx
mov dword [rsp + 0x20], 0x40
add eax, dword [rbx + 0x30]
lea rcx, [0x140004270]
add ecx, 0x28
lea rbp, [rbx + 0x30]
add eax, ecx
lea r15, [rbx + 8]
test byte [rbx + 0x70], 8
mov r9d, 0x3000
mov rcx, qword [rbx + 0x68]
mov dword [rbx + 0x34], eax
mov r8d, eax
je 0x140003300
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbx + 0x40], rax
mov rdx, rax
test rax, rax
jne 0x140003362
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
xor edx, edx
mov rcx, qword [rbx + 8]
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 3
jmp 0x140003380
mov rdx, qword [rbx + 0x20]
mov rdx, qword [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbx + 0x40], rax
mov rdx, rax
test rax, rax
jne 0x140003362
mov r8d, dword [rbx + 0x34]
mov r9d, 0x3000
mov rcx, qword [rbx + 0x68]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbx + 0x40], rax
mov rdx, rax
test rax, rax
jne 0x140003362
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
xor edx, edx
mov rcx, qword [r15]
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 3
jmp 0x140003380
mov ecx, dword [rbx + 0x38]
mov eax, dword [rbp]
add rcx, rdx
add rax, rcx
mov qword [rbx + 0x48], rcx
mov qword [rbx + 0x58], rax
add rax, 0x28
mov qword [rbx + 0x50], rax
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rsi
ret
Function at 0x1400033a0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov dword [rsp + 0x20], 0x438
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003461
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x14000343a
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003461
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
je 0x140003410
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140004540
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rbx, rbx
je 0x14000343a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
mov edi, eax
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400034a6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
mov edi, eax
test eax, eax
jne 0x140003480
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000343a
mov rax, qword [rsp + 0x48]
jmp 0x14000343c
Function at 0x140004ec0
Capabilities:
Parse pe header

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