joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aa2c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1402296dc]
mov rbx, rcx
mov ecx, dword [0x14026b138]
test eax, eax
jne 0x1400aa30e
mov r8d, edx
mov rdx, rbx
call fcn.140165450
mov edi, eax
lea ecx, [rax + 1]
test ecx, 0xfffffffe
jne 0x1400aa3dd
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 1
jne 0x1400aa367
shr edx, 1
mov esi, edx
mov r8d, edx
add rsi, rbx
mov rdx, rsi
call fcn.140165450
mov edi, eax
mov ecx, eax
dec eax
cmp eax, 0xfffffffd
ja 0x1400aa406
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
mov byte [rbx], al
inc rbx
cmp al, 0xa
jne 0x1400aa35b
mov word [rbx - 1], 0xa0d
inc rbx
inc edi
add ecx, 0xffffffff
jne 0x1400aa340
mov eax, edi
sub rbx, rax
jmp 0x1400aa3dd
lea r8d, [rdx - 1]
mov rsi, rbx
mov rdx, rbx
call fcn.140165450
mov edi, eax
mov ecx, eax
lea eax, [rdi - 1]
cmp eax, 0xfffffffd
ja 0x1400aa406
mov byte [rdi + rbx], 0xa
nop word [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
mov byte [rbx], al
mov rdx, rbx
inc rbx
cmp al, 0xd
jne 0x1400aa3ad
cmp byte [rsi], 0xa
jne 0x1400aa3ad
mov rbx, rdx
dec edi
add ecx, 0xffffffff
jne 0x1400aa390
test edi, edi
jne 0x1400aa3ce
mov ecx, dword [0x14026b138]
mov edi, 1
mov r8d, edi
mov rdx, rbx
call fcn.140165450
jmp 0x1400aa3dd
mov eax, edi
lea ecx, [rdi - 1]
sub rbx, rax
cmp byte [rcx + rbx], 0x1a
cmove edi, ecx
mov ecx, dword [0x14026b130]
mov r8d, edi
mov rdx, rbx
call fcn.1400a1800
mov dword [0x14026b130], eax
mov eax, dword [0x14026b548]
add eax, edi
mov dword [0x14026b548], eax
cmp eax, edi
jb 0x1400aa418
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, str.file_exceeds_Zips_4GB_uncompressed_size_limit
mov ecx, 6
call fcn.1400a4dd0
int3
Function at 0x1400aaae0
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
cmp dword [0x1402296e4], 1
mov rbx, rcx
jne 0x1400aac0b
xor esi, esi
mov dword [0x1402296e4], 2
test rcx, rcx
je 0x1400aab23
movzx eax, byte [rcx]
cmp al, 0x80
jae 0x1400aab23
cmp byte [rcx + 1], 0x3a
jne 0x1400aab23
lea rcx, [0x1402b6040]
movzx edi, byte [rax + rcx]
jmp 0x1400aab25
mov edi, esi
xor ecx, ecx
mov dword [0x14026b550], 0x28
mov dword [0x14026b554], 0x210000
call fcn.140150920
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140167bd4
mov rcx, rax
mov dword [rax + 0x20], 0xffffffff
mov qword [rax], rsi
mov dword [rax + 8], esi
mov qword [rax + 0xc], 1
mov dword [rax + 0x14], 0x50
call fcn.140166bc8
mov qword [0x14026b558], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x80]
test edi, edi
mov dword [rsp + 0x78], 0x5c3a78
mov byte [rsp + 0x78], dil
lea rdi, [0x14026b118]
cmove rcx, rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x88]
mov rdx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1400aabe4
xor r8d, r8d
mov qword [0x1402295b8], rdi
mov rcx, rdi
call fcn.1400a86e0
jmp 0x1400aabeb
mov qword [0x1402295b8], rsi
test rbx, rbx
je 0x1400aac01
cmp byte [rbx], 0x80
jae 0x1400aac0b
cmp byte [rbx + 1], 0x3a
jne 0x1400aac0b
cmp byte [rbx + 2], sil
jne 0x1400aac0b
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx], 0x2d
jne 0x1400aac28
cmp byte [rbx + 1], 0
jne 0x1400aac28
xor r8d, r8d
mov rcx, rbx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
jmp fcn.1400a86e0
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400aac30
add rcx, 2
call fcn.1401507f8
mov rdi, rax
test rax, rax
jne 0x1400aac55
lea eax, [rdi + 4]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400aac60
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400aac9f
cmp al, 0x5c
jne 0x1400aac7f
mov byte [rbx], 0x2f
call fcn.140167244
movsxd rdx, eax
mov rcx, rbx
call fcn.140167008
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400aac78
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400aacc7
cmp al, 0x3a
je 0x1400aace9
call fcn.140167244
movsxd rdx, eax
mov rcx, rbx
call fcn.140167008
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400aaca6
mov rsi, rdi
mov rdx, rsi
mov rcx, rdi
call fcn.1400aa6f0
mov rcx, rdi
mov ebx, eax
call fcn.14014e740
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [rbx + 1]
lea rsi, [rbx + 1]
mov rbx, rsi
test al, al
je 0x1400aad19
cmp al, 0x3a
je 0x1400aad2d
call fcn.140167244
movsxd rdx, eax
mov rcx, rbx
call fcn.140167008
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400aacf8
cmp rsi, rdi
jbe 0x1400aacca
cmp byte [rsi], 0
jne 0x1400aacca
mov eax, 0x2e
mov word [rsi], ax
jmp 0x1400aacca
mov eax, 0xffffffff
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400af180
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov r10, rcx
mov eax, 0x12345678
movzx ecx, byte [rcx]
mov r9d, 0x23456789
mov dword [0x14026b578], eax
mov r8d, 0x34567890
mov dword [0x14026b57c], r9d
mov dword [0x14026b580], r8d
test cl, cl
je 0x1400af21a
mov r11, qword [0x1402b65f0]
nop word [rax + rax]
xor rcx, qword [0x14026b578]
lea r10, [r10 + 1]
movzx edx, cl
shr eax, 8
shr r8d, 8
xor eax, dword [r11 + rdx*4]
movzx ecx, al
add ecx, r9d
mov dword [0x14026b578], eax
imul r9d, ecx, 0x8088405
inc r9d
mov ecx, r9d
mov dword [0x14026b57c], r9d
shr rcx, 0x18
xor rcx, qword [0x14026b580]
movzx ecx, cl
xor r8d, dword [r11 + rcx*4]
movzx ecx, byte [r10]
mov dword [0x14026b580], r8d
test cl, cl
jne 0x1400af1c0
ret
Function at 0x1400af510
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
cmp qword [0x140229720], 0
mov r15, r9
mov rdi, r8
mov rsi, rcx
je 0x1400af5fc
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov r11d, edi
test edi, edi
je 0x1400af5f7
mov r9d, dword [0x14026b580]
mov r10d, dword [0x14026b578]
mov qword [rsp + 0x48], rbp
mov ebp, dword [0x14026b57c]
mov qword [rsp + 0x50], r14
mov r14, qword [0x1402b65f0]
nop dword [rax + rax]
movsx rdx, byte [rbx]
lea rbx, [rbx + 1]
mov r8d, r9d
shr r10d, 8
and r8d, 0xfffd
shr r9d, 8
or r8d, 2
mov rax, rdx
xor rax, qword [0x14026b578]
movzx ecx, al
xor r10d, dword [r14 + rcx*4]
movzx eax, r10b
add eax, ebp
mov dword [0x14026b578], r10d
imul ebp, eax, 0x8088405
inc ebp
mov eax, ebp
mov dword [0x14026b57c], ebp
shr rax, 0x18
xor rax, qword [0x14026b580]
movzx eax, al
xor r9d, dword [r14 + rax*4]
mov eax, r8d
xor eax, 1
mov dword [0x14026b580], r9d
imul eax, r8d
shr eax, 8
xor al, dl
mov byte [rbx - 1], al
add r11d, 0xffffffff
jne 0x1400af570
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r9, r15
mov r8, rdi
mov edx, 1
mov rcx, rsi
add rsp, 0x20
pop r15
pop rdi
pop rsi
jmp fcn.14016b738
Function at 0x1400b1310
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [0x1402298a4], 0
je 0x1400b1346
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140147af0
add rsp, 0x50
pop rbx
ret
mov ebx, 1
mov qword [rsp + 0x60], rsi
mov edx, ebx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rax, rax
je 0x1400b14c6
xchg dword [0x1402297a8], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400b13ae
mov eax, edi
mov rcx, rsi
xchg dword [0x1402297a8], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x1402298a4]
jmp 0x1400b14c1
lea rcx, [0x1402b8760]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x140285d80]
mov r8d, 0x124
call fcn.14014a5c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400b14b0
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], ebx
lea rdx, str.SeBackupPrivilege
mov dword [rsp + 0x44], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor edi, edi
test eax, eax
je 0x1400b144b
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400b144b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400b144b
mov dword [0x14022971c], ebx
jmp 0x1400b14a5
cmp dword [0x14022971c], edi
jne 0x1400b14a5
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400b14a5
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400b14a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1402298a8]
test eax, eax
cmove ecx, ebx
mov dword [0x1402298a8], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov dword [0x1402298a4], ebx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140147af0
add rsp, 0x50
pop rbx
ret
Function at 0x1400b1b50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
xor r15d, r15d
mov ecx, dword [0x140285520]
mov ebx, r15d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400b1c03
lea rcx, [0x14022a780]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14022a6d8]
test rbx, rbx
je 0x1400b1bb1
mov rax, qword [rbx + 0x98]
mov qword [0x14022a6d8], rax
jmp 0x1400b1bf3
mov ecx, 0xa0
call fcn.140147b18
mov rbx, rax
lea rax, vtable.omni_thread.0
lea rcx, [rbx + 8]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, rbx
call fcn.1400b2120
lea rax, vtable._internal_omni_thread_dummy.0
mov qword [rbx + 0x40], r15
mov qword [rbx], rax
mov qword [rbx + 0x48], r15
mov qword [rbx + 0x98], r15
lea rcx, [0x14022a780]
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rdi + 0x80], r15
mov rax, qword [rsi + 0x38]
mov qword [rdi + 0x88], rax
cmp qword [rsi + 0x30], r15
jne 0x1400b1c2b
mov qword [rsi + 0x30], rdi
jmp 0x1400b1c36
mov rax, qword [rsi + 0x38]
mov qword [rax + 0x80], rdi
mov qword [rsi + 0x38], rdi
lea rcx, [rsi + 8]
mov dword [rdi + 0x90], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x78]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x1400b1c7d
cmp edi, 0x102
jne 0x1400b1cd8
jmp 0x1400b1c83
cmp edi, 0x102
setne dil
test rbx, rbx
je 0x1400b1cbb
lea rcx, [0x14022a780]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x14022a6d8]
lea rcx, [0x14022a780]
mov qword [rbx + 0x98], rdx
mov qword [0x14022a6d8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x48]
movzx eax, dil
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400b1ae0
lea rdx, [0x140217400]
lea rcx, [rsp + 0x40]
call fcn.14014a778
int3
Function at 0x1400b2270
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x30], 0
jne 0x1400b2329
lea rax, [rsp + 0x48]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400b2030]
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.14015b1d0
mov ecx, dword [rsp + 0x48]
mov dword [rbx + 0x68], ecx
mov qword [rbx + 0x60], rax
test rax, rax
je 0x1400b233b
mov edx, dword [rbx + 0x34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x1400b235f
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400b2305
lea rcx, [rbx + 8]
mov dword [rbx + 0x30], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400b1ae0
lea rdx, [0x140217400]
lea rcx, [rsp + 0x40]
call fcn.14014a778
int3
lea rdx, [0x1402173d0]
lea rcx, [rsp + 0x40]
call fcn.14014a778
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400b1ae0
lea rdx, [0x140217400]
lea rcx, [rsp + 0x40]
call fcn.14014a778
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.1400b1ae0
lea rdx, [0x140217400]
lea rcx, [rsp + 0x40]
call fcn.14014a778
int3

Function at 0x1400b2390
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x30]
lea rcx, [rbx + 8]
dec eax
cmp eax, 1
ja 0x1400b2416
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x140285520]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rbx, rax
je 0x1400b242d
cmp dword [rbx + 0x58], 0
jne 0x1400b243f
mov rcx, qword [rbx + 0x60]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400b2451
test rdi, rdi
je 0x1400b23f9
mov rax, qword [rbx + 0x70]
mov qword [rdi], rax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [rax]
call sub.KERNEL32.dll_LeaveCriticalSection
lea rdx, [0x1402173d0]
lea rcx, [rsp + 0x30]
call fcn.14014a778
int3
lea rdx, [0x1402173d0]
lea rcx, [rsp + 0x30]
call fcn.14014a778
int3
lea rdx, [0x1402173d0]
lea rcx, [rsp + 0x30]
call fcn.14014a778
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400b1ae0
lea rdx, [0x140217400]
lea rcx, [rsp + 0x30]
call fcn.14014a778
int3
Function at 0x1400b2510
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140285520]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x1400b257f
lea rcx, [rax + 8]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 8]
mov dword [rdi + 0x30], 2
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rdi + 0x58], 0
mov rbx, qword [rsp + 0x30]
je 0x1400b257b
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
xor ecx, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14015b2a4
mov qword [rdi + 0x70], rsi
xor ecx, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14015b2a4
Function at 0x140135be0
Capabilities:
Encode data using xor

Disassembly:
push rbx
and r8d, 0x1f
mov r9, rdx
movabs rbx, 0xc2b2ae3d27d4eb4f
movabs r11, 0x9e3779b185ebca87
cmp r8, 8
jb 0x1401359cc
mov r10d, r8d
mov qword [rsp + 0x10], rdi
shr r10, 3
movabs rdi, 0x7a1435883d4d519d
imul rax, r10, 0xfffffffffffffff8
add r8, rax
mov rdx, qword [r9]
add r9, 8
imul rdx, rbx
rol rdx, 0x1f
imul rdx, r11
xor rcx, rdx
rol rcx, 0x1b
imul rcx, r11
sub rcx, rdi
sub r10, 1
jne 0x1401359a0
mov rdi, qword [rsp + 0x10]
mov rax, r9
movabs r10, 0x165667b19e3779f9
cmp r8, 4
jb 0x1401359fb
mov eax, dword [rax]
add r9, 4
imul rax, r11
xor rcx, rax
rol rcx, 0x17
imul rcx, rbx
add rcx, r10
sub r8, 4
test r8, r8
je 0x140135a2d
movabs rdx, 0x27d4eb2f165667c5
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
imul rax, rdx
xor rcx, rax
rol rcx, 0xb
imul rcx, r11
sub r8, 1
jne 0x140135a10
mov rax, rcx
shr rax, 0x21
xor rax, rcx
imul rax, rbx
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
imul rcx, r10
mov rax, rcx
shr rax, 0x20
xor rax, rcx
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x140135cbd
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x140135cce
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp 0x140135960
Function at 0x140146a40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
xor edi, edi
mov qword [rsp + 0x30], r8
mov qword [rcx], rdi
mov rbx, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
lea r8, [0x140146b70]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call fcn.14015b1d0
lea rcx, [rsp + 0x50]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsp + 0x40], edi
jne 0x140146acc
nop dword [rax + rax]
mov r8d, 0xffffffff
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
cmp dword [rsp + 0x40], edi
je 0x140146ab0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rbx, qword [rsp + 0x90]
xor eax, eax
add rsp, 0x80
pop rdi
ret

Function at 0x14015c5a4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1401dbe68]
mov rbp, rcx
call fcn.140173454
xor edi, edi
test rax, rax
je 0x14015c68a
mov ebx, edi
call fcn.14016927c
mov r14d, dword [rax]
call fcn.14016927c
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401733a0
mov rsi, rax
test rax, rax
je 0x14015c61b
call fcn.14016927c
mov dword [rax], r14d
jmp 0x14015c645
call fcn.14016927c
cmp dword [rax], 0x22
jne 0x14015c682
call fcn.14016927c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401733a0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14015c682
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14015c649
cmp rax, 3
je 0x14015c664
mov rcx, rsi
call fcn.14015c500
test al, al
je 0x14015c675
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14015c675
mov dil, 1
mov rcx, rbx
call fcn.14014e740
mov al, dil
jmp 0x14015c68c
mov rcx, rbx
call fcn.14014e740
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140147af0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140162174
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140161fd3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140161fd3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140161fd3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140161fd3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140161fd3
cmp dword [rcx + 0x84], 0xe
jbe 0x140161fd3
cmp dword [rcx + 0xf8], 0
je 0x140161fd3
mov ecx, ebx
call fcn.140162090
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140161e60
nop
cmp dword [rbp + 0x20], 0
je 0x140162021
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14016202c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140161f64
Function at 0x140164fa4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14021e780]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140165002
cmp word [rdx], r12w
jne 0x140165002
or byte [rax + r8*8 + 0x38], cl
jmp 0x140165008
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140165163
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14016513e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140165041
mov rcx, r9
jmp 0x140165064
cmp r9, rdx
jae 0x14016507b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140165025
jmp 0x140165163
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140165138
cmp dword [rsp + 0x80], edi
je 0x140165138
mov rdx, r14
lea r11, [0x14021e780]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140165111
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401650e4
mov word [rbx], r12w
jmp 0x14016515f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401650ed
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14016515f
cmp word [rsp + 0x70], r12w
jne 0x14016511e
cmp rbx, rsi
je 0x1401650de
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140166228
cmp word [rsp + 0x70], r12w
je 0x140165163
mov word [rbx], r13w
jmp 0x14016515f
lea r11, [0x14021e780]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14016515b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140165163
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret