joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ef4a4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xf78]
mov eax, 0x1070
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rbp + 0xf60], rax
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], 0x60b00
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, 0xc
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, str.VerInfo
lea rcx, [0x14012b2a0]
call fcn.1400add48
lea esi, [rdi - 0xb]
mov ebx, 0x800
mov r8b, sil
lea rcx, [rsp + 0x60]
mov edx, ebx
call fcn.140086a38
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140085ac8
mov r8d, ebx
lea rdx, str.version.dat
lea rcx, [rsp + 0x60]
call fcn.14009cca0
and dword [rsp + 0x40], 0
lea rdx, [0x14012ece0]
lea rcx, [rsp + 0x60]
call fcn.140077628
mov rbx, rax
test rax, rax
je 0x1400ef57f
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
mov edx, esi
call fcn.140115d98
mov rcx, rbx
call fcn.140111fa8
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
je 0x1400ef630
lea rdx, str.VerInfo
mov r9, rdi
lea rcx, [0x14012b2a0]
cmp dword [rsp + 0x40], eax
je 0x1400ef608
lea r8, [rsp + 0x50]
call fcn.1400ae958
call fcn.1400ae65c
test al, al
jne 0x1400ef5eb
lea rdx, [0x14012b540]
lea rcx, [rsp + 0x60]
call fcn.140077628
mov rbx, rax
test rax, rax
je 0x1400ef5eb
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rsi
call fcn.140112590
mov rcx, rbx
call fcn.140111fa8
call fcn.1400ae664
neg al
mov edx, 0x168
sbb ecx, ecx
not ecx
and ecx, edx
mov dword [0x1401734d0], ecx
jmp 0x1400ef6c7
movsd xmm0, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
mov eax, dword [rsp + 0x48]
movsd qword [rsp + 0x30], xmm0
mov dword [rsp + 0x38], eax
call fcn.1400ae958
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jne 0x1400ef687
cmp dword [rsp + 0x40], eax
je 0x1400ef687
movsd xmm0, qword [rsp + 0x30]
mov eax, dword [rsp + 0x38]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
call fcn.1400ae65c
test al, al
jne 0x1400ef687
lea rdx, [0x14012b540]
lea rcx, [rsp + 0x60]
call fcn.140077628
mov rbx, rax
test rax, rax
je 0x1400ef687
mov r9, rax
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.140112590
mov rcx, rbx
call fcn.140111fa8
mov ecx, dword [rsp + 0x38]
mov eax, dword [rsp + 0x58]
shl rax, 0x20
shl rcx, 0x20
sub rax, rcx
mov ecx, dword [rsp + 0x34]
sub rax, rcx
mov ecx, dword [rsp + 0x54]
add rax, rcx
movabs rcx, 0xc92a69c000
cqo
idiv rcx
mov edx, 0x168
test eax, eax
cmovs eax, edx
mov dword [0x1401734d0], eax
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.140105c50
lea r11, [rsp + 0x1070]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400f0888
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov bl, r8b
mov rdi, rdx
mov ecx, dword [0x1402120b0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1401e90a0], eax
jg 0x1400f0950
mov r8b, 1
mov rdx, rdi
lea rsi, [0x1401e4f70]
mov rcx, rsi
call fcn.1400f20f8
mov al, bl
xor al, 1
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x20], al
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call fcn.1400f323c
test al, al
jne 0x1400f091c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.1400f0d08
cmp ebx, 0x4c7
je 0x1400f093e
xor al, al
jmp 0x1400f0940
test bl, bl
je 0x1400f0936
mov r8, rsi
mov edx, 0x10000
lea rcx, [0x1400f1010]
call fcn.140112998
jmp 0x1400f093e
mov rcx, rsi
call fcn.1400f0d08
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rcx, [0x1401e90a0]
call fcn.1401062d8
cmp dword [0x1401e90a0], 0xffffffff
jne 0x1400f08c4
lea rcx, [0x1401e8f9e]
call fcn.140099ff4
nop
lea rcx, [0x1401284f0]
call fcn.14010612c
nop
lea rcx, [0x1401e90a0]
call fcn.140106278
jmp 0x1400f08c4
Function at 0x1400f1834
Capabilities:
Create thread
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f50]
mov eax, 0x3050
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rbp + 0x2f40], rax
mov r15b, r8b
mov r12, rdx
xor r13d, r13d
mov ebx, 0x800
test r9, r9
jne 0x1400f18c7
mov dword [rsp + 0x20], ebx
lea r9, [0x14012ae60]
lea r8, [rsp + 0x40]
lea rdx, str.ExternalViewer
lea rcx, [0x14012bac8]
call fcn.1400adec0
mov r8d, ebx
lea rdx, [rbp + 0x1f40]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400f18d7
lea rdx, [rbp + 0x1f40]
jmp 0x1400f18ca
mov rdx, r9
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14009ccc8
cmp word [rsp + 0x40], r13w
jne 0x1400f18e6
xor al, al
jmp 0x1400f1aa1
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0xf40]
call fcn.14009ccc8
mov rdx, rbx
lea rcx, [rbp + 0xf40]
call fcn.1400b6db8
lea rcx, [rsp + 0x40]
call fcn.140076738
test al, al
jne 0x1400f19fd
mov eax, 0x22
cmp word [rsp + 0x40], ax
jne 0x1400f193c
mov edx, eax
lea rcx, [rsp + 0x42]
call fcn.140106f38
test rax, rax
je 0x1400f19fd
jmp 0x1400f1941
lea rax, [rsp + 0x40]
lea rdx, [0x1401423d8]
mov rcx, rax
call fcn.140116560
mov rdi, rax
test rax, rax
je 0x1400f19fd
mov rsi, rax
movzx ecx, word [rax]
jmp 0x1400f196b
add rsi, 2
movzx ecx, word [rsi]
call fcn.14009c8b0
test al, al
jne 0x1400f1964
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x1f40]
call fcn.14009ccc8
mov r8, rbx
lea rdx, [0x14012ee7c]
lea rcx, [rbp + 0x1f40]
call fcn.14009cca0
mov r8, rbx
lea rdx, [rbp + 0xf40]
lea rcx, [rbp + 0x1f40]
call fcn.14009cca0
movzx r14d, word [rdi]
mov word [rdi], r13w
mov eax, 0x22
cmp word [rsp + 0x40], ax
je 0x1400f19e7
lea rcx, [rsp + 0x40]
call fcn.140076738
test al, al
jne 0x1400f19e7
mov word [rdi], r14w
lea rax, [rsi + 2]
test rax, rax
jne 0x1400f1941
jmp 0x1400f19fd
mov r8, rbx
lea rdx, [rbp + 0x1f40]
lea rcx, [rbp + 0xf40]
call fcn.14009ccc8
mov ecx, dword [0x1402120b0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401e4f60], ecx
jg 0x1400f1acb
mov r8b, 1
mov rdx, r12
lea rbx, [0x1401e0e30]
mov rcx, rbx
call fcn.1400f20f8
mov al, r15b
xor al, 1
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], al
lea r9, [rbp + 0xf40]
xor r8d, r8d
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1400f323c
test al, al
jne 0x1400f1a73
mov rcx, rbx
call fcn.1400f0d08
jmp 0x1400f18df
test r15b, r15b
je 0x1400f1a97
cmp qword [0x1401e0e30], r13
je 0x1400f1a97
mov r8, rbx
mov edx, 0x10000
lea rcx, [0x1400f1010]
call fcn.140112998
jmp 0x1400f1a9f
mov rcx, rbx
call fcn.1400f0d08
mov al, 1
mov rcx, qword [rbp + 0x2f40]
xor rcx, rsp
call fcn.140105c50
mov rbx, qword [rsp + 0x3090]
add rsp, 0x3050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401e4f60]
call fcn.1401062d8
cmp dword [0x1401e4f60], 0xffffffff
jne 0x1400f1a24
lea rcx, [0x1401e4e5e]
call fcn.140099ff4
nop
lea rcx, [0x140128500]
call fcn.14010612c
nop
lea rcx, [0x1401e4f60]
call fcn.140106278
jmp 0x1400f1a24
Function at 0x1400f1b10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
mov eax, 0x1050
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rdx
mov rcx, rdx
call fcn.1400f27e4
test al, al
je 0x1400f1b78
mov ecx, 0x65
call fcn.140096d58
mov rbx, rax
mov ecx, 0x596
call fcn.140096d58
mov r9d, 0x30
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x140172470]
call fcn.1400d7004
jmp 0x1400f1cb0
cmp byte [0x1401724a0], 0
jne 0x1400f1bc4
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call fcn.1400f323c
test al, al
jne 0x1400f1cb0
mov ecx, 0x201
call fcn.140096d58
mov rcx, rax
mov rdx, rbx
call fcn.1400dba04
jmp 0x1400f1cb0
mov cl, 1
call fcn.1400d0bbc
mov r9b, 1
mov esi, 0x800
mov r8d, esi
lea rdx, [0x140182f2e]
lea rcx, str.Rar_EX
call fcn.1400d5c80
test al, al
je 0x1400f1cb0
mov r8d, esi
lea rdx, [0x14018f49a]
lea rcx, [0x14019de40]
call fcn.140006578
mov eax, dword [0x14019de44]
mov dword [0x14018a430], eax
lea rdx, [0x14012b2c0]
lea rcx, [0x1401904a0]
call fcn.14009cd2c
mov dword [0x14018941c], 2
mov r9d, esi
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [0x140182f2e]
call fcn.140086fb4
xor r8d, r8d
xor edx, edx
lea rcx, [0x14019de40]
call fcn.14000602c
cmp byte [0x1401724a3], 0
jne 0x1400f1cb0
mov ecx, dword [0x1402120b0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401ed1e0], ecx
jg 0x1400f1cd1
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [0x1401e90b0]
call fcn.1400f20f8
lea r8, [0x1401e90b0]
mov edx, 0x10000
lea rcx, [0x1400f1010]
call fcn.140112998
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140105c50
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rsi
ret
lea rcx, [0x1401ed1e0]
call fcn.1401062d8
cmp dword [0x1401ed1e0], 0xffffffff
jne 0x1400f1c84
lea rcx, [0x1401ed0de]
call fcn.140099ff4
nop
lea rcx, [0x140128510]
call fcn.14010612c
nop
lea rcx, [0x1401ed1e0]
call fcn.140106278
jmp 0x1400f1c84
Function at 0x1400f1f00
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x6000]
mov eax, 0x6100
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rbp + 0x5ff0], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, r8
call fcn.1400876ec
mov r10, rax
or rdx, 0xffffffffffffffff
mov r8, rdx
xor ebx, ebx
inc r8
cmp word [rdi + r8*2], bx
jne 0x1400f1f47
inc rdx
cmp word [rax + rdx*2], bx
jne 0x1400f1f51
lea rax, [rdx + 1]
add rax, r8
mov r14d, 0x1000
cmp rax, r14
jb 0x1400f1f73
xor al, al
jmp 0x1400f2089
mov r9, r14
lea r8, [rbp + 0x3ff0]
mov rdx, r10
mov rcx, rdi
call fcn.140086fb4
lea rcx, [rsp + 0x30]
call fcn.14009ccfc
nop
mov dword [rsp + 0x20], r14d
lea r9, [0x14012ae60]
lea r8, [rbp + 0x1ff0]
lea rdx, str.ViewerIgnoreModifications
lea rcx, [0x14012bac8]
call fcn.1400adec0
cmp word [rbp + 0x1ff0], bx
je 0x1400f1fd9
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1ff0]
call fcn.1400b7530
mov r14d, 0x800
mov r8, r14
lea rdx, [rbp + 0xff0]
lea rcx, [rsp + 0x30]
call fcn.14009ce00
test al, al
je 0x1400f207d
mov r8d, r14d
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0xff0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400f1fdf
lea rdx, [0x14014223c]
lea rcx, [rbp - 0xe]
call fcn.140108cd8
test rax, rax
je 0x1400f205a
mov word [rax], bx
add rax, 4
lea rdi, [0x14012b2c0]
cmp word [rax], bx
cmovne rdi, rax
mov r8d, 5
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.14007abc8
test al, al
je 0x1400f1fdf
jmp 0x1400f205e
lea rdi, [rbp - 0x10]
mov r8d, 5
lea rdx, [rbp + 0x3ff0]
mov rcx, rdi
call fcn.14007abc8
test al, al
je 0x1400f1fdf
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.140004d3c
mov al, bl
mov rcx, qword [rbp + 0x5ff0]
xor rcx, rsp
call fcn.140105c50
add rsp, 0x6100
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400f323c
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1fa0]
mov eax, 0x20a0
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rbp + 0x1f90], rax
mov rsi, qword [rbp + 0x2008]
lea rcx, [rsp + 0x20]
mov rbx, qword [rbp + 0x2010]
mov rdi, rdx
xor edx, edx
mov r15, r8
mov r12, r9
lea r8d, [rdx + 0x70]
call fcn.140108940
mov eax, 0x500
mov dword [rsp + 0x20], 0x70
xor r13d, r13d
mov qword [rsp + 0x38], rdi
cmp byte [rbp + 0x2000], r13b
mov qword [rsp + 0x30], rbx
lea ecx, [rax + 0x40]
cmove eax, ecx
mov rcx, rdi
mov dword [rsp + 0x24], eax
call fcn.1400868ac
test rax, rax
je 0x1400f32d9
cmp word [rax], 0x2e
jne 0x1400f32ea
cmp word [rax + 2], r13w
jne 0x1400f32ea
or dword [rsp + 0x24], 1
lea rax, [0x14012bf68]
mov qword [rsp + 0x68], rax
mov rcx, rdi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
call fcn.1400876ec
cmp rax, rdi
jne 0x1400f3335
lea rdx, [0x14012b130]
mov rcx, rdi
call fcn.140085afc
test al, al
jne 0x1400f3335
mov r9, rdi
lea r8, str.._s
mov edx, 0x1000
lea rcx, [rbp - 0x70]
call fcn.1400027fc
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 1
mov byte [0x1401724a1], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test eax, eax
jne 0x1400f338a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x1400f3371
test rsi, rsi
je 0x1400f336a
mov qword [rsi], r13
mov al, 1
jmp 0x1400f3453
cmp qword [rsp + 0x30], r13
je 0x1400f338a
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r13
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov byte [0x1401724a1], r13b
test ebx, ebx
je 0x1400f3451
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x1400f3451
cmp byte [rbp + 0x2000], r13b
jne 0x1400f336a
mov r8, qword [rbp - 0x78]
lea rdi, [0x140000000]
test r8, r8
je 0x1400f33f8
movsxd rdx, dword [0x1401e0e20]
mov rax, qword [rsp + 0x58]
mov qword [rdi + rdx*8 + 0x1e0d20], r8
mov qword [rdi + rdx*8 + 0x1e0da0], rax
inc edx
and edx, 0x8000000f
jge 0x1400f33f0
dec edx
or edx, 0xfffffff0
inc edx
mov dword [0x1401e0e20], edx
jmp 0x1400f3440
mov rbx, r13
mov rax, qword [rsp + 0x58]
cmp qword [rbx + rdi + 0x1e0da0], rax
jne 0x1400f3433
mov rcx, qword [rbx + rdi + 0x1e0d20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400f342f
mov r8, qword [rbx + rdi + 0x1e0d20]
mov qword [rbp - 0x78], r8
jmp 0x1400f3433
mov r8, qword [rbp - 0x78]
add rbx, 8
cmp rbx, 0x80
jl 0x1400f33fb
test rsi, rsi
je 0x1400f336a
mov qword [rsi], r8
jmp 0x1400f336a
xor al, al
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.140105c50
add rsp, 0x20a0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400f394c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1401724c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400f399b
mov ecx, 0x2bc
call fcn.140096d58
mov ecx, 0x2bd
mov rbx, rax
call fcn.140096d58
mov rcx, qword [0x140172470]
mov r9d, 0x40
mov r8, rbx
mov rdx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400d7004
xor r8d, r8d
lea rdx, [0x1401724c0]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400f2260
Function at 0x1400f6f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r13, dword [rdx + 0x1c]
lea r11, [0x140000000]
mov r14, qword [rdx]
xor r9d, r9d
mov rbx, qword [rdx + 8]
or esi, 0xffffffff
mov dword [0x1401f01bc], r9d
mov r12d, 0x23d
mov dword [0x1401f0ad4], r12d
mov r15, rdx
mov rbp, rcx
mov edi, r9d
lea r10d, [rsi + 2]
mov edx, r9d
test r13d, r13d
jle 0x1400f6fd7
mov ecx, r9d
cmp word [r14 + rcx*4], r9w
je 0x1400f6fbd
add edi, r10d
mov esi, edx
movsxd rax, edi
mov dword [0x1401f01bc], edi
mov dword [r11 + rax*4 + 0x1f01e0], edx
cmp rcx, r12
jae 0x1400f71d1
mov byte [rcx + r11 + 0x1f0ae0], r9b
jmp 0x1400f6fc3
mov word [r14 + rcx*4 + 2], r9w
add edx, r10d
add rcx, r10
cmp rcx, r13
jl 0x1400f6f8d
cmp edi, 2
jge 0x1400f7085
mov r9d, dword [0x1401f1098]
mov r8d, dword [0x1401f1118]
movsxd r11, esi
cmp esi, 2
lea rdx, [r11 + 1]
lea ecx, [rsi + 1]
mov rax, rdx
cmovge rax, r11
lea r15, [0x140000000]
mov r10d, ecx
mov r11, rax
cmovge r10d, esi
mov eax, 0
inc edi
cmp esi, 2
mov dword [0x1401f01bc], edi
cmovge ecx, eax
movsxd rax, edi
mov dword [r15 + rax*4 + 0x1f01e0], ecx
mov eax, 0
mov r15, qword [rsp + 0x68]
cmovge rdx, rax
lea ecx, [rax + 1]
mov word [r14 + rdx*4], cx
cmp rdx, r12
jae 0x1400f71d1
dec r9d
lea rcx, [0x140000000]
mov byte [rdx + rcx + 0x1f0ae0], al
mov dword [0x1401f1098], r9d
test rbx, rbx
je 0x1400f7073
movzx eax, word [rbx + rdx*4 + 2]
sub r8d, eax
mov dword [0x1401f1118], r8d
mov esi, r10d
cmp edi, 2
jl 0x1400f6fe8
mov r10d, 1
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x1400f70b3
mov r8d, ebx
mov rdx, r14
mov rcx, rbp
call fcn.1400f835c
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x1400f7097
lea r15, [0x140000000]
movsxd rbx, dword [0x1401f01e4]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov dword [0x1401f01bc], edi
mov ecx, dword [r15 + rax*4 + 0x1f01e0]
mov dword [0x1401f01e4], ecx
mov rcx, rbp
call fcn.1400f835c
movsxd rcx, dword [0x1401f01e4]
lea eax, [r12 - 1]
movsxd rdx, eax
mov r9, rcx
dec eax
mov qword [rsp + 0x78], rdx
mov r12d, eax
mov r10d, 1
movzx eax, word [r14 + rcx*4]
mov r8d, r10d
add ax, word [r14 + rbx*4]
mov dword [r15 + rdx*4 + 0x1f01e0], ebx
mov dword [r15 + rdx*4 + 0x1f01dc], ecx
movzx ecx, byte [rbx + r15 + 0x1f0ae0]
movsxd rdx, r13d
mov word [r14 + rdx*4], ax
movzx eax, byte [r9 + r15 + 0x1f0ae0]
cmp cl, al
mov word [r14 + r9*4 + 2], r13w
mov word [r14 + rbx*4 + 2], r13w
cmovbe ecx, eax
mov eax, r13d
add cl, r10b
mov dword [0x1401f01e4], eax
mov byte [rdx + r15 + 0x1f0ae0], cl
add r13d, r10d
mov rdx, r14
mov rcx, rbp
call fcn.1400f835c
mov r10d, 1
cmp edi, 2
jge 0x1400f70ba
mov rcx, qword [rsp + 0x78]
mov eax, r12d
mov rdx, qword [rsp + 0x68]
dec eax
mov dword [0x1401f0ad4], eax
mov eax, dword [0x1401f01e4]
mov dword [r15 + rcx*4 + 0x1f01d8], eax
mov rcx, rbp
call fcn.1400f7ff8
mov r8d, esi
mov rdx, r14
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1400f8238
call fcn.1401059c4
int3
Function at 0x1400fa590
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fb0]
mov eax, 0x30b0
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rbp + 0x2fa0], rax
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov rax, rdx
mov r9, r8
sub r9, rdx
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x1400fa5ee
add rax, 2
test r8d, r8d
jne 0x1400fa5d8
test edx, edx
je 0x1400fa7f3
xor r14b, r14b
lea rdx, [rbp + 0x1fa0]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [rbp + 0x1fa0]
call fcn.140111de8
mov r15d, eax
mov r13d, 1
cmp word [rbp + 0x1fa0], 0x5c
je 0x1400fa664
cmp word [rsi], 0x5c
je 0x1400fa664
cmp word [rdi], 0x5c
je 0x1400fa664
movzx ecx, word [rsi]
call fcn.140111de8
mov ebx, eax
movzx ecx, word [rdi]
call fcn.140111de8
cmp word [rsi + 2], 0x3a
cmovne ebx, r15d
cmp word [rdi + 2], 0x3a
cmovne eax, r15d
movzx r14d, r14b
cmp ebx, eax
cmovne r14d, r13d
mov rcx, rdi
call fcn.140076738
test al, al
je 0x1400fa6ba
lea rcx, [rsp + 0x20]
call fcn.140074f24
nop
mov r8d, 9
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140075500
test al, al
je 0x1400fa717
lea rcx, [rsp + 0x20]
call fcn.140075030
test al, al
je 0x1400fa717
mov rcx, rdi
call fcn.140076460
test al, al
je 0x1400fa717
lea rcx, [rsp + 0x20]
call fcn.140074f6c
test r14b, r14b
jne 0x1400fa6d2
mov rdx, rdi
mov rcx, rsi
call fcn.140076e04
test al, al
jne 0x1400fa7f3
lea rcx, [rsp + 0x20]
call fcn.140074f24
nop
lea rcx, [rbp + 0xf60]
call fcn.140074f24
nop
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140075500
test al, al
jne 0x1400fa72b
mov rdx, rsi
lea rcx, [0x1401af488]
call fcn.14007018c
mov ebx, 0xa
jmp 0x1400fa7b8
lea rcx, [rsp + 0x20]
call fcn.140074f6c
mov eax, 0xf
jmp 0x1400fa7f5
mov r8d, 0x12
mov rdx, rdi
lea rcx, [rbp + 0xf60]
call fcn.1400751c4
test al, al
jne 0x1400fa74b
mov ebx, 0xf
jmp 0x1400fa7b8
xor edx, edx
lea rcx, [0x1401af488]
call fcn.140070298
or r9, 0xffffffffffffffff
lea r8, [rbp + 0xf60]
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.1400fa058
mov r14d, eax
lea rcx, [rsp + 0x20]
call fcn.140075030
lea rcx, [rbp + 0xf60]
call fcn.140075030
mov dl, r13b
lea rcx, [0x1401af488]
call fcn.140070298
test r14d, r14d
je 0x1400fa7d3
mov rcx, rdi
call fcn.140076460
mov eax, 0xe
lea ebx, [rax - 4]
cmp r14d, ebx
cmove r14d, eax
mov ebx, r14d
lea rcx, [rbp + 0xf60]
call fcn.140074f6c
nop
lea rcx, [rsp + 0x20]
call fcn.140074f6c
mov eax, ebx
jmp 0x1400fa7f5
mov rcx, rsi
call fcn.140076460
nop
lea rcx, [rbp + 0xf60]
call fcn.140074f6c
nop
lea rcx, [rsp + 0x20]
call fcn.140074f6c
xor eax, eax
mov rcx, qword [rbp + 0x2fa0]
xor rcx, rsp
call fcn.140105c50
mov rbx, qword [rsp + 0x30f0]
add rsp, 0x30b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fae70
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rsi, [0x140211150]
mov rcx, rsi
mov rdi, rdx
call fcn.14006be64
mov r8d, 0x12345678
mov r9d, 0x23456789
mov dword [rbx + 0x1e8], r8d
mov edx, 0x34567890
mov dword [rbx + 0x1ec], r9d
jmp 0x1400faf01
movsx rcx, al
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
movzx eax, r8b
add eax, r9d
mov dword [rbx + 0x1e8], r8d
imul r9d, eax, 0x8088405
mov eax, edx
shr edx, 8
inc r9d
mov ecx, r9d
mov dword [rbx + 0x1ec], r9d
shr rcx, 0x18
xor rcx, rax
movzx eax, cl
xor edx, dword [rsi + rax*4]
inc rdi
mov dword [rbx + 0x1f0], edx
mov al, byte [rdi]
test al, al
jne 0x1400faeb5
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

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 r15
sub rsp, 0x30
cmp byte [0x140187040], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1400fb002
cmp byte [rcx + 4], 0
je 0x1400faf6d
mov r8d, edi
add rcx, 8
imul r8d, esi
call fcn.1400c45f4
jmp 0x1400fb002
mov r10, rsi
mov r11, rbp
imul r10, rdi
test r10, r10
je 0x1400fb002
lea r15, [0x140211150]
movsx rax, byte [r11]
mov r8d, dword [rbx + 0x1f0]
mov r9d, r8d
mov edx, dword [rbx + 0x1e8]
and r9d, 0xfffd
xor rax, rdx
or r9d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1ec]
imul eax, eax, 0x8088405
mov dword [rbx + 0x1e8], edx
inc eax
mov dword [rbx + 0x1ec], eax
shr rax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
xor r8d, dword [r15 + rax*4]
mov eax, r9d
xor eax, 1
mov dword [rbx + 0x1f0], r8d
imul eax, r9d
shr eax, 8
xor byte [r11], al
inc r11
sub r10, 1
jne 0x1400faf87
and dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.1400f9bcc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140103310
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140103348
test al, 0x10
jne 0x140103344
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140103348
mov al, 1
jmp 0x14010335e
mov rdx, qword [rdi + 0x64bb08]
mov r8, rbx
mov ecx, 0x11
call fcn.1400049cc
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret