joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a5f0
Capabilities:
Encrypt data using aes via x86 extensions
Resolve function by parsing pe exports

Disassembly:
add edx, 0xfffffff0
cmp edx, 0xf0
ja case.0x18001a619.17
movsxd rax, edx
lea r9, [0x180000000]
movzx eax, byte [r9 + rax + 0x1a64c]
mov edx, dword [r9 + rax*4 + 0x1a63c]
add rdx, r9
jmp rdx
mov rdx, r8
jmp fcn.18001aa60
mov rdx, r8
jmp fcn.18001ad30
mov rdx, r8
jmp fcn.18001b080
mov eax, 1
ret

Function at 0x18001a740
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
add edx, 0xfffffff0
mov rsi, r8
mov r8, rcx
cmp edx, 0xf0
ja case.0x18001a780.17
movsxd rax, edx
lea rcx, [0x180000000]
movzx eax, byte [rcx + rax + 0x1a968]
mov edx, dword [rcx + rax*4 + 0x1a958]
add rdx, rcx
jmp rdx
mov ecx, dword [0x180067990]
mov edi, 1
test ecx, ecx
jns 0x18001a7a5
xor ecx, ecx
mov eax, edi
cpuid
and ecx, 0x2000000
mov dword [0x180067990], ecx
test ecx, ecx
mov rdx, rsi
mov rcx, r8
jne 0x18001a7c4
call fcn.180018690
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.18001aa60
test eax, eax
jne 0x18001a7ff
movzx eax, byte [rsi + 0xf0]
and eax, 0xfffffff0
cmp eax, 0x10
jbe 0x18001a7fd
lea rcx, [rsi + 0x10]
aesimc xmm0, xmmword [rcx]
movdqu xmmword [rcx], xmm0
lea rcx, [rcx + 0x10]
movzx eax, byte [rsi + 0xf0]
inc edi
shr eax, 4
cmp edi, eax
jl 0x18001a7e0
xor edi, edi
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [0x180067990]
mov edi, 1
test ecx, ecx
jns 0x18001a834
xor ecx, ecx
mov eax, edi
cpuid
and ecx, 0x2000000
mov dword [0x180067990], ecx
test ecx, ecx
mov rdx, rsi
mov rcx, r8
jne 0x18001a853
call fcn.180018ed0
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.18001ad30
test eax, eax
jne 0x18001a7ff
movzx eax, byte [rsi + 0xf0]
and eax, 0xfffffff0
cmp eax, 0x10
jbe 0x18001a7fd
lea rcx, [rsi + 0x10]
nop
aesimc xmm0, xmmword [rcx]
movdqu xmmword [rcx], xmm0
lea rcx, [rcx + 0x10]
movzx eax, byte [rsi + 0xf0]
inc edi
shr eax, 4
cmp edi, eax
jl 0x18001a870
xor edi, edi
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [0x180067990]
mov edi, 1
test ecx, ecx
jns 0x18001a8c4
xor ecx, ecx
mov eax, edi
cpuid
and ecx, 0x2000000
mov dword [0x180067990], ecx
test ecx, ecx
mov rdx, rsi
mov rcx, r8
jne 0x18001a8e3
call fcn.180019890
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.18001b080
test eax, eax
jne 0x18001a7ff
movzx eax, byte [rsi + 0xf0]
and eax, 0xfffffff0
cmp eax, 0x10
jbe 0x18001a7fd
lea rcx, [rsi + 0x10]
nop word [rax + rax]
aesimc xmm0, xmmword [rcx]
movdqu xmmword [rcx], xmm0
lea rcx, [rcx + 0x10]
movzx eax, byte [rsi + 0xf0]
inc edi
shr eax, 4
cmp edi, eax
jl 0x18001a910
xor edi, edi
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180032720
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, edx
mov ebp, r9d
mov r14d, r8d
mov rsi, rcx
lea ebx, [rdi + 1]
imul ebx, r9d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r10, rax
test rax, rax
je 0x1800327b8
xor r8d, r8d
xor ecx, ecx
test edi, edi
je 0x1800327b8
mov r9d, edi
lea r11, [0x18004ec20]
nop
xor eax, eax
lea rsi, [rsi + 1]
cmp ecx, 0x40
cmovne eax, ecx
mov edx, eax
movzx ecx, byte [rax + r11]
lea eax, [r8 + 1]
xor cl, byte [rsi - 1]
xor cl, r14b
cmp ebp, 2
mov byte [r8 + r10], cl
lea ecx, [rdx + 1]
cmovne eax, r8d
lea r8d, [rax + 1]
sub r9, 1
jne 0x180032780
mov rax, r10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180034be0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
cmp qword [rsp + 0x20], 0
je 0x180034c4e
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180034c4e
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
cmp dword [rcx + rax], 0x4550
jne 0x180034c25
mov dword [rsp + 4], 1
jmp 0x180034c2d
mov dword [rsp + 4], 0
cmp dword [rsp + 4], 0
jne 0x180034c3e
mov dword [rsp + 8], 0
jmp 0x180034c46
mov dword [rsp + 8], 1
movzx eax, byte [rsp + 8]
mov byte [rsp], al
movzx eax, byte [rsp]
add rsp, 0x18
ret
Function at 0x141df6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141df61df
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 0x141df6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141df606f
add dl, dl
jne 0x141df6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141df60f6
xor eax, eax
add dl, dl
jne 0x141df60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141df61ad
add dl, dl
jne 0x141df60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141df60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141df60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141df60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141df60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141df607e
mov eax, 1
add dl, dl
jne 0x141df6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141df6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141df60fb
sub eax, ebx
mov ebx, 1
jne 0x141df614c
mov ecx, 1
add dl, dl
jne 0x141df612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141df613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141df6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141df607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141df6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141df6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141df615d
cmp eax, 0x7d00
jae 0x141df619b
cmp eax, 0x500
jb 0x141df6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141df607e
cmp eax, 0x7f
ja 0x141df619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141df607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141df61d2
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 0x141df607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005980
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
call fcn.1400050e0
test al, al
je 0x140005a5c
lea rcx, [rsp + 0x30]
call fcn.1400048d0
cmp qword [rsp + 0x40], 0
je 0x140005a1e
cmp qword [rsp + 0x48], 8
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], 1
lea rdx, str.open
cmovae r8, qword [rsp + 0x30]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140005a86
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a14
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a8b
call fcn.140007e0c
add rsp, 0x58
ret
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140005a5c
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a57
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a8b
call fcn.140007e0c
mov dword [rsp + 0x28], 1
lea r8, str.https:__afkjourney.farlightgames.com_
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x58
ret
call fcn.14000e5c4
int3

Function at 0x1400101b8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400101ef
call fcn.1400111b8
mov dword [rax], 0x16
call fcn.14000e5a4
xor eax, eax
jmp 0x14001027d
mov rdx, r9
mov rcx, r8
call fcn.140010154
mov rbx, rax
test rax, rax
je 0x14001027a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140010080]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140010267
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001112c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001024e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001025d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140017884
jmp 0x14001027a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140010277
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140019d7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140007e30
sub rsp, rax
mov rax, qword [0x140039098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400186e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140019dcb
mov rax, rbp
jmp 0x140019ed3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3ba00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001ae9c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3ba00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140019ecf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140019ecf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001ae9c
test rax, rax
js 0x140019ecf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140019ecf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019ec1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019ec1
cmp byte [rcx], 0xd
jne 0x140019ea7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019eb6
cmp byte [rcx + 1], 0xa
jne 0x140019eb6
inc rcx
jmp 0x140019eb6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x39490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019e89
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140019ed3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008400
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001a0f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a10a
mov al, 1
jmp 0x14001a16a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a11b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a168
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001f13c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a168
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a168
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a168
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a16a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001a23c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003ba00]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001a293
cmp word [rdx], r13w
jne 0x14001a293
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a298
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a3bd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a3de
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a2d1
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a2f8
cmp r9, r8
jae 0x14001a308
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001a2b2
jmp 0x14001a3bd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a3b2
cmp dword [rsp + 0x80], esi
je 0x14001a3b2
lea r8, [0x14003ba00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a38a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a35a
mov word [rbx], r13w
jmp 0x14001a3ba
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001a367
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a3ba
cmp word [rsp + 0x70], r13w
jne 0x14001a397
cmp rbx, r14
je 0x14001a354
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001aea4
cmp word [rsp + 0x70], r13w
je 0x14001a3bd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003ba00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a3b7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a3bd
Function at 0x14001ebc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001ec47
mov rsi, rbx
cmp word [rax], bp
je 0x14001ec06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001ebf0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001ebec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001b48c
mov rdi, rax
test rax, rax
je 0x14001ec34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400090e0
mov rbp, rdi
xor ecx, ecx
call fcn.140017884
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140021690
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140017524
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140021731
cmp ebx, dword [rsp + 0x30]
je 0x14002172a
test esi, esi
je 0x14002172a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140021705
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140021712
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400216ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140021716
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140021733
mov eax, 1
jmp 0x140021733
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400240c4
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001aea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001aea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140024214
cmp rax, 0xffffffffffffffff
je 0x140024214
xor edi, edi
test rbp, rbp
jle 0x1400241bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400178c0
mov rbx, rax
test rax, rax
jne 0x14002414c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400241b5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400148b4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400195f4
cmp eax, 0xffffffff
je 0x140024195
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002415c
mov edx, r15d
mov ecx, r14d
call fcn.1400148b4
jmp 0x1400241b5
cmp byte [rsi + 0x38], dil
je 0x1400241ac
cmp dword [rsi + 0x34], 5
jne 0x1400241ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400241b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140017884
jmp 0x140024228
jns 0x140024228
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001aea4
cmp rax, 0xffffffffffffffff
jne 0x1400241e0
cmp byte [rsi + 0x30], dil
je 0x140024228
mov edi, dword [rsi + 0x2c]
jmp 0x140024228
mov ecx, r14d
call fcn.14001f13c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140024228
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140024228
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140024221
mov eax, dword [rsi + 0x2c]
jmp 0x140024226
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001aea4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x7733a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x7733ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x7733bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x7733a5
lea eax, [rcx + 1]
jmp 0x7733cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x7733de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x7733c4
sub eax, 3
jb 0x7733fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x77344d
sar eax, 1
movsxd rbp, eax
jb 0x773434
jmp 0x77340c
add ebx, ebx
jne 0x77340a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x773434
inc ecx
add ebx, ebx
jne 0x77341a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x773434
call r11
adc ecx, ecx
add ebx, ebx
jne 0x77342d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x77341c
add ecx, 2
jmp 0x773439
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00773362
jmp 0x7733ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x118000
mov dl, 0x28
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x773499
cmp rsi, rcx
jae 0x7734a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x773480
cmp al, 0x8f
ja 0x773480
cmp byte [rsi - 2], 0xf
je 0x773486
sub al, 0xe8
cmp al, 1
ja 0x77346a
cmp rsi, rcx
jae 0x7734a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x773470
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x7734a1
lodsb al, byte [rsi]
jmp 0x773480
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x36c000]
mov eax, dword [rdi]
or eax, eax
je 0x7734fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x373000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x7734ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x7734f8
mov qword [rbx], rax
add rbx, 8
jmp 0x7734ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x773542
cmp al, 0xef
ja 0x77352a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x77350a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x773519
mov eax, dword [rdi]
add rdi, 4
jmp 0x773519
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x773596
sub rsp, 0xffffffffffffff80
jmp 0x469bc0
Function at 0x140064c90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rax, [r8 - 1]
mov r13, r9
mov rbp, rax
mov qword [rsp + 0x50], rax
sar rbp, 1
mov r15, r8
mov rbx, rdx
mov rsi, rcx
mov r12, rdx
mov r14, rdx
cmp rdx, rbp
jge 0x140064d40
nop dword [rax]
nop word [rax + rax]
lea rdi, [r14 + r14]
mov rax, rdi
lea rdx, [rsi + 0x60]
shl rax, 6
lea rcx, [rsi + 0xa0]
add rdx, rax
add rcx, rax
call fcn.14000ece0
lea r14, [rdi + 1]
movzx eax, al
xor rax, 1
shl rbx, 6
add r14, rax
add rbx, rsi
mov rdi, r14
mov rcx, rbx
shl rdi, 6
add rdi, rsi
mov rdx, rdi
call fcn.14001a2e0
lea rdx, [rdi + 0x20]
lea rcx, [rbx + 0x20]
call fcn.14001a2e0
mov rbx, r14
cmp r14, rbp
jl 0x140064ce0
cmp r14, rbp
jne 0x140064d78
test r15b, 1
jne 0x140064d78
shl r15, 6
shl rbx, 6
add rbx, rsi
mov rcx, rbx
lea rdi, [r15 + rsi]
lea rdx, [rdi - 0x40]
call fcn.14001a2e0
lea rdx, [rdi - 0x20]
lea rcx, [rbx + 0x20]
call fcn.14001a2e0
mov rbx, qword [rsp + 0x50]
cmp r12, rbx
jge 0x140064dc9
nop dword [rax]
lea rdi, [rbx - 1]
sar rdi, 1
lea rdx, [r13 + 0x20]
mov rbp, rdi
shl rbp, 6
add rbp, rsi
lea rcx, [rbp + 0x20]
call fcn.14000ece0
test al, al
je 0x140064dc9
shl rbx, 6
mov rdx, rbp
add rbx, rsi
mov rcx, rbx
call fcn.14001a2e0
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x20]
call fcn.14001a2e0
mov rbx, rdi
cmp r12, rdi
jl 0x140064d80
shl rbx, 6
mov rdx, r13
add rbx, rsi
mov rcx, rbx
call fcn.14001a2e0
lea rdx, [r13 + 0x20]
lea rcx, [rbx + 0x20]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.14001a2e0

Function at 0x1400664f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x13e0
call fcn.140284780
sub rsp, rax
mov rax, qword [0x140469080]
xor rax, rsp
mov qword [rsp + 0x13d8], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov ecx, 1
mov qword [rsp + 0x38], rdx
movabs r8, 0x5851f42d4c957f2d
movabs rax, 0x5555555555555555
mov qword [rsp + 0x13b8], rax
nop word [rax + rax]
mov rax, rdx
shr rax, 0x3e
xor rdx, rax
imul rdx, r8
add rdx, rcx
mov qword [rsp + rcx*8 + 0x38], rdx
inc rcx
cmp rcx, 0x138
jb 0x140066550
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x138
call fcn.140066a80
mov r9, rax
lea r8, str._16llX
mov edx, 0x14
lea rcx, [rsp + 0x13c0]
call fcn.140066490
xorps xmm0, xmm0
lea rax, [rsp + 0x13c0]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
inc r8
cmp byte [rax + r8], 0
jne 0x1400665c5
lea rdx, [rsp + 0x13c0]
mov rcx, rbx
call fcn.140009a00
mov rax, rbx
mov rcx, qword [rsp + 0x13d8]
xor rcx, rsp
call fcn.140283da0
add rsp, 0x13e0
pop rbx
ret