joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005f750
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14017d5d8]
mov ecx, 0x10
mov edx, 8
call fcn.140012690
test rax, rax
je 0x14005f827
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14005fc00]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005f819
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x14005f7f6
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140012720
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140012720
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14013f5c0
ud2
Function at 0x1400606b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400606f3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14004dcd0]
mov qword [rbp - 0x28], rax
lea rax, [0x140153d40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14013f6e0
ud2

Function at 0x140067190
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14004a0e0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140067238
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14004ff60
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140067238
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140067213
test rsi, rsi
je 0x14006720f
mov edx, 2
mov rcx, rdi
call fcn.140012720
xor esi, esi
jmp 0x140067238
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140067235
mov edx, 2
mov rcx, rdi
call fcn.140012720
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140067650
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140067685
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14006768a
call fcn.1400606b0
nop
add rsp, 0x38
ret
Function at 0x1400c02bc
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x98]
mov rdi, rcx
mov r14d, r9d
mov r12d, 1
xor edx, edx
mov rcx, rbx
mov ebp, r9d
and r14d, 8
xor r15d, r15d
lea r8d, [r12 + 0x77]
call sub.VCRUNTIME140.dll_memset
mov r13, qword [rsp + 0x90]
lea rsi, [rdi + 0x60]
mov qword [rbx], r13
cmp qword [rsi], r15
jne 0x1400c0340
mov rdx, qword [rdi]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.14008a600
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.1400bb5f0
mov rsi, qword [rsi]
cmp dword [rdi + 0x34], r15d
jne 0x1400c048f
movsxd r8, dword [r13]
mov edx, r12d
mov rcx, rsi
call fcn.14008cb88
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
and qword [rsp + 0x20], r15
call fcn.14008cac0
mov rcx, rsi
call fcn.1400726f4
cmp eax, 0x64
jne 0x1400c039f
xor edx, edx
mov rcx, rsi
call fcn.140072aac
movsxd r15, eax
mov r12, r15
sar r12, 1
and r15d, 1
mov rcx, rsi
call fcn.140072d0c
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.14008cc10
mov eax, dword [r13 + 4]
xor esi, esi
cmp r12d, eax
mov rdx, rbx
mov rcx, rdi
cmovge eax, r12d
cmovge esi, r15d
dec eax
mov dword [rbx + 0xc], eax
call fcn.1400bfab0
cmp qword [rbx + 0x10], 0
je 0x1400c03fd
mov eax, dword [rsp + 0x80]
mov r8, rbx
mov r9, qword [rsp + 0x78]
mov edx, r14d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1400bbc10
cmp dword [rdi + 0x34], 0
jne 0x1400c045f
test r14d, r14d
jne 0x1400c045f
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x1400c045f
and ebp, 2
je 0x1400c0425
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x1400c0450
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1400c043e
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x1400c0450
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.1400b6144
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x1400c045f
mov rdx, rbx
mov rcx, rdi
call fcn.1400bfd88
test byte [rbx + 8], 2
je 0x1400c0472
lea rax, [0x1400bfd04]
mov qword [rbx + 0x28], rax
jmp 0x1400c048f
mov rax, qword [rdi]
lea rcx, [0x1400bf6fc]
lea rdx, [0x1400bfb54]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rbx + 0x28], rcx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c800c
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rdx, qword [rdx + 0x30]
mov r14, r9
mov rsi, rcx
test r8d, r8d
je 0x1400c8094
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.14008a600
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1400c72d4
mov edi, eax
test eax, eax
jne 0x1400c8080
movzx ecx, byte [rbx + 0x27]
mov r8d, dword [rsp + 0x50]
imul edx, ecx, 0x33
add r8d, 0xffffffc0
mov dword [rbx + 0x20], r8d
add edx, 4
cmp edx, r8d
jge 0x1400c80dd
mov dword [rbx + 0x20], edx
jmp 0x1400c80dd
mov rcx, rsi
call fcn.14008c330
mov rdx, rax
lea rcx, [0x1401641b0]
jmp 0x1400c80d5
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.14008a600
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1400c72d4
mov edi, eax
test eax, eax
jne 0x1400c8080
cmp dword [rbx + 0x20], 0x1c0
jge 0x1400c80dd
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.14008a600
mov qword [r14], rax
mov rcx, rbp
call fcn.14008ae74
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400d8120
Capabilities:
Reference sql statements

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, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.140105578
test ebx, ebx
jne 0x1400d8189
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.140105578
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400f9ae0
Capabilities:
Encode data using xor

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 r13
push r14
push r15
sub rsp, 0x20
movsxd rsi, r9d
xor ebx, ebx
mov rbp, r8
movsxd r15, edx
mov r13, rcx
mov r10d, 0xd
lea eax, [rsi - 1]
movsxd r11, eax
test eax, eax
js 0x1400f9b34
movzx r8d, byte [r11 + rbp]
lea edx, [r10*8]
xor r8d, edx
xor r10d, r8d
sub r11, 1
jns 0x1400f9b1b
xor edx, edx
mov eax, r10d
div dword [rcx + 0x14]
mov rax, qword [rcx + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x1400f9bd7
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x1400f9b69
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400f9b71
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400f9b4d
test rdi, rdi
je 0x1400f9bd7
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.14008a904
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x1400f9bc9
movsxd rdx, r14d
lea rcx, [r15 + rax]
add rdx, rdi
movsxd r8, esi
call sub.VCRUNTIME140.dll_memcpy
sub r15d, r14d
mov rdx, rdi
movsxd r8, r15d
mov rcx, r13
add r8, rbp
call fcn.1400b95d8
lea ebx, [rsi + rax]
jmp 0x1400f9bdf
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x1400f9be8
mov rax, qword [rsp + 0x60]
mov qword [rax], rbx
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x1400fe4d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rsp + 0x70]
mov r12, r8
and dword [rsp + 0x50], 0
mov r15d, edx
movsxd rdi, r9d
mov r14, rcx
and dword [rbp], 0
test rcx, rcx
je 0x1400fe5b8
lea eax, [rdi - 1]
mov r10d, 0xd
movsxd r9, eax
test eax, eax
js 0x1400fe531
movsx ecx, byte [r9 + r8]
lea eax, [r10*8]
xor ecx, eax
xor r10d, ecx
sub r9, 1
jns 0x1400fe519
lea esi, [r10*8]
mov eax, r10d
xor rsi, rdx
xor rsi, rax
and esi, 0x1ff
mov rbx, qword [r14 + rsi*8]
test rbx, rbx
je 0x1400fe57d
cmp dword [rbx + 0xc], r15d
jne 0x1400fe56e
cmp dword [rbx + 8], edi
jne 0x1400fe56e
mov rcx, qword [rbx]
mov r8, rdi
mov rdx, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400fe574
mov rbx, qword [rbx + 0x10]
jmp 0x1400fe54c
mov dword [rbp], 1
jmp 0x1400fe5b8
lea rdx, [rdi + 0x18]
lea rcx, [rsp + 0x50]
call fcn.1400faf5c
mov rbx, rax
test rax, rax
je 0x1400fe5b8
lea rcx, [rax + 0x18]
mov dword [rax + 8], edi
mov r8, rdi
mov qword [rax], rcx
mov rdx, r12
mov dword [rax + 0xc], r15d
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14 + rsi*8]
mov qword [rbx + 0x10], rcx
mov qword [r14 + rsi*8], rbx
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400fea94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r10d, edx
mov r8d, ecx
cmp ecx, 0x80
jge 0x1400feac6
lea eax, [rcx - 0x41]
add ecx, 0x20
cmp eax, 0x19
cmova ecx, r8d
mov r8d, ecx
jmp 0x1400feb89
cmp r8d, 0x10000
jge 0x1400feb7a
xor r9d, r9d
lea rsi, [0x140000000]
mov edi, r9d
or r11d, 0xffffffff
mov ebx, 0xa2
lea eax, [rdi + rbx]
cdq
sub eax, edx
mov edx, r8d
sar eax, 1
movsxd rcx, eax
movzx ecx, word [rsi + rcx*4 + 0x15e9e0]
sub edx, ecx
mov ecx, eax
cmovs ecx, r11d
test edx, edx
movsxd r11, ecx
lea ecx, [rax + 1]
cmovs ecx, edi
dec eax
test edx, edx
mov edi, ecx
cmovs ebx, eax
cmp ebx, ecx
jge 0x1400feae9
movzx ecx, word [rsi + r11*4 + 0x15e9e0]
movzx eax, byte [rsi + r11*4 + 0x15e9e3]
add eax, ecx
cmp r8d, eax
jge 0x1400feb5d
movzx eax, byte [rsi + r11*4 + 0x15e9e2]
xor ecx, r8d
and ecx, eax
test cl, 1
jne 0x1400feb5d
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x15ec70]
add eax, r8d
movzx r8d, ax
test r10d, r10d
je 0x1400feb89
cmp r10d, 2
mov ecx, r8d
sete r9b
mov edx, r9d
call fcn.1400c5a4c
mov r8d, eax
jmp 0x1400feb89
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x1400feb89
add r8d, 0x28
mov rbx, qword [rsp + 0x30]
mov eax, r8d
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14012e8e8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rcx
mov qword [rcx], rbx
mov rbp, r8
mov r12, rdx
lea r13d, [rbx + 0x28]
mov ecx, r13d
call fcn.140104f24
mov rdi, rax
test rax, rax
jne 0x14012e92e
lea ebx, [rax + 7]
jmp 0x14012e9c0
cmp byte [0x140178234], bl
je 0x14012e990
mov rax, qword [0x1401783c0]
test rax, rax
je 0x14012e94d
mov ecx, 0xc8
call rax
test eax, eax
jne 0x14012e990
lea r14, [rdi + 8]
mov qword [rdi + 0x18], rbp
lea rsi, [rdi + 0x10]
mov qword [rsp + 0x28], r14
mov r9, rdi
mov dword [rsp + 0x20], ebx
lea r8, [0x140111d64]
mov qword [rsi], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
jne 0x14012e9a5
mov r8, r13
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
jmp 0x14012e9a5
mov r8, r13
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea rsi, [rdi + 0x10]
lea r14, [rdi + 8]
cmp qword [rsi], rbx
jne 0x14012e9bd
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [r14], eax
call r12
mov qword [rdi + 0x20], rax
mov qword [r15], rdi
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14013a5b8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r9, dword [rcx + 0xc]
mov r10, rcx
movsxd rbx, r8d
test r8d, r8d
jle 0x14013a606
mov r11, r9
xor edi, edi
mov al, byte [rdi + rdx]
mov rcx, qword [r10]
xor byte [rcx + r11], al
lea ecx, [r9 + 1]
xor r9d, r9d
lea rax, [r11 + 1]
cmp ecx, dword [r10 + 8]
cmovl r9d, ecx
xor r11d, r11d
inc rdi
cmp ecx, dword [r10 + 8]
cmovl r11, rax
cmp rdi, rbx
jl 0x14013a5d6
add dword [r10 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [r10 + 0xc], r9d
ret

Function at 0x14013e81c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14013e866
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14013e866
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14013e866
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14013e866
cmp dword [rcx + 0x84], 0xe
jbe 0x14013e866
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14013e868
xor al, al
add rsp, 0x28
ret
Function at 0x14000159c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13b0
call fcn.14015fbb0
sub rsp, rax
lea rcx, [rsp + 0x13c0]
call fcn.140001438
or dword [rsp + 0x13a4], 0xffffffff
mov ecx, 1
mov r8d, 0x270
mov edx, dword [rax]
mov dword [rsp + 0x24], edx
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x24], edx
inc rcx
cmp rcx, r8
jb 0x1400015d1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x13c0]
mov dword [rsp + 0x13c0], 0x40000
call fcn.140004e18
movsx ecx, ax
test ecx, ecx
je 0x140001651
sub ecx, 1
je 0x140001648
sub ecx, 1
je 0x14000163f
sub ecx, 1
je 0x140001636
cmp ecx, 1
je 0x14000162d
xor eax, eax
jmp 0x140001658
lea rax, [0x1403a5738]
jmp 0x140001658
lea rax, [0x1403a5758]
jmp 0x140001658
lea rax, [0x1403a5708]
jmp 0x140001658
lea rax, [0x1403a5728]
jmp 0x140001658
lea rax, [0x1403a56d8]
add rsp, 0x13b0
pop rbx
ret
Function at 0x140001bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14054b400]
mov edx, dword [rdx + 8]
mov r8d, 0x40
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001c4b
mov ecx, dword [rbx + 8]
call fcn.140001904
mov rdi, rax
test rax, rax
je 0x140001c22
mov r8d, dword [rbx + 8]
mov rdx, rax
mov rcx, qword [rbx]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [rbx + 8]
lea r9, [0x14054b400]
mov r8d, dword [0x14054b400]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001c4b
and dword [0x14054b400], 0
mov al, 1
jmp 0x140001c4d
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001c58
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea r14, [rcx + 8]
mov r8, r14
mov edx, dword [rcx]
mov ecx, dword [rcx + 4]
call fcn.1400202a0
test eax, eax
jne 0x140001e43
mov rdi, qword [rbx + 0x18]
mov r12, qword [rbx + 0x20]
jmp 0x140001e28
mov rsi, qword [rdi]
mov qword [rbp + 0x50], rsi
mov r13d, dword [rsi + 0xc]
add r13, qword [rbx + 0x10]
mov edx, dword [rsi + 0x10]
lea r9, [0x14054b404]
mov r8d, 0x40
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001e43
mov r8d, dword [rsi + 0x10]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r9, r13
mov rdx, r13
mov rcx, qword [r14]
call fcn.140020a50
mov r8, rax
mov qword [rbp + 0x40], rax
xor r15d, r15d
test rax, rax
je 0x140001dfa
xor r14d, r14d
mov rsi, qword [rbp + 0x48]
mov ecx, dword [r14 + rsi]
sub ecx, 0xde
cmp ecx, 1
ja 0x140001ddf
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
mov rsi, qword [r14 + rsi + 8]
mov qword [rbp - 0x30], rsi
mov dword [rbp - 0x24], r15d
xor eax, eax
mov rdx, qword [rbp - 0x18]
mov dword [rbp - 0x28], eax
cmp byte [rsi], 0xcc
je 0x140001d42
cmp byte [rsi], 0xf1
jne 0x140001d79
mov qword [rbp - 0x40], rsi
cmp rdx, qword [rbp - 0x10]
je 0x140001d5e
movups xmm0, xmmword [rbp - 0x40]
movdqu xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp - 0x18], rdx
jmp 0x140001d72
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.140005944
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 0x28]
inc eax
inc rsi
jmp 0x140001d35
cmp eax, 1
jbe 0x140001da1
lea rcx, [rbx + 0x48]
mov rdx, qword [rbx + 0x50]
lea r8, [rbp - 0x30]
cmp rdx, qword [rbx + 0x58]
je 0x140001d9c
call fcn.140005f6c
add qword [rbx + 0x50], 0x28
jmp 0x140001da1
call fcn.140005600
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140001ddb
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e3c
call fcn.14015ed40
mov r8, qword [rbp + 0x40]
inc r15
add r14, 0xf0
cmp r15, r8
jb 0x140001cfe
mov rsi, qword [rbp + 0x50]
lea r14, [rbx + 8]
mov rdx, r8
mov rcx, qword [rbp + 0x48]
call fcn.140021210
mov edx, dword [rsi + 0x10]
lea r9, [0x14054b404]
mov r8d, dword [0x14054b404]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001e43
add rdi, 0x20
cmp rdi, r12
jne 0x140001c98
and dword [0x14054b404], 0
mov al, 1
jmp 0x140001e45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor al, al
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002eb8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rdi, rcx
mov esi, 4
mov rbx, qword [rax]
mov eax, dword [rsi + rbx]
cmp dword [0x14054b728], eax
jle 0x140002f12
lea rcx, [0x14054b728]
call fcn.14015e97c
cmp dword [0x14054b728], 0xffffffff
jne 0x140002f12
mov rax, qword [rdi + 0x10]
lea rcx, [0x14054b728]
mov qword [0x14054b6a0], rax
call fcn.14015e910
mov eax, dword [rsi + rbx]
cmp dword [0x14054b6c8], eax
jle 0x140002f54
lea rcx, [0x14054b6c8]
call fcn.14015e97c
cmp dword [0x14054b6c8], 0xffffffff
jne 0x140002f54
mov rax, qword [0x14054b6a0]
lea rcx, [0x14054b6c8]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [rdi + 0x10]
mov qword [0x14054b700], rdx
call fcn.14015e910
mov eax, dword [rsi + rbx]
cmp dword [0x14054b710], eax
jle 0x140002fa0
lea rcx, [0x14054b710]
call fcn.14015e97c
cmp dword [0x14054b710], 0xffffffff
jne 0x140002fa0
mov rax, qword [0x14054b700]
lea rcx, [0x14054b710]
movzx edx, word [rax + 0x14]
mov rax, qword [0x14054b700]
add rax, 0x18
add rdx, rax
mov qword [0x14054b6e0], rdx
call fcn.14015e910
mov rax, qword [0x14054b700]
xor edi, edi
mov ebx, edi
cmp di, word [rax + 6]
jae 0x14000303e
lea esi, [rdi + 0x28]
mov rcx, qword [0x14054b6e0]
lea r9, [0x14054b3f8]
mov r8d, 4
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000306b
mov rax, qword [0x14054b6e0]
lea r9, [0x14054b3f8]
xorps xmm0, xmm0
xor ecx, ecx
mov rdx, rsi
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov r8d, dword [0x14054b3f8]
mov rcx, qword [0x14054b6e0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000306b
mov rax, qword [0x14054b6e0]
inc rbx
add rax, rsi
mov qword [0x14054b6e0], rax
mov rax, qword [0x14054b700]
movzx ecx, word [rax + 6]
cmp rbx, rcx
jb 0x140002fb8
mov dword [0x14054b3f8], edi
mov al, 1
mov qword [0x14054b6a0], rdi
mov qword [0x14054b700], rdi
mov qword [0x14054b6e0], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor al, al
jmp 0x14000305b
Function at 0x140004e18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, 0x8000
mov rsi, rdx
mov edi, ebx
xor bx, word [rcx + 2]
xor di, word [rcx]
movzx ecx, bx
movzx eax, di
sub ecx, eax
cmp ecx, 0xffff
mov rcx, rdx
jne 0x140004e59
call fcn.14000608c
mov ecx, eax
jmp 0x140004e9c
sub bx, di
inc bx
call fcn.14000608c
mov ecx, eax
movzx ebp, bx
imul rcx, rbp
movzx r8d, bx
cmp ecx, r8d
jae 0x140004e98
xor edx, edx
mov eax, r8d
neg eax
div r8d
mov ebx, edx
cmp ecx, edx
jae 0x140004e98
mov rcx, rsi
call fcn.14000608c
mov ecx, eax
imul rcx, rbp
cmp ecx, ebx
jb 0x140004e86
shr rcx, 0x20
mov rbx, qword [rsp + 0x30]
add cx, di
mov rbp, qword [rsp + 0x38]
mov eax, 0xffff8000
mov rsi, qword [rsp + 0x40]
xor ax, cx
add rsp, 0x20
pop rdi
ret