joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dab00
Capabilities:
Read file on windows
Write 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.1400eeb60
sub rsp, rax
mov rax, qword [0x14013f2b0]
xor rax, rsp
mov qword [rbp + 0xf60], rax
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], 0x53c00
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, [0x14010d6c0]
call fcn.14009f678
lea esi, [rdi - 0xb]
mov ebx, 0x800
mov r8b, sil
lea rcx, [rsp + 0x60]
mov edx, ebx
call fcn.14007885c
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14007795c
mov r8d, ebx
lea rdx, str.version.dat
lea rcx, [rsp + 0x60]
call fcn.14008e0f8
and dword [rsp + 0x40], 0
lea rdx, [0x140111c68]
lea rcx, [rsp + 0x60]
call fcn.140069f38
mov rbx, rax
test rax, rax
je 0x1400dabdb
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
mov edx, esi
call fcn.1400f9f24
mov rcx, rbx
call fcn.1400f5f4c
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
je 0x1400dac8c
lea rdx, str.VerInfo
mov r9, rdi
lea rcx, [0x14010d6c0]
cmp dword [rsp + 0x40], eax
je 0x1400dac64
lea r8, [rsp + 0x50]
call fcn.1400a01e4
call fcn.14009ff90
test al, al
jne 0x1400dac47
lea rdx, [0x14010dae0]
lea rcx, [rsp + 0x60]
call fcn.140069f38
mov rbx, rax
test rax, rax
je 0x1400dac47
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rsi
call fcn.1400f6318
mov rcx, rbx
call fcn.1400f5f4c
call fcn.14009ff98
neg al
mov edx, 0x168
sbb ecx, ecx
not ecx
and ecx, edx
mov dword [0x140146e04], ecx
jmp 0x1400dad23
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.1400a01e4
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jne 0x1400dace3
cmp dword [rsp + 0x40], eax
je 0x1400dace3
movsd xmm0, qword [rsp + 0x30]
mov eax, dword [rsp + 0x38]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
call fcn.14009ff90
test al, al
jne 0x1400dace3
lea rdx, [0x14010dae0]
lea rcx, [rsp + 0x60]
call fcn.140069f38
mov rbx, rax
test rax, rax
je 0x1400dace3
mov r9, rax
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.1400f6318
mov rcx, rbx
call fcn.1400f5f4c
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 [0x140146e04], eax
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1400eebd0
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 0x1400dbb5c
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov bl, r8b
mov rdi, rdx
mov ecx, dword [0x1401dd210]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1401b42f0], eax
jle 0x1400dbbd9
lea rcx, [0x1401b42f0]
call fcn.1400ef300
cmp dword [0x1401b42f0], 0xffffffff
jne 0x1400dbbd9
lea rcx, [0x1401b41ee]
call fcn.14008b37c
nop
lea rcx, [0x14010b824]
call fcn.1400ef110
nop
lea rcx, [0x1401b42f0]
call fcn.1400ef2a0
mov r8b, 1
mov rdx, rdi
lea rsi, [0x1401b01c0]
mov rcx, rsi
call fcn.1400dd2b8
test bl, bl
sete al
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.1400de3a8
test al, al
jne 0x1400dbc31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.1400dbfc0
cmp ebx, 0x4c7
sete al
jmp 0x1400dbc55
test bl, bl
je 0x1400dbc4b
mov r8, rsi
mov edx, 0x10000
lea rcx, [0x1400dc2ac]
call fcn.1400f66d8
jmp 0x1400dbc53
mov rcx, rsi
call fcn.1400dbfc0
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400dcd18
Capabilities:
Create thread

Disassembly:
push rsi
mov eax, 0x1060
call fcn.1400eeb60
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1070], rbx
mov rax, qword [0x14013f2b0]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbx, rdx
mov rcx, rdx
call fcn.1400dd95c
test al, al
je 0x1400dcd8d
mov ecx, 0x65
call fcn.140088044
mov rbx, rax
mov ecx, 0x596
call fcn.140088044
mov rdx, rax
mov r9d, 0x30
mov r8, rbx
mov rcx, qword [0x140145cd8]
call fcn.1400c67dc
jmp 0x1400dcf04
cmp byte [0x140145ca4], 0
jne 0x1400dcdd9
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.1400de3a8
test al, al
jne 0x1400dcf04
mov ecx, 0x201
call fcn.140088044
mov rcx, rax
mov rdx, rbx
call fcn.1400d1d24
jmp 0x1400dcf04
mov cl, 1
call fcn.1400c0714
mov r9b, 1
mov esi, 0x800
mov r8d, esi
lea rdx, [0x14015472e]
lea rcx, str.Rar_EX
call fcn.1400c552c
test al, al
je 0x1400dcf04
mov r8d, esi
lea rdx, [0x14015db52]
lea rcx, [0x140169340]
call fcn.140005000
mov eax, dword [0x140169344]
mov dword [0x14015aaf4], eax
lea rdx, [0x14010d538]
lea rcx, [0x14015eb58]
call fcn.14008e1b0
mov dword [0x140159ae4], 4
mov r9d, esi
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [0x14015472e]
call fcn.140078e14
xor r8d, r8d
xor edx, edx
lea rcx, [0x140169340]
call fcn.140004b7c
cmp byte [0x140145ca7], 0
jne 0x1400dcf04
mov ecx, dword [0x1401dd210]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401b8430], ecx
jle 0x1400dced8
lea rcx, [0x1401b8430]
call fcn.1400ef300
cmp dword [0x1401b8430], 0xffffffff
jne 0x1400dced8
lea rcx, [0x1401b832e]
call fcn.14008b37c
nop
lea rcx, [0x14010b864]
call fcn.1400ef110
nop
lea rcx, [0x1401b8430]
call fcn.1400ef2a0
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [0x1401b4300]
call fcn.1400dd2b8
lea r8, [0x1401b4300]
mov edx, 0x10000
lea rcx, [0x1400dc2ac]
call fcn.1400f66d8
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400eebd0
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1060
pop rsi
ret
Function at 0x1400dd110
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x6010]
mov eax, 0x6110
call fcn.1400eeb60
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14013f2b0]
xor rax, rsp
mov qword [rbp + 0x6000], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, r8
call fcn.140079330
mov r10, rax
or rdx, 0xffffffffffffffff
mov r8, rdx
xor ebx, ebx
inc r8
cmp word [rdi + r8*2], bx
jne 0x1400dd160
inc rdx
cmp word [rax + rdx*2], bx
jne 0x1400dd16a
lea rax, [rdx + 1]
add rax, r8
mov r14d, 0x1000
cmp rax, r14
jb 0x1400dd18c
xor al, al
jmp 0x1400dd29a
mov r9, r14
lea r8, [rbp + 0x4000]
mov rdx, r10
mov rcx, rdi
call fcn.140078e14
lea rcx, [rsp + 0x40]
call fcn.14008e174
nop
mov dword [rsp + 0x20], r14d
lea r9, [0x14010d188]
lea r8, [rbp + 0x2000]
lea rdx, str.ViewerIgnoreModifications
lea rcx, [0x14010e0b0]
call fcn.14009f7ec
cmp word [rbp + 0x2000], bx
je 0x1400dd1f2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x2000]
call fcn.1400a8538
mov r14d, 0x800
jmp 0x1400dd26e
mov r8d, r14d
lea rdx, [rbp]
lea rcx, [rbp + 0x1000]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x14011ce1c]
lea rcx, [rbp + 2]
call fcn.1400f1308
mov rdi, rax
test rax, rax
je 0x1400dd251
mov word [rax], bx
add rdi, 4
cmp word [rdi], bx
jne 0x1400dd239
lea rdi, [0x14010d538]
mov r8d, 4
mov rdx, rsi
lea rcx, [rbp]
call fcn.14006cb7c
test al, al
je 0x1400dd26e
jmp 0x1400dd255
lea rdi, [rbp]
mov r8d, 4
lea rdx, [rbp + 0x4000]
mov rcx, rdi
call fcn.14006cb7c
test al, al
jne 0x1400dd28c
mov r8, r14
lea rdx, [rbp + 0x1000]
lea rcx, [rsp + 0x40]
call fcn.14008e284
test al, al
jne 0x1400dd1fa
jmp 0x1400dd28e
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.14000414c
mov al, bl
mov rcx, qword [rbp + 0x6000]
xor rcx, rsp
call fcn.1400eebd0
add rsp, 0x6110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400de3a8
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.1400eeb60
sub rsp, rax
mov rax, qword [0x14013f2b0]
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.1400efdf0
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.1400786d0
test rax, rax
je 0x1400de445
cmp word [rax], 0x2e
jne 0x1400de456
cmp word [rax + 2], r13w
jne 0x1400de456
or dword [rsp + 0x24], 1
lea rax, [0x14010d93c]
mov qword [rsp + 0x68], rax
mov rcx, rdi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
call fcn.140079330
cmp rax, rdi
jne 0x1400de4a1
lea rdx, [0x14010d548]
mov rcx, rdi
call fcn.14007799c
test al, al
jne 0x1400de4a1
mov r9, rdi
lea r8, str.._s
mov edx, 0x1000
lea rcx, [rbp - 0x70]
call fcn.1400026d0
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 1
mov byte [0x140145ca5], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test eax, eax
jne 0x1400de4f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x1400de4dd
test rsi, rsi
je 0x1400de4d6
mov qword [rsi], r13
mov al, 1
jmp 0x1400de5bf
cmp qword [rsp + 0x30], r13
je 0x1400de4f6
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r13
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov byte [0x140145ca5], r13b
test ebx, ebx
je 0x1400de5bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x1400de5bd
cmp byte [rbp + 0x2000], r13b
jne 0x1400de4d6
mov r8, qword [rbp - 0x78]
lea rdi, [0x140000000]
test r8, r8
je 0x1400de564
movsxd rdx, dword [0x1401ac070]
mov rax, qword [rsp + 0x58]
mov qword [rdi + rdx*8 + 0x1abf70], r8
mov qword [rdi + rdx*8 + 0x1abff0], rax
inc edx
and edx, 0x8000000f
jge 0x1400de55c
dec edx
or edx, 0xfffffff0
inc edx
mov dword [0x1401ac070], edx
jmp 0x1400de5ac
mov rbx, r13
mov rax, qword [rsp + 0x58]
cmp qword [rbx + rdi + 0x1abff0], rax
jne 0x1400de59f
mov rcx, qword [rbx + rdi + 0x1abf70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400de59b
mov r8, qword [rbx + rdi + 0x1abf70]
mov qword [rbp - 0x78], r8
jmp 0x1400de59f
mov r8, qword [rbp - 0x78]
add rbx, 8
cmp rbx, 0x80
jl 0x1400de567
test rsi, rsi
je 0x1400de4d6
mov qword [rsi], r8
jmp 0x1400de4d6
xor al, al
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.1400eebd0
add rsp, 0x20a0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400deb04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140146e20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400deb53
mov ecx, 0x2bc
call fcn.140088044
mov ecx, 0x2bd
mov rbx, rax
call fcn.140088044
mov rcx, qword [0x140145cd8]
mov rdx, rax
mov r9d, 0x40
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c67dc
xor r8d, r8d
lea rdx, [0x140146e20]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400dd3f4
Function at 0x1400e1848
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 [0x1401bbd74], ebx
mov r12, rcx
mov dword [0x1401bbd78], ebp
mov r15, rdx
lea r10d, [rsi + 2]
mov edi, ebx
mov r8d, ebx
mov ecx, ebx
test r13d, r13d
jle 0x1400e18f3
cmp word [r14 + rcx*4], bx
je 0x1400e18d9
add edi, r10d
mov dword [rsp + 0x70], r8d
movsxd rax, edi
mov esi, r8d
mov dword [0x1401bbd74], edi
mov dword [r9 + rax*4 + 0x1bb480], r8d
cmp rcx, rbp
jae 0x1400e1ac9
mov byte [rcx + r9 + 0x1bbd80], bl
jmp 0x1400e18df
mov word [r14 + rcx*4 + 2], bx
add r8d, r10d
add rcx, r10
cmp rcx, r13
jl 0x1400e18a3
cmp edi, 2
jge 0x1400e1989
mov r9d, dword [0x1401bc3b8]
mov r8d, dword [0x1401dc3c0]
movsxd rdx, esi
cmp esi, 2
jge 0x1400e191b
add esi, r10d
add rdx, r10
mov dword [rsp + 0x70], esi
mov rcx, rdx
mov r10d, esi
jmp 0x1400e1921
mov r10d, ebx
mov rcx, rbx
inc edi
lea rbx, [0x140000000]
movsxd rax, edi
mov dword [0x1401bbd74], edi
mov dword [rbx + rax*4 + 0x1bb480], r10d
mov r10d, 1
mov word [r14 + rcx*4], r10w
lea ebx, [r10 - 1]
cmp rcx, rbp
jae 0x1400e1acf
dec r9d
lea rax, [0x140000000]
mov byte [rcx + rax + 0x1bbd80], bl
mov dword [0x1401bc3b8], r9d
test r11, r11
je 0x1400e1980
movzx eax, word [r11 + rcx*4 + 2]
sub r8d, eax
mov dword [0x1401dc3c0], r8d
cmp edi, 2
jl 0x1400e1904
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x1400e19b7
mov r8d, ebx
mov rdx, r14
mov rcx, r12
call fcn.1400e2c30
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x1400e199b
lea rsi, [0x140000000]
jmp 0x1400e19c3
mov r10, r15
movsxd rbx, dword [0x1401bb484]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov rcx, r12
mov dword [0x1401bbd74], edi
mov eax, dword [rsi + rax*4 + 0x1bb480]
mov dword [0x1401bb484], eax
call fcn.1400e2c30
movsxd rcx, dword [0x1401bb484]
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 + 0x1bb480], ebx
movsxd rax, ebp
mov dword [rsi + rax*4 + 0x1bb480], ecx
movzx eax, word [r14 + rcx*4]
add ax, word [r14 + rbx*4]
mov word [r14 + rdx*4], ax
mov al, byte [rcx + rsi + 0x1bbd80]
cmp byte [rbx + rsi + 0x1bbd80], al
cmova ecx, ebx
movsxd rax, ecx
mov cl, byte [rax + rsi + 0x1bbd80]
add cl, r15b
mov word [r14 + r9*4 + 2], r13w
mov byte [rdx + rsi + 0x1bbd80], cl
mov rdx, r14
mov word [r14 + rbx*4 + 2], r13w
mov rcx, r12
mov dword [0x1401bb484], r13d
add r13d, r15d
call fcn.1400e2c30
cmp edi, 2
jge 0x1400e19c0
mov eax, dword [0x1401bb484]
sub ebp, r15d
mov rdx, qword [rsp + 0x68]
movsxd rcx, ebp
mov dword [0x1401bbd78], ebp
mov dword [rsi + rcx*4 + 0x1bb480], eax
mov rcx, r12
call fcn.1400e28c8
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.1400e2b04
call fcn.1400ee934
int3
call fcn.1400ee934
int3
Function at 0x1400e4ea8
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.1400eeb60
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x30e0], rbx
mov rax, qword [0x14013f2b0]
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 0x1400e4f13
add rax, 2
test r8d, r8d
jne 0x1400e4efd
test edx, edx
je 0x1400e5118
xor r14b, r14b
lea rdx, [rbp + 0x1f90]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [rbp + 0x1f90]
call fcn.1400f5e28
mov r15d, eax
mov r13d, 1
cmp word [rbp + 0x1f90], 0x5c
je 0x1400e4f89
cmp word [rsi], 0x5c
je 0x1400e4f89
cmp word [rdi], 0x5c
je 0x1400e4f89
movzx ecx, word [rsi]
call fcn.1400f5e28
mov ebx, eax
movzx ecx, word [rdi]
call fcn.1400f5e28
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.140068fe0
test al, al
je 0x1400e4fee
lea rcx, [rsp + 0x30]
call fcn.140067948
nop
mov r8d, r13d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140067f1c
test al, al
je 0x1400e4fda
lea rcx, [rsp + 0x30]
call fcn.140067a38
test al, al
je 0x1400e4fda
mov rcx, rdi
call fcn.140068cec
test al, al
je 0x1400e4fda
lea rcx, [rsp + 0x30]
call fcn.140067984
jmp 0x1400e4fee
lea rcx, [rsp + 0x30]
call fcn.140067984
mov eax, 0xf
jmp 0x1400e511a
test r14b, r14b
jne 0x1400e500b
mov rdx, rdi
mov rcx, rsi
call fcn.140069718
test al, al
sete al
test al, al
je 0x1400e5118
lea rcx, [rsp + 0x30]
call fcn.140067948
nop
lea rcx, [rbp + 0xf60]
call fcn.140067948
nop
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140067f1c
test al, al
jne 0x1400e5050
mov rdx, rsi
lea rcx, [0x14017d200]
call fcn.140063120
mov ebx, 0xa
jmp 0x1400e50dd
mov r8d, 0x12
mov rdx, rdi
lea rcx, [rbp + 0xf60]
call fcn.140067bec
test al, al
jne 0x1400e5070
mov ebx, 0xf
jmp 0x1400e50dd
xor edx, edx
lea rcx, [0x14017d200]
call fcn.14006322c
or r9, 0xffffffffffffffff
lea r8, [rbp + 0xf60]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.1400e4954
mov r14d, eax
lea rcx, [rsp + 0x30]
call fcn.140067a38
lea rcx, [rbp + 0xf60]
call fcn.140067a38
mov dl, r13b
lea rcx, [0x14017d200]
call fcn.14006322c
test r14d, r14d
je 0x1400e50f8
mov rcx, rdi
call fcn.140068cec
mov eax, 0xe
lea ebx, [rax - 4]
cmp r14d, ebx
cmove r14d, eax
mov ebx, r14d
lea rcx, [rbp + 0xf60]
call fcn.140067984
nop
lea rcx, [rsp + 0x30]
call fcn.140067984
mov eax, ebx
jmp 0x1400e511a
mov rcx, rsi
call fcn.140068cec
nop
lea rcx, [rbp + 0xf60]
call fcn.140067984
nop
lea rcx, [rsp + 0x30]
call fcn.140067984
xor eax, eax
mov rcx, qword [rbp + 0x2f90]
xor rcx, rsp
call fcn.1400eebd0
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 0x1400e549c
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 [0x14013f2b0]
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 0x1400e54f1
xor ecx, ecx
call fcn.1400fb568
mov rbx, rax
call sub.KERNEL32.dll_GetCurrentProcessId
xor eax, ebx
mov ecx, eax
call fcn.1400fb4b8
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14008b4c4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e5648
xor ebp, ebp
mov r12d, 0xfffd
call fcn.1400fb48c
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.1400e56a4
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 0x1400e5519
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e5648
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.1400e56a4
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 0x1400e5564
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.14008b734
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.1400e56a4
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.1400e56a4
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.1400e44d8
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400eebd0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, dword [rcx + 0x1e8]
lea rbx, [0x1401dc3f0]
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 0x1400e5720
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 [0x140157840], 0
mov rbp, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
je 0x1400e57af
cmp byte [rcx + 4], 0
je 0x1400e576c
mov edx, ebp
lea r8, [rcx + 8]
imul edx, r14d
mov rcx, r15
call fcn.1400b53e0
jmp 0x1400e57af
mov rdi, r14
mov r12, r15
imul rdi, rbp
test rdi, rdi
je 0x1400e57af
mov ebx, dword [rsi + 0x1f0]
mov rcx, rsi
movsx edx, byte [r12]
and ebx, 0xfffd
or ebx, 2
call fcn.1400e56a4
mov eax, ebx
xor eax, 1
imul eax, ebx
shr eax, 8
xor byte [r12], al
inc r12
sub rdi, 1
jne 0x1400e577b
and dword [rsp + 0x20], 0
mov r9, rbp
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.1400e44d8
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 0x1400ed714
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 0x1400ed74c
test al, 0x10
jne 0x1400ed748
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400ed74c
mov al, 1
jmp 0x1400ed762
mov rdx, qword [rdi + 0x64b7d8]
mov r8, rbx
mov ecx, 0x11
call fcn.140004010
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400fba84
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400fb858
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fb858
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400fb858
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400fb858
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fb858
cmp dword [rcx + 0x84], 0xe
jbe 0x1400fb858
cmp dword [rcx + 0xf8], esi
je 0x1400fb858
mov ecx, r14d
call fcn.1400fb9a0
mov ecx, 2
call fcn.140100ff8
nop
cmp byte [0x1401dd400], 0
jne 0x1400fb922
mov r15d, 1
mov eax, r15d
xchg dword [0x1401dd3f0], eax
test ebx, ebx
jne 0x1400fb8cb
mov rdi, qword [0x14013f2b0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1401dd3f8]
cmp rcx, rax
je 0x1400fb8c2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140068324]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1401dd538]
jmp 0x1400fb8d7
cmp ebx, r15d
jne 0x1400fb8dd
lea rcx, [0x1401dd550]
call fcn.1400fc538
nop
test ebx, ebx
jne 0x1400fb8f4
lea rdx, [0x14010cff8]
lea rcx, [0x14010cfd8]
call fcn.1400fc870
lea rdx, [0x14010d008]
lea rcx, [0x14010d000]
call fcn.1400fc870
movzx eax, byte [0x1401dd400]
test esi, esi
cmove eax, r15d
mov byte [0x1401dd400], al
jmp 0x1400fb922
mov ecx, 2
call fcn.14010104c
test esi, esi
jne 0x1400fb939
mov ecx, r14d
call fcn.1400fb954
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400fb7e8