joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b284
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 0x14002b2b4
xor eax, eax
jmp 0x14002b377
mov rbp, rbx
cmp word [rax], si
je 0x14002b2d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002b2c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002b2bc
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.140029884
movsxd r14, eax
test eax, eax
jne 0x14002b317
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002b2ad
mov rcx, r14
call fcn.1400247bc
mov rdi, rax
test rax, rax
jne 0x14002b330
xor ecx, ecx
call fcn.1400237ac
jmp 0x14002b30c
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.140029884
test eax, eax
jne 0x14002b361
mov rcx, rdi
call fcn.1400237ac
jmp 0x14002b36b
xor ecx, ecx
call fcn.1400237ac
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 0x14002e1dc
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.140022378
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 0x14002e27d
cmp ebx, dword [rsp + 0x30]
je 0x14002e276
test esi, esi
je 0x14002e276
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002e251
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002e25e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002e23b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002e262
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002e27f
mov eax, 1
jmp 0x14002e27f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400322ac
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.14001db38
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032336
cmp byte [rbp - 0x21], r15b
je 0x140032331
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003236c
call fcn.140023f50
test eax, eax
jne 0x140032358
cmp byte [rbp - 0x21], r15b
je 0x140032350
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003236c
cmp byte [rbp - 0x21], r15b
je 0x140032369
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.14001e134
test eax, eax
jne 0x14003240c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001db38
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400323ab
cmp byte [rbp - 0x21], r15b
je 0x1400323e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400323e0
call fcn.140023f50
test eax, eax
jne 0x1400323cc
cmp byte [rbp - 0x21], r15b
je 0x1400323c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400323e0
cmp byte [rbp - 0x21], r15b
je 0x1400323dd
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.14001e134
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003240c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003240f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003241d
mov rcx, rdi
call fcn.1400237ac
cmp byte [rbp + 0x3f], r15b
je 0x14003242c
mov rcx, qword [rbp + 0x27]
call fcn.1400237ac
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 0x140033054
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.14002803c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002803c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400331a4
cmp rax, 0xffffffffffffffff
je 0x1400331a4
xor edi, edi
test rbp, rbp
jle 0x14003314f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002294c
mov rbx, rax
test rax, rax
jne 0x1400330dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140033145
mov edx, 0x8000
mov ecx, r14d
call fcn.14001f1f8
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.1400234a4
cmp eax, 0xffffffff
je 0x140033125
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400330ec
mov edx, r15d
mov ecx, r14d
call fcn.14001f1f8
jmp 0x140033145
cmp byte [rsi + 0x38], dil
je 0x14003313c
cmp dword [rsi + 0x34], 5
jne 0x14003313c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x140033145
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400237ac
jmp 0x1400331b8
jns 0x1400331b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002803c
cmp rax, 0xffffffffffffffff
jne 0x140033170
cmp byte [rsi + 0x30], dil
je 0x1400331b8
mov edi, dword [rsi + 0x2c]
jmp 0x1400331b8
mov ecx, r14d
call fcn.14002bc88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400331b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x1400331b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400331b1
mov eax, dword [rsi + 0x2c]
jmp 0x1400331b6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002803c
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 0x1400339c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400339e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400339e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x7ffbf1cc1224
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
rdtsc
shl rdx, 0x20
or rax, rdx
cdqe
mov qword [0x7ffbf1d6a520], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rbp, [0x7ffbf1ca0000]
xor ebx, ebx
and eax, 0x80000000
mov dword [0x7ffbf1d68280], eax
cmp dword [0x7ffbf1d6b080], ebx
jne 0x7ffbf1cc1282
lea rcx, [0x7ffbf1d69020]
call fcn.7ffbf1cc1768
cmp eax, ebx
jl 0x7ffbf1cc1474
mov dword [0x7ffbf1d6b080], 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, 0x80000000
mov rdi, qword [rsp + 0x28]
lea rax, [rdi + r8]
lea rcx, [0x7ffbf1ca0000]
movsxd rdx, dword [0x7ffbf1ca003c]
mov edx, dword [rdx + rbp + 0x50]
add rdx, rcx
cmp rdx, rax
jb 0x7ffbf1cc12bd
lea rdi, [rdx - 0x80000000]
lea rdx, [rdi + 0xffff]
and rdx, 0xffffffffffff0000
mov rdi, qword [rsp + 0x30]
mov qword [0x7ffbf1d68290], rdx
lea rax, [rdi - 0x80000000]
cmp rcx, rax
jbe 0x7ffbf1cc12ec
mov qword [0x7ffbf1d69620], rdi
jmp 0x7ffbf1cc12f6
add rcx, r8
mov qword [0x7ffbf1d69620], rcx
mov word [0x7ffbf1d69620], bx
mov rax, qword [0x7ffbf1d69620]
sub rax, rdx
shr rax, 0x10
mov qword [0x7ffbf1d690d0], rax
mov eax, ebx
cmp eax, ebx
jl 0x7ffbf1cc1474
mov rax, qword [0x7ffbf1d68fe0]
mov edi, 0x100
cmp rax, rdi
jae 0x7ffbf1cc1365
lea rax, [rax + rax*4]
lea rcx, [rbp + rax*8 + 0xc22f0]
call fcn.7ffbf1cc1768
mov edx, eax
cmp eax, ebx
jl 0x7ffbf1cc135e
mov rax, qword [0x7ffbf1d68fe0]
inc rax
cmp rax, rdi
mov qword [0x7ffbf1d68fe0], rax
jb 0x7ffbf1cc132d
cmp edx, ebx
jge 0x7ffbf1cc1365
mov eax, edx
jmp 0x7ffbf1cc1474
mov eax, dword [0x7ffbf1d46a58]
cmp eax, ebx
je 0x7ffbf1cc13ff
lea rsi, section..data
mov r8d, 0x40
mov eax, dword [0x7ffbf1d46a58]
mov edx, dword [0x7ffbf1cb6330]
lea r9, [rsp + 0x78]
mov rcx, rsi
imul edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, ebx
jne 0x7ffbf1cc13c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov ecx, 0x54f
cmove eax, ecx
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x7ffbf1cc1401
mov eax, dword [0x7ffbf1d46a58]
mov r8, rbx
cmp eax, ebx
jbe 0x7ffbf1cc13ff
mov ecx, dword [0x7ffbf1cb6330]
mov edi, dword [0x7ffbf1cb6330]
xor eax, eax
imul rdi, r8
mov dword [rbp + r8*4 + 0xcb084], 0xc32d
add rdi, rsi
inc r8
rep stosb byte [rdi], al
mov eax, dword [0x7ffbf1d46a58]
cmp r8, rax
jb 0x7ffbf1cc13ce
mov ecx, ebx
cmp ecx, ebx
jge 0x7ffbf1cc1409
mov eax, ecx
jmp 0x7ffbf1cc1474
mov ecx, dword [0x7ffbf1d69068]
cmp ecx, ebx
je 0x7ffbf1cc145b
mov edx, dword [0x7ffbf1d69060]
lea rax, [rdx + rbp + 0xc9090]
lea rdi, [0x7ffbf1d69090]
mov qword [0x7ffbf1d69070], rdi
mov qword [0x7ffbf1d69078], rax
mov eax, dword [0x7ffbf1d69064]
add rdx, rax
add rcx, rdx
lea rax, [rdx + rbp + 0xc9090]
add rcx, rdi
mov qword [0x7ffbf1d69080], rax
mov qword [0x7ffbf1d69088], rcx
mov dword [rsp + 0x70], ebx
lea rcx, [rsp + 0x70]
mov eax, 0x3f27c455
cmp dword [rsp + 0x70], ebx
cmovl ebx, dword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ffbf1cc1868
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x7ffbf1d6ab50]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov r11, qword [0x7ffbf1d6ac48]
mov qword [rsp + 0x58], r11
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x7ffbf1cc18ed
xor ecx, ecx
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x7ffbf1d6ab50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x7ffbf1cc190f
mov rax, qword [rsp + 0x88]
mov qword [0x7ffbf1d6ac48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x7ffbf1d6abe8], rax
mov rax, qword [0x7ffbf1d6ac48]
xor ecx, ecx
mov qword [0x7ffbf1d68e20], rax
mov rax, qword [rsp + 0x90]
mov qword [0x7ffbf1d6abd0], rax
mov dword [0x7ffbf1d68e10], 0xc0000409
mov dword [0x7ffbf1d68e14], 1
mov rax, qword [0x7ffbf1d68270]
mov qword [rsp + 0x68], rax
mov rax, qword [0x7ffbf1d6a548]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x7ffbf1cf9310]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
cmp rcx, qword [0x7ffbf1d68270]
jne 0x7ffbf1d2cc4f
rol rcx, 0x10
test cx, 0xffff
jne 0x7ffbf1d2cc4b
ret 0
ror rcx, 0x10
jmp 0x7ffbf1cc1868
Function at 0x7ffbf1cc5c10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
cmp r9d, 0x40
jb 0x7ffbf1cc5cc3
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x7ffbf1cc5cc3
mov r9d, dword [rdx + 0x3c]
lea rax, [rbx - 0x40]
cmp rax, r9
jb 0x7ffbf1cc5cc3
mov eax, ebx
sub eax, r9d
cmp eax, 0x108
jbe 0x7ffbf1cc5cc3
cmp dword [r9 + rdx], 0x4550
jne 0x7ffbf1cc5cc3
mov rdx, qword [rsp + 0x88]
call fcn.7ffbf1cc5738
test eax, eax
js 0x7ffbf1cc5cf1
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, ebx
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call fcn.7ffbf1cc5d90
test eax, eax
js 0x7ffbf1cc5cf1
mov r8d, 8
mov edx, esi
mov rcx, rbp
call fcn.7ffbf1cc5f48
mov rdx, qword [rsp + 0x80]
mov rcx, rbp
call fcn.7ffbf1cc591c
xor eax, eax
jmp 0x7ffbf1cc5cf1
cmp r8d, ebx
je 0x7ffbf1cc5ccf
mov eax, 0xc000000d
jmp 0x7ffbf1cc5cf1
mov rax, qword [rsp + 0x88]
mov r9d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.7ffbf1cc5d08
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x7ffbf1cc69ac
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor eax, eax
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov ebx, eax
cmp r9, rax
je 0x7ffbf1cc69d6
or qword [r9], 0xffffffffffffffff
mov r8d, 1
sub ecx, r8d
je 0x7ffbf1cc6a86
sub ecx, r8d
je 0x7ffbf1cc6a05
cmp ecx, r8d
je 0x7ffbf1cc69f8
lea ebx, [r8 + 0x56]
jmp 0x7ffbf1cc6ac9
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rdi], xmm0
jmp 0x7ffbf1cc6afc
lea rdx, [rsp + 0x50]
mov rcx, rbp
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x7ffbf1cc6ab5
xor eax, eax
cmp dword [rsp + 0x50], eax
je 0x7ffbf1cc6a34
mov ebx, 0x3ee
jmp 0x7ffbf1cc6ac9
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
je 0x7ffbf1cc6ab5
and qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rbp
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi + 8], rbx
je 0x7ffbf1cc6ab5
mov dword [rdi], esi
jmp 0x7ffbf1cc6afc
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x7ffbf1cc6ad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, 0x6e
test ebx, ebx
cmove ebx, eax
xor eax, eax
mov qword [rdi + 8], rax
mov dword [rdi], eax
jmp 0x7ffbf1cc6afc
xor r9d, r9d
mov r8, rdi
mov rdx, rax
lea ecx, [r9 + 2]
call fcn.7ffbf1cc69ac
mov ebx, eax
test eax, eax
jne 0x7ffbf1cc6af3
test rsi, rsi
je 0x7ffbf1cc6af3
mov qword [rsi], rbp
jmp 0x7ffbf1cc6afc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x7ffbf1cc6b14
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov rdx, rcx
xor r8d, r8d
mov dword [rsp], r8d
mov r9, qword [rcx + 0x10]
mov eax, 0x5a4d
cmp word [r9], ax
je 0x7ffbf1cc6b43
mov r10d, 0x4550
cmp word [r9], r10w
jne 0x7ffbf1cc6bd1
jmp 0x7ffbf1cc6b49
mov r10d, 0x4550
cmp word [r9], ax
jne 0x7ffbf1cc6b7d
cmp dword [r9 + 0x3c], r8d
je 0x7ffbf1cc6bd1
movsxd r11, dword [r9 + 0x3c]
add r11, r9
mov qword [rcx + 0x18], r11
mov ecx, dword [rcx + 0x50]
add rcx, r9
lea rax, [r11 + 0x108]
cmp rax, rcx
ja 0x7ffbf1cc6bd1
lea rax, [r9 + 0x40]
cmp r11, rax
jae 0x7ffbf1cc6b81
jmp 0x7ffbf1cc6bd1
mov qword [rcx + 0x18], r9
mov rax, qword [rdx + 0x18]
cmp dword [rax], r10d
jne 0x7ffbf1cc6bd1
mov byte [rdx + 0x3d], r8b
cmp word [rax + 0x14], r8w
je 0x7ffbf1cc6bd1
cmp byte [rax + 0x1a], 3
jae 0x7ffbf1cc6ba1
cmp byte [rax + 0x1b], 5
jb 0x7ffbf1cc6bd1
lea rax, [rdx + 0x40]
mov qword [rdx + 0x48], rax
mov qword [rax], rax
mov rax, qword [rdx + 0x18]
movzx ecx, word [rax + 6]
mov dword [rdx + 0x28], ecx
mov rcx, rax
movzx eax, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
mov qword [rdx + 0x30], rcx
mov r8d, 1
mov dword [rsp], r8d
jmp 0x7ffbf1cc6bd7
mov eax, r8d
add rsp, 0x18
ret
Function at 0x7ffbf1cff65c
Capabilities:
Encrypt data using rc4 prga

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
xor r10d, r10d
mov ebp, r9d
mov ebx, r8d
mov r9, rdx
mov r11, rcx
cmp rdx, r10
je 0x7ffbf1cff766
cmp rcx, r10
je 0x7ffbf1cff766
cmp ebx, r10d
jbe 0x7ffbf1cff766
cmp ebp, 1
je 0x7ffbf1cff6a9
cmp ebp, 2
jne 0x7ffbf1cff766
movzx eax, byte [rcx + 0xffe]
movzx r8d, byte [rcx + 0xfff]
shl eax, 8
add r8d, eax
je 0x7ffbf1cff766
cmp ebx, r8d
jne 0x7ffbf1cff766
movzx edi, byte [r11 + 0xffd]
xor edx, edx
mov eax, 0xffe
div r8d
mov ecx, 2
mov esi, r10d
mov r12d, eax
mov edx, eax
movzx eax, byte [r11 + 0xffc]
shl eax, 8
mov ebx, 0xffb
add edi, eax
imul edi, edi, 0x343fd
add edi, 0x269ec3
sar edi, 0x10
and edi, 0x7fff
cmp ecx, edx
jl 0x7ffbf1cff746
cmp esi, r8d
jae 0x7ffbf1cff746
lea ecx, [r12 - 2]
mov eax, edi
inc esi
cdq
idiv ecx
mov al, byte [rbx + r11]
mov ecx, r10d
add edx, 2
cmp ebp, 1
jne 0x7ffbf1cff73b
not al
jmp 0x7ffbf1cff73e
xor al, dil
mov byte [r9], al
inc r9
jmp 0x7ffbf1cff75e
inc ecx
cmp ecx, 1
jne 0x7ffbf1cff75e
dec rbx
mov eax, edi
mov ecx, 2
sar eax, 8
mov byte [rbx + r11], al
sub rbx, 1
jns 0x7ffbf1cff6fe
jmp 0x7ffbf1cff76c
mov r10d, 0x80070057
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov eax, r10d
pop r12
ret

Function at 0x7ffbf1cff8b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rax + 0x10], 4
lea rax, [rax + 0x20]
mov qword [rax], rbx
mov dword [rax - 0x18], ebx
lea rdx, [0x7ffbf1caf838]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x7ffbf1cff8fd
xor eax, eax
jmp 0x7ffbf1cff947
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x7ffbf1caf810]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
cmp eax, ebx
cmovne ecx, ebx
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x7ffbf1cffea4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 4], 0
jl 0x7ffbf1cffeba
cmp dword [rcx + 8], 0
je 0x7ffbf1cffeba
mov rcx, qword [rcx + 0x10]
jmp 0x7ffbf1cffec1
lea rcx, [0x7ffbf1cafb98]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7ffbf1cffed7
test al, 0x10
je 0x7ffbf1cffed7
mov eax, 1
jmp 0x7ffbf1cffed9
xor eax, eax
add rsp, 0x28
ret
Function at 0x7ffbf1d00284
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov ebp, ecx
mov edx, 0x111
mov rcx, rdi
xor ebx, ebx
call fcn.7ffbf1cc7ea8
cmp eax, ebx
jl 0x7ffbf1d0035c
cmp dword [rdi + 4], ebx
mov rcx, rbx
jl 0x7ffbf1d002c0
mov rcx, qword [rdi + 0x10]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, rdi
mov edx, eax
call fcn.7ffbf1cc768c
lea rdx, [0x7ffbf1cabca0]
mov rcx, rdi
call fcn.7ffbf1cd0e14
cmp eax, ebx
jl 0x7ffbf1d0035c
cmp dword [rdi + 4], ebx
jl 0x7ffbf1d002f8
cmp dword [rdi + 8], ebx
je 0x7ffbf1d002f8
mov rcx, qword [rdi + 0x10]
jmp 0x7ffbf1d002ff
lea rcx, [0x7ffbf1cafb98]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
cmp rax, rbx
je 0x7ffbf1d0035c
lea rdx, [0x7ffbf1caf858]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
je 0x7ffbf1d00353
cmp dword [rdi + 4], ebx
mov rcx, rbx
jl 0x7ffbf1d0032e
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, ebp
call rax
cmp eax, ebx
jl 0x7ffbf1d00353
or edx, 0xffffffff
mov rcx, rdi
call fcn.7ffbf1cc768c
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x7ffbf1d00628
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x2b0
mov rax, qword [0x7ffbf1d68270]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r12d, r12d
mov eax, 0xfffffff8
mov rsi, rcx
and dword [rsp + 0x38], eax
and dword [rsp + 0x20], eax
mov dword [rsp + 0x3c], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x24], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x2c], r12d
mov dword [rsp + 0x28], r12d
call fcn.7ffbf1cffea4
cmp eax, r12d
jne 0x7ffbf1d0069b
xor eax, eax
jmp 0x7ffbf1d007fe
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.7ffbf1d005f8
cmp eax, r12d
mov ebx, eax
jl 0x7ffbf1d007eb
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.7ffbf1d005f8
cmp eax, r12d
mov ebx, eax
jl 0x7ffbf1d007da
lea rdx, [0x7ffbf1caf8d8]
lea rcx, [rsp + 0x20]
call fcn.7ffbf1cd0e14
cmp eax, r12d
mov ebx, eax
jl 0x7ffbf1d007da
cmp dword [rsp + 0x24], r12d
lea rdi, [0x7ffbf1cafb98]
jl 0x7ffbf1d00703
mov rcx, qword [rsp + 0x30]
cmp dword [rsp + 0x28], r12d
jne 0x7ffbf1d00706
mov rcx, rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x7ffbf1d007aa
test byte [rsp + 0x50], 0x10
jne 0x7ffbf1d00780
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x24], r12d
call fcn.7ffbf1d005f8
cmp eax, r12d
mov ebx, eax
jl 0x7ffbf1d007cb
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x20]
call fcn.7ffbf1cd0e14
cmp eax, r12d
mov ebx, eax
jl 0x7ffbf1d007cb
cmp dword [rsp + 0x24], r12d
jl 0x7ffbf1d00772
mov rcx, qword [rsp + 0x30]
cmp dword [rsp + 0x28], r12d
jne 0x7ffbf1d00775
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r12d
je 0x7ffbf1d00793
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r12d
jmp 0x7ffbf1d00718
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
jmp 0x7ffbf1d007cb
cmp dword [rsi + 4], r12d
jl 0x7ffbf1d007ba
cmp dword [rsi + 8], r12d
je 0x7ffbf1d007ba
mov rdi, qword [rsi + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, r12d
je 0x7ffbf1d00793
mov ebx, r12d
cmp rbp, 0xffffffffffffffff
je 0x7ffbf1d007da
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rsp + 0x30], r12
je 0x7ffbf1d007eb
lea rcx, [rsp + 0x20]
call fcn.7ffbf1cfd524
cmp qword [rsp + 0x48], r12
je 0x7ffbf1d007fc
lea rcx, [rsp + 0x38]
call fcn.7ffbf1cfd524
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.7ffbf1d2cc34
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret