joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140101b60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movzx ebp, dx
call fcn.1400050d0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.140005170
mov rsi, rax
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x140101bb3
cmp qword [rax + 8], rdi
jne 0x140101bcb
mov ecx, 2
call fcn.1400c9d40
mov word [rax], di
mov rdx, rax
mov rcx, rsi
call fcn.140006420
mov rcx, qword [rsi]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140101be1
mov rax, qword [rax + 8]
jmp 0x140101be4
mov rax, rdi
mov word [rax], bp
mov rcx, qword [rsi]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140101bfb
mov rdi, qword [rax + 8]
movzx edi, word [rdi]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, di
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140101c30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
call fcn.1400050d0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.140005170
mov rsi, rax
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x140101c7b
cmp qword [rax + 8], rdi
jne 0x140101c93
mov ecx, 2
call fcn.1400c9d40
mov word [rax], di
mov rdx, rax
mov rcx, rsi
call fcn.140006420
mov rcx, qword [rsi]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140101ca7
mov rdi, qword [rax + 8]
movzx edi, word [rdi]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, di
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140102630
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1405a7c10]
test rcx, rcx
je 0x14010273c
cmp qword [rcx + 8], 0
je 0x140102663
mov rcx, qword [rcx + 0x10]
mov ecx, dword [rcx + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
jmp 0x140102665
xor edi, edi
mov qword [rsp + 0x30], rdi
test rdi, rdi
je 0x14010273c
call fcn.140102ee0
mov rbx, qword [rdi]
test rbx, rbx
je 0x1401026ee
mov qword [rsp + 0x38], rbx
mov rax, qword [rbx + 0x10]
mov qword [rdi], rax
mov rcx, qword [rbx + 0x28]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1401026a8
mov rax, qword [rbx + 0x28]
mov qword [rcx + 0x28], rax
mov rcx, qword [0x1405a78b8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov rax, qword [rbx]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401026ce
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401026ce
call rdx
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140102673
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x14010270d
mov rax, qword [0x1405a7c10]
cmp qword [rax + 8], rcx
je 0x140102715
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140102715
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140102726
mov rax, qword [rdi + 0x10]
mov qword [rcx + 0x10], rax
mov rcx, qword [0x1405a78b8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140102d00
Capabilities:
Allocate thread local storage
Get thread local storage value
Read file via mapping
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [0x1405a7c10]
xor r14d, r14d
mov qword [rsp + 0x78], rsi
movzx esi, dl
test dl, dl
je 0x140102df9
cmp qword [rdi + 8], r14
jne 0x140102dff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.TLS_Memory__08x
lea rcx, [rsp + 0x30]
call fcn.140003cf0
call fcn.140102ee0
cmp qword [rdi + 8], r14
jne 0x140102dec
xor edx, edx
mov qword [rsp + 0x70], rbp
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 4]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
lea edx, [r14 + 2]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x10], rax
cmp ebx, 0xb7
je 0x140102ddd
mov dword [rax], r14d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [rdi + 0x10]
mov dword [rcx + 4], eax
mov rax, qword [rdi + 0x10]
mov qword [rax + 8], r14
mov rax, qword [rdi + 0x10]
inc dword [rax]
mov qword [rdi + 8], rbp
mov rbp, qword [rsp + 0x70]
mov rcx, qword [0x1405a78b8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp qword [rdi + 8], r14
je 0x140102e0e
mov rcx, qword [rdi + 0x10]
mov ecx, dword [rcx + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x140102e11
mov rax, r14
test sil, sil
mov rsi, qword [rsp + 0x78]
je 0x140102e77
test rax, rax
jne 0x140102e77
lea edx, [rax + 0x18]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
mov qword [rax], r14
call fcn.140102ee0
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + 8]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
test rax, rax
je 0x140102e4f
mov qword [rax + 0x10], rbx
mov rcx, qword [rdi + 0x10]
mov qword [rcx + 8], rbx
mov rcx, qword [0x1405a78b8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
mov ecx, dword [rcx + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c9d20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140102ee0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [0x1405a78b8]
test rcx, rcx
jne 0x140102f42
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.TLS_Mutex__08x
lea rcx, [rsp + 0x20]
call fcn.140003cf0
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
lea rcx, [0x140005050]
mov qword [0x1405a78b8], rax
call fcn.1400ca1c8
mov rcx, qword [0x1405a78b8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400c9d20
add rsp, 0x58
ret
Function at 0x140103170
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, rcx
cmp byte [rax + 0x30], 0
je 0x1401031c0
cmp byte [rax + 0x32], 0
jne 0x140103207
mov rcx, qword [rax]
test rcx, rcx
je 0x1401031c0
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401031c0
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 8]
mov qword [rax], 0
mov rax, qword [rbx + 8]
mov byte [rax + 0x30], 0
mov rax, qword [rbx + 8]
lea r8, [0x1401033c0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov byte [rax + 0x32], 1
mov rax, qword [rbx + 8]
mov byte [rax + 0x31], 0
mov rax, qword [rbx + 8]
add rax, 0x34
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
test rax, rax
jne 0x14010320f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add rsp, 0x30
pop rbx
ret
mov rax, qword [rbx + 8]
mov byte [rax + 0x30], 1
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140109e50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov rbp, rcx
xor esi, esi
movzx ecx, byte [rcx + 0x139]
call fcn.1400ca4ec
mov rdi, rax
movzx r8d, byte [rbp + 0x139]
xor edx, edx
mov rcx, rax
call fcn.140279e10
movzx r10d, byte [rbp + 0x139]
movzx eax, byte [rbx]
mov byte [rdi], al
movzx eax, byte [rbx + 1]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 2]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 5]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 4]
mov byte [rdi + 4], al
sub r10b, 5
movzx edx, sil
je 0x140109efb
nop
movzx r8d, dl
mov r9, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
sub rax, r9
cmp rax, r8
jbe 0x14010a003
movzx ecx, dl
movzx eax, byte [r9 + r8]
mov byte [rcx + rdi + 5], al
inc dl
cmp dl, r10b
jb 0x140109ed0
mov dword [rsp + 0x30], esi
movzx r8d, byte [rbp + 0x139]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140109fd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov ecx, 0x20
call fcn.1400c9d40
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], SafeArrayCopy
mov qword [rsp + 0x50], 0x1f
movups xmm0, xmmword [0x14029cef0]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14029cf00]
movsd qword [rax + 0x10], xmm0
movzx edx, byte [0x14029cf08]
mov byte [rax + 0x18], dl
mov byte [rax + 0x19], sil
mov r9d, ebx
lea r8, [rsp + 0x38]
mov edx, 0xfffffff4
mov rcx, rbp
call fcn.14010df70
mov esi, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140109fd6
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140109fd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010a009
call fcn.1400c9d7c
mov rcx, rdi
call fcn.1400c9d7c
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c9d20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140008df0
int3
call fcn.1400d4b64
int3
Function at 0x14010e500
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x28], 0xffffffffffffffff
lea rax, vtable.CHidDfuDevice.0
mov qword [rcx], rax
mov rsi, rcx
je 0x14010e557
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x88]
mov ebx, dword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffe9
je 0x14010e54f
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x28], 0xffffffffffffffff
mov rbx, qword [rsi + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, 0x28
mov rcx, rbx
call fcn.1400c9d7c
mov rbx, qword [rsi + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, 0x28
mov rcx, rbx
call fcn.1400c9d7c
lea rcx, [rsi + 0x68]
call fcn.140008fa0
mov r8, qword [rsi + 0x50]
lea rdx, [rsi + 0x50]
lea rcx, [rsi + 0x50]
mov r8, qword [r8 + 8]
call fcn.14000cb70
mov rcx, qword [rsi + 0x50]
mov edx, 0x48
call fcn.1400c9d7c
lea rcx, [rsi + 0x30]
call fcn.140008fa0
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140103230
Function at 0x140111550
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov rdi, qword [rcx + 8]
mov rbx, rdx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140111570
xor al, al
add rsp, 0x38
pop rdi
pop rbx
ret
cmp rbx, qword [rdi + 0x88]
je 0x140111660
xor r9d, r9d
mov byte [rdi + 0x90], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, eax
mov qword [rdi + 0x88], rax
cmp rax, rbx
je 0x140111660
jg 0x140111567
sub rbx, rax
mov qword [rsp + 0x58], rbp
mov ecx, 0x4000
mov qword [rsp + 0x60], rsi
cmp rbx, rcx
mov qword [rsp + 0x30], r14
mov eax, ebx
cmovg eax, ecx
movsxd rbp, eax
mov r14d, eax
test eax, eax
jne 0x1401115da
xor esi, esi
jmp 0x1401115e5
mov rcx, rbp
call fcn.1400de56c
mov rsi, rax
test rbx, rbx
jle 0x140111649
nop word [rax + rax]
cmp byte [rdi + 0x90], 0
jne 0x140111649
xor ecx, ecx
test rsi, rsi
je 0x14011163e
mov rax, qword [rdi + 0x68]
mov dword [rsp + 0x50], ecx
test rax, rax
je 0x14011163e
mov r8d, ebx
lea r9, [rsp + 0x50]
cmp rbp, rbx
mov rdx, rsi
mov rcx, rax
cmovl r8d, r14d
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x50]
add qword [rdi + 0x88], rcx
test ecx, ecx
jne 0x14011163e
mov byte [rdi + 0x90], 1
movsxd rax, ecx
sub rbx, rax
test rbx, rbx
jg 0x1401115f0
mov rcx, rsi
call fcn.1400d4bdc
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov al, 1
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x140111670
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x10], 0
lea rbx, [rcx + 8]
mov esi, r8d
mov rdi, rdx
jne 0x14011169d
mov byte [rcx + 0x10], 1
xor edx, edx
mov rcx, qword [rbx]
call fcn.140012e70
mov rbx, qword [rbx]
xor eax, eax
test rdi, rdi
je 0x1401116e3
mov dword [rsp + 0x30], eax
cmp byte [rbx + 0x90], al
jne 0x1401116e3
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x1401116e3
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
add qword [rbx + 0x88], rax
test eax, eax
jne 0x1401116e3
mov byte [rbx + 0x90], 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140111700
Capabilities:
Get http content length

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x10], 0
lea rbx, [rcx + 8]
jne 0x14011171e
mov byte [rcx + 0x10], 1
xor edx, edx
mov rcx, qword [rbx]
call fcn.140012e70
mov rax, qword [rbx]
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x140111763
xor eax, eax
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov edx, 0x20000005
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [rsp + 0x40]
jne 0x14011176a
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x140117470
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov eax, 1
cpuid
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [0x1405a8090], al
mov eax, edx
shr eax, 0x19
and al, 1
shr edx, 0x1a
mov byte [0x1405a8091], al
and dl, 1
movzx eax, cl
mov byte [0x1405a8092], dl
and al, 1
mov byte [0x1405a8093], al
mov eax, ecx
shr eax, 0x1c
and al, 1
mov byte [0x1405a809a], al
mov eax, ecx
shr eax, 0xc
and al, 1
mov byte [0x1405a8095], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [0x1405a8097], al
mov eax, ecx
shr eax, 0x13
and al, 1
shr ecx, 0x14
mov byte [0x1405a8098], al
and cl, 1
mov byte [0x1405a8099], cl
test ebx, 0x80000000
mov eax, 0x80000001
setne byte [0x1405a8094]
xor ecx, ecx
cpuid
shr ecx, 0x10
mov eax, 7
and cl, 1
mov byte [0x1405a8096], cl
xor ecx, ecx
cpuid
mov eax, ebx
shr eax, 5
and al, 1
mov byte [0x1405a809b], al
mov eax, ebx
shr eax, 0x10
and al, 1
mov byte [0x1405a809c], al
mov eax, ebx
shr eax, 0x11
and al, 1
mov byte [0x1405a809f], al
mov eax, ebx
shr eax, 0x15
and al, 1
mov byte [0x1405a80a1], al
mov eax, ebx
shr eax, 0x1a
and al, 1
mov byte [0x1405a80a2], al
mov eax, ebx
shr eax, 0x1b
and al, 1
mov byte [0x1405a80a0], al
mov eax, ebx
shr eax, 0x1c
and al, 1
mov byte [0x1405a809e], al
mov eax, ebx
shr eax, 0x1e
and al, 1
shr ebx, 0x1f
mov byte [0x1405a80a4], bl
mov byte [0x1405a809d], al
mov eax, ecx
shr ecx, 0xe
and cl, 1
shr eax, 1
mov byte [0x1405a80a5], cl
and al, 1
lea rcx, [rsp + 0x28]
mov byte [0x1405a80a3], al
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x48]
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov dword [0x1405a8088], eax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
mov esi, dword [rsp + 0x20]
cmp rsi, 0x20
jb 0x140117659
and rsi, 0xffffffffffffffe0
jne 0x1401175f8
mov edi, ebx
jmp 0x140117603
mov rcx, rsi
call fcn.1400de56c
mov rdi, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
mov rcx, rdi
test eax, eax
jne 0x14011761f
call fcn.1400d4bdc
jmp 0x140117659
lea rdx, [rsi + rdi]
cmp rdi, rdx
je 0x140117647
nop dword [rax + rax]
mov rax, rbx
inc rbx
cmp dword [rcx + 8], 0
cmovne rbx, rax
add rcx, 0x20
cmp rcx, rdx
jne 0x140117630
mov rcx, rdi
call fcn.1400d4bdc
mov dword [0x1405a808c], ebx
test ebx, ebx
jg 0x140117665
mov eax, dword [0x1405a8088]
mov dword [0x1405a808c], eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c9d20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140117790
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
add rax, 0xfffffffffffffff0
lea rdi, [0x140592ec8]
cmp rax, rdi
je 0x1401177b5
lock inc dword [rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea r8, [0x1404fa54d]
lea rdx, [0x1404fa54c]
lea rcx, [rsp + 0x30]
call fcn.140135520
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rcx, [rax - 0x10]
cmp rcx, rdi
je 0x1401177f2
lock inc dword [rcx]
mov rax, qword [rsp + 0x30]
lea rcx, [rax - 0x10]
mov ebx, 0xffffffff
cmp rcx, rdi
je 0x140117812
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x140117812
call fcn.1400c9d7c
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x140117849
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x140117849
call fcn.1400c9d7c
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140118050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000e260
nop
mov rbx, qword [rbx]
test rbx, rbx
je 0x1401181b3
mov edx, esi
mov rcx, rbx
call fcn.140012a80
test al, al
je 0x1401181b3
xor edi, edi
test ebp, ebp
jle 0x1401181b8
mov qword [rsp + 0x48], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
mov r8d, ebp
mov rdx, r14
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140118106
mov edi, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401181b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1401181a8
movzx eax, byte [rbx + 0x1a]
nop
test al, al
jne 0x140118155
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
mov r9d, 0xffffffff
test esi, esi
cmovns r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140118161
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x1401181a8
xor r9d, r9d
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1401180ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1401181a8
cmp byte [rbx + 0x19], dil
je 0x1401181a8
cmp byte [rbx + 0x18], dil
je 0x1401181a8
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [rbx + 0x18], dil
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x30]
call fcn.14012def0
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140118df0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor eax, eax
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x30]
mov ecx, 0x204
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140018d60
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140145b30
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
lea rax, [0x140592ec8]
cmp rcx, rax
je 0x140118e72
mov edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x140118e72
call fcn.1400c9d7c
mov rax, rbx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400c9d20
add rsp, 0x450
pop rbx
ret
Function at 0x1401193c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1060
call fcn.1400caa40
sub rsp, rax
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov r14, rcx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
call fcn.140279e10
lea rdx, [rsp + 0x50]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea rbx, [rsp + 0x50]
xor r15d, r15d
mov esi, r15d
mov qword [rsp + 0x30], r15
mov ebp, r15d
mov qword [rsp + 0x38], r15
mov edi, r15d
lea r12, [0x140592ed8]
cmp word [rsp + 0x50], r15w
je 0x1401194b1
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140018d60
lea ecx, [rdi + 1]
cmp ecx, ebp
jle 0x14011947e
mov eax, ecx
test ecx, ecx
jns 0x14011945d
lea eax, [rcx + 1]
sar eax, 1
lea edx, [rax + 8]
add edx, ecx
and edx, 0xfffffff8
lea rcx, [rsp + 0x30]
call fcn.140017ba0
mov edi, dword [rsp + 0x3c]
mov ebp, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
movsxd rax, edi
lea edi, [rax + 1]
mov dword [rsp + 0x3c], edi
lea rcx, [rsi + rax*8]
mov rax, qword [rsp + 0x28]
mov qword [rcx], rax
mov qword [rsp + 0x28], r12
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x1401194a0
cmp word [rbx], ax
jne 0x140119440
movsxd r8, edi
lea rdx, [rsi + r8*8]
movzx r9d, byte [rsp + 0x20]
mov rcx, rsi
call fcn.14001a640
test edi, edi
jle 0x140119563
mov ebp, 4
lea rbx, [0x140592e48]
cmp r15d, edi
jae 0x1401194e4
mov rdx, rsi
jmp 0x140119503
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbp + rcx]
cmp dword [0x1405a8010], eax
jg 0x1401195a3
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140145b30
mov eax, dword [r14 + 0xc]
inc eax
cmp eax, dword [r14 + 8]
jle 0x140119534
mov ecx, eax
test eax, eax
jns 0x140119522
lea ecx, [rax + 1]
sar ecx, 1
lea edx, [rax + 8]
add edx, ecx
and edx, 0xfffffff8
mov rcx, r14
call fcn.140017ba0
movsxd rcx, dword [r14 + 0xc]
lea eax, [rcx + 1]
mov dword [r14 + 0xc], eax
mov rax, qword [r14]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x28]
mov qword [rdx], rax
mov qword [rsp + 0x28], r12
inc r15d
add rsi, 8
cmp r15d, edi
jl 0x1401194dd
lea rcx, [rsp + 0x30]
call fcn.140003220
mov rcx, qword [rsp + 0x30]
call fcn.1400d4bdc
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400c9d20
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x1405a8010]
call fcn.1400c9e58
cmp dword [0x1405a8010], 0xffffffff
jne 0x140119500
mov qword [0x140592e48], r12
lea rcx, [0x14028d010]
call fcn.1400ca1c8
lea rcx, [0x1405a8010]
call fcn.1400c9dec
jmp 0x140119500