joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011e120
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140957720]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rbx, qword [rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14011e290
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1409d95a0]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1409d95a0]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], SafeArrayGetLBound
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x140957720]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x140128b60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x388], 0
mov rdi, rcx
jne 0x140128c8f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
xor esi, esi
mov ebx, esi
nop dword [rax]
nop dword [rax + rax]
mov edx, 4
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x40]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140128c10
mov edx, dword [rsp + 0x40]
mov rcx, rsi
nop
cmp rbx, 4
jae 0x140128bd1
mov eax, edx
shr eax, cl
add rcx, 8
mov byte [rsp + rbx + 0x48], al
inc rbx
cmp rcx, 0x20
jb 0x140128bb0
cmp rbx, 4
jb 0x140128b90
lea rcx, str.EXPAT_ENTROPY_DEBUG
call fcn.1401e8be4
mov ebx, dword [rsp + 0x48]
test rax, rax
je 0x140128c7f
cmp byte [rax], 0x31
jne 0x140128c7f
cmp byte [rax + 1], sil
jne 0x140128c7f
mov ecx, 2
call fcn.14008b2fc
lea r8, str.rand_s
jmp 0x140128c5e
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [rsp + 0x48]
xor ebx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, ebx
lea rcx, str.EXPAT_ENTROPY_DEBUG
imul ebx, eax, 0x7fffffff
call fcn.1401e8be4
test rax, rax
je 0x140128c7f
cmp byte [rax], 0x31
jne 0x140128c7f
cmp byte [rax + 1], sil
jne 0x140128c7f
mov ecx, 2
call fcn.14008b2fc
lea r8, str.fallback_4_
mov dword [rsp + 0x28], 4
lea rdx, str.Entropy:__s_____0x_0lx___lu_bytes__n
mov r9d, 8
mov dword [rsp + 0x20], ebx
mov rcx, rax
call fcn.1401238d0
mov rsi, qword [rsp + 0x58]
mov dword [rdi + 0x388], ebx
mov rbx, qword [rsp + 0x50]
cmp byte [rdi + 0x1c8], 0
je 0x140128cac
lea rdx, str.xmlhttp:__www.w3.org_XML_1998_namespace
mov rcx, rdi
add rsp, 0x30
pop rdi
jmp fcn.140128060
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140189220
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15, r8
mov ebp, edx
mov r14, rcx
test rcx, rcx
je 0x14018943a
test rbx, rbx
je 0x14018943a
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x140189274
mov rax, qword [rdi + 8]
test rax, rax
je 0x140189286
mov rdx, qword [rdi]
mov ecx, gethostbyname
call rax
jmp 0x14018927e
mov ecx, gethostbyname
call fcn.1401b0ff4
mov rsi, rax
test rax, rax
jne 0x1401892a4
mov eax, 0xfffffffc
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x70]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x10]
mov qword [rsi], rbx
xor ebx, ebx
test rax, rax
je 0x14018931d
test rdi, rdi
je 0x1401892f9
cmp qword [rdi], rbx
jne 0x1401892d7
cmp qword [rdi + 0x18], rbx
jne 0x1401892dd
cmp qword [rdi + 8], rbx
jne 0x1401892d7
cmp qword [rdi + 0x10], rbx
je 0x1401892f9
cmp qword [rdi + 0x18], rbx
je 0x14018931d
cmp qword [rdi + 8], rbx
jne 0x1401892e9
cmp qword [rdi + 0x10], rbx
je 0x14018931d
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
jmp 0x14018931d
mov qword [rax], rbx
lea rcx, [0x14013ca10]
mov qword [rax + 8], rcx
lea rcx, [0x14013ca20]
mov qword [rax + 0x10], rcx
lea rcx, [0x14013c990]
mov qword [rax + 0x18], rcx
lea rax, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140189560]
mov rdx, r15
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
mov r8, rax
test rax, rax
jne 0x14018938f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140183950
mov ebx, eax
test eax, eax
je 0x140189433
test rdi, rdi
je 0x140189380
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140189388
mov rdx, qword [rdi]
mov rcx, rsi
call r8
mov eax, ebx
jmp 0x14018928b
mov rcx, rsi
call fcn.1401b0ffc
mov eax, ebx
jmp 0x14018928b
lea eax, [rbp + 5]
cmp eax, 6
ja case.0x1401893ae.2
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x189450]
add rcx, rdx
jmp rcx
mov ebx, 0xfffffff1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x14018928b
mov ebx, 0xfffffffe
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x14018928b
mov ebx, 0xffffffff
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x14018928b
mov ebx, 1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x14018928b
mov ebx, 2
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x14018928b
mov ebx, SafeArrayGetLBound
mov edx, ebx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x14018928b
mov rbx, qword [rsp + 0x68]
mov eax, 0xfffffffe
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1401b0020
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1409d8128], 0
lea rbx, [0x1409d8138]
mov r14, rdx
mov r15, rcx
jne 0x1401b006d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1409d812c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1409d8128], 1
mov ecx, dword [0x1409d812c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1401b0142
mov rcx, qword [0x14095ba28]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1401b016d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1409d8130]
test rax, rax
je 0x1401b00bd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1409d8130], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x1401b0188]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1409d812c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x14095ba28]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1401b016d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401e7e50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401b0ba0
sub rsp, rax
mov rax, qword [0x140956ae8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140091db8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401e7e9f
mov rax, rbp
jmp 0x1401e7fa7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x95d500]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140095784
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x95d500]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401e7fa3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e7fa3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140095784
test rax, rax
js 0x1401e7fa3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401e7fa3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401e7f95
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401e7f95
cmp byte [rcx], 0xd
jne 0x1401e7f7b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401e7f8a
cmp byte [rcx + 1], 0xa
jne 0x1401e7f8a
inc rcx
jmp 0x1401e7f8a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9573e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401e7f5d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401e7fa7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401b0740
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401f1b48
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401f1b5e
mov al, 1
jmp 0x1401f1bbe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401f1b6f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401f1bbc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140082318
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f1bbc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401f1bbc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401f1bbc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401f1bbe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401f9ee0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009578c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009578c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401fa030
cmp rax, 0xffffffffffffffff
je 0x1401fa030
xor edi, edi
test rbp, rbp
jle 0x1401f9fdb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007dce8
mov rbx, rax
test rax, rax
jne 0x1401f9f68
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401f9fd1
mov edx, 0x8000
mov ecx, r14d
call fcn.140078a84
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140092c74
cmp eax, 0xffffffff
je 0x1401f9fb1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401f9f78
mov edx, r15d
mov ecx, r14d
call fcn.140078a84
jmp 0x1401f9fd1
cmp byte [rsi + 0x38], dil
je 0x1401f9fc8
cmp dword [rsi + 0x34], 5
jne 0x1401f9fc8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetLBound
cmp byte [rsi + 0x30], dil
je 0x1401f9fd1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007d4b0
jmp 0x1401fa044
jns 0x1401fa044
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009578c
cmp rax, 0xffffffffffffffff
jne 0x1401f9ffc
cmp byte [rsi + 0x30], dil
je 0x1401fa044
mov edi, dword [rsi + 0x2c]
jmp 0x1401fa044
mov ecx, r14d
call fcn.140082318
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401fa044
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetElemsize
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetLBound
jmp 0x1401fa044
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401fa03d
mov eax, dword [rsi + 0x2c]
jmp 0x1401fa042
mov eax, SafeArrayPutElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009578c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x671a80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x671a8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x671a9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x671a85
lea eax, [rcx + 1]
jmp 0x671aab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x671abe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x671aa4
sub eax, 3
jb 0x671ade
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x671b2d
sar eax, 1
movsxd rbp, eax
jb 0x671b14
jmp 0x671aec
add ebx, ebx
jne 0x671aea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x671b14
inc ecx
add ebx, ebx
jne 0x671afa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x671b14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x671b0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x671afc
add ecx, 2
jmp 0x671b19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00671a42
jmp 0x671a8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x97000
mov dl, 0x24
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x671b79
cmp rsi, rcx
jae 0x671b81
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x671b60
cmp al, 0x8f
ja 0x671b60
cmp byte [rsi - 2], 0xf
je 0x671b66
sub al, 0xe8
cmp al, 1
ja 0x671b4a
cmp rsi, rcx
jae 0x671b81
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x671b50
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x671b81
lodsb al, byte [rsi]
jmp 0x671b60
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x26d000]
mov eax, dword [rdi]
or eax, eax
je 0x671bde
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x271000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x671b8e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x671bd8
mov qword [rbx], rax
add rbx, 8
jmp 0x671bae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x671c18
cmp al, 0xef
ja 0x671c0a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x671bea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x671bf9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x671c6c
sub rsp, 0xffffffffffffff80
jmp 0x46d2c0
Function at 0x180001000
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [rcx], 0
mov rbx, rcx
jne 0x180001032
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003740
add rsp, 0x50
pop rbx
ret
mov dword [rcx + 4], 0
mov qword [rsp + 0x68], rdi
mov edi, 1
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], 0
mov dword [rcx + 0x18], 0
mov dword [rcx + 0x1c], 0xe
test r9, r9
jne 0x18000106c
mov eax, 0xfffffffc
jmp 0x1800011c1
movups xmm0, xmmword [r9]
lea rdx, [rsp + 0x20]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
call fcn.1800013d0
cmp dword [rbx + 8], edi
jne 0x1800011b9
cmp dword [rbx + 0x1c], edi
jbe 0x1800011b9
lea r10, [0x180000000]
nop dword [rax]
nop word [rax + rax]
mov r9d, edi
inc edi
lea r8, [r9 + 2]
add r9, r9
shl r8, 4
add r8, rbx
movzx ecx, byte [r8 + 3]
movzx eax, byte [r8 + 2]
mov edx, dword [r10 + rcx*4 + 0x1ce30]
xor edx, dword [r10 + rax*4 + 0x1e230]
movzx eax, byte [r8 + 1]
xor edx, dword [r10 + rax*4 + 0x1d630]
movzx eax, byte [r8]
xor edx, dword [r10 + rax*4 + 0x1ca30]
mov dword [r8], edx
movzx ecx, byte [rbx + r9*8 + 0x27]
movzx eax, byte [rbx + r9*8 + 0x26]
mov edx, dword [r10 + rcx*4 + 0x1ce30]
xor edx, dword [r10 + rax*4 + 0x1e230]
movzx eax, byte [rbx + r9*8 + 0x25]
xor edx, dword [r10 + rax*4 + 0x1d630]
movzx eax, byte [rbx + r9*8 + 0x24]
xor edx, dword [r10 + rax*4 + 0x1ca30]
mov dword [rbx + r9*8 + 0x24], edx
movzx ecx, byte [rbx + r9*8 + 0x2b]
movzx eax, byte [rbx + r9*8 + 0x2a]
mov edx, dword [r10 + rcx*4 + 0x1ce30]
xor edx, dword [r10 + rax*4 + 0x1e230]
movzx eax, byte [rbx + r9*8 + 0x29]
xor edx, dword [r10 + rax*4 + 0x1d630]
movzx eax, byte [rbx + r9*8 + 0x28]
xor edx, dword [r10 + rax*4 + 0x1ca30]
mov dword [rbx + r9*8 + 0x28], edx
movzx eax, byte [rbx + r9*8 + 0x2e]
movzx ecx, byte [rbx + r9*8 + 0x2f]
mov edx, dword [r10 + rcx*4 + 0x1ce30]
xor edx, dword [r10 + rax*4 + 0x1e230]
movzx eax, byte [rbx + r9*8 + 0x2d]
xor edx, dword [r10 + rax*4 + 0x1d630]
movzx eax, byte [rbx + r9*8 + 0x2c]
xor edx, dword [r10 + rax*4 + 0x1ca30]
mov dword [rbx + r9*8 + 0x2c], edx
cmp edi, dword [rbx + 0x1c]
jb 0x1800010b0
mov dword [rbx], 0
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003740
add rsp, 0x50
pop rbx
ret
Function at 0x1800011e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rcx], 0
mov rdi, r9
mov r14d, r8d
mov rbx, rdx
mov rbp, rcx
je 0x180001211
mov eax, 0xfffffffb
jmp 0x18000125d
cmp dword [rcx + 8], 1
je 0x18000121e
mov eax, 0xfffffffa
jmp 0x18000125d
test rdx, rdx
je 0x1800013c8
test r14d, r14d
jle 0x1800013c8
mov qword [rsp + 0x50], rsi
test r14b, 0xf
jne 0x1800013be
mov ecx, dword [rcx + 4]
shr r14d, 4
test ecx, ecx
je 0x180001338
cmp ecx, 1
je 0x180001274
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180003740
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret
lea esi, [r14 - 1]
movaps xmmword [rsp + 0x40], xmm6
movups xmm6, xmmword [rbp + 0xc]
test esi, esi
jle 0x1800012c3
nop word [rax + rax]
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rbp
call fcn.180001620
movdqu xmm0, xmmword [rsp + 0x20]
dec esi
xorps xmm0, xmm6
movups xmm6, xmmword [rbx]
add rbx, 0x10
movups xmmword [rdi], xmm0
add rdi, 0x10
movdqu xmmword [rsp + 0x20], xmm0
test esi, esi
jg 0x180001290
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rbp
call fcn.180001620
movdqu xmm0, xmmword [rsp + 0x20]
xorps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movdqu xmmword [rsp + 0x20], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
movzx ebx, al
lea eax, [rbx - 1]
cmp eax, 0xf
ja 0x1800013be
mov r8d, 0x10
sub r8, rbx
cmp r8, 0x10
jge 0x1800013a2
mov rdx, r8
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x20]
cmp eax, ebx
jne 0x1800013be
inc rdx
cmp rdx, 0x10
jl 0x180001320
jmp 0x1800013a2
lea esi, [r14 - 1]
test esi, esi
jle 0x18000135c
mov r8, rdi
mov rdx, rbx
mov rcx, rbp
call fcn.180001620
add rbx, 0x10
add rdi, 0x10
dec esi
test esi, esi
jg 0x180001340
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rbp
call fcn.180001620
movzx ebx, byte [rsp + 0x2f]
cmp ebx, 0x10
ja 0x1800013be
mov r8d, 0x10
sub r8, rbx
cmp r8, 0x10
jge 0x1800013a2
mov rcx, r8
nop dword [rax + rax]
movzx eax, byte [rsp + rcx + 0x20]
cmp eax, ebx
jne 0x1800013be
inc rcx
cmp rcx, 0x10
jl 0x180001390
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.18000fa00
shl r14d, 4
sub r14d, ebx
mov eax, r14d
jmp 0x180001258
mov eax, 0xfffffff9
jmp 0x180001258
xor eax, eax
jmp 0x18000125d
Function at 0x1800013d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov esi, dword [rcx + 0x1c]
mov rdi, rcx
sub esi, 6
movsxd rbx, esi
test esi, esi
jle 0x180001484
mov r8, rbx
lea rcx, [rbp - 0x30]
shl r8, 2
call fcn.18000fa00
xor r9d, r9d
xor r10d, r10d
xor r8d, r8d
xor edx, edx
cmp r9d, dword [rdi + 0x1c]
ja 0x1800015fc
cmp r8, rbx
jge 0x180001454
nop
cmp rdx, 4
jge 0x180001454
mov eax, r9d
inc r10d
lea rcx, [rdx + rax*4]
mov eax, dword [rbp + r8*4 - 0x30]
inc r8
mov dword [rdi + rcx*4 + 0x20], eax
inc rdx
cmp r8, rbx
jl 0x180001430
cmp rdx, 4
lea eax, [r9 + 1]
cmovne eax, r9d
mov r9d, eax
xor eax, eax
cmp rdx, 4
cmovne eax, r10d
mov r10d, eax
xor eax, eax
cmp rdx, 4
cmovne rax, rdx
mov rdx, rax
cmp r8, rbx
jl 0x180001420
jmp 0x18000148a
xor r9d, r9d
xor r10d, r10d
cmp r9d, dword [rdi + 0x1c]
ja 0x1800015fc
movsxd rax, r10d
lea r11, [0x180018ab0]
lea r10, [0x180018930]
nop word [rax + rax]
movzx ecx, byte [rbp + rbx*4 - 0x33]
lea r10, [r10 + 4]
movzx edx, byte [rbp - 0x30]
xor dl, byte [rcx + r11]
mov byte [rbp - 0x30], dl
movzx ecx, byte [rbp + rbx*4 - 0x32]
xor dl, byte [r10 - 4]
movzx ecx, byte [rcx + r11]
xor byte [rbp - 0x2f], cl
movzx ecx, byte [rbp + rbx*4 - 0x31]
movzx ecx, byte [rcx + r11]
xor byte [rbp - 0x2e], cl
movzx ecx, byte [rbp + rbx*4 - 0x34]
mov byte [rbp - 0x30], dl
mov edx, 1
movzx ecx, byte [rcx + r11]
xor byte [rbp - 0x2d], cl
cmp esi, 8
je 0x180001530
cmp rdx, rbx
jge 0x180001595
nop word [rax + rax]
mov ecx, dword [rbp + rdx*4 - 0x34]
xor dword [rbp + rdx*4 - 0x30], ecx
inc rdx
cmp rdx, rbx
jl 0x180001510
xor r8d, r8d
jmp 0x1800015a0
mov ecx, dword [rbp + rdx*4 - 0x34]
xor dword [rbp + rdx*4 - 0x30], ecx
inc rdx
cmp rdx, 4
jl 0x180001530
movzx ecx, byte [rbp - 0x24]
mov edx, 5
movzx ecx, byte [rcx + r11]
xor byte [rbp - 0x20], cl
movzx ecx, byte [rbp - 0x23]
movzx ecx, byte [rcx + r11]
xor byte [rbp - 0x1f], cl
movzx ecx, byte [rbp - 0x22]
movzx ecx, byte [rcx + r11]
xor byte [rbp - 0x1e], cl
movzx ecx, byte [rbp - 0x21]
movzx ecx, byte [rcx + r11]
xor byte [rbp - 0x1d], cl
cmp rdx, rbx
jge 0x180001595
nop dword [rax + rax]
mov ecx, dword [rbp + rdx*4 - 0x34]
xor dword [rbp + rdx*4 - 0x30], ecx
inc rdx
cmp rdx, rbx
jl 0x180001580
xor r8d, r8d
jmp 0x1800015a0
xor r8d, r8d
test esi, esi
jle 0x1800015f2
nop dword [rax]
cmp r9d, dword [rdi + 0x1c]
ja 0x1800015fc
cmp r8, rbx
jge 0x1800015d1
nop dword [rax + rax]
cmp rax, 4
jge 0x1800015d1
mov ecx, r9d
lea rdx, [rax + rcx*4]
mov ecx, dword [rbp + r8*4 - 0x30]
inc r8
mov dword [rdi + rdx*4 + 0x20], ecx
inc rax
cmp r8, rbx
jl 0x1800015b0
cmp rax, 4
lea ecx, [r9 + 1]
cmovne ecx, r9d
mov r9d, ecx
xor ecx, ecx
cmp rax, 4
cmovne rcx, rax
mov rax, rcx
cmp r8, rbx
jl 0x1800015a0
cmp r9d, dword [rdi + 0x1c]
jbe 0x1800014b0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180003740
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret