joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140147f10
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 0x140147f3f
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
add r9, r9
je 0x140147f74
movabs r11, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r9
jb 0x140147f60
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 0x140147fb1
cmp qword [rcx], rdi
jne 0x140147fa7
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 0x140147fbc
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x140147fbc
cmp qword [rcx], rdi
jne 0x140147fc1
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.140147be0
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 0x14014a000
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1401b1bc0
mov edx, 0x208
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14014a04a
or rax, 0xffffffffffffffff
jmp 0x14014a0b4
cmp word [rsp + 0x20], 0
jne 0x14014a057
xor r8d, r8d
jmp 0x14014a06b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14014a060
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400c3720
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14014a0b2
cmp qword [rbx + 0x18], 8
jb 0x14014a08d
mov rax, qword [rbx]
jmp 0x14014a090
mov rax, rbx
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x14014a0b2
cmp cx, 0x2f
je 0x14014a0b2
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.14016e480
add rsp, 0x240
pop rbx
ret
Function at 0x14014a150
Capabilities:
Compare security identifiers

Disassembly:
push rdi
mov eax, 0x1090
call fcn.14016f240
sub rsp, rax
mov rax, qword [0x14028c238]
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 0x14014a1a7
mov eax, 1
jmp 0x14014a283
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 0x14014a227
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 0x14014a22e
mov eax, 1
jmp 0x14014a27b
mov ebx, edi
cmp dword [rsp + 0x80], edi
jbe 0x14014a26e
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 0x14014a269
inc ebx
cmp ebx, dword [rsp + 0x80]
jb 0x14014a240
jmp 0x14014a26e
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.14016e480
add rsp, 0x1090
pop rdi
ret
Function at 0x14014a2a0
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 [0x14028c238]
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 0x14014a377
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 0x14014a37e
inc dword [rbx]
cmp dword [rbx], 4
jl 0x14014a300
cmp dword [rbx], esi
je 0x14014a391
call fcn.14014a150
test eax, eax
je 0x14014a391
mov dword [rbx], esi
mov eax, esi
jmp 0x14014a393
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14016e480
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14014a3c0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r9d, 1
lea rdx, [0x140241744]
xor r8d, r8d
mov rbx, rcx
call fcn.1400c35d0
cmp rax, 0xffffffffffffffff
je 0x14014a44b
cmp qword [rbx + 0x18], 8
jb 0x14014a405
mov rcx, qword [rbx]
jmp 0x14014a408
mov rcx, rbx
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14014a44b
cmp word [rsp + 0x20], 0
jne 0x14014a42a
xor r8d, r8d
jmp 0x14014a43e
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14014a433
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400c3720
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14016e480
add rsp, 0x240
pop rbx
ret
Function at 0x14014a470
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x180
mov rax, qword [0x14028c238]
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.1401b1bc0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14014a4dc
or eax, 0xffffffff
jmp 0x14014a549
lea rcx, str.kernel32.dll
mov qword [rsp + 0x198], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140224fd0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14014a51b
mov rcx, rax
call qword [fcn.140005fb0]
lea rcx, [rsp + 0x20]
call rbx
jmp 0x14014a526
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 0x14014a544
cmp ax, 6
je 0x14014a544
mov byte [rdi], 0
jmp 0x14014a547
mov byte [rdi], 1
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14016e480
add rsp, 0x180
pop rdi
ret

Function at 0x14014a570
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14028c238]
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 0x14014a69a
movzx eax, word [rsp + 0x134]
mov dword [rdi], eax
mov eax, dword [rsp + 0x24]
cmp eax, 4
jne 0x14014a5e8
cmp dword [rsp + 0x28], 0
jne 0x14014a5df
cmp dword [rsp + 0x30], 2
jne 0x14014a5df
mov dword [rbx], 1
xor eax, eax
jmp 0x14014a69f
xor eax, eax
mov dword [rbx], eax
jmp 0x14014a69f
cmp eax, 5
jne 0x14014a62d
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14014a600
mov dword [rbx], 2
jmp 0x14014a69f
cmp eax, 1
jne 0x14014a612
mov dword [rbx], 3
xor eax, eax
jmp 0x14014a69f
cmp eax, 2
jne 0x14014a696
xor eax, eax
cmp byte [rsp + 0x13a], 1
setne al
add eax, 3
mov dword [rbx], eax
xor eax, eax
jmp 0x14014a69f
cmp eax, 6
jne 0x14014a690
cmp byte [rsp + 0x13a], 1
jne 0x14014a668
mov ecx, dword [rsp + 0x28]
lea eax, [rcx - 2]
cmp eax, 1
jbe 0x14014a65e
cmp ecx, 1
mov eax, 5
mov edx, 7
cmove eax, edx
mov dword [rbx], eax
xor eax, eax
jmp 0x14014a69f
mov dword [rbx], 9
xor eax, eax
jmp 0x14014a69f
mov eax, dword [rsp + 0x28]
cmp eax, 1
jne 0x14014a681
mov dword [rbx], 8
mov dword [rbx], 6
xor eax, eax
jmp 0x14014a69f
cmp eax, 2
jne 0x14014a677
mov dword [rbx], 0xa
xor eax, eax
jmp 0x14014a69f
mov dword [rbx], 0xffffffff
xor eax, eax
jmp 0x14014a69f
mov eax, 0xffffffe5
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14016e480
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x14014f310
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.1401b1bc0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1401b1bc0
xor edi, edi
mov dword [rsp + 0x38], 0x104
mov dword [rsp + 0x3c], edi
test rbx, rbx
je 0x14014f487
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 0x14014f487
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 0x14014f487
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 0x14014f418
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14014f418
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14014f3f3
jmp 0x14014f41d
test rdx, rdx
jne 0x14014f427
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], di
test r9d, r9d
js 0x14014f47c
lea r8, str.SCANAPI.DLL
lea rcx, [rsp + 0x40]
call fcn.14014c930
test eax, eax
js 0x14014f47c
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401caa88
test eax, eax
jne 0x14014f47c
lea r8, [rsp + 0x250]
mov edx, 0x104
mov rcx, rbx
call fcn.14014c890
mov rcx, qword [rsp + 0x30]
test eax, eax
js 0x14014f481
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14014f489
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.14016e480
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
Function at 0x1401685d0
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 [0x140295fc0], rdi
jne 0x14016860f
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 [0x140295fc0], rcx
je 0x14016860f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140295fc0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
sub qword [0x140295fd8], rcx
mov r9, rax
sub r9, qword [rax + 8]
cmp qword [r9], rdi
jne 0x14016864e
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x140168679
lea r8, [rax + 0x20]
mov r9, rax
mov qword [r8], rcx
mov rcx, qword [0x140295fd0]
mov qword [rax], rdi
mov qword [rbx], rcx
mov qword [rax + 0x18], rdi
test rcx, rcx
je 0x140168672
mov qword [rcx + 0x18], rax
mov qword [0x140295fd0], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], rdi
lea rdx, [rcx + r9]
jne 0x1401686c4
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1401686a2
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x1401686b1
mov qword [rax + 0x10], rcx
jmp 0x1401686b8
mov qword [0x140295fd0], rcx
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], rdi
jne 0x140168730
cmp qword [rdx], 1
jne 0x140168730
mov rax, qword [0x140295fd8]
mov rdx, qword [0x140295fe0]
sub rdx, qword [r8]
lea rcx, [rax + rax*2]
shr rcx, 1
cmp rdx, rcx
jbe 0x140168730
mov rcx, qword [r9 + 0x10]
mov qword [0x140295fe0], rdx
test rcx, rcx
je 0x140168709
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9 + 0x18]
test rax, rax
je 0x140168718
mov qword [rax + 0x10], rcx
jmp 0x14016871f
mov qword [0x140295fd0], rcx
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x140295fc0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
Function at 0x1401950fc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14019510f
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.1401952f8
lea rdx, [0x140288ff8]
lea rcx, [rsp + 0x20]
call fcn.1401b2a90
int3

Function at 0x14019f9ac
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1402971a0]
xor edx, edx
jmp fcn.1401950fc

Function at 0x1401a03c4
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1402971a0]
jmp fcn.1401950fc

Function at 0x1401c451c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401c43af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c43af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c43af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c43af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c43af
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c43af
cmp dword [rcx + 0xf8], 0
je 0x1401c43af
mov ecx, ebx
call fcn.1401c4450
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401c4240
cmp dword [rbp + 0x20], 0
je 0x1401c43fc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401c4404
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401c4348
Function at 0x1401d32c0
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 0x1401d2fe6
call fcn.1401b9c50
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1401b4bcc
jmp 0x1401d3131
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401d3131
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401d3131
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401d3015
lock or dword [rcx + 0x14], 0x10
jmp 0x1401d3131
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401d3029
call fcn.1401d2f44
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401d3039
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401d303c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401cd6c8
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401d9808
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401d311f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401d30cd
mov rcx, rbx
call fcn.1401cd6c8
cmp eax, 0xffffffff
je 0x1401d30b8
mov rcx, rbx
call fcn.1401cd6c8
cmp eax, 0xfffffffe
je 0x1401d30b8
mov rcx, rbx
call fcn.1401cd6c8
movsxd rdi, eax
lea r14, [0x140297c70]
mov rcx, rbx
sar rdi, 6
call fcn.1401cd6c8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401d30bf
lea rdx, [0x14028c980]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401d30cd
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401d30f1
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401d30f1
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401d30f1
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401d310f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401d311a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401d3136
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 0x1401d2fb0
Function at 0x140014010
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.140005f30
sub rsp, rax
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140012bf0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001405f
mov rax, rbp
jmp 0x140014167
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 + 0x37ad0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140015130
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x37ad0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014163
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 0x140014163
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140015130
test rax, rax
js 0x140014163
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014163
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014155
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014155
cmp byte [rcx], 0xd
jne 0x14001413b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001414a
cmp byte [rcx + 1], 0xa
jne 0x14001414a
inc rcx
jmp 0x14001414a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2e480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001411d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014167
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005b40
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 0x140014388
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001439e
mov al, 1
jmp 0x1400143fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400143af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400143fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018ae4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400143fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400143fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400143fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400143fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400144d0
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, [0x140037ad0]
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 0x140014527
cmp word [rdx], r13w
jne 0x140014527
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001452c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014651
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140014672
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014565
mov rdx, r9
mov word [rbx], cx
jmp 0x14001458c
cmp r9, r8
jae 0x14001459c
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 0x140014546
jmp 0x140014651
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 0x140014646
cmp dword [rsp + 0x80], esi
je 0x140014646
lea r8, [0x140037ad0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001461e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400145ee
mov word [rbx], r13w
jmp 0x14001464e
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 0x1400145fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001464e
cmp word [rsp + 0x70], r13w
jne 0x14001462b
cmp rbx, r14
je 0x1400145e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015138
cmp word [rsp + 0x70], r13w
je 0x140014651
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, [0x140037ad0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001464b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014651
Function at 0x140005940
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140005600]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
ret

Function at 0x14000cc10
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1404590c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000cc9f
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000cc8c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
mov dword [0x140459578], eax
mov eax, dword [rsp + 0x38]
jmp 0x14000ccac
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14000cc5a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140259310
add rsp, 0x178
ret