joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401468f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov r9, qword [r8 + 0x20]
mov rdi, r8
add r8, 0x10
mov rsi, rdx
mov r10, rcx
cmp qword [r8 + 0x18], 8
jb 0x14014691f
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
add r9, r9
je 0x140146954
movabs r11, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r9
jb 0x140146940
mov r8, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], rdi
jne 0x140146991
cmp qword [rcx], rdi
jne 0x140146987
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x14014699c
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x14014699c
cmp qword [rcx], rdi
jne 0x1401469a1
mov rax, qword [rdi]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x40]
mov rax, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r10 + 0x10]
call fcn.1401465c0
mov rcx, rdi
call fcn.140005f10
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401489e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1401b04b0
mov edx, 0x208
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140148a2a
or rax, 0xffffffffffffffff
jmp 0x140148a94
cmp word [rsp + 0x20], 0
jne 0x140148a37
xor r8d, r8d
jmp 0x140148a4b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140148a40
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400c3720
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140148a92
cmp qword [rbx + 0x18], 8
jb 0x140148a6d
mov rax, qword [rbx]
jmp 0x140148a70
mov rax, rbx
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x140148a92
cmp cx, 0x2f
je 0x140148a92
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x5b]
call fcn.1400c3870
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14016ce60
add rsp, 0x240
pop rbx
ret
Function at 0x140148b30
Capabilities:
Compare security identifiers

Disassembly:
push rdi
mov eax, 0x1090
call fcn.14016dbe0
sub rsp, rax
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov dword [rsp + 0x74], 0
mov word [rsp + 0x78], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140148b87
mov eax, 1
jmp 0x140148c63
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov r9d, 0x1000
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
mov qword [rsp + 0x10a0], rbx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140148c07
xor edi, edi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x74]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov dl, 2
mov dword [rsp + 0x38], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140148c0e
mov eax, 1
jmp 0x140148c5b
mov ebx, edi
cmp dword [rsp + 0x80], edi
jbe 0x140148c4e
nop dword [rax]
mov rcx, qword [rsp + 0x68]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsp + rdx*8 + 0x88]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140148c49
inc ebx
cmp ebx, dword [rsp + 0x80]
jb 0x140148c20
jmp 0x140148c4e
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
mov rbx, qword [rsp + 0x10a0]
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.14016ce60
add rsp, 0x1090
pop rdi
ret
Function at 0x140148c80
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x78], 0x220
or edi, 0xffffffff
mov dword [rsp + 0x7c], 0x223
xor esi, esi
mov dword [rcx], esi
mov rbx, rcx
mov dword [r11 - 0x18], 0x222
mov dword [r11 - 0x14], 0x221
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
nop
movsxd rax, dword [rbx]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x50], rcx
mov r8d, 0x20
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], esi
mov dl, 2
mov r9d, dword [rsp + rax*4 + 0x78]
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140148d57
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, esi
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], esi
jne 0x140148d5e
inc dword [rbx]
cmp dword [rbx], 4
jl 0x140148ce0
cmp dword [rbx], esi
je 0x140148d71
call fcn.140148b30
test eax, eax
je 0x140148d71
mov dword [rbx], esi
mov eax, esi
jmp 0x140148d73
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14016ce60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140148da0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r9d, 1
lea rdx, [0x14023f544]
xor r8d, r8d
mov rbx, rcx
call fcn.1400c35d0
cmp rax, 0xffffffffffffffff
je 0x140148e2b
cmp qword [rbx + 0x18], 8
jb 0x140148de5
mov rcx, qword [rbx]
jmp 0x140148de8
mov rcx, rbx
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140148e2b
cmp word [rsp + 0x20], 0
jne 0x140148e0a
xor r8d, r8d
jmp 0x140148e1e
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140148e13
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400c3720
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14016ce60
add rsp, 0x240
pop rbx
ret
Function at 0x140148e50
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x180
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor eax, eax
mov rdi, rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x28], rax
mov r8d, 0x11c
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.1401b04b0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140148ebc
or eax, 0xffffffff
jmp 0x140148f29
lea rcx, str.kernel32.dll
mov qword [rsp + 0x198], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140222f90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140148efb
mov rcx, rax
call qword [fcn.140005fb0]
lea rcx, [rsp + 0x20]
call rbx
jmp 0x140148f06
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x198]
cmp ax, 9
je 0x140148f24
cmp ax, 6
je 0x140148f24
mov byte [rdi], 0
jmp 0x140148f27
mov byte [rdi], 1
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14016ce60
add rsp, 0x180
pop rdi
ret

Function at 0x140148f50
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x11c
lea rcx, [rsp + 0x20]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x14014907a
movzx eax, word [rsp + 0x134]
mov dword [rdi], eax
mov eax, dword [rsp + 0x24]
cmp eax, 4
jne 0x140148fc8
cmp dword [rsp + 0x28], 0
jne 0x140148fbf
cmp dword [rsp + 0x30], 2
jne 0x140148fbf
mov dword [rbx], 1
xor eax, eax
jmp 0x14014907f
xor eax, eax
mov dword [rbx], eax
jmp 0x14014907f
cmp eax, 5
jne 0x14014900d
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140148fe0
mov dword [rbx], 2
jmp 0x14014907f
cmp eax, 1
jne 0x140148ff2
mov dword [rbx], 3
xor eax, eax
jmp 0x14014907f
cmp eax, 2
jne 0x140149076
xor eax, eax
cmp byte [rsp + 0x13a], 1
setne al
add eax, 3
mov dword [rbx], eax
xor eax, eax
jmp 0x14014907f
cmp eax, 6
jne 0x140149070
cmp byte [rsp + 0x13a], 1
jne 0x140149048
mov ecx, dword [rsp + 0x28]
lea eax, [rcx - 2]
cmp eax, 1
jbe 0x14014903e
cmp ecx, 1
mov eax, 5
mov edx, 7
cmove eax, edx
mov dword [rbx], eax
xor eax, eax
jmp 0x14014907f
mov dword [rbx], 9
xor eax, eax
jmp 0x14014907f
mov eax, dword [rsp + 0x28]
cmp eax, 1
jne 0x140149061
mov dword [rbx], 8
mov dword [rbx], 6
xor eax, eax
jmp 0x14014907f
cmp eax, 2
jne 0x140149057
mov dword [rbx], 0xa
xor eax, eax
jmp 0x14014907f
mov dword [rbx], 0xffffffff
xor eax, eax
jmp 0x14014907f
mov eax, 0xffffffe5
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14016ce60
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x14014dcf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.1401b04b0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1401b04b0
xor edi, edi
mov dword [rsp + 0x38], 0x104
mov dword [rsp + 0x3c], edi
test rbx, rbx
je 0x14014de67
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsSCANNER.EXE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14014de67
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Path
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14014de67
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rax, [rsp + 0x250]
mov r9d, edi
sub r8, rax
lea rcx, [rsp + 0x250]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14014ddf8
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14014ddf8
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14014ddd3
jmp 0x14014ddfd
test rdx, rdx
jne 0x14014de07
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], di
test r9d, r9d
js 0x14014de5c
lea r8, str.SCANAPI.DLL
lea rcx, [rsp + 0x40]
call fcn.14014b310
test eax, eax
js 0x14014de5c
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401c9408
test eax, eax
jne 0x14014de5c
lea r8, [rsp + 0x250]
mov edx, 0x104
mov rcx, rbx
call fcn.14014b270
mov rcx, qword [rsp + 0x30]
test eax, eax
js 0x14014de61
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14014de69
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14016ce60
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
Function at 0x140166fb0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
xor eax, eax
lock cmpxchg qword [0x140293c10], rdi
jne 0x140166fef
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x140293c10], rcx
je 0x140166fef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140293c10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
sub qword [0x140293c28], rcx
mov r9, rax
sub r9, qword [rax + 8]
cmp qword [r9], rdi
jne 0x14016702e
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x140167059
lea r8, [rax + 0x20]
mov r9, rax
mov qword [r8], rcx
mov rcx, qword [0x140293c20]
mov qword [rax], rdi
mov qword [rbx], rcx
mov qword [rax + 0x18], rdi
test rcx, rcx
je 0x140167052
mov qword [rcx + 0x18], rax
mov qword [0x140293c20], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], rdi
lea rdx, [rcx + r9]
jne 0x1401670a4
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x140167082
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x140167091
mov qword [rax + 0x10], rcx
jmp 0x140167098
mov qword [0x140293c20], rcx
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], rdi
jne 0x140167110
cmp qword [rdx], 1
jne 0x140167110
mov rax, qword [0x140293c28]
mov rdx, qword [0x140293c30]
sub rdx, qword [r8]
lea rcx, [rax + rax*2]
shr rcx, 1
cmp rdx, rcx
jbe 0x140167110
mov rcx, qword [r9 + 0x10]
mov qword [0x140293c30], rdx
test rcx, rcx
je 0x1401670e9
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9 + 0x18]
test rax, rax
je 0x1401670f8
mov qword [rax + 0x10], rcx
jmp 0x1401670ff
mov qword [0x140293c20], rcx
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x140293c10]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
Function at 0x1401939ec
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401939ff
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140193be8
lea rdx, [0x140286438]
lea rcx, [rsp + 0x20]
call fcn.1401b1380
int3

Function at 0x14019e3bc
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140294df0]
xor edx, edx
jmp fcn.1401939ec

Function at 0x14019edd4
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140294df0]
jmp fcn.1401939ec

Function at 0x1401d1c40
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 rbx, rcx
test rcx, rcx
jne 0x1401d1966
call fcn.1401b8540
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1401b34bc
jmp 0x1401d1ab1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401d1ab1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401d1ab1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401d1995
lock or dword [rcx + 0x14], 0x10
jmp 0x1401d1ab1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401d19a9
call fcn.1401d18c4
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401d19b9
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401d19bc
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401cc048
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401d8188
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401d1a9f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401d1a4d
mov rcx, rbx
call fcn.1401cc048
cmp eax, 0xffffffff
je 0x1401d1a38
mov rcx, rbx
call fcn.1401cc048
cmp eax, 0xfffffffe
je 0x1401d1a38
mov rcx, rbx
call fcn.1401cc048
movsxd rdi, eax
lea r14, [0x1402958c0]
mov rcx, rbx
sar rdi, 6
call fcn.1401cc048
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401d1a3f
lea rdx, [0x14028a980]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401d1a4d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401d1a71
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401d1a71
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401d1a71
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401d1a8f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401d1a9a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401d1ab6
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x1401d1930
Function at 0x140027c84
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.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
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.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
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 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
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 0x140028ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002660
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400de040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400cd9d0
add rsp, 0x30
pop rbx
ret

Function at 0x140005280
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 6
jb 0x140005382
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400052b1
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.start
lea rcx, [rsp + 0x40]
call fcn.1400cce90
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000532c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005327
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005327
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cd9f0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140005362
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000535d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000537b
mov rcx, r8
call fcn.1400cd9f0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001700
int3

Function at 0x140005fa0
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [0x1400de040]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0xd4], eax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3