joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001271c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.1400016e0
mov rcx, rax
test rax, rax
je 0x140012859
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001400b.0]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8d, 0x57b
lea rdx, str.CrashSender_d.exe
lea rcx, [rsp + 0x20]
call fcn.1400047a0
mov dword [rsp + 0x30], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rbx, qword [rsp + 0x20]
cmp eax, 1
jne 0x140012807
jmp 0x1400127f4
mov rdx, rbx
lea rcx, [rsp + 0x5c]
call fcn.140021a9c
test eax, eax
jne 0x1400127f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, dword [rsp + 0x38]
cmp r8d, eax
je 0x1400127f4
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1400127ae
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012832
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001400b.0]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140016970
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001558
int3

Function at 0x140014fe8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.140014eec
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140024a7c
mov rcx, rsi
call fcn.1400237a8
cmp eax, 0xffffffff
jne 0x14001503d
mov rcx, rsi
call fcn.140023578
test eax, eax
je 0x14001503d
mov edx, 5
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
call fcn.140015180
jmp 0x1400150b5
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 2]
call fcn.140024a7c
mov rcx, rsi
call fcn.140024054
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rdi, rax
call fcn.140024a7c
cmp rdi, 0xffffffffffffffff
jae 0x140015028
test rdi, rdi
jne 0x140015073
lea edx, [rdi + 0xd]
jmp 0x14001502d
lea rcx, [rdi + 1]
call fcn.140017168
mov r9, rsi
mov qword [rbx + 0x98], rax
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400242f4
mov rcx, rbx
cmp rax, rdi
je 0x1400150a5
mov edx, 5
jmp 0x140015030
mov rax, qword [rbx + 0x98]
mov byte [rdi + rax], 0
call fcn.140015280
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400154a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x78]
mov rdi, r8
mov rsi, rdx
test r9, r9
je 0x1400154cd
mov edx, 1
mov rcx, rsi
call fcn.140023b00
jmp 0x1400154f2
add rcx, 0x110
mov edx, edi
call fcn.140015de0
mov r8, rdi
mov rdx, rsi
mov rbx, rax
lea rcx, [rax - 1]
call fcn.140018ef0
mov byte [rbx + rdi - 1], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001591c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x14001593d
mov dl, 0x3e
mov byte [rcx + 8], 0
call fcn.140015504
cmp dword [rbx + 0x84], 0
jge 0x140015975
cmp byte [rbx + 0x70], 0
jne 0x140015975
cmp byte [rbx + 0x89], 0
jne 0x140015975
mov dl, 0xa
mov rcx, rbx
call fcn.140015504
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
mov rax, qword [rax + 0x58]
call qword [case.0x14001400b.0]
mov r8d, 2
mov byte [rbx + 0x70], 0
lea rdx, [0x140040560]
mov rcx, rbx
call fcn.1400154a0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140015992
mov rdx, rdi
mov rcx, rbx
call fcn.1400154a0
mov r8d, 2
lea rdx, [0x1400405bc]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400154a0
Function at 0x140001a60
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x38
mov eax, ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x140001a00]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x140066fe4
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 0x140067012
xor eax, eax
jmp 0x1400670f8
cmp qword [rcx + 0x68], 0
je 0x140067023
call fcn.140067114
jmp 0x1400670f8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14006703a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006703c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006706e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14009b3a0
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 0x1400670f2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400670a5
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 0x1400670ce
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400d3c3c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400670f2
cmp rsi, rbx
ja 0x1400670ac
test rsi, rsi
je 0x1400670f2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400d3c3c
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 0x14008c264
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140073df2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140073dd5
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140073dc0

Function at 0x14008c278
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140073e2a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140073e0d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140073df8

Function at 0x14009b184
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009b1ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009b1ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009b1ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009b1ce
cmp dword [rcx + 0x84], 0xe
jbe 0x14009b1ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009b1d0
xor al, al
add rsp, 0x28
ret

Function at 0x1400e13c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400e114c
Function at 0x1400e9ac4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e9ada
mov al, 1
jmp 0x1400e9b3a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e9aeb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e9b38
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f839c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e9b38
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e9b38
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e9b38
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e9b3a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400f0930
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.14009a8e0
sub rsp, rax
mov rax, qword [0x140187648]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e83e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400f097f
mov rax, rbp
jmp 0x1400f0a87
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 + 0x18af70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400f20d8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x18af70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400f0a83
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 0x1400f0a83
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400f20d8
test rax, rax
js 0x1400f0a83
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400f0a83
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400f0a75
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400f0a75
cmp byte [rcx], 0xd
jne 0x1400f0a5b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400f0a6a
cmp byte [rcx + 1], 0xa
jne 0x1400f0a6a
inc rcx
jmp 0x1400f0a6a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x187a50]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400f0a3d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400f0a87
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009a940
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 0x1400f0f30
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, [0x14018af70]
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 0x1400f0f87
cmp word [rdx], r13w
jne 0x1400f0f87
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400f0f8c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400f10b1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400f10d2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400f0fc5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400f0fec
cmp r9, r8
jae 0x1400f0ffc
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 0x1400f0fa6
jmp 0x1400f10b1
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 0x1400f10a6
cmp dword [rsp + 0x80], esi
je 0x1400f10a6
lea r8, [0x14018af70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400f107e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400f104e
mov word [rbx], r13w
jmp 0x1400f10ae
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 0x1400f105b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400f10ae
cmp word [rsp + 0x70], r13w
jne 0x1400f108b
cmp rbx, r14
je 0x1400f1048
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400f20e0
cmp word [rsp + 0x70], r13w
je 0x1400f10b1
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, [0x14018af70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400f10ab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400f10b1
Function at 0x1400f6eec
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400f6f1c
xor eax, eax
jmp 0x1400f6fdf
mov rbp, rbx
cmp word [rax], si
je 0x1400f6f41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f6f28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f6f24
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400f2bf0
movsxd r14, eax
test eax, eax
jne 0x1400f6f7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f6f15
mov rcx, r14
call fcn.1400e9e3c
mov rdi, rax
test rax, rax
jne 0x1400f6f98
xor ecx, ecx
call fcn.1400e77f8
jmp 0x1400f6f74
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400f2bf0
test eax, eax
jne 0x1400f6fc9
mov rcx, rdi
call fcn.1400e77f8
jmp 0x1400f6fd3
xor ecx, ecx
call fcn.1400e77f8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400f6ffc
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 0x1400f7083
mov rsi, rbx
cmp word [rax], bp
je 0x1400f7042
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f702c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f7028
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e9e3c
mov rdi, rax
test rax, rax
je 0x1400f7070
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009b3a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e77f8
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 0x1400fae54
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.1400e73d8
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 0x1400faef5
cmp ebx, dword [rsp + 0x30]
je 0x1400faeee
test esi, esi
je 0x1400faeee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400faec9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400faed6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400faeb3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400faeda
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400faef7
mov eax, 1
jmp 0x1400faef7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140104de4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400d6d5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140104e6e
cmp byte [rbp - 0x21], r15b
je 0x140104e69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140104ea4
call fcn.1400ed7d8
test eax, eax
jne 0x140104e90
cmp byte [rbp - 0x21], r15b
je 0x140104e88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140104ea4
cmp byte [rbp - 0x21], r15b
je 0x140104ea1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400db248
test eax, eax
jne 0x140104f44
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d6d5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140104ee3
cmp byte [rbp - 0x21], r15b
je 0x140104f18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140104f18
call fcn.1400ed7d8
test eax, eax
jne 0x140104f04
cmp byte [rbp - 0x21], r15b
je 0x140104efd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140104f18
cmp byte [rbp - 0x21], r15b
je 0x140104f15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400db248
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140104f44
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140104f47
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140104f55
mov rcx, rdi
call fcn.1400e77f8
cmp byte [rbp + 0x3f], r15b
je 0x140104f64
mov rcx, qword [rbp + 0x27]
call fcn.1400e77f8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140105b20
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.1400f20e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f20e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140105c70
cmp rax, 0xffffffffffffffff
je 0x140105c70
xor edi, edi
test rbp, rbp
jle 0x140105c1b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e7778
mov rbx, rax
test rax, rax
jne 0x140105ba8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140105c11
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e1570
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.1400e9430
cmp eax, 0xffffffff
je 0x140105bf1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140105bb8
mov edx, r15d
mov ecx, r14d
call fcn.1400e1570
jmp 0x140105c11
cmp byte [rsi + 0x38], dil
je 0x140105c08
cmp dword [rsi + 0x34], 5
jne 0x140105c08
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140105c11
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e77f8
jmp 0x140105c84
jns 0x140105c84
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f20e0
cmp rax, 0xffffffffffffffff
jne 0x140105c3c
cmp byte [rsi + 0x30], dil
je 0x140105c84
mov edi, dword [rsi + 0x2c]
jmp 0x140105c84
mov ecx, r14d
call fcn.1400f839c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140105c84
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 0x140105c84
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140105c7d
mov eax, dword [rsi + 0x2c]
jmp 0x140105c82
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f20e0
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 0x140108140
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140108168
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140108168
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400072b0
Capabilities:
Access peb ldr_data
Encode data using base64
Encrypt data using speck
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
movaps xmmword [rsp + 0x2d0], xmm6
movabs r12, 0xcbf29ce484222325
movabs r14, 0x1d12a89b9e723ff5
lea rcx, [0x1400ce915]
jmp 0x1403ade5d

Function at 0x140008210
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using speck
Get kernel32 base address
Get number of processors
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movabs r14, 0xcbf29ce484222325
lea rcx, [0x1400ce987]
jmp 0x1403af9be

Function at 0x1400f6677
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc rcx
cmc
cmp eax, r15d
cmp r8d, ecx
jmp 0x140262d4c
jne 0x140125e64
jmp 0x14027a235
mov r10, qword [rcx]
stc
add r9b, 0x5d
mov r11, qword [rcx + 0x18]
sub r9b, al
bswap r9w
inc r9w
mov r9d, dword [r10 + 4]
jmp 0x14026cddd
movzx eax, byte [r11 + rcx*2]
cmc
cmp al, byte [rdx]
xchg al, al
jmp 0x14024a6cc
jmp 0x140262d52
jne 0x14026ce28
test r9b, 3
jmp 0x14020893e
jne 0x1400e5446
movzx eax, byte [r11 + rcx*4 + 1]
test r9w, 0x6963
cmp al, byte [rdx + 1]
jmp 0x14020729c
jne 0x1400e5446
movzx eax, byte [r11 + rcx*4 + 2]
test r13w, r11w
jmp 0x14021f852
je 0x14027a235
and r9d, 3
rcl eax, 0xb3
sub ecx, ecx
ror ax, cl
ror ah, 0x16
sub ah, 0x28
nop word cs:[rax + rax]
jmp 0x140125e64
test r9d, r9d
jmp 0x14022c5e4
cmp al, byte [rdx + 2]
jmp 0x140269cd2
inc rcx
cmp sp, r11w
cmp r9d, ecx
jmp 0x1400e583f
je 0x14027a235
movzx r10d, byte [rdx]
not r8b
mov r8d, r9d
cmp r10b, 0xb2
cmc
stc
xor ecx, ecx
jmp 0x1401dcc31
setne al
test si, 0x797f
cmp rsi, r11
stc
neg al
jmp 0x14024ac88
mov byte [r11 + rcx*2 + 1], al
jmp 0x140221e02
je 0x14027a235
cmp byte [r11 + rcx*4], r10b
jmp 0x140206e09
jne 0x1400e5446
mov byte [r11 + rcx*4 + 3], 0
mov r10d, esi
movsxd r10, r8d
movzx r10d, byte [rdx]
jmp 0x14027dd45
imul r9d, dword [r10]
cmc
cmp r8d, 2
jne 0x140214f78
test r9d, r9d
je 0x14027a235
lea ecx, [r9 - 1]
cmp ecx, 3
jb 0x1401fd49b
mov r8d, r9d
sal rcx, cl
mov ch, 0x41
and r8d, 0xfffffffc
clc
xor r10w, 0x2983
ror ch, cl
nop word cs:[rax + rax]
dec ch
movzx ecx, byte [r11]
cmp cl, byte [rdx]
movsx r10d, r8w
movzx r10w, r10b
movzx r10d, byte [r11 + 2]
setne cl
stc
jmp 0x14028552c
ret
jmp 0x1400e5446
neg cl
mov byte [r11 + 1], cl
cmp r10b, byte [rdx]
setne cl
stc
cmc
neg cl
test dx, r14w
test r15, 0x5ca7119d
mov byte [r11 + 3], cl
test r8b, 0x80
movsx cx, r12b
mov ecx, r10d
movzx ecx, byte [r11 + 4]
cmp cl, byte [rdx]
setne cl
neg cl
test di, dx
mov byte [r11 + 5], cl
movzx ecx, byte [r11 + 6]
cmc
cmp cl, byte [rdx]
setne cl
clc
stc
cmp r15b, 0xc2
neg cl
cmp r9b, 0x28
mov byte [r11 + 7], cl
cmp r8b, r11b
add r11, 8
add r8d, 0xfffffffc
jmp 0x1401fd495