joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a67d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, dword [rcx + 0x3c]
mov esi, edx
xor edx, edx
mov r8d, dword [rax + rcx + 0x88]
mov r9, rcx
add r8, rcx
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x1c]
mov ebx, dword [r8 + 0x24]
mov edi, dword [r8 + 0x18]
add r10, rcx
add r11, rcx
add rbx, rcx
test edi, edi
je 0x14003a6ee
mov ecx, dword [r10]
add rcx, r9
xor r8d, r8d
jmp 0x14003a6d9
movzx eax, al
inc rcx
or eax, 0x60
add r8d, eax
add r8d, r8d
mov al, byte [rcx]
test al, al
jne 0x14003a6ca
cmp r8d, esi
je 0x14003a700
inc edx
add r10, 4
cmp edx, edi
jb 0x14003a6bf
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movzx ecx, word [rbx + rdx*2]
mov eax, dword [r11 + rcx*4]
add rax, r9
jmp 0x14003a6f0

Function at 0x14003a7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov r12, r9
movzx r13d, r8b
mov r15, rdx
mov rsi, rcx
mov r14, qword [rcx]
mov rbx, qword [r14 + 8]
mov dil, 1
nop dword [rax + rax]
cmp byte [rbx + 0x19], 0
jne 0x14003a855
mov r14, rbx
mov rcx, rsi
test r13b, r13b
je 0x14003a836
lea rdx, [rbx + 0x20]
mov r8, r12
call fcn.14003bbf0
movzx edi, al
xor dil, 1
jmp 0x14003a845
lea r8, [rbx + 0x20]
mov rdx, r12
call fcn.14003bbf0
movzx edi, al
test dil, dil
je 0x14003a84f
mov rbx, qword [rbx]
jmp 0x14003a853
mov rbx, qword [rbx + 0x10]
jmp 0x14003a810
mov rbx, r14
mov qword [rsp + 0x70], rbx
test dil, dil
je 0x14003a8ad
mov rax, qword [rsi]
cmp r14, qword [rax]
jne 0x14003a89e
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14003a3f0
mov rcx, qword [rax]
mov qword [r15], rcx
mov byte [r15 + 8], 1
mov rax, r15
jmp 0x14003a900
lea rcx, [rsp + 0x70]
call fcn.14000c1c0
mov rbx, qword [rsp + 0x70]
lea rdx, [rbx + 0x20]
mov r8, r12
mov rcx, rsi
call fcn.14003bbf0
test al, al
je 0x14003a8f5
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, r14
movzx r8d, dil
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14003a3f0
mov rcx, qword [rax]
mov qword [r15], rcx
mov byte [r15 + 8], 1
mov rax, r15
jmp 0x14003a900
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14004efa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x110
mov qword [rax - 0x98], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov r14, rcx
cmp qword [rcx + 0x18], 8
jb 0x14004efe2
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004f019
mov al, 1
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [rsp + 0x30], eax
mov edx, dword [0x1401bf9d0]
mov rcx, qword gs:[0x58]
mov eax, 0x14
mov rcx, qword [rcx + rdx*8]
mov edx, dword [rax + rcx]
cmp dword [0x1401be048], edx
jg 0x14004f1bc
mov rdx, qword [0x1401be038]
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x14004f0f5
cmp dword [rax + 0x1c], esi
jae 0x14004f06f
mov rax, qword [rax + 0x10]
jmp 0x14004f075
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004f064
cmp rcx, rdx
je 0x14004f0f5
cmp esi, dword [rcx + 0x1c]
jb 0x14004f0f5
xor al, al
jmp 0x14004efef
mov rbx, qword [0x1401be038]
mov rdx, rdi
lea rcx, [0x1401be038]
call fcn.14004d290
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x88]
lea rcx, [0x1401be038]
call fcn.14004d2d0
add rdi, 4
lea rax, [rsp + 0xb8]
cmp rdi, rax
jne 0x14004f090
lea rcx, [0x1401343e0]
call fcn.1400bef8c
nop
lea rcx, [0x1401be048]
call fcn.1400bf15c
jmp 0x14004f04c
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.14004e610
mov rbx, rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa8]
call fcn.14004e200
nop
mov rdx, rax
mov rcx, rbx
call fcn.14004d270
mov rsi, rax
mov rdx, r14
lea rcx, [rsp + 0xb8]
call fcn.14004c7a0
nop
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.14004e240
mov rdi, rax
mov dword [rsp + 0x20], 0
lea r9, [0x140139080]
mov r8d, 0xdb
lea rdx, str.f:ckp_srcza_commonzang_04_003_srccommonlibutil_fileutil.cpp
lea rcx, [rsp + 0x90]
call fcn.14000a5a0
mov rbx, rax
mov rdx, rdi
mov rcx, rsi
call fcn.14004d280
mov rcx, rax
mov rdx, rbx
call fcn.14004dd10
nop
lea rcx, [0x1401be048]
call fcn.1400bf1bc
cmp dword [0x1401be048], 0xffffffff
jne 0x14004f04c
mov dword [rsp + 0xa8], 2
mov dword [rsp + 0xac], 3
mov dword [rsp + 0xb0], 0x7b
mov dword [rsp + 0xb4], 0xa1
xorps xmm0, xmm0
movdqu xmmword [0x1401be038], xmm0
lea rcx, [0x1401be038]
call fcn.1400253d0
mov qword [0x1401be038], rax
lea rdi, [rsp + 0xa8]
jmp 0x14004f090
Function at 0x14004fdd0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, edx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
xor r14d, r14d
mov dword [rbp - 0x40], r14d
mov edx, 0x104
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
mov edi, r14d
mov rcx, qword [rbp - 0x18]
cmp rdx, rcx
ja 0x14004fe4f
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rdx
mov word [rax + rdx*2], r14w
jmp 0x14004fe5e
xor r8d, r8d
sub rdx, rcx
lea rcx, [rbp - 0x28]
call fcn.140012980
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
mov edx, dword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
je 0x14004ff72
lea rax, [rdx + 1]
mov rcx, qword [rbp - 0x18]
cmp rcx, rax
jae 0x14004fef4
inc rdi
cmp rdi, 2
jb 0x14004fe31
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov dword [rbp - 0x40], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14004ffc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ffc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050000
jmp 0x14004ffc0
cmp rdx, rcx
ja 0x14004ff12
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rdx
mov word [rax + rdx*2], r14w
jmp 0x14004ff21
xor r8d, r8d
sub rdx, rcx
lea rcx, [rbp - 0x28]
call fcn.140012980
cmp esi, 1
jne 0x14004ff49
lea rax, [0x1401b3c80]
cmp qword [0x1401b3c98], 8
cmovae rax, qword [0x1401b3c80]
movzx edx, word [rax]
lea rcx, [rbp - 0x28]
call fcn.14004e790
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
mov dword [rbp - 0x40], 1
jmp 0x14004ffc5
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov dword [rbp - 0x40], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14004ffc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ffc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fffa
call fcn.1400bece8
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400e9e3c
int3
call fcn.1400e9e3c
int3
Function at 0x140059490
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x39], rcx
xor r12d, r12d
mov dword [rbp - 0x49], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [0x14013b000]
movdqu xmmword [rbp - 0x19], xmm1
mov word [rbp - 0x29], r12w
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp - 0x19], r12
mov word [rbp - 0x29], r12w
mov ebx, 0x100
lea r13, [r12 - 1]
nop dword [rax]
mov r15d, ebx
mov ecx, ebx
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400bf818
mov rdi, rax
mov qword [rbp - 0x31], rax
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x14005953d
mov rcx, qword [r14]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x1400595e9
mov r8, r13
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140059560
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.140012d60
nop
mov rcx, rdi
call fcn.1400bece8
cmp r15d, ebx
jb 0x140059510
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rsi + 0x10], xmm1
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r12w
mov dword [rbp - 0x49], 1
movdqa xmm0, xmmword [0x14013b000]
mov rax, rsi
mov word [rbp - 0x29], r12w
movdqu xmmword [rbp - 0x19], xmm0
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400bf400
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1400bece8
test ebx, ebx
je 0x140059585
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
movdqa xmm1, xmmword [0x14013b000]
movdqu xmmword [rbp + 7], xmm1
mov word [rbp - 9], r12w
mov r8d, 0x18
lea rdx, str.ExpandEnvironmentStrings
lea rcx, [rbp - 9]
call fcn.140012d60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140059671
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005966c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400596e5
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r12w
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov dword [rbp - 0x49], 1
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400595ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400596d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400596df
call fcn.1400bece8
jmp 0x1400595ad
call fcn.1400e9e3c
nop
call fcn.1400e9e3c
int3
Function at 0x1400596f0
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r13, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov r12d, 0x100
mov r8, 0xffffffffffffffff
nop dword [rax]
add r12d, r12d
mov ecx, r12d
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1400bf818
mov rbx, rax
mov qword [rsp + 0x70], rax
mov rax, r13
cmp qword [r13 + 0x18], 8
jb 0x140059760
mov rax, qword [r13]
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x14005976d
mov r8, qword [rsi]
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x14005977a
mov rdx, qword [r14]
mov rcx, r15
cmp qword [r15 + 0x18], 8
jb 0x140059787
mov rcx, qword [r15]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, eax
lea ecx, [r12 - 1]
cmp eax, ecx
jne 0x1400597aa
mov dil, 1
jmp 0x1400597d0
xor dil, dil
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400597b4
mov rdx, rbx
mov rcx, qword [rsp + 0x90]
call fcn.140012d60
nop
mov rcx, rbx
call fcn.1400bece8
test dil, dil
mov r8, 0xffffffffffffffff
jne 0x140059730
mov eax, ebp
lea r11, [rsp + 0x40]
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 0x1400649d0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], si
mov edi, 1
mov dword [rsp + 0x20], edi
mov rdx, qword [rcx + 0x10]
add rdx, 2
lea rcx, [r11 - 0x38]
call fcn.1400181e0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140064a43
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140012800
mov r8d, 2
lea rdx, [0x1401468c4]
lea rcx, [rsp + 0x30]
call fcn.140012800
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x30]
call fcn.14011e740
call fcn.1400643f0
test al, al
je 0x140064a9a
mov rcx, rbx
call fcn.14006f520
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140064adf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064ada
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064b12
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400bf400
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call fcn.1400e9e3c
int3
Function at 0x140064b20
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
xor r14d, r14d
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
movdqa xmm1, xmmword [0x14013b000]
movdqu xmmword [rbp + 7], xmm1
mov word [rbp - 9], r14w
lea rdx, str.Warning:
lea rcx, [rbp - 9]
call fcn.14004cdc0
nop
mov r8, rbx
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.140050680
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140064bd2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064bcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064d62
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
lea rdx, [0x1401468c4]
lea rcx, [rbp + 0x17]
call fcn.14004cdc0
mov rdi, rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov rsi, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140064c0d
mov rdi, qword [rax]
cmp rsi, 8
jae 0x140064c24
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], 7
jmp 0x140064c64
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x29]
call fcn.140012700
mov qword [rbp - 0x29], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.1400e06a0
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rsi
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x29]
call fcn.14011e780
call fcn.1400643f0
test al, al
je 0x140064c98
lea rcx, [rbp + 0x17]
call fcn.14006f520
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140064cd8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064cd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064d68
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r14w
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x140064d26
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064d21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064d5c
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rbp + 0x27], xmm0
mov word [rbp + 0x17], r14w
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400e9e3c
nop
call fcn.1400e9e3c
nop
call fcn.1400e9e3c
int3
Function at 0x1400679e0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x850
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdx, rcx
lea r8, [r11 + 0x10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wvsprintfW]
mov rcx, qword [0x1401be4e8]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov ebx, eax
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, ebx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400bf400
add rsp, 0x850
pop rbx
ret

Function at 0x140067af0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], bp
mov edi, 1
mov dword [rsp + 0x20], edi
lea rsi, [rcx + 0x10]
mov rdx, qword [rsi]
add rdx, 0xc
lea rcx, [r11 - 0x38]
call fcn.1400181e0
lea r8d, [rbp + 0xc]
lea rdx, str._CHKP__SEH_
lea rcx, [rsp + 0x30]
call fcn.140012800
cmp qword [rbx + 0x18], 8
jb 0x140067b7c
mov rbx, qword [rbx]
mov r8, qword [rsi]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140012800
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140067be8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140067be3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140067c1e
call fcn.1400bece8
movdqa xmm0, xmmword [0x14013b000]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bp
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400e9e3c
int3
Function at 0x140068370
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rdi
mov r10d, 0x23456789
mov dword [rdx], 0x12345678
mov dword [rdx + 4], r10d
mov rdi, r8
mov dword [rdx + 8], 0x34567890
mov r9, rdx
movzx eax, byte [rcx]
mov r11, rcx
test al, al
je 0x14006840c
mov qword [rsp + 0x10], rbx
mov r8d, 0x12345678
mov ebx, 0x34567890
nop dword [rax]
mov rcx, r8
lea r11, [r11 + 1]
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
mov edx, dword [rdi + rax*4]
xor edx, ecx
mov ecx, ebx
movzx eax, dl
mov r8d, edx
add eax, r10d
mov dword [r9], edx
imul r10d, eax, 0x8088405
shr ecx, 8
inc r10d
mov dword [r9 + 4], r10d
mov eax, r10d
shr rax, 0x18
xor rax, rbx
movzx eax, al
mov eax, dword [rdi + rax*4]
xor eax, ecx
mov ebx, eax
mov dword [r9 + 8], eax
movzx eax, byte [r11]
test al, al
jne 0x1400683b0
mov rbx, qword [rsp + 0x10]
pop rdi
ret

Function at 0x140068a90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x40e8], 0
mov rbx, rcx
je 0x140068b5a
xor r11d, r11d
cmp dword [rcx + 0xbc], r11d
jbe 0x140068b5a
nop word [rax + rax]
movzx eax, byte [r11 + rbx + 0xe0]
mov r8, qword [rbx + 0x40f8]
mov r10d, dword [rbx + 0x40f4]
mov edx, dword [rbx + 0x40ec]
and r10d, 0xfffd
mov ecx, edx
or r10d, 2
xor rcx, rax
shr edx, 8
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov dword [rbx + 0x40ec], ecx
movzx eax, cl
add eax, dword [rbx + 0x40f0]
mov ecx, dword [rbx + 0x40f4]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x40f0], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0x40f4], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0xe0], al
inc r11d
cmp r11d, dword [rbx + 0xbc]
jb 0x140068ac0
mov r9d, dword [rbx + 0xbc]
lea r8, [rbx + 0xe0]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x38]
call qword [rbx + 0x10]
xor ecx, ecx
mov edx, 0xffffffff
cmp eax, dword [rbx + 0xbc]
mov dword [rbx + 0xbc], 0
cmovne ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x14006b900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rsi, rcx
mov r9d, dword [rcx + 0x9c]
xor r12d, r12d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
nop dword [rax]
mov edx, dword [rsi + 0x94]
mov ebp, dword [rsi + 0x58]
mov ecx, dword [rsi + 0x44]
sub ebp, edx
add ecx, 0xfffffefa
sub ebp, r9d
add ecx, ebx
cmp edx, ecx
jb 0x14006b9d0
mov rcx, qword [rsi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1400e06a0
mov r8d, dword [rsi + 0x74]
mov rax, qword [rsi + 0x68]
sub dword [rsi + 0x98], ebx
sub dword [rsi + 0x94], ebx
sub dword [rsi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, bx
cmp ecx, ebx
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x14006b980
mov rax, qword [rsi + 0x60]
mov r8d, ebx
lea rdx, [rax + rbx*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, bx
cmp ecx, ebx
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x14006b9b0
add ebp, ebx
mov r14, qword [rsi]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x14006baad
mov edx, dword [rsi + 0x9c]
mov r15d, dword [rsi + 0x94]
add r15, rdx
add r15, qword [rsi + 0x50]
cmp ecx, ebp
cmovbe ebp, ecx
test ebp, ebp
jne 0x14006ba01
mov ebp, r12d
jmp 0x14006ba59
mov rax, qword [r14 + 0x28]
sub ecx, ebp
mov dword [r14 + 8], ecx
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x14006ba24
mov rdx, qword [r14]
mov r8d, ebp
mov ecx, dword [r14 + 0x4c]
call fcn.14006e190
jmp 0x14006ba38
cmp ecx, 2
jne 0x14006ba3c
mov rdx, qword [r14]
mov r8d, ebp
mov ecx, dword [r14 + 0x4c]
call fcn.14006bdf0
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, ebp
mov edi, ebp
call fcn.1400e06a0
add qword [r14], rdi
add dword [r14 + 0xc], ebp
mov edx, dword [rsi + 0x9c]
lea r9d, [rdx + rbp]
mov dword [rsi + 0x9c], r9d
cmp r9d, 3
jb 0x14006ba97
mov eax, dword [rsi + 0x94]
mov rdx, qword [rsi + 0x50]
mov ecx, dword [rsi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rsi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rsi + 0x7c]
mov dword [rsi + 0x70], r8d
cmp r9d, 0x106
jae 0x14006baad
mov rax, qword [rsi]
cmp dword [rax + 8], r12d
jne 0x14006b930
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret