joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095dec
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x140095e1e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140095e1e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140118544
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140177aa0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401dda04
test eax, eax
jne 0x140177b04
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14003ebd8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140177b16
jmp 0x140177ac4
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1401d0aa8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401d0907
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401d0907
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401d0907
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401d0907
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401d0907
cmp dword [rcx + 0x84], 0xe
jbe 0x1401d0907
cmp dword [rcx + 0xf8], 0
je 0x1401d0907
mov ecx, ebx
call fcn.1401d09c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401d0794
nop
cmp dword [rbp + 0x20], 0
je 0x1401d0955
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401d0960
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401d0898
Function at 0x1401d61cc
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.1401c6610
sub rsp, rax
mov rax, qword [0x140291920]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401de098
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401d621b
mov rax, rbp
jmp 0x1401d6323
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 + 0x29f080]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401e26e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x29f080]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401d631f
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 0x1401d631f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401e26e0
test rax, rax
js 0x1401d631f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401d631f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401d6311
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401d6311
cmp byte [rcx], 0xd
jne 0x1401d62f7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401d6306
cmp byte [rcx + 1], 0xa
jne 0x1401d6306
inc rcx
jmp 0x1401d6306
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x291c60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401d62d9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401d6323
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401c5ca0
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 0x1401e3514
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14029f080]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1401e3572
cmp word [rdx], r12w
jne 0x1401e3572
or byte [rax + r8*8 + 0x38], cl
jmp 0x1401e3578
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1401e36d3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1401e36ae
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1401e35b1
mov rcx, r9
jmp 0x1401e35d4
cmp r9, rdx
jae 0x1401e35eb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1401e3595
jmp 0x1401e36d3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e36a8
cmp dword [rsp + 0x80], edi
je 0x1401e36a8
mov rdx, r14
lea r11, [0x14029f080]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1401e3681
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401e3654
mov word [rbx], r12w
jmp 0x1401e36cf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401e365d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1401e36cf
cmp word [rsp + 0x70], r12w
jne 0x1401e368e
cmp rbx, rsi
je 0x1401e364e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1401e26e8
cmp word [rsp + 0x70], r12w
je 0x1401e36d3
mov word [rbx], r13w
jmp 0x1401e36cf
lea r11, [0x14029f080]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401e36cb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401e36d3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401e3f28
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401e3f5a
call fcn.1401d06c0
mov dword [rax], 0x16
call fcn.1401d0584
jmp 0x1401e4079
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401e4079
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401e4079
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401e3f89
lock or dword [rcx + 0x14], 0x10
jmp 0x1401e4079
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401e3f9d
call fcn.1401ea51c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1401de098
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401e39c0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401e4067
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401e4032
mov rcx, rsi
call fcn.1401de098
cmp eax, edi
je 0x1401e401d
mov rcx, rsi
call fcn.1401de098
cmp eax, 0xfffffffe
je 0x1401e401d
mov rcx, rsi
call fcn.1401de098
movsxd rbx, eax
lea r14, [0x14029f080]
mov rcx, rsi
sar rbx, 6
call fcn.1401de098
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401e4024
lea rdx, [0x140291c10]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401e4032
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401e4056
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401e4056
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401e4056
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401e407c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401e7870
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 0x1401e78f7
mov rsi, rbx
cmp word [rax], bp
je 0x1401e78b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401e78a0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401e789c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401e090c
mov rdi, rax
test rax, rax
je 0x1401e78e4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401c8030
mov rbp, rdi
xor ecx, ecx
call fcn.1401dffac
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 0x1401ec1cc
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.1401e26e8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401e26e8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401ec31c
cmp rax, 0xffffffffffffffff
je 0x1401ec31c
xor edi, edi
test rbp, rbp
jle 0x1401ec2c7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401e5488
mov rbx, rax
test rax, rax
jne 0x1401ec254
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401ec2bd
mov edx, 0x8000
mov ecx, r14d
call fcn.1401df710
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.1401e3168
cmp eax, 0xffffffff
je 0x1401ec29d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401ec264
mov edx, r15d
mov ecx, r14d
call fcn.1401df710
jmp 0x1401ec2bd
cmp byte [rsi + 0x38], dil
je 0x1401ec2b4
cmp dword [rsi + 0x34], 5
jne 0x1401ec2b4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x1401ec2bd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401dffac
jmp 0x1401ec330
jns 0x1401ec330
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401e26e8
cmp rax, 0xffffffffffffffff
jne 0x1401ec2e8
cmp byte [rsi + 0x30], dil
je 0x1401ec330
mov edi, dword [rsi + 0x2c]
jmp 0x1401ec330
mov ecx, r14d
call fcn.1401de56c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401ec330
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x1401ec330
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401ec329
mov eax, dword [rsi + 0x2c]
jmp 0x1401ec32e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401e26e8
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 0x140007a70
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
sub rsp, 0x40
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x38], rcx
mov rsi, qword [rsp + 0x38]
lea rax, str.expand_32_byte_k
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.140007bc0
mov dword [rsi], eax
mov rcx, qword [rsp + 0x28]
add rcx, 4
call fcn.140007bc0
mov dword [rsi + 4], eax
mov rcx, qword [rsp + 0x28]
add rcx, 8
call fcn.140007bc0
mov dword [rsi + 8], eax
mov rcx, qword [rsp + 0x28]
add rcx, 0xc
call fcn.140007bc0
mov dword [rsi + 0xc], eax
mov rcx, qword [rsp + 0x20]
call fcn.140007bc0
mov dword [rsi + 0x10], eax
mov rcx, qword [rsp + 0x20]
add rcx, 4
call fcn.140007bc0
mov dword [rsi + 0x14], eax
mov rcx, qword [rsp + 0x20]
add rcx, 8
call fcn.140007bc0
mov dword [rsi + 0x18], eax
mov rcx, qword [rsp + 0x20]
add rcx, 0xc
call fcn.140007bc0
mov dword [rsi + 0x1c], eax
mov rcx, qword [rsp + 0x20]
add rcx, 0x10
call fcn.140007bc0
mov dword [rsi + 0x20], eax
mov rcx, qword [rsp + 0x20]
add rcx, 0x14
call fcn.140007bc0
mov dword [rsi + 0x24], eax
mov rcx, qword [rsp + 0x20]
add rcx, 0x18
call fcn.140007bc0
mov dword [rsi + 0x28], eax
mov rcx, qword [rsp + 0x20]
add rcx, 0x1c
call fcn.140007bc0
mov dword [rsi + 0x2c], eax
mov dword [rsi + 0x30], 0
mov dword [rsi + 0x34], 0
mov rcx, qword [rsp + 0x30]
call fcn.140007bc0
mov dword [rsi + 0x38], eax
mov rcx, qword [rsp + 0x30]
add rcx, 4
call fcn.140007bc0
mov dword [rsi + 0x3c], eax
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x14001ce48
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14001ce76
xor eax, eax
jmp 0x14001cf5c
cmp qword [rcx + 0x68], 0
je 0x14001ce87
call fcn.14000b400
jmp 0x14001cf5c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001ce9e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001cea0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001ced2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400681f0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14001cf56
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001cf09
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001cf32
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140050c80
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001cf56
cmp rsi, rbx
ja 0x14001cf10
test rsi, rsi
je 0x14001cf56
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140050c80
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x14001f0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ebp, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
cmp r8, 0xffffffffffffffff
jne 0x14001f103
movzx eax, byte [rdx]
mov edi, ecx
test al, al
je 0x14001f0f7
imul ecx, ecx, 0x1003f
inc rdi
movzx eax, al
add ecx, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x14001f0e1
test rdi, rdi
jne 0x14001f12f
xor eax, eax
jmp 0x14001f1b2
mov rdx, rcx
test r8, r8
je 0x14001f0f7
nop dword [rax + rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14001f12a
imul ecx, ecx, 0x1003f
inc rdx
add ecx, eax
cmp rdx, r8
jb 0x14001f110
jmp 0x14001f0f7
mov ecx, 0x11
mov eax, dword [rbx + 0x128]
mov edx, ecx
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, ecx
movzx ecx, byte [rbx + 0x12c]
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14001f1aa
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14001f199
cmp dword [rbx + 0x14], ebp
jne 0x14001f199
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14001f18a
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.1400680f0
test eax, eax
je 0x14001f1a1
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001f171
test rbx, rbx
je 0x14001f1aa
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400228d0
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 r12
push r14
push r15
sub rsp, 0x40
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x1400229c7
xor r12d, r12d
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, r12
test rbx, rbx
je 0x140022958
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x140022930
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140022570
mov dword [r14], eax
test eax, eax
jne 0x1400229f2
mov rcx, qword [r15]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx ecx, byte [rcx + 0x48]
call fcn.140034430
mov dword [r14], eax
test eax, eax
jne 0x1400229f2
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140022150
test eax, eax
je 0x1400229c7
mov ecx, dword [rsi]
test eax, ecx
jne 0x1400229eb
or ecx, eax
xor r8d, r8d
mov dword [rsi], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.1400344c0
cmp al, 2
jne 0x1400229c7
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x140022910
mov eax, 0x1a
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
mov eax, 0x37
jmp 0x1400229cc
xor r8d, r8d
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.1400344c0
cmp al, 2
jne 0x140022a65
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x140022a65
mov r11, qword [rdi + 8]
mov r10, r12
test rdx, rdx
je 0x140022a4d
lea rax, [rsp + 0x20]
sub r11, rax
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x140022a23
lea rcx, [rsp + 0x20]
call fcn.140022150
cmp eax, 0x10
jne 0x140022a65
or dword [rsi], eax
xor eax, eax
jmp 0x1400229cc
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x1400229cc
Function at 0x140023420
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0xa0
xorps xmm0, xmm0
mov qword [rax - 0x68], 0
mov rbx, rcx
mov rsi, r8
lea rcx, [rax - 0x40]
mov rdi, rdx
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
movups xmmword [rax - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rbx, qword [rsp + 0x70]
lea rcx, [rdi - 1]
mov rax, qword [rsp + 0x40]
cmovb rbx, qword [rsp + 0x70]
cmp rcx, qword [rsp + 0x78]
mov qword [rsp + 0x60], 0
cmova rcx, qword [rsp + 0x78]
and rax, 0xffffffffffffff01
or rax, 1
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x40], rax
lea rcx, str.kernelbase.dll
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400234fd
lea rdx, str.VirtualAlloc2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 1
mov r9d, 0x3000
mov rcx, rax
mov r8, rsi
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call rbx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140023520
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
xorps xmm0, xmm0
mov rbx, rcx
lea rcx, [rax - 0x38]
mov rsi, r8
movups xmmword [rax - 0x38], xmm0
mov rbp, rdx
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rbx, rbp
jae 0x1400235f5
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400235f5
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1400235e4
cmp rcx, rsi
jb 0x1400235e4
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov ecx, dword [rsp + 0x78]
mov rax, rdi
div rcx
test rdx, rdx
je 0x1400235ab
sub rdi, rdx
add rdi, rcx
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1400235f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
jne 0x1400235da
add rbx, rsi
jmp 0x1400235ec
mov rbx, qword [rsp + 0x38]
add rbx, rdi
jmp 0x1400235ec
mov rbx, qword [rsp + 0x20]
add rbx, rcx
cmp rbx, rbp
jb 0x140023562
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140024520
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140390040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx ebp, dl
mov rsi, rcx
lea rdx, [rcx + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140001810
nop
xor ebx, ebx
xor r14d, r14d
mov rdi, qword [rsi + 0x38]
sub rdi, qword [rsi + 0x30]
je 0x1400245d0
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x1400247a4
cmp rdi, 0x1000
jb 0x1400245ae
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400247aa
call fcn.14001bc8c
test rax, rax
je 0x14002479e
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400245b9
mov rcx, rdi
call fcn.14001bc8c
mov rbx, rax
lea r14, [rbx + rdi]
mov r8, qword [rsi + 0x38]
mov rdx, qword [rsi + 0x30]
sub r8, rdx
mov rcx, rbx
call fcn.1400681f0
mov rax, qword [rsi + 0x38]
sub rax, qword [rsi + 0x30]
mov r15, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x28]
cmp rax, 1
jne 0x1400245ed
cmp byte [rbx], 0xcc
jmp 0x1400245fc
cmp rax, 2
jb 0x140024602
cmp byte [rbx], 0xf3
jne 0x140024602
cmp byte [rbx + 1], 0xc3
je 0x140024796
lea rcx, [rsp + 0x28]
cmp r15, 0x10
cmovae rcx, rsi
mov rdi, qword [rsp + 0x38]
cmp rdi, 3
jne 0x140024636
mov r8, rdi
lea rdx, [0x14037cea0]
call fcn.1400680f0
test eax, eax
jne 0x140024636
test bpl, bpl
je 0x140024796
lea rcx, [rsp + 0x28]
cmp r15, 0x10
cmovae rcx, rsi
cmp rdi, 3
jne 0x140024660
mov r8, rdi
lea rdx, [0x14037c858]
call fcn.1400680f0
test eax, eax
je 0x140024796
lea rbp, [rsp + 0x28]
cmp r15, 0x10
cmovae rbp, rsi
cmp rdi, 4
jb 0x1400246f8
lea r8, [rdi - 3]
add r8, rbp
sub r8, rbp
mov edx, 0x69
mov rcx, rbp
call fcn.140068050
mov r9, rax
test rax, rax
je 0x1400246f8
lea r12, str.iret
nop dword [rax]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [r12 + rcx - 1]
jne 0x1400246c9
cmp rcx, 4
jne 0x1400246b0
xor eax, eax
jmp 0x1400246ce
sbb eax, eax
or eax, 1
test eax, eax
je 0x14002478d
inc r9
lea r8, [rdi - 3]
add r8, rbp
sub r8, r9
mov edx, 0x69
mov rcx, r9
call fcn.140068050
mov r9, rax
test rax, rax
jne 0x1400246a0
xor dil, dil
test rbx, rbx
je 0x140024730
sub r14, rbx
cmp r14, 0x1000
jb 0x140024724
add r14, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14002479e
mov rbx, rcx
mov rdx, r14
mov rcx, rbx
call fcn.14001bcd0
nop
cmp r15, 0x10
jb 0x140024763
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14002475b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400247b0
mov rcx, rsi
call fcn.14001bcd0
movzx eax, dil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002fc00
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp r9, rbp
jne 0x1400246f8
mov dil, 1
jmp 0x1400246fb
call fcn.14004edd0
int3
call fcn.140006300
int3
call fcn.140001150
nop
call fcn.14004edd0
int3