joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035830
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rcx
je 0x140035945
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rdi]
mov byte [rdi + 0x40], 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Kernel32.dll
mov qword [rdi], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.CancelSynchronousIo
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400358f5
mov rcx, qword [rdi + 8]
call rbx
test eax, eax
jne 0x1400358cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400358cb
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400358cb
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140035893
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x30]
jmp 0x14003592a
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400358da
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400399d0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call fcn.14000fd70
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140039a12
mov edx, eax
lea rcx, str.CoInitializeEx_failed_with_code_0x_0x_n
call fcn.140002850
mov edi, 1
call fcn.14000fc60
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [0x1400327e0]
call fcn.14004bd90
mov edx, 2
mov ecx, edx
call fcn.140047658
lea rdx, [0x140030f60]
mov ecx, 0x16
call fcn.14004fadc
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rcx, qword [str.__console]
lea rdx, [rsp + 0x20]
mov r8, rax
mov rbx, rax
call fcn.1400207f0
test al, al
je 0x140039a82
call fcn.14001f700
mov rcx, qword [str.__wait_for_debugger]
lea rdx, [rsp + 0x20]
mov r8, rbx
call fcn.1400207f0
test al, al
je 0x140039a9f
call fcn.140022370
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, str.__attach
call fcn.1400207f0
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
test al, al
je 0x140039ae7
call fcn.14001ce80
mov edi, eax
test eax, eax
js 0x140039aee
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
call fcn.140034930
call fcn.14000fc60
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.140034220
mov edi, eax
call fcn.14000fc60
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14003e358
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14003e3e3
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14003e3e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e3e3
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14003e3df
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14003e3d9
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jae 0x14003e3d9
test rdx, rdx
je 0x14003e3df
cmp dword [rdx + 0x24], 0
jge 0x14003e3d5
xor al, al
jmp 0x14003e3e9
mov al, 1
jmp 0x14003e3e9
add rdx, 0x28
jmp 0x14003e3ab
xor al, al
jmp 0x14003e3e9
xor al, al
jmp 0x14003e3e9
add rsp, 0x18
ret

Function at 0x1400408a0
Capabilities:
Get thread local storage value

Disassembly:
add rcx, 8
jmp fcn.14006305c

Function at 0x140040a30
Capabilities:
Get thread local storage value

Disassembly:
add rcx, 8
jmp 0x1400630d4
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x18], 0
mov rbx, rcx
test dword [0x1400ac0a4], 0x80000000
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x10], 0
mov dword [rbp - 0xc], 0
je 0x140063122
mov ecx, dword [0x1400afe78]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140063127
call fcn.14006b698
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x30]
xor eax, eax
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x140063166
lea rcx, [rbp - 0x30]
mov rdx, rbx
mov qword [rbx + 0x28], rcx
lea rcx, [rbp - 0x30]
call fcn.140062b7c
mov ecx, dword [rbp - 0x20]
lea rdx, [rbp - 0x30]
and ecx, 0xfffffffe
mov dword [rbp - 0x20], ecx
mov rcx, rbx
call fcn.140062f48
mov al, 1
jmp 0x140063168
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x14004c7dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004c608

Function at 0x140064e78
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140064e8b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14006548c
lea rdx, [0x1400a87c0]
lea rcx, [rsp + 0x20]
call fcn.1400429b0
int3

Function at 0x14006f618
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400afe78]
xor edx, edx
jmp fcn.140064e78

Function at 0x14006ff90
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400afe78]
jmp fcn.140064e78

Function at 0x14007b7a8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14007b864]
mov r9, qword [r9 + 8]
jmp fcn.14006d034

Function at 0x14007b83c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14007b874]
mov r9, qword [r9 + 8]
jmp fcn.14006d034
Function at 0x180006430
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180006461
xor eax, eax
lea r8, [0x180001700]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400173d0]
mov dword [rax], 1
mov rax, qword [0x1400173e0]
mov dword [rax], 1
mov rax, qword [0x1400173f0]
mov dword [rax], 1
mov rax, qword [0x140017380]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000eebd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x208
movsxd r14, dword [rdx + 0x3c]
mov rbx, rdx
mov eax, dword [r14 + rdx + 0x88]
test eax, eax
je 0x14000ef94
lea rdi, [rdx + rax]
mov esi, dword [rdi + 0x18]
test esi, esi
je 0x14000ef94
mov r8d, dword [rdi + 0xc]
xor ecx, ecx
mov eax, dword [rdi + 0x20]
add r8, rdx
mov r12d, dword [rdi + 0x1c]
add rax, rdx
mov r13d, dword [rdi + 0x24]
add r12, rdx
mov qword [rbp + 0x158], rax
add r13, rdx
mov al, byte [r8]
test al, al
je 0x14000ef4b
xor edx, edx
inc ecx
or al, 0x20
mov byte [rbp + rdx - 0x10], al
mov edx, ecx
mov al, byte [rcx + r8]
test al, al
jne 0x14000ef39
mov byte [rbp + rcx - 0x10], 0
mov rdx, r9
lea rcx, [rbp - 0x10]
call fcn.140011425
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x158]
lea ecx, [rsi - 1]
mov rdx, qword [rbp + 0x168]
mov esi, ecx
mov r15d, ecx
mov ecx, dword [rax + rcx*4]
add rcx, rbx
call fcn.140011425
xor rax, qword [rsp + 0x20]
cmp rax, qword [rbp + 0x160]
je 0x14000efaa
test esi, esi
jne 0x14000ef61
xor eax, eax
add rsp, 0x208
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx eax, word [r13 + r15*2]
mov r8d, dword [r12 + rax*4]
add r8, rbx
cmp r8, rdi
jb 0x14000f06a
mov eax, dword [r14 + rbx + 0x8c]
add rax, rdi
cmp r8, rax
jae 0x14000f06a
xor r10d, r10d
mov r9d, r10d
cmp byte [r8], r10b
je 0x14000effe
cmp r9d, 0x3c
jae 0x14000effe
mov eax, r9d
mov cl, byte [rax + r8]
mov byte [rsp + rax + 0x30], cl
cmp cl, 0x2e
je 0x14000effe
inc r9d
cmp byte [r9 + r8], r10b
jne 0x14000efdf
lea eax, [r9 + 1]
mov edx, eax
mov byte [rsp + rax + 0x30], 0x64
lea eax, [r9 + 2]
mov byte [rsp + rax + 0x30], 0x6c
lea eax, [r9 + 3]
mov byte [rsp + rax + 0x30], 0x6c
lea eax, [r9 + 4]
lea r9, [rdx + r8]
mov byte [rsp + rax + 0x30], r10b
mov edx, r10d
cmp byte [r9], r10b
je 0x14000f047
cmp edx, 0x7f
jae 0x14000f047
mov ecx, edx
inc edx
mov al, byte [rcx + r9]
mov byte [rsp + rcx + 0x70], al
cmp byte [rdx + r9], r10b
jne 0x14000f030
mov rcx, qword [rbp + 0x150]
lea r9, [rsp + 0x70]
mov eax, edx
lea r8, [rsp + 0x30]
mov rdx, rbx
mov byte [rsp + rax + 0x70], r10b
call fcn.14000f075
mov r8, rax
mov rax, r8
jmp 0x14000ef96
Function at 0x14000f075
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
xor r11d, r11d
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov r10, qword [rax + 0x60]
mov rax, qword [r10 + 0x18]
mov rbx, qword [rax + 0x10]
cmp qword [rbx + 0x30], r11
je 0x14000f0e6
test r11, r11
jne 0x14000f107
mov rdx, qword [rbx + 0x30]
cmp rdx, rbp
je 0x14000f0d7
xor r9d, r9d
mov r8, rsi
mov rcx, rdi
call fcn.140011209
mov r11, rax
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
jne 0x14000f0b8
test r11, r11
jne 0x14000f107
mov rdx, r14
mov rcx, rdi
call fcn.140011121
test rax, rax
je 0x14000f104
mov rdx, rsi
mov rcx, rax
call qword [rdi + 0x38]
mov r11, rax
jmp 0x14000f107
xor r11d, r11d
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140010ec5
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword gs:[0x30]
mov rsi, rcx
add rcx, 0x348
mov rbp, rdx
mov r15, qword [rax + 0x60]
call qword [rsi + 0x40]
xor ecx, ecx
movsxd r9, dword [rax + 0x3c]
add r9, rax
movzx r10d, word [r9 + 0x14]
movzx r8d, word [r9 + 6]
add r10, r9
test r8d, r8d
je 0x140010f35
mov r9d, dword [rsi + 0x340]
lea rdx, [rcx + rcx*4]
cmp dword [r10 + rdx*8 + 0x18], r9d
je 0x140010f6a
inc ecx
cmp ecx, r8d
jb 0x140010f23
mov ebx, dword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe0]
call qword [rsi + 0xc0]
xor edx, edx
test ebx, ebx
je 0x140010f8a
mov r8, rdi
lea rcx, [r8 + 8]
mov r14, r8
mov r8, rcx
cmp qword [rcx], rax
je 0x140010f7c
inc edx
cmp edx, ebx
jb 0x140010f53
jmp 0x140010f92
mov edi, dword [r10 + rdx*8 + 0x24]
mov ebx, dword [r10 + rdx*8 + 0x20]
add rdi, rax
shr ebx, 3
jmp 0x140010f44
mov rdx, rbp
mov rcx, r14
call qword [rsi + 0x1f0]
jmp 0x140010f92
mov r14, qword [rsp + 0xe0]
call qword [rsi + 0xb8]
xor ebp, ebp
lea r9d, [rbp + 1]
test ebx, ebx
je 0x140010fe3
lea rcx, [rdi + 8]
cmp qword [rcx], rax
je 0x140010fb8
add ebp, r9d
add rcx, 8
cmp ebp, ebx
jb 0x140010fa6
jmp 0x140010fe3
mov r8b, r9b
lea rcx, [rsp + 0x20]
mov rdx, r14
call qword [rsi + 0x1d0]
lea rcx, [rdi + rbp*8]
mov r8d, 0x10
lea rdx, [rsp + 0x20]
call fcn.140011931
mov r9d, 1
mov rax, qword [r15 + 0x18]
mov rdi, qword [rax + 0x10]
jmp 0x1400110f2
lea r12, [rsi + 0x370]
mov cl, byte [r12]
xor ebp, ebp
xor edx, edx
mov r15d, r9d
test cl, cl
je 0x1400110ef
xor r8d, r8d
cmp cl, 0x3b
je 0x140011040
cmp edx, 0x80
jae 0x140011040
xor eax, eax
mov byte [rsp + r8 + 0x30], cl
cmp cl, 0x77
cmovne eax, r15d
cmp cl, 0x70
mov r15d, eax
cmove ebp, r9d
add edx, r9d
mov r8d, edx
mov cl, byte [rdx + r12]
test cl, cl
jne 0x14001100d
test edx, edx
je 0x1400110ef
lea ecx, [rdx + 1]
mov byte [rsp + rdx + 0x30], 0
mov rdx, qword [rdi + 0x30]
lea r8, [rsp + 0x30]
add r12, rcx
xor r9d, r9d
mov rcx, rsi
call fcn.140011209
mov rbx, rax
mov r9d, 1
test rax, rax
je 0x140010ff7
test r15d, r15d
je 0x1400110b2
test ebp, ebp
je 0x140011092
call rbx
mov rbx, rax
mov r9d, 1
test rax, rax
je 0x140010ff7
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.14000f641
mov r9d, 1
test eax, eax
je 0x140010ff7
mov rax, qword [rsp + 0x28]
jmp 0x1400110e7
test ebp, ebp
je 0x1400110ca
call rbx
mov rbx, rax
mov r9d, 1
test rax, rax
je 0x140010ff7
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.14000f641
mov r9d, 1
test eax, eax
je 0x140010ff7
mov rax, qword [r14 + 8]
mov qword [rbx], rax
jmp 0x140010ff7
mov rdi, qword [rdi]
cmp qword [rdi + 0x30], 0
jne 0x140010ff0
lea r11, [rsp + 0xb0]
mov eax, r9d
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140011121
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
or r10d, 0xffffffff
xor r8d, r8d
mov rsi, rcx
cmp byte [rdx], r8b
je 0x140011158
cmp r8d, 0x40
jae 0x140011158
mov al, byte [r8 + rdx]
mov byte [rsp + r8 + 0x20], al
inc r8d
cmp byte [r8 + rdx], 0
jne 0x14001113f
lea eax, [r8 - 4]
mov byte [rsp + r8 + 0x20], 0
cmp byte [rsp + rax + 0x20], 0x2e
je 0x140011193
mov byte [rsp + r8 + 0x20], 0x2e
inc r8d
mov byte [rsp + r8 + 0x20], 0x64
inc r8d
mov byte [rsp + r8 + 0x20], 0x6c
inc r8d
lea eax, [r8 + 1]
mov byte [rsp + r8 + 0x20], 0x6c
mov byte [rsp + rax + 0x20], 0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rdi, qword [rax + 0x10]
mov rbx, qword [rdi + 0x30]
test rbx, rbx
je 0x1400111ea
movsxd rax, dword [rbx + 0x3c]
mov ecx, dword [rax + rbx + 0x88]
xor eax, eax
test ecx, ecx
je 0x1400111dd
mov edx, dword [rcx + rbx + 0xc]
lea rcx, [rsp + 0x20]
add rdx, rbx
call fcn.14001198d
mov r10d, eax
xor eax, eax
test r10d, r10d
je 0x140011202
mov rdi, qword [rdi]
test r10d, r10d
jne 0x1400111a8
test rax, rax
jne 0x1400111f2
lea rcx, [rsp + 0x20]
call qword [rsi + 0x30]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rax, rbx
jmp 0x1400111f2
Function at 0x140011209
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
xor r11d, r11d
mov rdi, rdx
mov r10, rcx
mov ebx, r11d
test rdx, rdx
je 0x140011391
movsxd r15, dword [rdx + 0x3c]
mov eax, dword [r15 + rdx + 0x88]
test eax, eax
je 0x140011391
lea rsi, [rdx + rax]
mov r14d, dword [rsi + 0x1c]
mov r13d, dword [rsi + 0x20]
add r14, rdx
mov r12d, dword [rsi + 0x24]
add r13, rdx
add r12, rdx
test r8, r8
je 0x140011381
mov ebp, dword [rsi + 0x18]
test ebp, ebp
je 0x140011391
lea eax, [rbp - 1]
mov rdx, r8
mov ecx, dword [r13 + rax*4]
mov ebp, eax
add rcx, rdi
mov qword [rsp + 0xe8], rax
call fcn.14001196d
xor r11d, r11d
test eax, eax
jne 0x1400112b8
mov rax, qword [rsp + 0xe8]
movzx eax, word [r12 + rax*2]
mov ebx, dword [r14 + rax*4]
add rbx, rdi
test ebp, ebp
je 0x1400112c9
mov r8, qword [rsp + 0xf0]
test rbx, rbx
je 0x140011280
mov r10, qword [rsp + 0xe0]
cmp rbx, rsi
jb 0x14001137c
mov eax, dword [r15 + rdi + 0x8c]
add rax, rsi
cmp rbx, rax
jae 0x14001137c
mov r8d, r11d
cmp byte [rbx], r11b
je 0x140011314
cmp r8d, 0x3c
jae 0x140011314
mov eax, r8d
mov cl, byte [rax + rbx]
mov byte [rsp + rax + 0x20], cl
cmp cl, 0x2e
je 0x140011314
inc r8d
cmp byte [r8 + rbx], r11b
jne 0x1400112f6
lea eax, [r8 + 1]
mov edx, eax
mov byte [rsp + rax + 0x20], 0x64
lea eax, [r8 + 2]
mov byte [rsp + rax + 0x20], 0x6c
lea eax, [r8 + 3]
mov byte [rsp + rax + 0x20], 0x6c
lea eax, [r8 + 4]
lea r8, [rdx + rbx]
mov byte [rsp + rax + 0x20], r11b
mov edx, r11d
cmp byte [r8], r11b
je 0x14001135d
cmp edx, 0x3f
jae 0x14001135d
mov ecx, edx
inc edx
mov al, byte [rcx + r8]
mov byte [rsp + rcx + 0x60], al
cmp byte [rdx + r8], r11b
jne 0x140011346
mov eax, edx
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, r10
mov byte [rsp + rax + 0x60], r11b
call fcn.14000f075
mov rbx, rax
mov rax, rbx
jmp 0x140011393
sub r9d, dword [rsi + 0x10]
mov ebx, dword [r14 + r9*4]
add rbx, rdi
jmp 0x1400112d1
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400113b1
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
xor r10d, r10d
mov r9, qword [rax + 0x60]
mov rax, qword [r9 + 0x18]
mov rbx, qword [rax + 0x10]
jmp 0x140011404
test r10, r10
jne 0x14001140d
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.14000eebd
mov rbx, qword [rbx]
mov r10, rax
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x1400113e8
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400114f1
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x10
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x28], rdx
mov ecx, edx
mov r8d, dword [rsp + 0x2c]
xor r10d, r10d
movups xmmword [rsp], xmm0
mov edx, dword [rsp + 0xc]
mov r11d, dword [rsp + 8]
mov ebx, dword [rsp + 4]
mov r9d, dword [rsp]
mov eax, edx
ror ecx, 8
add ecx, r8d
mov edx, ebx
xor ecx, r9d
ror edx, 8
add edx, r9d
rol r8d, 3
xor edx, r10d
rol r9d, 3
xor r9d, edx
xor r8d, ecx
inc r10d
mov ebx, r11d
mov r11d, eax
cmp r10d, 0x1b
jb 0x14001151e
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], r8d
mov rax, qword [rsp + 0x28]
add rsp, 0x10
pop rbx
ret

Function at 0x140011565
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
test r9d, r9d
je 0x1400116b3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x10
mov r11, rcx
lea rax, [rbp - 0x10]
sub r11, rax
lea r14, [rdx + 0xf]
mov rdi, r8
mov r12d, 0x10
lea rax, [rbp - 0x10]
cmp rax, r14
ja 0x1400115bc
lea rax, [rbp - 1]
cmp rax, rdx
jb 0x1400115bc
movups xmm0, xmmword [rdx]
movdqu xmmword [rbp - 0x10], xmm0
jmp 0x1400115c4
movups xmm0, xmmword [rdx]
movdqu xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov r8d, 4
mov eax, dword [r11 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x1400115ce
mov r8d, dword [rbp - 4]
mov rbx, r12
mov eax, dword [rbp - 8]
mov r10d, dword [rbp - 0xc]
mov ecx, dword [rbp - 0x10]
add ecx, r10d
add eax, r8d
rol r10d, 5
xor r10d, ecx
rol r8d, 8
xor r8d, eax
rol ecx, 0x10
add eax, r10d
add ecx, r8d
rol r10d, 7
rol r8d, 0xd
xor r10d, eax
xor r8d, ecx
rol eax, 0x10
sub rbx, 1
jne 0x1400115ef
mov dword [rbp - 4], r8d
lea r8d, [rbx + 4]
mov dword [rbp - 0x10], ecx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0xc], r10d
mov dword [rbp - 8], eax
mov eax, dword [rcx + r11]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x140011639
cmp r9d, r12d
mov ecx, r9d
cmova ecx, r12d
mov r10d, ecx
test ecx, ecx
je 0x140011677
lea rbx, [rbp - 0x10]
mov r8, rdi
sub rbx, rdi
mov esi, r10d
mov al, byte [rbx + r8]
xor byte [r8], al
inc r8
sub rsi, 1
jne 0x140011667
sub r9d, ecx
mov r8d, r12d
add rdi, r10
lea eax, [r8 - 1]
add byte [rax + rdx], 1
jne 0x140011692
dec r8d
test r8d, r8d
jg 0x140011680
test r9d, r9d
jne 0x1400115a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x10
pop r14
pop r12
pop rbp
ret
Function at 0x1400116b5
Capabilities:
Decompress data using aplib

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
mov al, byte [rcx]
or r14d, 0xffffffff
and dword [rbp - 0xc], 0
xor r9d, r9d
mov byte [rdx], al
xor edi, edi
lea rax, [rdx + 1]
mov rbx, rdx
mov qword [rbp - 0x18], rax
mov r11d, r14d
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea esi, [rdi + 1]
lea rcx, [rbp - 0x20]
call fcn.1400118f9
test eax, eax
je 0x1400118b5
lea rcx, [rbp - 0x20]
call fcn.1400118f9
test eax, eax
je 0x1400117bb
lea rcx, [rbp - 0x20]
call fcn.1400118f9
test eax, eax
je 0x140011777
xor r9d, r9d
lea r10d, [r9 + 4]
lea rcx, [rbp - 0x20]
call fcn.1400118f9
lea r9d, [rax + r9*2]
sub r10d, esi
jne 0x140011730
test r9d, r9d
je 0x140011764
mov rdx, qword [rbp - 0x18]
mov rax, rdx
mov ecx, r9d
sub rax, rcx
mov al, byte [rax]
mov byte [rdx], al
add rdx, rsi
mov qword [rbp - 0x18], rdx
jmp 0x1400118cf
mov rax, qword [rbp - 0x18]
mov byte [rax], 0
add rax, rsi
mov qword [rbp - 0x18], rax
jmp 0x1400118cf
mov rax, qword [rbp - 0x20]
movzx r11d, byte [rax]
add rax, rsi
mov ecx, r11d
mov qword [rbp - 0x20], rax
and ecx, esi
add ecx, 2
shr r11d, 1
je 0x1400117b4
mov rdx, qword [rbp - 0x18]
mov r8d, r11d
neg r8
mov al, byte [r8 + rdx]
mov byte [rdx], al
add rdx, rsi
add ecx, r14d
jne 0x14001179d
mov qword [rbp - 0x18], rdx
jmp 0x1400118b0
mov edi, esi
jmp 0x1400118b0
mov r10d, esi
lea rcx, [rbp - 0x20]
call fcn.1400118f9
lea rcx, [rbp - 0x20]
lea r10d, [rax + r10*2]
call fcn.1400118f9
test eax, eax
jne 0x1400117be
test r9d, r9d
jne 0x140011825
cmp r10d, 2
jne 0x140011825
mov r9d, esi
lea rcx, [rbp - 0x20]
call fcn.1400118f9
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call fcn.1400118f9
test eax, eax
jne 0x1400117e6
test r9d, r9d
je 0x1400118b0
mov rcx, qword [rbp - 0x18]
mov edx, r11d
neg rdx
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, rsi
add r9d, r14d
jne 0x140011813
jmp 0x1400118ac
mov rcx, qword [rbp - 0x20]
xor r9d, esi
sub r10d, r9d
mov r9d, esi
shl r10d, 8
movzx r11d, byte [rcx]
add r11d, 0xfffffe00
add r11d, r10d
add rcx, rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x20]
call fcn.1400118f9
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call fcn.1400118f9
test eax, eax
jne 0x14001184b
cmp r11d, 0x7d00
lea eax, [r9 + 1]
cmovb eax, r9d
cmp r11d, 0x500
lea ecx, [rax + 1]
cmovb ecx, eax
cmp r11d, 0x80
lea r8d, [rcx + 2]
cmovae r8d, ecx
test r8d, r8d
je 0x1400118b0
mov rcx, qword [rbp - 0x18]
mov edx, r11d
neg rdx
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, rsi
add r8d, r14d
jne 0x14001189f
mov qword [rbp - 0x18], rcx
mov r9d, esi
jmp 0x1400118d2
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov al, byte [rdx]
mov byte [rcx], al
add rcx, rsi
add rdx, rsi
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rdx
xor r9d, r9d
test edi, edi
je 0x1400116fa
mov eax, dword [rbp - 0x18]
mov rsi, qword [rsp + 0x58]
sub eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret