joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005bcf0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.18005bae0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18005bdb3
mov dword [rsp + 0x20], 0
jmp 0x18005bd50
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18005bdb3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005bdb1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18005b8c0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18005bd46
add rsp, 0x30
pop rdi
ret

Function at 0x18005bdc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18005be50
mov dword [rsp + 0x20], 0
jmp 0x18005bde9
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18005be39
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005be37
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18005bddf
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18007c5f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x18005be60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18007d450]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18005bee6
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005bf0f
mov eax, 0xa
jmp 0x18005c049
cmp dword [rsp + 0x88], 0
je 0x18005bf7d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18005bf7b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x18005bfc9
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18005bfad
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18005bfc9
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180064ff0]
call fcn.18005f880
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x18005d500
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18005d55a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18005d55a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18005d55a
xor eax, eax
jmp 0x18005d5a1
mov dword [rsp], 1
jmp 0x18005d56b
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18005d59c
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18005d59a
xor eax, eax
jmp 0x18005d5a1
jmp 0x18005d563
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x18005e8a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18005e92c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180065390]
cmp byte [rcx + rax], 0
je 0x18005e92c
dec r8
sub rdx, 1
jne 0x18005e912
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140005904
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
call fcn.140016b90
mov dword [0x140244000], 0
mov ecx, 0x2dc
call fcn.1400bb050
mov rbx, rax
lea rdi, [rsp + 0x20]
lea rsi, [0x140217200]
mov ecx, 0x32
rep movsq qword [rdi], qword [rsi]
movzx eax, word [rsi]
mov word [rdi], ax
lea rcx, [rsp + 0x20]
mov edx, 0
movsxd rax, edx
imul rax, rax, 0x94f2095
sar rax, 0x21
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x37
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x36]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 0xc9
jne 0x14000594f
lea rbp, [rsp + 0x20]
mov r8, rbp
mov edx, 0x16e
mov rcx, rbx
call sub.msvcrt.dll_swprintf_s
lea rcx, [0x140243040]
call fcn.1400240d0
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax]
mov r8d, 0
mov edx, 0
mov ecx, 0
call qword [rax]
mov r9d, eax
lea rsi, [0x140217060]
mov ecx, 0x32
mov rdi, rbp
rep movsq qword [rdi], qword [rsi]
mov eax, dword [rsi]
mov dword [rdi], eax
movzx eax, word [0x1402171f4]
mov word [rdi + 4], ax
mov r8, rbp
mov edx, 0
movsxd rax, edx
imul rax, rax, 0x94f2095
sar rax, 0x21
mov ecx, edx
sar ecx, 0x1f
sub eax, ecx
imul eax, eax, 0x37
mov ecx, edx
sub ecx, eax
lea eax, [rcx + 0x36]
xor word [r8], ax
add edx, 1
add r8, 2
cmp edx, 0xcb
jne 0x1400059f7
lea r8, [rsp + 0x20]
mov edx, 0x16e
mov rcx, rbx
call sub.msvcrt.dll_swprintf_s
mov rcx, rbx
call fcn.1400bb020
mov eax, dword [0x140244000]
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140005a55
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2b0
mov rbx, rcx
mov rdi, rdx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 0x410
call fcn.1400bb050
mov rsi, rax
mov word [rsp + 0x2a0], 0x13
mov word [rsp + 0x2a2], 0x40
mov word [rsp + 0x2a4], 0x4b
mov word [rsp + 0x2a6], 0x65
mov word [rsp + 0x2a8], 0x10
mov word [rsp + 0x2aa], 0x15
mov word [rsp + 0x2ac], 0x16
mov word [rsp + 0x2ae], 0x3d
lea rcx, [rsp + 0x2a0]
mov edx, 0
movsxd rax, edx
imul rax, rax, 0x94f2095
sar rax, 0x21
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x37
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x36]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 8
jne 0x140005aed
mov r9, rdi
lea r8, [rsp + 0x2a0]
mov edx, 0x208
mov rcx, rsi
call sub.msvcrt.dll_swprintf_s
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov rax, qword [0x14021d240]
call qword [rax + 0x180]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140005ca4
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x7c]
mov rbp, qword [0x14021d240]
jmp 0x140005c55
mov qword [rsp + 0x30], r12
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rdi, [rax + rax]
mov r14, rdi
sar r14, 1
mov qword [rsp + 0x28], r14
cmp rdi, 0xe
ja 0x140005be7
mov rcx, qword [rsp + 0x30]
cmp r14, 1
jne 0x140005c0d
movzx eax, word [rsp + 0x7c]
mov word [rcx], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax*2], 0
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
je 0x140005c3f
lea rax, [rcx + 0x10]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x30]
mov r9d, 0
mov rax, qword [rsp + 0x38]
lea r8, [rdx + rax*2]
call fcn.1400a9f10
jmp 0x140005c1f
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r8d, 0
call fcn.1400abd00
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
jmp 0x140005b93
test r14, r14
je 0x140005ba6
mov r8, rdi
mov rdx, r13
call sub.msvcrt.dll_memcpy
jmp 0x140005ba6
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x140005c60
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call fcn.1400bb040
jmp 0x140005c60
lea r8, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.1400a4f00
jmp 0x140005c24
test eax, eax
je 0x140005c70
test byte [rsp + 0x50], 0x10
je 0x140005b71
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rbp + 0x188]
jmp 0x140005c51
mov rcx, rsi
mov rax, qword [0x14021d240]
call qword [rax + 0x190]
jmp 0x140005ca4
mov rax, rbx
add rsp, 0x2b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140006f96
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r10d, dword [rcx + rax + 0x88]
add r10, rcx
mov r9d, dword [r10 + 0x20]
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x140007013
mov r8d, r8d
mov edx, 0
add r9, rcx
jmp 0x140006fc8
add rdx, 1
cmp rdx, r8
je 0x14000701a
mov eax, dword [r9 + rdx*4]
add rax, rcx
cmp dword [rax], 0x50746547
jne 0x140006fbf
cmp dword [rax + 4], 0x41636f72
jne 0x140006fbf
cmp dword [rax + 8], 0x65726464
jne 0x140006fbf
cmp word [rax + 0xc], 0x7373
jne 0x140006fbf
cmp byte [rax + 0xe], 0
jne 0x140006fbf
mov eax, dword [r10 + 0x24]
lea rdx, [rcx + rdx*2]
movzx edx, word [rdx + rax]
mov eax, dword [r10 + 0x1c]
lea rdx, [rcx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x14000701f
mov eax, 0
jmp 0x14000701f
mov eax, 0
ret
Function at 0x14000bc50
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov r8, rdx
mov rax, rdx
mov rdx, rcx
add r8, 0x10
movzx r9d, byte [rax]
mov byte [rcx], r9b
movzx r9d, byte [rax + 1]
mov byte [rcx + 1], r9b
movzx r9d, byte [rax + 2]
mov byte [rcx + 2], r9b
movzx r9d, byte [rax + 3]
mov byte [rcx + 3], r9b
add rax, 4
add rcx, 4
cmp rax, r8
jne 0x14000bc60
mov r11d, 4
lea rbx, [0x1402179c0]
lea rsi, [0x1402178a0]
jmp 0x14000bcd0
xor r9b, byte [rax]
mov byte [rax + 0x10], r9b
xor r8b, byte [rax + 1]
mov byte [rax + 0x11], r8b
xor r10b, byte [rax + 2]
mov byte [rax + 0x12], r10b
xor cl, byte [rax + 3]
mov byte [rax + 0x13], cl
add r11d, 1
add rdx, 4
cmp r11d, 0x2c
je 0x14000bd22
mov rax, rdx
movzx r9d, byte [rdx + 0xc]
movzx r8d, byte [rdx + 0xd]
movzx r10d, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
test r11b, 3
jne 0x14000bca5
movzx r8d, r8b
movzx edi, byte [rbx + r8]
movzx r10d, r10b
movzx r8d, byte [rbx + r10]
movzx ecx, cl
movzx r10d, byte [rbx + rcx]
movzx r9d, r9b
movzx ecx, byte [rbx + r9]
mov r9d, r11d
shr r9d, 2
mov r9d, r9d
xor dil, byte [rsi + r9]
mov r9d, edi
jmp 0x14000bca5
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000bd26
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
and ecx, 0xff0
add r8, rcx
lea rcx, [rdx + 4]
lea r10, [rdx + 0x14]
lea rax, [rcx - 4]
mov rdx, r8
movzx r9d, byte [rdx]
xor byte [rax], r9b
add rax, 1
add rdx, 1
cmp rax, rcx
jne 0x14000bd42
add r8, 4
add rcx, 4
cmp rcx, r10
jne 0x14000bd3b
ret

Function at 0x14000bd64
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x1402179c0]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000bd77
add rdx, 1
cmp rdx, r9
jne 0x14000bd73
ret

Function at 0x14000bda5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x1402178c0]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000bdb8
add rdx, 1
cmp rdx, r9
jne 0x14000bdb4
ret
Function at 0x14000c08f
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, rcx
mov qword [rsp + 0x88], rdx
mov r8, rdx
mov rdx, rcx
mov ecx, 0
call fcn.14000bd26
mov dword [rsp + 0x2c], 1
lea rax, [r13 + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x14000c0f5
mov r8, qword [rsp + 0x88]
mov rdx, r13
mov esi, dword [rsp + 0x2c]
mov ecx, esi
call fcn.14000bd26
mov eax, esi
add eax, 1
mov dword [rsp + 0x2c], eax
cmp eax, 0xa
je 0x14000c1e9
mov rcx, r13
call fcn.14000bd64
movzx eax, byte [r13 + 1]
movzx edx, byte [r13 + 5]
mov byte [r13 + 1], dl
movzx edx, byte [r13 + 9]
mov byte [r13 + 5], dl
movzx edx, byte [r13 + 0xd]
mov byte [r13 + 9], dl
mov byte [r13 + 0xd], al
movzx eax, byte [r13 + 2]
movzx edx, byte [r13 + 0xa]
mov byte [r13 + 2], dl
mov byte [r13 + 0xa], al
movzx eax, byte [r13 + 6]
movzx edx, byte [r13 + 0xe]
mov byte [r13 + 6], dl
mov byte [r13 + 0xe], al
movzx eax, byte [r13 + 3]
movzx edx, byte [r13 + 0xf]
mov byte [r13 + 3], dl
movzx edx, byte [r13 + 0xb]
mov byte [r13 + 0xf], dl
movzx edx, byte [r13 + 7]
mov byte [r13 + 0xb], dl
mov byte [r13 + 7], al
mov rbx, r13
movzx edi, byte [rbx]
movzx r12d, byte [rbx + 1]
mov ecx, edi
xor ecx, r12d
movzx ebp, byte [rbx + 2]
movzx esi, byte [rbx + 3]
mov r15d, ebp
xor r15d, esi
mov r14d, ecx
xor r14d, r15d
movzx ecx, cl
call fcn.14000bd94
xor eax, edi
xor eax, r14d
mov byte [rbx], al
mov ecx, r12d
xor ecx, ebp
movzx ecx, cl
call fcn.14000bd94
xor r12d, eax
xor r12d, r14d
mov byte [rbx + 1], r12b
movzx ecx, r15b
call fcn.14000bd94
xor ebp, eax
xor ebp, r14d
mov byte [rbx + 2], bpl
xor edi, esi
movzx ecx, dil
call fcn.14000bd94
xor esi, eax
xor r14d, esi
mov byte [rbx + 3], r14b
add rbx, 4
cmp rbx, qword [rsp + 0x20]
jne 0x14000c16c
jmp 0x14000c0cd
mov rcx, r13
call fcn.14000bd64
movzx eax, byte [r13 + 1]
movzx edx, byte [r13 + 5]
mov byte [r13 + 1], dl
movzx edx, byte [r13 + 9]
mov byte [r13 + 5], dl
movzx edx, byte [r13 + 0xd]
mov byte [r13 + 9], dl
mov byte [r13 + 0xd], al
movzx eax, byte [r13 + 2]
movzx edx, byte [r13 + 0xa]
mov byte [r13 + 2], dl
mov byte [r13 + 0xa], al
movzx eax, byte [r13 + 6]
movzx edx, byte [r13 + 0xe]
mov byte [r13 + 6], dl
mov byte [r13 + 0xe], al
movzx eax, byte [r13 + 3]
movzx edx, byte [r13 + 0xf]
mov byte [r13 + 3], dl
movzx edx, byte [r13 + 0xb]
mov byte [r13 + 0xf], dl
movzx edx, byte [r13 + 7]
mov byte [r13 + 0xb], dl
mov byte [r13 + 7], al
mov r8, qword [rsp + 0x88]
mov rdx, r13
mov ecx, 0xa
call fcn.14000bd26
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000c384
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movups xmmword [rsp + 0x20], xmm6
mov rsi, rcx
mov rbx, rdx
mov ebp, r8d
test rbp, rbp
je 0x14000c3e1
mov edi, 0
movdqu xmm6, xmmword [rbx]
mov rdx, rsi
mov rcx, rbx
call fcn.14000bdd5
mov eax, 0
movzx edx, byte [rsi + rax + 0xb0]
xor byte [rbx + rax], dl
add rax, 1
cmp rax, 0x10
jne 0x14000c3b8
movups xmmword [rsi + 0xb0], xmm6
add rbx, 0x10
add rdi, 0x10
cmp rdi, rbp
jb 0x14000c3a4
movups xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140016db0
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.140022f10
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.140022f10
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 0x140016e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140244374]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140016fd0
mov rax, qword [0x140244378]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140016e6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140016ef7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140016e50
mov rcx, r12
call fcn.1400178d0
mov rbp, rax
test rax, rax
je 0x14001702d
mov rax, qword [0x140244378]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140017a00
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140244378]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017012
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140016ef0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140016f80
add dword [0x140244374], 1
cmp ebx, 8
jae 0x140016f28
test bl, 4
jne 0x140016fe0
test ebx, ebx
je 0x140016f19
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140017000
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140016f19
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140016f5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x140244378]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140016ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140016db0
xor edi, edi
jmp 0x140016e77
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140016f19
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140016f19
mov rax, qword [0x140244378]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140016db0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140016db0
nop
nop dword [rax]
Function at 0x140017540
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402443e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402443c0]
test rbx, rbx
je 0x140017594
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 0x14001758b
test r12, r12
je 0x14001758b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017570
lea rcx, [0x1402443e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400178d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14021d0b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140017949
mov rcx, r10
call fcn.1400177a0
test eax, eax
je 0x140017949
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140017946
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14001793d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140017949
add r8, 0x28
cmp r8, r9
jne 0x140017928
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140017c40
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1402443c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x1400175d0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140017623
mov dword [rax], edi
lea rcx, [0x1402443e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402443c0]
lea rcx, [0x1402443e0]
mov qword [0x1402443c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x1400175c6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140017c70
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140023320
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023330
xor eax, eax
ret
jmp 0x1400175b0

Function at 0x140017cb0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x140017cf0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140017d08
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]