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

Disassembly:
push rbx
mov eax, ecx
lea ecx, [r8d - 1]
test ecx, ecx
jl 0x1000ab0d0
mov r8d, 0xffffffff
nop word [rax + rax]
add r8d, 1
mov r9b, al
xor r9b, byte [rdx]
and r9d, 0xff
mov r10d, r9d
and r9d, r9d
mov r11d, eax
shr r11d, 8
lea rbx, [0x1003ee680]
xor r11d, dword [rbx + r9*4]
mov eax, r11d
add rdx, 1
cmp ecx, r8d
jg 0x1000ab098
nop dword [rax]
pop rbx
ret

Function at 0x1000acdc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x28]
mov rbx, rcx
mov r14d, dword [rbx + 0x34]
nop dword [rax]
mov rax, rbx
mov edx, dword [rax + 0x48]
mov ecx, dword [rax + 0x8c]
sub edx, ecx
sub edx, dword [rax + 0x84]
mov esi, edx
test edx, edx
jne 0x1000ace0f
mov rax, rbx
cmp dword [rax + 0x84], 0
jne 0x1000ace0f
cmp dword [rax + 0x8c], 0
jne 0x1000ace0f
mov esi, r14d
jmp 0x1000acee8
cmp esi, 0xffffffff
jne 0x1000ace1f
sub esi, 1
jmp 0x1000acee8
mov ecx, dword [rbx + 0x84]
mov eax, r14d
lea rdx, [rax - 0x106]
add rax, rdx
cmp rcx, rax
jl 0x1000acee8
mov rdx, qword [rbx + 0x40]
mov eax, r14d
lea rcx, [rdx + rax]
mov rdx, qword [rbx + 0x40]
mov r8d, r14d
call fcn.100003030
sub dword [rbx + 0x88], r14d
sub dword [rbx + 0x84], r14d
mov eax, r14d
sub dword [rbx + 0x74], eax
mov edi, dword [rbx + 0x64]
mov rdx, qword [rbx + 0x58]
mov eax, edi
lea r12, [rdx + rax*2]
nop dword [rax + rax]
sub r12, 2
movzx eax, word [r12]
mov r13d, eax
cmp r14d, r13d
ja 0x1000ace98
mov eax, r13d
mov edx, r14d
sub eax, edx
mov word [r12], ax
jmp 0x1000ace9f
mov word [r12], 0
sub edi, 1
jne 0x1000ace78
mov edi, r14d
mov rdx, qword [rbx + 0x50]
mov eax, edi
lea r12, [rdx + rax*2]
nop dword [rax]
sub r12, 2
movzx eax, word [r12]
mov r13d, eax
cmp r14d, r13d
ja 0x1000aced8
mov eax, r13d
mov edx, r14d
sub eax, edx
mov word [r12], ax
jmp 0x1000acedf
mov word [r12], 0
sub edi, 1
jne 0x1000aceb8
add esi, r14d
nop
mov rax, qword [rbx]
cmp dword [rax + 8], 0
je 0x1000acf88
nop dword [rax]
mov rax, rbx
mov rcx, qword [rax + 0x40]
mov edx, dword [rax + 0x84]
mov eax, dword [rax + 0x8c]
add rax, rdx
lea rdx, [rcx + rax]
mov rcx, qword [rbx]
mov r8d, esi
call fcn.1000ac990
mov edi, eax
add dword [rbx + 0x8c], edi
cmp dword [rbx + 0x8c], 3
jb 0x1000acf6c
mov rax, rbx
mov rdx, qword [rax + 0x40]
mov eax, dword [rax + 0x84]
movzx eax, byte [rdx + rax]
mov dword [rbx + 0x60], eax
mov rax, rbx
mov rcx, qword [rax + 0x40]
mov edx, dword [rax + 0x84]
movzx r9d, byte [rcx + rdx + 1]
mov edx, dword [rax + 0x70]
mov r8d, dword [rax + 0x60]
mov ecx, edx
shl r8d, cl
xor r9d, r8d
and r9d, dword [rax + 0x6c]
mov dword [rbx + 0x60], r9d
mov rax, rbx
cmp dword [rax + 0x8c], 0x106
jae 0x1000acf88
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x1000acdd8
nop
lea rsp, [rsp + 0x28]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret

Function at 0x1000cf720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor eax, eax
lea rdx, [rcx + 1]
movzx r8d, byte [rcx]
add r8d, 1
and r8d, 0xff
add rcx, r8
jmp 0x1000cf75b
mov r8d, eax
shl r8d, 5
mov r9d, eax
sub r8d, r9d
movzx r9d, byte [rdx]
xor r8d, r9d
mov eax, r8d
add rdx, 1
cmp rcx, rdx
ja 0x1000cf740
ret
Function at 0x1000ddc20
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov rbx, rcx
cmp dword [rbx + 0x24], 0xca
jne 0x1000ddc5c
mov rcx, rbx
call fcn.1000e26a0
cmp byte [rbx + 0x50], 0
je 0x1000ddc54
mov dword [rbx + 0x24], 0xcf
mov dil, 1
jmp 0x1000ddd1f
mov dword [rbx + 0x24], 0xcb
nop
cmp dword [rbx + 0x24], 0xcb
jne 0x1000ddcfa
mov rax, qword [rbx + 0x208]
cmp byte [rax + 0x20], 0
je 0x1000ddcec
nop word [rax + rax]
cmp qword [rbx + 0x10], 0
je 0x1000ddc90
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov rcx, rbx
mov rax, qword [rbx + 0x208]
call qword [rax]
mov esi, eax
test eax, eax
jne 0x1000ddcac
xor dil, dil
jmp 0x1000ddd1f
cmp esi, 2
je 0x1000ddcea
nop dword [rax]
cmp qword [rbx + 0x10], 0
je 0x1000ddc80
cmp esi, 3
je 0x1000ddcc5
cmp esi, 1
jne 0x1000ddc80
mov rax, qword [rbx + 0x10]
add dword [rax + 8], 1
mov rax, qword [rbx + 0x10]
mov edx, dword [rax + 8]
cmp edx, dword [rax + 0xc]
jl 0x1000ddc80
mov rdx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x16c]
add dword [rdx + 0xc], eax
nop
jmp 0x1000ddc80
nop
mov eax, dword [rbx + 0x84]
mov dword [rbx + 0x8c], eax
jmp 0x1000ddd14
cmp dword [rbx + 0x24], 0xcc
je 0x1000ddd14
mov r8d, dword [rbx + 0x24]
mov rcx, rbx
mov edx, 0x14
call fcn.1000de110
mov rcx, rbx
call fcn.1000ddd30
mov dil, al
mov al, dil
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x100106e90
Capabilities:
Read clipboard data

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x40]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rdx
mov byte [rbp - 0x14], 0
mov rax, qword [rbp - 0x10]
mov ecx, dword [rax - 0x10]
call sub.user32.dll_GetClipboardData
mov rdx, qword [rbp - 0x10]
mov qword [rdx - 0x30], rax
mov rax, qword [rbp - 0x10]
cmp qword [rax - 0x30], 0
jne 0x100106ec6
jmp 0x100106f2c
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax - 0x30]
call sub.kernel32.dll_GlobalSize
mov rdx, qword [rbp - 0x10]
mov dword [rdx - 0x3c], eax
mov rax, qword [rbp - 0x10]
cmp dword [rax - 0x3c], 0
jg 0x100106ee6
jmp 0x100106f2c
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax - 0x30]
call sub.kernel32.dll_GlobalLock
mov rdx, qword [rbp - 0x10]
mov qword [rdx - 0x38], rax
nop
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax - 0x38]
mov rax, qword [rbp - 0x10]
mov r8d, dword [rax - 0x3c]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 8]
mov rax, qword [rax]
call qword [rax + 0x108]
nop
mov rcx, rbp
call fcn.100106e60
mov byte [rbp - 0x14], 1
nop
mov al, byte [rbp - 0x14]
nop
lea rsp, [rbp]
pop rbp
ret
Function at 0x100107750
Capabilities:
Write clipboard data

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0xf0]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 8], edx
mov qword [rbp - 0x10], r8
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x38], 0
nop
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x10]
mov rdx, qword [rdx]
mov rcx, rax
call qword [rdx + 0xe0]
mov rdx, rax
mov ecx, 2
call sub.kernel32.dll_GlobalAlloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x1001077ad
jmp 0x1001078a8
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
call qword [rax + 0xe0]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.100080b40
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.100080ba0
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x40], rax
call fcn.100081350
mov rbx, rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, str._DataSize
mov r8, qword [rbp - 0x40]
lea rdx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov rcx, rbx
call fcn.100082cd0
mov rax, qword [rbp - 0x18]
mov byte [rax - 0x24], 0
jmp 0x1001078f4
mov rcx, qword [rbp - 0x20]
call sub.kernel32.dll_GlobalLock
mov qword [rbp - 0x28], rax
nop
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
call qword [rax + 0xe0]
mov r8, rax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
call qword [rax + 0x100]
nop
mov rcx, rbp
call fcn.100107700
mov rdx, qword [rbp - 0x20]
mov ecx, dword [rbp - 8]
call sub.user32.dll_SetClipboardData
nop
mov rcx, rbp
call fcn.100107720
mov rbx, qword [rbp - 0x50]
lea rsp, [rbp]
pop rbp
ret
Function at 0x1001befa0
Capabilities:
Connect socket

Disassembly:
lea rsp, [rsp - 0x28]
movsxd rcx, ecx
call sub.ws2_32.dll_connect
nop
lea rsp, [rsp + 0x28]
ret
Function at 0x14001122b
Capabilities:
Terminate process

Disassembly:
jmp 0x1400133f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112c1
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014740
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014760
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014773
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001479d
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400147b1
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400147c3
xor al, al
jmp 0x1400147e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400147df
xor al, al
jmp 0x1400147e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400112ee
Capabilities:
Hide graphical window

Disassembly:
jmp 0x140011b30
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x250
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x1400240ac]
call fcn.1400113cf
lea rax, [rbp + 8]
lea rcx, str.ClipboardLoggerClass
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2a
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0x60], 0x50
lea rax, [rbp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 0x4c
rep stosb byte [rdi], al
lea rax, [0x140011230]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 8]
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], 0
mov rax, qword [rbp + 0x210]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
lea r8, str.Clipboard_Logger
lea rdx, [rbp + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 0xc8], rax
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.USER32.dll_SetClipboardViewer]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xe8]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140011c9b
lea rcx, [rbp + 0xe8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140011c66
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, [0x14001ac90]
call fcn.14001134d
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.1400111e5
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006161
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.1400bb900
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, 0xffffffffa0a0a0a1
shr rax, 0x20
add eax, edx
sar eax, 5
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x33
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x36]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 8
jne 0x1400061f9
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 [0x14017ef10]
call qword [rax + 0x180]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400063b5
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x7c]
mov rbp, qword [0x14017ef10]
jmp 0x140006366
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 0x1400062f8
mov rcx, qword [rsp + 0x30]
cmp r14, 1
jne 0x14000631e
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 0x140006350
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.1400aa7c0
jmp 0x140006330
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r8d, 0
call fcn.1400ac5b0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
jmp 0x1400062a4
test r14, r14
je 0x1400062b7
mov r8, rdi
mov rdx, r13
call sub.msvcrt.dll_memcpy
jmp 0x1400062b7
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x140006371
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call fcn.1400bb8f0
jmp 0x140006371
lea r8, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.1400a57b0
jmp 0x140006335
test eax, eax
je 0x140006381
test byte [rsp + 0x50], 0x10
je 0x140006282
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rbp + 0x188]
jmp 0x140006362
mov rcx, rsi
mov rax, qword [0x14017ef10]
call qword [rax + 0x190]
jmp 0x1400063b5
mov rax, rbx
add rsp, 0x2b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000c4f0
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 0x14000c500
mov r11d, 4
lea rbx, [0x140179680]
lea rsi, [0x140179560]
jmp 0x14000c570
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 0x14000c5c2
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 0x14000c545
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 0x14000c545
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000c5c6
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 0x14000c5e2
add r8, 4
add rcx, 4
cmp rcx, r10
jne 0x14000c5db
ret

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

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

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

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x140179580]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000c658
add rdx, 1
cmp rdx, r9
jne 0x14000c654
ret
Function at 0x1400176c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401a6474]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140017870
mov rax, qword [0x1401a6478]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001770c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140017797
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400176f0
mov rcx, r12
call fcn.140018170
mov rbp, rax
test rax, rax
je 0x1400178cd
mov rax, qword [0x1401a6478]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400182a0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401a6478]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400178b2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140017790
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017820
add dword [0x1401a6474], 1
cmp ebx, 8
jae 0x1400177c8
test bl, 4
jne 0x140017880
test ebx, ebx
je 0x1400177b9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400178a0
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 0x1400177b9
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 0x1400177fa
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 [0x1401a6478]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017790
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017650
xor edi, edi
jmp 0x140017717
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400177b9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400177b9
mov rax, qword [0x1401a6478]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140017650
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140017650
nop
nop dword [rax]
Function at 0x140017de0
Capabilities:
Get thread local storage value

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

Function at 0x140018170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14017ed80]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400181e9
mov rcx, r10
call fcn.140018040
test eax, eax
je 0x1400181e9
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 0x1400181e6
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 0x1400181dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400181e9
add r8, 0x28
cmp r8, r9
jne 0x1400181c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400184e0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401a64c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140017e70
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 0x140017ec3
mov dword [rax], edi
lea rcx, [0x1401a64e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401a64c0]
lea rcx, [0x1401a64e0]
mov qword [0x1401a64c0], 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 0x140017e66
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 0x140018510
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140023bd0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023be0
xor eax, eax
ret
jmp 0x140017e50

Function at 0x140018550
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 0x140018590
Capabilities:
Set thread local storage value

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