joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e1080
Capabilities:
Create thread
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f60]
mov eax, 0x3060
call fcn.1400f31b0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x30a0], rbx
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov r15b, r8b
mov r12, rdx
xor r13d, r13d
mov ebx, 0x800
test r9, r9
jne 0x1400e1120
mov dword [rsp + 0x20], ebx
lea r9, [0x140111128]
lea r8, [rsp + 0x50]
lea rdx, str.ExternalViewer
lea rcx, [0x140112150]
call fcn.1400a0710
mov r8d, ebx
lea rdx, [rbp + 0x1f50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400e1130
lea rdx, [rbp + 0x1f50]
jmp 0x1400e1123
mov rdx, r9
mov r8, rbx
lea rcx, [rsp + 0x50]
call fcn.14008eff0
cmp word [rsp + 0x50], r13w
jne 0x1400e113f
xor al, al
jmp 0x1400e1331
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0xf50]
call fcn.14008eff0
mov rdx, rbx
lea rcx, [rbp + 0xf50]
call fcn.1400a9368
lea rcx, [rsp + 0x50]
call fcn.140069278
test al, al
jne 0x1400e1255
mov eax, 0x22
cmp word [rsp + 0x50], ax
jne 0x1400e118f
mov edx, eax
lea rcx, [rsp + 0x52]
call fcn.1400f4370
jmp 0x1400e1234
lea rax, [rsp + 0x50]
jmp 0x1400e1234
lea rdx, [0x14012bcb8]
mov rcx, rax
call fcn.1400fef08
mov rdi, rax
test rax, rax
je 0x1400e1255
mov rsi, rax
movzx ecx, word [rax]
jmp 0x1400e11c3
add rsi, 2
movzx ecx, word [rsi]
call fcn.14008ebd0
test al, al
jne 0x1400e11bc
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x1f50]
call fcn.14008eff0
mov r8, rbx
lea rdx, [0x140115bc4]
lea rcx, [rbp + 0x1f50]
call fcn.14008efc8
mov r8, rbx
lea rdx, [rbp + 0xf50]
lea rcx, [rbp + 0x1f50]
call fcn.14008efc8
movzx r14d, word [rdi]
mov word [rdi], r13w
mov eax, 0x22
cmp word [rsp + 0x50], ax
je 0x1400e123f
lea rcx, [rsp + 0x50]
call fcn.140069278
test al, al
jne 0x1400e123f
mov word [rdi], r14w
lea rax, [rsi + 2]
test rax, rax
jne 0x1400e1199
jmp 0x1400e1255
mov r8, rbx
lea rdx, [rbp + 0x1f50]
lea rcx, [rbp + 0xf50]
call fcn.14008eff0
mov ecx, dword [0x1401f2a40]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401c59e0], ecx
jle 0x1400e12b3
lea rcx, [0x1401c59e0]
call fcn.1400f3948
cmp dword [0x1401c59e0], 0xffffffff
jne 0x1400e12b3
lea rcx, [0x1401c58de]
call fcn.14008c240
nop
lea rcx, [0x14010ff04]
call fcn.1400f3758
nop
lea rcx, [0x1401c59e0]
call fcn.1400f38e8
mov r8b, 1
mov rdx, r12
lea rbx, [0x1401c18b0]
mov rcx, rbx
call fcn.1400e1904
test r15b, r15b
sete al
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], al
lea r9, [rbp + 0xf50]
xor r8d, r8d
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.1400e2a24
test al, al
jne 0x1400e1303
mov rcx, rbx
call fcn.1400e0630
jmp 0x1400e1138
test r15b, r15b
je 0x1400e1327
cmp qword [0x1401c18b0], r13
je 0x1400e1327
mov r8, rbx
mov edx, 0x10000
lea rcx, [0x1400e091c]
call fcn.1400fabf8
jmp 0x1400e132f
mov rcx, rbx
call fcn.1400e0630
mov al, 1
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0x30a0]
add rsp, 0x3060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e135c
Capabilities:
Create thread

Disassembly:
push rsi
mov eax, 0x1060
call fcn.1400f31b0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1070], rbx
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbx, rdx
mov rcx, rdx
call fcn.1400e1fd4
test al, al
je 0x1400e13d1
mov ecx, 0x65
call fcn.140088ebc
mov rbx, rax
mov ecx, 0x596
call fcn.140088ebc
mov rdx, rax
mov r9d, 0x30
mov r8, rbx
mov rcx, qword [0x14015bc78]
call fcn.1400c81a0
jmp 0x1400e1548
cmp byte [0x14015bbe2], 0
jne 0x1400e141d
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.1400e2a24
test al, al
jne 0x1400e1548
mov ecx, 0x201
call fcn.140088ebc
mov rcx, rax
mov rdx, rbx
call fcn.1400cc528
jmp 0x1400e1548
mov cl, 1
call fcn.1400c1ec4
mov r9b, 1
mov esi, 0x800
mov r8d, esi
lea rdx, [0x1401697ae]
lea rcx, str.Rar_EX
call fcn.1400c6ebc
test al, al
je 0x1400e1548
mov r8d, esi
lea rdx, [0x140172d0a]
lea rcx, [0x14017e620]
call fcn.140005120
mov eax, dword [0x14017e624]
mov dword [0x14016fca8], eax
lea rdx, [0x140111558]
lea rcx, [0x140173d10]
call fcn.14008f060
mov dword [0x14016ec94], 2
mov r9d, esi
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [0x1401697ae]
call fcn.140079704
xor r8d, r8d
xor edx, edx
lea rcx, [0x14017e620]
call fcn.140004c68
cmp byte [0x14015abb6], 0
jne 0x1400e1548
mov ecx, dword [0x1401f2a40]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401cdc60], ecx
jle 0x1400e151c
lea rcx, [0x1401cdc60]
call fcn.1400f3948
cmp dword [0x1401cdc60], 0xffffffff
jne 0x1400e151c
lea rcx, [0x1401cdb5e]
call fcn.14008c240
nop
lea rcx, [0x14010ff24]
call fcn.1400f3758
nop
lea rcx, [0x1401cdc60]
call fcn.1400f38e8
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [0x1401c9b30]
call fcn.1400e1904
lea r8, [0x1401c9b30]
mov edx, 0x10000
lea rcx, [0x1400e091c]
call fcn.1400fabf8
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1060
pop rsi
ret
Function at 0x1400e1754
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x6010]
mov eax, 0x6110
call fcn.1400f31b0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0x6000], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, r8
call fcn.140079c5c
mov r10, rax
or rdx, 0xffffffffffffffff
mov r8, rdx
xor ebx, ebx
inc r8
cmp word [rdi + r8*2], bx
jne 0x1400e17a4
inc rdx
cmp word [rax + rdx*2], bx
jne 0x1400e17ae
lea rax, [rdx + 1]
add rax, r8
mov r14d, 0x1000
cmp rax, r14
jb 0x1400e17d0
xor al, al
jmp 0x1400e18e7
mov r9, r14
lea r8, [rbp + 0x4000]
mov rdx, r10
mov rcx, rdi
call fcn.140079704
lea rcx, [rsp + 0x40]
call fcn.14008f024
nop
mov dword [rsp + 0x20], r14d
lea r9, [0x140111128]
lea r8, [rbp + 0x2000]
lea rdx, str.ViewerIgnoreModifications
lea rcx, [0x140112150]
call fcn.1400a0710
cmp word [rbp + 0x2000], bx
je 0x1400e1836
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x2000]
call fcn.1400a9588
mov r14d, 0x800
mov r8, r14
lea rdx, [rbp + 0x1000]
lea rcx, [rsp + 0x40]
call fcn.14008f134
test al, al
je 0x1400e18db
mov r8d, r14d
lea rdx, [rbp]
lea rcx, [rbp + 0x1000]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400e183c
lea rdx, [0x14012bb3c]
lea rcx, [rbp + 2]
call fcn.1400f57f8
mov rdi, rax
test rax, rax
je 0x1400e18b8
mov word [rax], bx
add rdi, 4
cmp word [rdi], bx
jne 0x1400e18a0
lea rdi, [0x140111558]
mov r8d, 5
mov rdx, rsi
lea rcx, [rbp]
call fcn.14006d394
test al, al
je 0x1400e183c
jmp 0x1400e18bc
lea rdi, [rbp]
mov r8d, 5
lea rdx, [rbp + 0x4000]
mov rcx, rdi
call fcn.14006d394
test al, al
je 0x1400e183c
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.140004118
mov al, bl
mov rcx, qword [rbp + 0x6000]
xor rcx, rsp
call fcn.1400f3220
add rsp, 0x6110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400e2a24
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.1400f31b0
sub rsp, rax
mov rax, qword [0x1401542d0]
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.1400f4420
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.140078fec
test rax, rax
je 0x1400e2ac1
cmp word [rax], 0x2e
jne 0x1400e2ad2
cmp word [rax + 2], r13w
jne 0x1400e2ad2
or dword [rsp + 0x24], 1
lea rax, [0x140111974]
mov qword [rsp + 0x68], rax
mov rcx, rdi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
call fcn.140079c5c
cmp rax, rdi
jne 0x1400e2b1d
lea rdx, [0x140111580]
mov rcx, rdi
call fcn.1400782dc
test al, al
jne 0x1400e2b1d
mov r9, rdi
lea r8, str.._s
mov edx, 0x1000
lea rcx, [rbp - 0x70]
call fcn.140002694
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 1
mov byte [0x14015abb4], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test eax, eax
jne 0x1400e2b72
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x1400e2b59
test rsi, rsi
je 0x1400e2b52
mov qword [rsi], r13
mov al, 1
jmp 0x1400e2c3b
cmp qword [rsp + 0x30], r13
je 0x1400e2b72
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r13
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov byte [0x14015abb4], r13b
test ebx, ebx
je 0x1400e2c39
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x1400e2c39
cmp byte [rbp + 0x2000], r13b
jne 0x1400e2b52
mov r8, qword [rbp - 0x78]
lea rdi, [0x140000000]
test r8, r8
je 0x1400e2be0
movsxd rdx, dword [0x1401c18a0]
mov rax, qword [rsp + 0x58]
mov qword [rdi + rdx*8 + 0x1c17a0], r8
mov qword [rdi + rdx*8 + 0x1c1820], rax
inc edx
and edx, 0x8000000f
jge 0x1400e2bd8
dec edx
or edx, 0xfffffff0
inc edx
mov dword [0x1401c18a0], edx
jmp 0x1400e2c28
mov rbx, r13
mov rax, qword [rsp + 0x58]
cmp qword [rbx + rdi + 0x1c1820], rax
jne 0x1400e2c1b
mov rcx, qword [rbx + rdi + 0x1c17a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400e2c17
mov r8, qword [rbx + rdi + 0x1c17a0]
mov qword [rbp - 0x78], r8
jmp 0x1400e2c1b
mov r8, qword [rbp - 0x78]
add rbx, 8
cmp rbx, 0x80
jl 0x1400e2be3
test rsi, rsi
je 0x1400e2b52
mov qword [rsi], r8
jmp 0x1400e2b52
xor al, al
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.1400f3220
add rsp, 0x20a0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400e3168
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x14015abd0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400e31b7
mov ecx, 0x2bc
call fcn.140088ebc
mov ecx, 0x2bd
mov rbx, rax
call fcn.140088ebc
mov rcx, qword [0x14015bc78]
mov rdx, rax
mov r9d, 0x40
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c81a0
xor r8d, r8d
lea rdx, [0x14015abd0]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400e1a6c
Function at 0x1400e5e78
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 r9, [0x140000000]
mov r14, qword [rdx]
xor ebx, ebx
mov r11, qword [rdx + 8]
or esi, 0xffffffff
mov dword [rsp + 0x70], esi
mov ebp, 0x23d
mov dword [0x1401d15a4], ebx
mov r12, rcx
mov dword [0x1401d15a8], ebp
mov r15, rdx
lea r10d, [rsi + 2]
mov edi, ebx
mov r8d, ebx
mov ecx, ebx
test r13d, r13d
jle 0x1400e5f23
cmp word [r14 + rcx*4], bx
je 0x1400e5f09
add edi, r10d
mov dword [rsp + 0x70], r8d
movsxd rax, edi
mov esi, r8d
mov dword [0x1401d15a4], edi
mov dword [r9 + rax*4 + 0x1d0cb0], r8d
cmp rcx, rbp
jae 0x1400e60f9
mov byte [rcx + r9 + 0x1d15b0], bl
jmp 0x1400e5f0f
mov word [r14 + rcx*4 + 2], bx
add r8d, r10d
add rcx, r10
cmp rcx, r13
jl 0x1400e5ed3
cmp edi, 2
jge 0x1400e5fb9
mov r9d, dword [0x1401d1be8]
mov r8d, dword [0x1401f1bf0]
movsxd rdx, esi
cmp esi, 2
jge 0x1400e5f4b
add esi, r10d
add rdx, r10
mov dword [rsp + 0x70], esi
mov rcx, rdx
mov r10d, esi
jmp 0x1400e5f51
mov r10d, ebx
mov rcx, rbx
inc edi
lea rbx, [0x140000000]
movsxd rax, edi
mov dword [0x1401d15a4], edi
mov dword [rbx + rax*4 + 0x1d0cb0], r10d
mov r10d, 1
mov word [r14 + rcx*4], r10w
lea ebx, [r10 - 1]
cmp rcx, rbp
jae 0x1400e60ff
dec r9d
lea rax, [0x140000000]
mov byte [rcx + rax + 0x1d15b0], bl
mov dword [0x1401d1be8], r9d
test r11, r11
je 0x1400e5fb0
movzx eax, word [r11 + rcx*4 + 2]
sub r8d, eax
mov dword [0x1401f1bf0], r8d
cmp edi, 2
jl 0x1400e5f34
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x1400e5fe7
mov r8d, ebx
mov rdx, r14
mov rcx, r12
call fcn.1400e7260
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x1400e5fcb
lea rsi, [0x140000000]
jmp 0x1400e5ff3
mov r10, r15
movsxd rbx, dword [0x1401d0cb4]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov rcx, r12
mov dword [0x1401d15a4], edi
mov eax, dword [rsi + rax*4 + 0x1d0cb0]
mov dword [0x1401d0cb4], eax
call fcn.1400e7260
movsxd rcx, dword [0x1401d0cb4]
mov r15d, 1
mov r9, rcx
movsxd rdx, r13d
sub ebp, r15d
mov r8d, r15d
movsxd rax, ebp
sub ebp, r15d
mov dword [rsi + rax*4 + 0x1d0cb0], ebx
movsxd rax, ebp
mov dword [rsi + rax*4 + 0x1d0cb0], ecx
movzx eax, word [r14 + rcx*4]
add ax, word [r14 + rbx*4]
mov word [r14 + rdx*4], ax
mov al, byte [rcx + rsi + 0x1d15b0]
cmp byte [rbx + rsi + 0x1d15b0], al
cmova ecx, ebx
movsxd rax, ecx
mov cl, byte [rax + rsi + 0x1d15b0]
add cl, r15b
mov word [r14 + r9*4 + 2], r13w
mov byte [rdx + rsi + 0x1d15b0], cl
mov rdx, r14
mov word [r14 + rbx*4 + 2], r13w
mov rcx, r12
mov dword [0x1401d0cb4], r13d
add r13d, r15d
call fcn.1400e7260
cmp edi, 2
jge 0x1400e5ff0
mov eax, dword [0x1401d0cb4]
sub ebp, r15d
mov rdx, qword [rsp + 0x68]
movsxd rcx, ebp
mov dword [0x1401d15a8], ebp
mov dword [rsi + rcx*4 + 0x1d0cb0], eax
mov rcx, r12
call fcn.1400e6ef8
mov r8d, dword [rsp + 0x70]
mov rdx, r14
mov rcx, r12
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1400e7134
call fcn.1400f2f8c
int3
call fcn.1400f2f8c
int3
Function at 0x1400e94c0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fa0]
mov eax, 0x30a0
call fcn.1400f31b0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x30e0], rbx
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0x2f90], 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 0x1400e952b
add rax, 2
test r8d, r8d
jne 0x1400e9515
test edx, edx
je 0x1400e9730
xor r14b, r14b
lea rdx, [rbp + 0x1f90]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [rbp + 0x1f90]
call fcn.1400fa348
mov r15d, eax
mov r13d, 1
cmp word [rbp + 0x1f90], 0x5c
je 0x1400e95a1
cmp word [rsi], 0x5c
je 0x1400e95a1
cmp word [rdi], 0x5c
je 0x1400e95a1
movzx ecx, word [rsi]
call fcn.1400fa348
mov ebx, eax
movzx ecx, word [rdi]
call fcn.1400fa348
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.140069278
test al, al
je 0x1400e9606
lea rcx, [rsp + 0x30]
call fcn.140067b8c
nop
mov r8d, r13d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140068130
test al, al
je 0x1400e95f2
lea rcx, [rsp + 0x30]
call fcn.140067c78
test al, al
je 0x1400e95f2
mov rcx, rdi
call fcn.140068f90
test al, al
je 0x1400e95f2
lea rcx, [rsp + 0x30]
call fcn.140067bc4
jmp 0x1400e9606
lea rcx, [rsp + 0x30]
call fcn.140067bc4
mov eax, 0xf
jmp 0x1400e9732
test r14b, r14b
jne 0x1400e9623
mov rdx, rdi
mov rcx, rsi
call fcn.140069990
test al, al
sete al
test al, al
je 0x1400e9730
lea rcx, [rsp + 0x30]
call fcn.140067b8c
nop
lea rcx, [rbp + 0xf60]
call fcn.140067b8c
nop
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140068130
test al, al
jne 0x1400e9668
mov rdx, rsi
lea rcx, [0x14018fe18]
call fcn.1400632bc
mov ebx, 0xa
jmp 0x1400e96f5
mov r8d, 0x12
mov rdx, rdi
lea rcx, [rbp + 0xf60]
call fcn.140067e2c
test al, al
jne 0x1400e9688
mov ebx, 0xf
jmp 0x1400e96f5
xor edx, edx
lea rcx, [0x14018fe18]
call fcn.1400633c8
or r9, 0xffffffffffffffff
lea r8, [rbp + 0xf60]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.1400e8f84
mov r14d, eax
lea rcx, [rsp + 0x30]
call fcn.140067c78
lea rcx, [rbp + 0xf60]
call fcn.140067c78
mov dl, r13b
lea rcx, [0x14018fe18]
call fcn.1400633c8
test r14d, r14d
je 0x1400e9710
mov rcx, rdi
call fcn.140068f90
mov eax, 0xe
lea ebx, [rax - 4]
cmp r14d, ebx
cmove r14d, eax
mov ebx, r14d
lea rcx, [rbp + 0xf60]
call fcn.140067bc4
nop
lea rcx, [rsp + 0x30]
call fcn.140067bc4
mov eax, ebx
jmp 0x1400e9732
mov rcx, rsi
call fcn.140068f90
nop
lea rcx, [rbp + 0xf60]
call fcn.140067bc4
nop
lea rcx, [rsp + 0x30]
call fcn.140067bc4
xor eax, eax
mov rcx, qword [rbp + 0x2f90]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0x30e0]
add rsp, 0x30a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e9ab4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0xd0
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
inc dword [rcx + 0x1f4]
mov r14d, r8d
cmp dword [rcx + 0x1f4], 1
mov rdi, rdx
mov rsi, rcx
jne 0x1400e9b09
xor ecx, ecx
call fcn.1400ffa40
mov rbx, rax
call sub.KERNEL32.dll_GetCurrentProcessId
xor eax, ebx
mov ecx, eax
call fcn.1400ff990
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14008c388
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e9c60
xor ebp, ebp
mov r12d, 0xfffd
call fcn.1400ff964
mov ebx, dword [rsi + 0x1f0]
mov rcx, rsi
sar eax, 7
and ebx, r12d
movzx edi, al
or ebx, 2
mov edx, edi
call fcn.1400e9cbc
mov eax, ebx
xor eax, 1
imul eax, ebx
shr eax, 8
xor al, dil
mov byte [rsp + rbp + 0x30], al
inc rbp
cmp rbp, 0xa
jl 0x1400e9b31
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e9c60
xor ebp, ebp
mov edi, dword [rsi + 0x1f0]
mov rcx, rsi
movzx ebx, byte [rsp + rbp + 0x30]
and edi, r12d
mov edx, ebx
or edi, 2
call fcn.1400e9cbc
mov eax, edi
xor eax, 1
imul eax, edi
shr eax, 8
xor al, bl
mov byte [rsp + rbp + 0x30], al
inc rbp
cmp rbp, 0xa
jl 0x1400e9b7c
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.14008c5f8
mov edi, dword [rsi + 0x1f0]
mov ebx, r14d
shr ebx, 0x10
and edi, r12d
movzx edx, bl
mov rcx, rsi
or edi, 2
call fcn.1400e9cbc
mov eax, edi
shr r14d, 0x18
xor eax, 1
mov edx, r14d
imul eax, edi
mov rcx, rsi
shr eax, 8
xor al, bl
mov ebx, dword [rsi + 0x1f0]
and ebx, r12d
mov byte [rsp + 0x3a], al
or ebx, 2
call fcn.1400e9cbc
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov eax, ebx
mov r9d, 0xc
xor eax, 1
mov rcx, rsi
imul eax, ebx
lea r8d, [r9 - 0xb]
shr eax, 8
xor al, r14b
mov byte [rsp + 0x3b], al
call fcn.1400e8b08
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400e9cbc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, dword [rcx + 0x1e8]
lea rbx, [0x1401f1c20]
mov r10, rcx
mov eax, edx
mov r11d, edx
mov r8d, r9d
xor r8, rax
shr r9d, 8
movzx eax, r8b
mov edx, dword [r10 + 0x1f0]
mov r8d, dword [rbx + rax*4]
xor r8d, r9d
mov dword [rcx + 0x1e8], r8d
movzx eax, r8b
add eax, dword [rcx + 0x1ec]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r10 + 0x1ec], ecx
shr rcx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [rbx + rax*4]
mov rbx, qword [rsp + 8]
xor eax, edx
mov dword [r10 + 0x1f0], eax
mov eax, r11d
ret
Function at 0x1400e9d38
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 r12
push r14
push r15
sub rsp, 0x30
cmp byte [0x14016c8c0], 0
mov rbp, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
je 0x1400e9dc7
cmp byte [rcx + 4], 0
je 0x1400e9d84
mov edx, ebp
lea r8, [rcx + 8]
imul edx, r14d
mov rcx, r15
call fcn.1400b65a8
jmp 0x1400e9dc7
mov rdi, r14
mov r12, r15
imul rdi, rbp
test rdi, rdi
je 0x1400e9dc7
mov ebx, dword [rsi + 0x1f0]
mov rcx, rsi
movsx edx, byte [r12]
and ebx, 0xfffd
or ebx, 2
call fcn.1400e9cbc
mov eax, ebx
xor eax, 1
imul eax, ebx
shr eax, 8
xor byte [r12], al
inc r12
sub rdi, 1
jne 0x1400e9d93
and dword [rsp + 0x20], 0
mov r9, rbp
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.1400e8b08
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400f1d64
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 0x1400f1d9c
test al, 0x10
jne 0x1400f1d98
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400f1d9c
mov al, 1
jmp 0x1400f1db2
mov rdx, qword [rdi + 0x64b7d8]
mov r8, rbx
mov ecx, 0x11
call fcn.140013278
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140104b9c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140104a3c
call fcn.1400fd6bc
mov dword [rax], 0x16
call fcn.14010153c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140104a24
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140104a24
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140104a6e
lock or dword [rax + 0x14], 0x10
jmp 0x140104a24
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140104a8b
mov rcx, qword [rbp + 0x10]
call fcn.140109400
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400fec8c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400fc364
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140104ae2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140104a24
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140104b4e
mov rcx, qword [rbp + 0x10]
call fcn.1400fec8c
cmp eax, 0xffffffff
je 0x140104b35
mov rcx, qword [rbp + 0x10]
call fcn.1400fec8c
cmp eax, 0xfffffffe
je 0x140104b35
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400fec8c
movsxd rdi, eax
lea rsi, [0x1401f2e00]
mov rcx, rbx
sar rdi, 6
call fcn.1400fec8c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140104b3c
lea rax, [0x1401546c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140104b4e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140104b84
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140104b80
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140104b80
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140104a27
jmp 0x1401049f4
Function at 0x140002550
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
lea rcx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x14020f9d0]
call fcn.1400096b0
call fcn.140063140
mov eax, dword [rax + 0x70]
add rsp, 0x28
ret