joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e9264
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.140100e60
sub rsp, rax
mov rax, qword [0x140191630]
xor rax, rsp
mov qword [rbp + 0xf60], rax
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], 0x60002
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, [0x140141df0]
call fcn.1400a84f4
lea esi, [rdi - 0xb]
mov ebx, 0x800
mov r8b, sil
lea rcx, [rsp + 0x60]
mov edx, ebx
call fcn.14008053c
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14007f660
mov r8d, ebx
lea rdx, str.version.dat
lea rcx, [rsp + 0x60]
call fcn.140096d58
and dword [rsp + 0x40], 0
lea rdx, [0x140146338]
lea rcx, [rsp + 0x60]
call fcn.1400712cc
mov rbx, rax
test rax, rax
je 0x1400e933f
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
mov edx, esi
call fcn.14012ada8
mov rcx, rbx
call fcn.1401278d8
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
je 0x1400e93f0
lea rdx, str.VerInfo
mov r9, rdi
lea rcx, [0x140141df0]
cmp dword [rsp + 0x40], eax
je 0x1400e93c8
lea r8, [rsp + 0x50]
call fcn.1400a9130
call fcn.1400a8e34
test al, al
jne 0x1400e93ab
lea rdx, [0x140142200]
lea rcx, [rsp + 0x60]
call fcn.1400712cc
mov rbx, rax
test rax, rax
je 0x1400e93ab
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rsi
call fcn.140127ca4
mov rcx, rbx
call fcn.1401278d8
call fcn.1400a8e3c
neg al
mov edx, 0x168
sbb ecx, ecx
not ecx
and ecx, edx
mov dword [0x14019b750], ecx
jmp 0x1400e9487
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.1400a9130
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jne 0x1400e9447
cmp dword [rsp + 0x40], eax
je 0x1400e9447
movsd xmm0, qword [rsp + 0x30]
mov eax, dword [rsp + 0x38]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
call fcn.1400a8e34
test al, al
jne 0x1400e9447
lea rdx, [0x140142200]
lea rcx, [rsp + 0x60]
call fcn.1400712cc
mov rbx, rax
test rax, rax
je 0x1400e9447
mov r9, rax
lea rcx, [rsp + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.140127ca4
mov rcx, rbx
call fcn.1401278d8
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 [0x14019b750], eax
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.140100ed0
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 0x1400ea8a8
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 [0x140237590]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x14020e510], eax
jle 0x1400ea925
lea rcx, [0x14020e510]
call fcn.140101608
cmp dword [0x14020e510], 0xffffffff
jne 0x1400ea925
lea rcx, [0x14020e40e]
call fcn.140093f88
nop
lea rcx, [0x14013ede0]
call fcn.140101414
nop
lea rcx, [0x14020e510]
call fcn.1401015a8
mov r8b, 1
mov rdx, rdi
lea rsi, [0x14020a3e0]
mov rcx, rsi
call fcn.1400ec1b4
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.1400ed338
test al, al
jne 0x1400ea97d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.1400ead28
cmp ebx, 0x4c7
sete al
jmp 0x1400ea9a1
test bl, bl
je 0x1400ea997
mov r8, rsi
mov edx, 0x10000
lea rcx, [0x1400eb040]
call fcn.14012806c
jmp 0x1400ea99f
mov rcx, rsi
call fcn.1400ead28
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400eb8dc
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.140100e60
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x30a0], rbx
mov rax, qword [0x140191630]
xor rax, rsp
mov qword [rbp + 0x2f50], rax
mov r15b, r8b
mov r12, rdx
xor r13d, r13d
mov ebx, 0x800
test r9, r9
jne 0x1400eb97c
mov dword [rsp + 0x20], ebx
lea r9, [0x1401413c8]
lea r8, [rsp + 0x50]
lea rdx, str.ExternalViewer
lea rcx, [0x140142828]
call fcn.1400a8668
mov r8d, ebx
lea rdx, [rbp + 0x1f50]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400eb98c
lea rdx, [rbp + 0x1f50]
jmp 0x1400eb97f
mov rdx, r9
mov r8, rbx
lea rcx, [rsp + 0x50]
call fcn.140096d80
cmp word [rsp + 0x50], r13w
jne 0x1400eb99b
xor al, al
jmp 0x1400ebb8d
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0xf50]
call fcn.140096d80
mov rdx, rbx
lea rcx, [rbp + 0xf50]
call fcn.1400b1690
lea rcx, [rsp + 0x50]
call fcn.140070398
test al, al
jne 0x1400ebab1
mov eax, 0x22
cmp word [rsp + 0x50], ax
jne 0x1400eb9eb
mov edx, eax
lea rcx, [rsp + 0x52]
call fcn.140120300
jmp 0x1400eba90
lea rax, [rsp + 0x50]
jmp 0x1400eba90
lea rdx, [0x14015ce68]
mov rcx, rax
call fcn.14012b4fc
mov rdi, rax
test rax, rax
je 0x1400ebab1
mov rsi, rax
movzx ecx, word [rax]
jmp 0x1400eba1f
add rsi, 2
movzx ecx, word [rsi]
call fcn.140096968
test al, al
jne 0x1400eba18
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x1f50]
call fcn.140096d80
mov r8, rbx
lea rdx, [0x1401464cc]
lea rcx, [rbp + 0x1f50]
call fcn.140096d58
mov r8, rbx
lea rdx, [rbp + 0xf50]
lea rcx, [rbp + 0x1f50]
call fcn.140096d58
movzx r14d, word [rdi]
mov word [rdi], r13w
mov eax, 0x22
cmp word [rsp + 0x50], ax
je 0x1400eba9b
lea rcx, [rsp + 0x50]
call fcn.140070398
test al, al
jne 0x1400eba9b
mov word [rdi], r14w
lea rax, [rsi + 2]
test rax, rax
jne 0x1400eb9f5
jmp 0x1400ebab1
mov r8, rbx
lea rdx, [rbp + 0x1f50]
lea rcx, [rbp + 0xf50]
call fcn.140096d80
mov ecx, dword [0x140237590]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14020a3d0], ecx
jle 0x1400ebb0f
lea rcx, [0x14020a3d0]
call fcn.140101608
cmp dword [0x14020a3d0], 0xffffffff
jne 0x1400ebb0f
lea rcx, [0x14020a2ce]
call fcn.140093f88
nop
lea rcx, [0x14013ee00]
call fcn.140101414
nop
lea rcx, [0x14020a3d0]
call fcn.1401015a8
mov r8b, 1
mov rdx, r12
lea rbx, [0x1402062a0]
mov rcx, rbx
call fcn.1400ec1b4
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.1400ed338
test al, al
jne 0x1400ebb5f
mov rcx, rbx
call fcn.1400ead28
jmp 0x1400eb994
test r15b, r15b
je 0x1400ebb83
cmp qword [0x1402062a0], r13
je 0x1400ebb83
mov r8, rbx
mov edx, 0x10000
lea rcx, [0x1400eb040]
call fcn.14012806c
jmp 0x1400ebb8b
mov rcx, rbx
call fcn.1400ead28
mov al, 1
mov rcx, qword [rbp + 0x2f50]
xor rcx, rsp
call fcn.140100ed0
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 0x1400ebbb8
Capabilities:
Create thread

Disassembly:
push rsi
mov eax, 0x1060
call fcn.140100e60
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1070], rbx
mov rax, qword [0x140191630]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbx, rdx
mov rcx, rdx
call fcn.1400ec8dc
test al, al
je 0x1400ebc2d
mov ecx, 0x65
call fcn.140090bf0
mov rbx, rax
mov ecx, 0x596
call fcn.140090bf0
mov rdx, rax
mov r9d, 0x30
mov r8, rbx
mov rcx, qword [0x14019a6f0]
call fcn.1400d1204
jmp 0x1400ebda4
cmp byte [0x14019a720], 0
jne 0x1400ebc79
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.1400ed338
test al, al
jne 0x1400ebda4
mov ecx, 0x201
call fcn.140090bf0
mov rcx, rax
mov rdx, rbx
call fcn.1400d5c14
jmp 0x1400ebda4
mov cl, 1
call fcn.1400cad4c
mov r9b, 1
mov esi, 0x800
mov r8d, esi
lea rdx, [0x1401aa1ce]
lea rcx, str.Rar_EX
call fcn.1400cfdd0
test al, al
je 0x1400ebda4
mov r8d, esi
lea rdx, [0x1401b5732]
lea rcx, [0x1401c30e0]
call fcn.14000655c
mov eax, dword [0x1401c30e4]
mov dword [0x1401b06c8], eax
lea rdx, [0x140141bd8]
lea rcx, [0x1401b6738]
call fcn.140096df0
mov dword [0x1401af6b4], 2
mov r9d, esi
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [0x1401aa1ce]
call fcn.140080ac8
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401c30e0]
call fcn.14000605c
cmp byte [0x14019a723], 0
jne 0x1400ebda4
mov ecx, dword [0x140237590]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140212650], ecx
jle 0x1400ebd78
lea rcx, [0x140212650]
call fcn.140101608
cmp dword [0x140212650], 0xffffffff
jne 0x1400ebd78
lea rcx, [0x14021254e]
call fcn.140093f88
nop
lea rcx, [0x14013ee20]
call fcn.140101414
nop
lea rcx, [0x140212650]
call fcn.1401015a8
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [0x14020e520]
call fcn.1400ec1b4
lea r8, [0x14020e520]
mov edx, 0x10000
lea rcx, [0x1400eb040]
call fcn.14012806c
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140100ed0
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1060
pop rsi
ret
Function at 0x1400ebfb8
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x6010]
mov eax, 0x6110
call fcn.140100e60
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140191630]
xor rax, rsp
mov qword [rbp + 0x6000], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, r8
call fcn.140081020
mov r10, rax
or rdx, 0xffffffffffffffff
mov r8, rdx
xor ebx, ebx
inc r8
cmp word [rdi + r8*2], bx
jne 0x1400ec008
inc rdx
cmp word [rax + rdx*2], bx
jne 0x1400ec012
lea rax, [rdx + 1]
add rax, r8
mov r14d, 0x1000
cmp rax, r14
jb 0x1400ec034
xor al, al
jmp 0x1400ec14b
mov r9, r14
lea r8, [rbp + 0x4000]
mov rdx, r10
mov rcx, rdi
call fcn.140080ac8
lea rcx, [rsp + 0x40]
call fcn.140096db4
nop
mov dword [rsp + 0x20], r14d
lea r9, [0x1401413c8]
lea r8, [rbp + 0x2000]
lea rdx, str.ViewerIgnoreModifications
lea rcx, [0x140142828]
call fcn.1400a8668
cmp word [rbp + 0x2000], bx
je 0x1400ec09a
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x2000]
call fcn.1400b18b0
mov r14d, 0x800
mov r8, r14
lea rdx, [rbp + 0x1000]
lea rcx, [rsp + 0x40]
call fcn.140096ec4
test al, al
je 0x1400ec13f
mov r8d, r14d
lea rdx, [rbp]
lea rcx, [rbp + 0x1000]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x1400ec0a0
lea rdx, [0x14015cccc]
lea rcx, [rbp + 2]
call fcn.140121784
mov rdi, rax
test rax, rax
je 0x1400ec11c
mov word [rax], bx
add rdi, 4
cmp word [rdi], bx
jne 0x1400ec104
lea rdi, [0x140141bd8]
mov r8d, 5
mov rdx, rsi
lea rcx, [rbp]
call fcn.1400745b4
test al, al
je 0x1400ec0a0
jmp 0x1400ec120
lea rdi, [rbp]
mov r8d, 5
lea rdx, [rbp + 0x4000]
mov rcx, rdi
call fcn.1400745b4
test al, al
je 0x1400ec0a0
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.140004e58
mov al, bl
mov rcx, qword [rbp + 0x6000]
xor rcx, rsp
call fcn.140100ed0
add rsp, 0x6110
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400ed338
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.140100e60
sub rsp, rax
mov rax, qword [0x140191630]
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.1401203b0
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.1400803b0
test rax, rax
je 0x1400ed3d5
cmp word [rax], 0x2e
jne 0x1400ed3e6
cmp word [rax + 2], r13w
jne 0x1400ed3e6
or dword [rsp + 0x24], 1
lea rax, [0x14014203c]
mov qword [rsp + 0x68], rax
mov rcx, rdi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
call fcn.140081020
cmp rax, rdi
jne 0x1400ed431
lea rdx, [0x140141c38]
mov rcx, rdi
call fcn.14007f694
test al, al
jne 0x1400ed431
mov r9, rdi
lea r8, str.._s
mov edx, 0x1000
lea rcx, [rbp - 0x70]
call fcn.140002910
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 1
mov byte [0x14019a721], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test eax, eax
jne 0x1400ed486
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x1400ed46d
test rsi, rsi
je 0x1400ed466
mov qword [rsi], r13
mov al, 1
jmp 0x1400ed54f
cmp qword [rsp + 0x30], r13
je 0x1400ed486
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r13
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov byte [0x14019a721], r13b
test ebx, ebx
je 0x1400ed54d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x1400ed54d
cmp byte [rbp + 0x2000], r13b
jne 0x1400ed466
mov r8, qword [rbp - 0x78]
lea rdi, [0x140000000]
test r8, r8
je 0x1400ed4f4
movsxd rdx, dword [0x140206290]
mov rax, qword [rsp + 0x58]
mov qword [rdi + rdx*8 + 0x206190], r8
mov qword [rdi + rdx*8 + 0x206210], rax
inc edx
and edx, 0x8000000f
jge 0x1400ed4ec
dec edx
or edx, 0xfffffff0
inc edx
mov dword [0x140206290], edx
jmp 0x1400ed53c
mov rbx, r13
mov rax, qword [rsp + 0x58]
cmp qword [rbx + rdi + 0x206210], rax
jne 0x1400ed52f
mov rcx, qword [rbx + rdi + 0x206190]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400ed52b
mov r8, qword [rbx + rdi + 0x206190]
mov qword [rbp - 0x78], r8
jmp 0x1400ed52f
mov r8, qword [rbp - 0x78]
add rbx, 8
cmp rbx, 0x80
jl 0x1400ed4f7
test rsi, rsi
je 0x1400ed466
mov qword [rsi], r8
jmp 0x1400ed466
xor al, al
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.140100ed0
add rsp, 0x20a0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400eda60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x14019a740]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400edaaf
mov ecx, 0x2bc
call fcn.140090bf0
mov ecx, 0x2bd
mov rbx, rax
call fcn.140090bf0
mov rcx, qword [0x14019a6f0]
mov rdx, rax
mov r9d, 0x40
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d1204
xor r8d, r8d
lea rdx, [0x14019a740]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ec320
Function at 0x1400f1160
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 [0x14021567c], ebx
mov r12, rcx
mov dword [0x140215f94], ebp
mov r15, rdx
lea r10d, [rsi + 2]
mov edi, ebx
mov r8d, ebx
mov ecx, ebx
test r13d, r13d
jle 0x1400f120b
cmp word [r14 + rcx*4], bx
je 0x1400f11f1
add edi, r10d
mov dword [rsp + 0x70], r8d
movsxd rax, edi
mov esi, r8d
mov dword [0x14021567c], edi
mov dword [r9 + rax*4 + 0x2156a0], r8d
cmp rcx, rbp
jae 0x1400f13e1
mov byte [rcx + r9 + 0x215fa0], bl
jmp 0x1400f11f7
mov word [r14 + rcx*4 + 2], bx
add r8d, r10d
add rcx, r10
cmp rcx, r13
jl 0x1400f11bb
cmp edi, 2
jge 0x1400f12a1
mov r9d, dword [0x140216558]
mov r8d, dword [0x1402165d8]
movsxd rdx, esi
cmp esi, 2
jge 0x1400f1233
add esi, r10d
add rdx, r10
mov dword [rsp + 0x70], esi
mov rcx, rdx
mov r10d, esi
jmp 0x1400f1239
mov r10d, ebx
mov rcx, rbx
inc edi
lea rbx, [0x140000000]
movsxd rax, edi
mov dword [0x14021567c], edi
mov dword [rbx + rax*4 + 0x2156a0], r10d
mov r10d, 1
mov word [r14 + rcx*4], r10w
lea ebx, [r10 - 1]
cmp rcx, rbp
jae 0x1400f13e7
dec r9d
lea rax, [0x140000000]
mov byte [rcx + rax + 0x215fa0], bl
mov dword [0x140216558], r9d
test r11, r11
je 0x1400f1298
movzx eax, word [r11 + rcx*4 + 2]
sub r8d, eax
mov dword [0x1402165d8], r8d
cmp edi, 2
jl 0x1400f121c
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x1400f12cf
mov r8d, ebx
mov rdx, r14
mov rcx, r12
call fcn.1400f2548
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x1400f12b3
lea rsi, [0x140000000]
jmp 0x1400f12db
mov r10, r15
movsxd rbx, dword [0x1402156a4]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov rcx, r12
mov dword [0x14021567c], edi
mov eax, dword [rsi + rax*4 + 0x2156a0]
mov dword [0x1402156a4], eax
call fcn.1400f2548
movsxd rcx, dword [0x1402156a4]
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 + 0x2156a0], ebx
movsxd rax, ebp
mov dword [rsi + rax*4 + 0x2156a0], ecx
movzx eax, word [r14 + rcx*4]
add ax, word [r14 + rbx*4]
mov word [r14 + rdx*4], ax
mov al, byte [rcx + rsi + 0x215fa0]
cmp byte [rbx + rsi + 0x215fa0], al
cmova ecx, ebx
movsxd rax, ecx
mov cl, byte [rax + rsi + 0x215fa0]
add cl, r15b
mov word [r14 + r9*4 + 2], r13w
mov byte [rdx + rsi + 0x215fa0], cl
mov rdx, r14
mov word [r14 + rbx*4 + 2], r13w
mov rcx, r12
mov dword [0x1402156a4], r13d
add r13d, r15d
call fcn.1400f2548
cmp edi, 2
jge 0x1400f12d8
mov eax, dword [0x1402156a4]
sub ebp, r15d
mov rdx, qword [rsp + 0x68]
movsxd rcx, ebp
mov dword [0x140215f94], ebp
mov dword [rsi + rcx*4 + 0x2156a0], eax
mov rcx, r12
call fcn.1400f21e0
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.1400f241c
call fcn.140100c34
int3
call fcn.140100c34
int3
Function at 0x1400f4900
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.140100e60
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x30e0], rbx
mov rax, qword [0x140191630]
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 0x1400f496b
add rax, 2
test r8d, r8d
jne 0x1400f4955
test edx, edx
je 0x1400f4b73
xor r14b, r14b
lea rdx, [rbp + 0x1f90]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [rbp + 0x1f90]
call fcn.1401277b4
mov r15d, eax
mov r13d, 1
cmp word [rbp + 0x1f90], 0x5c
je 0x1400f49e1
cmp word [rsi], 0x5c
je 0x1400f49e1
cmp word [rdi], 0x5c
je 0x1400f49e1
movzx ecx, word [rsi]
call fcn.1401277b4
mov ebx, eax
movzx ecx, word [rdi]
call fcn.1401277b4
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.140070398
test al, al
je 0x1400f4a49
lea rcx, [rsp + 0x30]
call fcn.14006eb40
nop
mov r8d, 9
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14006f1a0
test al, al
je 0x1400f4a35
lea rcx, [rsp + 0x30]
call fcn.14006ec50
test al, al
je 0x1400f4a35
mov rcx, rdi
call fcn.1400700b0
test al, al
je 0x1400f4a35
lea rcx, [rsp + 0x30]
call fcn.14006eb80
jmp 0x1400f4a49
lea rcx, [rsp + 0x30]
call fcn.14006eb80
mov eax, 0xf
jmp 0x1400f4b75
test r14b, r14b
jne 0x1400f4a66
mov rdx, rdi
mov rcx, rsi
call fcn.140070aac
test al, al
sete al
test al, al
je 0x1400f4b73
lea rcx, [rsp + 0x30]
call fcn.14006eb40
nop
lea rcx, [rbp + 0xf60]
call fcn.14006eb40
nop
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14006f1a0
test al, al
jne 0x1400f4aab
mov rdx, rsi
lea rcx, [0x1401d4778]
call fcn.140069e10
mov ebx, 0xa
jmp 0x1400f4b38
mov r8d, 0x12
mov rdx, rdi
lea rcx, [rbp + 0xf60]
call fcn.14006ee10
test al, al
jne 0x1400f4acb
mov ebx, 0xf
jmp 0x1400f4b38
xor edx, edx
lea rcx, [0x1401d4778]
call fcn.140069f1c
or r9, 0xffffffffffffffff
lea r8, [rbp + 0xf60]
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.1400f4384
mov r14d, eax
lea rcx, [rsp + 0x30]
call fcn.14006ec50
lea rcx, [rbp + 0xf60]
call fcn.14006ec50
mov dl, r13b
lea rcx, [0x1401d4778]
call fcn.140069f1c
test r14d, r14d
je 0x1400f4b53
mov rcx, rdi
call fcn.1400700b0
mov eax, 0xe
lea ebx, [rax - 4]
cmp r14d, ebx
cmove r14d, eax
mov ebx, r14d
lea rcx, [rbp + 0xf60]
call fcn.14006eb80
nop
lea rcx, [rsp + 0x30]
call fcn.14006eb80
mov eax, ebx
jmp 0x1400f4b75
mov rcx, rsi
call fcn.1400700b0
nop
lea rcx, [rbp + 0xf60]
call fcn.14006eb80
nop
lea rcx, [rsp + 0x30]
call fcn.14006eb80
xor eax, eax
mov rcx, qword [rbp + 0x2f90]
xor rcx, rsp
call fcn.140100ed0
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 0x1400f4ef8
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 [0x140191630]
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 0x1400f4f4d
xor ecx, ecx
call fcn.14012c38c
mov rbx, rax
call sub.KERNEL32.dll_GetCurrentProcessId
xor eax, ebx
mov ecx, eax
call fcn.14012c2dc
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400940d0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400f50a4
xor ebp, ebp
mov r12d, 0xfffd
call fcn.14012c2b0
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.1400f5100
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 0x1400f4f75
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400f50a4
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.1400f5100
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 0x1400f4fc0
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.140094368
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.1400f5100
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.1400f5100
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.1400f3ee4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140100ed0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, dword [rcx + 0x1e8]
lea rbx, [0x140236610]
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