joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140138f80
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rsi
rdtsc
mov r11, qword [0x140203e80]
mov rcx, qword [0x140203e90]
mov r9, qword [0x140203e98]
mov r8, qword [0x140203ea0]
mov r10, qword [0x140203ea8]
mov rsi, qword [0x140203e80]
test r11b, 1
jne 0x140138fd7
cmp r11, rsi
jne 0x140138fd7
shl rdx, 0x20
or rdx, rax
sub rdx, r9
cmp rdx, r10
jae 0x140138fd7
imul rdx, r8
shr rdx, 0x1e
add rdx, rcx
mov rax, rdx
pop rsi
ret
pop rsi
jmp fcn.140138fdd
Function at 0x140139e02
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov ecx, 2
call sym.elevation_service.exe_OQS_CPU_has_extension
mov rcx, r14
mov rdx, rbx
mov r8, rdi
mov r9, rsi
test eax, eax
je 0x140139e3f
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140141c4b
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x14013a3b1
sub rsp, 0x28
mov rax, r8
mov r8, rdx
mov rdx, rcx
shr r8, 4
mov dword [rsp + 0x20], 0xe
mov rcx, r9
mov r9, rax
call fcn.14013a2a3
nop
add rsp, 0x28
ret
cmp rdx, 0x10
jb 0x140141ce1
shr rdx, 4
xor eax, eax
vmovdqa xmm0, xmmword [r8]
vpxor xmm0, xmm0, xmmword [rcx + rax]
vaesenc xmm0, xmm0, xmmword [r8 + 0x10]
vaesenc xmm0, xmm0, xmmword [r8 + 0x20]
vaesenc xmm0, xmm0, xmmword [r8 + 0x30]
vaesenc xmm0, xmm0, xmmword [r8 + 0x40]
vaesenc xmm0, xmm0, xmmword [r8 + 0x50]
vaesenc xmm0, xmm0, xmmword [r8 + 0x60]
vaesenc xmm0, xmm0, xmmword [r8 + 0x70]
vaesenc xmm0, xmm0, xmmword [r8 + 0x80]
vaesenc xmm0, xmm0, xmmword [r8 + 0x90]
vaesenc xmm0, xmm0, xmmword [r8 + 0xa0]
vaesenc xmm0, xmm0, xmmword [r8 + 0xb0]
vaesenc xmm0, xmm0, xmmword [r8 + 0xc0]
vaesenc xmm0, xmm0, xmmword [r8 + 0xd0]
vaesenclast xmm0, xmm0, xmmword [r8 + 0xe0]
vmovdqu xmmword [r9 + rax], xmm0
add rax, 0x10
dec rdx
jne 0x140141c5b
ret
Function at 0x14013af40
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14013af6a
xor eax, eax
xor r9d, r9d
mov r10b, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x14013af4a
movzx eax, r9b
neg eax
shr eax, 8
and eax, 1
ret
xor eax, eax
jmp 0x14013af61

Function at 0x14013b160
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x50], rax
vmovups ymm0, ymmword [rcx]
vmovups ymm1, ymmword [rcx + 0x10]
vmovups ymmword [rsp + 0x30], ymm1
vmovups ymmword [rsp + 0x20], ymm0
test rdx, rdx
je 0x14013b19f
xor eax, eax
mov cl, byte [rdx + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0x30
jne 0x14013b18f
vxorps xmm0, xmm0, xmm0
vmovups ymmword [0x140217088], ymm0
vmovups ymmword [0x140217078], ymm0
lea rcx, [rsp + 0x20]
vzeroupper
call fcn.14013b1dd
mov dword [0x1402170a8], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ecd30
nop
add rsp, 0x58
ret

Function at 0x14013b1dd
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x60], rax
vpbroadcastb ymm0, byte [0x1401d8dcd]
vmovdqu ymmword [rsp + 0x40], ymm0
vmovdqu ymmword [rsp + 0x30], ymm0
xor r12d, r12d
lea rdi, [0x140217078]
lea rbx, [rsp + 0x28]
lea r14, [0x140217098]
mov eax, 0xf
mov eax, eax
mov cl, byte [rax + rdi + 0x20]
cmp cl, 0xff
jne 0x14013b243
mov byte [rax + rdi + 0x20], 0
add eax, 0xffffffff
jb 0x14013b22c
jmp 0x14013b249
inc cl
mov byte [rax + rdi + 0x20], cl
mov rax, r12
shl rax, 4
lea r15, [rsp + rax]
add r15, 0x30
mov qword [rsp + 0x28], 0
mov rcx, rdi
mov rdx, rbx
vzeroupper
call fcn.140139d34
mov edx, 0x10
mov rcx, r14
mov r8, rdi
mov r9, r15
call fcn.140139d99
mov rcx, qword [rsp + 0x28]
call fcn.140139d6b
inc r12
cmp r12, 3
jne 0x14013b227
test rsi, rsi
je 0x14013b2ac
xor eax, eax
mov cl, byte [rsi + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp rax, 0x30
jne 0x14013b29c
vmovups ymm0, ymmword [rsp + 0x30]
vmovups ymmword [0x140217078], ymm0
vmovaps xmm0, xmmword [rsp + 0x50]
vmovups xmmword [0x140217098], xmm0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
vzeroupper
call fcn.1400ecd30
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140143266
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14014328c
xor r9d, r9d
xor eax, eax
mov r10b, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x140143270
xor eax, eax
test r9b, r9b
setne al
ret
xor eax, eax
ret

Function at 0x14014328f
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1401432b6
neg r9b
xor eax, eax
mov r10b, byte [rcx + rax]
mov r11b, byte [rdx + rax]
xor r11b, r10b
and r11b, r9b
xor r11b, r10b
mov byte [rcx + rax], r11b
inc rax
cmp r8, rax
jne 0x140143299
ret
Function at 0x1401668d0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140166945
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14016694a
mov dil, 1
test bl, bl
je 0x14016692e
cmp byte [rsi + 8], 0
je 0x14016699e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ecd30
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1401668fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x140166972
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140166977
xor edi, edi
jmp 0x14016692e
mov rcx, qword [rsi]
jmp 0x14016695f
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1401669a3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14016692e
mov rcx, qword [rsi]
jmp 0x140166923
mov rcx, qword [rsi]
jmp 0x14016698e
Function at 0x140166d50
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x1401d39f0]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x20d
call fcn.140077960
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14006d330
mov al, byte [rsi + 0x17]
test al, al
jns 0x140166ddc
cmp qword [rsi + 8], 0x103
ja 0x140166dfa
test al, al
jns 0x140166de3
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.14006e440
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ecd30
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140166e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov edi, edx
mov rbx, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
call fcn.140068be0
cmp eax, 8
jg 0x140166e71
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140166f7a
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x70]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1401d39f0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DeleteFileWithDispositionFlags
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x21d
call fcn.140077960
xor esi, esi
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14006d330
cmp byte [rbx + 0x17], 0
mov rcx, rbx
jns 0x140166edb
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140166f70
test al, 0x10
jne 0x140166f63
cmp byte [rbx + 0x17], 0
jns 0x140166ef7
mov rbx, qword [rbx]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x10100
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rbx, [rsp + 0x48]
mov qword [rbx], rsi
mov rcx, rbx
mov rdx, rax
call fcn.14004c998
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x140166f9b
mov rax, qword [rsp + 0x48]
inc rax
cmp rax, 2
jb 0x140166f70
call fcn.140077980
mov rcx, qword [rsp + 0x48]
call fcn.140069370
jmp 0x140166f70
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea rcx, [rsp + 0x70]
call fcn.14006e440
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400ecd30
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1401e0332]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtSetInformationFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140167037
or edi, 1
movups xmm0, xmmword [0x1401e0890]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x44]
mov dword [r8], edi
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
mov r9d, 4
call qword [case.0x140166830.0]
test eax, eax
sete sil
je 0x140166f44
mov edi, eax
lea rcx, [0x1401e0332]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016702a
mov ecx, edi
call qword [case.0x140166830.0]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140166f44
xor esi, esi
jmp 0x140166f44
Function at 0x14017dd30
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x78], rax
movsxd r8, dword [rcx + 0x18]
lea ecx, [rdx + 4]
mov r11, rcx
shr r11, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x14017dd8b
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x14017dda7
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14, rcx
shr r14, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x14017ddd1
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x14017ddf2
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov ecx, edx
mov r11, rcx
shr r11, 6
xor r10d, r10d
cmp r11, r8
jae 0x14017de14
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x14017de3a
dec edx
mov r10, rdx
shr r10, 6
xor ecx, ecx
cmp r10, r8
jae 0x14017de38
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14, 5
lea ecx, [r14 - 1]
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov rax, r15
shr rax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.1400eee80
mov r13, r15
not r13
mov r8, r12
xor r8, r15
dec r8
and r8, r13
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.14017b110
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x14017de7c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x1401d39f0]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov eax, dword [rdi + 0x40]
test eax, eax
jle 0x14017dfb4
xor ecx, ecx
xor edx, edx
or rdx, qword [rsi + rcx*8]
inc rcx
cmp rax, rcx
jne 0x14017deec
test rdx, rdx
sete dl
test rax, rax
je 0x14017df93
movsxd rcx, eax
mov rax, qword [rdi + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x14017df20
mov r10, qword [rax + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x14017df20
sbb r10, r10
movsxd rax, dword [rdi + 0x40]
mov ecx, eax
test rax, rax
jle 0x14017df61
xor r8d, r8d
test dl, dl
jne 0x14017df51
mov r9, qword [rsp + r8*8 + 0x30]
jmp 0x14017df54
xor r9d, r9d
mov qword [rsp + r8*8 + 0x30], r9
inc r8
cmp rcx, r8
jne 0x14017df46
test rcx, rcx
je 0x14017df93
and r14d, 1
mov rcx, r14
neg rcx
dec r14
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, rcx
mov r9, qword [rsi + rdx*8]
and r9, r14
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rax, rdx
jne 0x14017df75
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ecd30
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dl, 1
jmp 0x14017defe
Function at 0x14017f0a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1401d39f0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
je 0x14017f108
xor edi, edi
cmp r9, 0x30
ja 0x14017f12a
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
jne 0x14017f0f8
mov r8d, 0x30
mov rcx, rsi
call fcn.1400c11f0
test eax, eax
je 0x14017f140
mov qword [rsi + 0x118], 1
mov edi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ecd30
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x14017f12a

Function at 0x14018ee20
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14018ee5e
test rax, rax
je 0x14018ef27
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x14018ef53
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
shr r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
jne 0x14018ef1a
xor eax, eax
shl r15, 3
add r15, rax
je 0x14018ef27
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x14018eee8
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x14018eed0
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x14018ee52
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1401322c0
mov rcx, rdi
mov rdx, r14
call fcn.140132830
jmp 0x14018eead
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140139d31
mov rcx, rsi
call fcn.140136620
int3

Function at 0x140190c30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140190c6c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140190c76
add rdi, rbx
sub rsi, rbx
jne 0x140190c4a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140105dc0
int3
Function at 0x140198bdf
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x140198bfa
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400cd5b4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140198ca8
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140198ca8
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140198cd3
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x140198bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x140198bee
mov dword [rsi], 7
jmp 0x140198bee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140198bee

Function at 0x14019a4d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x14019a558
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x14019a551
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x14019a512
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ecd30
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400010a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r11d, r11d
movsxd r9, r9d
mov rbx, rcx
mov r10d, r11d
test r9, r9
je 0x140001124
sub rdx, r8
lea eax, [r11 + 1]
and eax, 0x800000ff
jge 0x1400010d7
dec eax
or eax, 0xffffff00
inc eax
movsxd r11, eax
movzx esi, byte [r11 + rbx]
add r10d, esi
and r10d, 0x800000ff
jge 0x1400010f8
dec r10d
or r10d, 0xffffff00
inc r10d
movsxd rcx, r10d
mov al, byte [rcx + rbx]
mov byte [r11 + rbx], al
mov byte [rcx + rbx], sil
movzx eax, byte [r11 + rbx]
add rax, rsi
movzx eax, al
mov cl, byte [rax + rbx]
xor cl, byte [rdx + r8]
mov byte [r8], cl
inc r8
sub r9, 1
jne 0x1400010c3
mov rbx, qword [rsp + 8]
xor eax, eax
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140001188
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [section..data]
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, dword [section..data]
mov rbx, rax
mov r8d, r9d
test r9d, r9d
je 0x1400011c9
xor edx, edx
mov rcx, rax
call fcn.1400011ec
mov r9d, dword [section..data]
mov r8, rbx
lea rdx, [0x140003004]
lea rcx, str.DwxECpafZgSBmlHQrDCdtFxJwoDniMvLUmzfNbJmsVpEYSCNN
call fcn.140001138
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140002250
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
loop 0x14000222c
cmp al, 0xae
invalid
popfq
insb byte [rdi], dx
adc esi, dword [rsi + rdi*4]
leave
jl 0x1400021c4
leave
fistp word [rax - 0x40]
outsd dx, dword [rsi]
mov esi, 0x211d2fa1
xor al, 0x3b
invalid
invalid
mov eax, 0xcde3db2f
lea ecx, [rdi + 0x20]
or dl, byte [rsi + rsi*4]
loop 0x1400022d0
pop rdx
jno 0x140002212
cmpsd dword [rsi], dword [rdi]
push rdx
fidivr dword [rdi + riz*8 + 0x35d7f90d]
cmp dword [rbx], ebp
xchg ebx, eax
cmp al, 0x2e
cmp eax, dword [rsi - 0x617f595f]
sal esi, 0x6d
int1
invalid
jne 0x1400022d9
mov esi, 0x7138a242
sub esp, dword [rax - 0x50b0d12e]
shr byte [rsi], cl
scasq rax, qword [rdi]
sbb dword [rcx - 0x4440645f], 0x63f9fc29
sbb byte [rsi], bh
int 0x73
invalid

Function at 0x1400221b0
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0xc4
test al, 0x85
idiv byte [rsi - 0x7cd04c69]
and byte [rsi - 0x27b2271f], cl
push rax
jns 0x1400221ff
fcom dword [rax + 0x79]
jbe 0x1400221a6
jbe 0x1400221a6
insd dword [rdi], dx
jl 0x140022231
cmp esi, dword [rsp + 0x1a166422]
jmp 0x16886cf5b
xchg esp, eax
mov al, 0x89
xchg byte [rax + 0x519d4ae], al
add esp, dword [rdx]
add dword [rbx - 0x126c8d10], ecx
and eax, 0x81a5a9b0
enter 0x1127, 0xffffffffffffffe9
and al, 0xdf
pop rdi
mov r13b, byte [rax - 0x6d81046c]
test al, 0x94
sti
jle 0x1400221b5
fimul dword [rbx*2 + 0x6d69d929]
imul esi, dword [rsi + 0x33], 0xffffffe6
mov cl, 0x92
xor edx, esi
push rcx
loopne 0x14002221e
invalid
and ecx, ecx
cmp dword [rbx], 0x4e5b0d1e
xchg ebp, eax
and eax, 0x692f438b
iretd

Function at 0x140022710
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x62
mov esp, 0x35676e8d
test eax, 0x6ec9840a
lea ebp, [rsi + 0x67]
xor eax, 0xc9840aa9
outsb dx, byte [rsi]
xor cl, dl
pop rdi
add al, 0x87
ficom dword [rcx + riz + 0x7e70c65c]
jl 0x140022713
sbb bh, byte [rsi + 0x7f]
not byte [rdi - 0x17]
ror byte [rbp - 0x6fdddfc9], 1
xor al, 0x3f
and esp, dword [rdx + rax*4 - 0x3883bda6]
out dx, al
mov edi, 0x373883db
invalid
Function at 0x140c3f160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c3f2e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c3f191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c3f177
add dl, dl
jne 0x140c3f19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c3f1fe
xor eax, eax
add dl, dl
jne 0x140c3f1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c3f2b5
add dl, dl
jne 0x140c3f1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c3f1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c3f1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c3f1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c3f1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c3f186
mov eax, 1
add dl, dl
jne 0x140c3f20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c3f21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c3f203
sub eax, ebx
mov ebx, 1
jne 0x140c3f254
mov ecx, 1
add dl, dl
jne 0x140c3f236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c3f243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c3f22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3f186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c3f270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c3f27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c3f265
cmp eax, 0x7d00
jae 0x140c3f2a3
cmp eax, 0x500
jb 0x140c3f29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3f186
cmp eax, 0x7f
ja 0x140c3f2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3f186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c3f2da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c3f186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20