joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cedc0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov r14, rcx
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea r8d, [rbp + 4]
lea rdx, str.._
lea rcx, [rsp + 0x30]
call fcn.140007240
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0x12
jb 0x1400cee5a
lea rdi, [rcx + 0x12]
mov qword [rsp + 0x40], rdi
lea rbx, [rsp + 0x30]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x30]
lea rcx, [rbx + rcx*2]
lea r8d, [rbp + 0x24]
lea rdx, str.c:IntelOptaneData
call fcn.140145e70
mov word [rbx + rdi*2], bp
jmp 0x1400cee7e
lfence
mov qword [rsp + 0x20], 0x12
lea r9, str.c:IntelOptaneData
xor r8d, r8d
lea edx, [r8 + 0x12]
lea rcx, [rsp + 0x30]
call fcn.14001b830
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400cdb90
test eax, eax
je 0x1400cee9e
cmp eax, 0xc
je 0x1400cee9e
mov ebp, 2
jmp 0x1400cef77
lea rbx, [0x1402daa50]
mov rcx, qword [0x1402daa50]
cmp rcx, rbx
je 0x1400ceef5
test byte [rcx + 0x44], 0x40
je 0x1400ceef5
cmp byte [rcx + 0x41], 4
jb 0x1400ceef5
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400ceeca
mov rax, qword [rsi]
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
mov edx, 0x17
mov qword [rsp + 0x20], rax
lea r8, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.14003e410
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400cef02
mov rdx, qword [rsi]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400cef77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [0x1402daa50]
cmp rcx, rbx
je 0x1400cef77
test byte [rcx + 0x44], 0x40
je 0x1400cef77
cmp byte [rcx + 0x41], 2
jb 0x1400cef77
cmp qword [rsi + 0x18], 8
jb 0x1400cef47
mov rsi, qword [rsi]
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
mov edx, 0x18
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.1400d0af0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400cefb5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cefb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cefd9
call fcn.1401544c8
mov eax, ebp
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140154660
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400e3a70
int3
Function at 0x1400cf9b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, rdx
mov dword [rsp + 0x50], edi
mov rbx, rcx
mov rcx, qword [0x1402daa50]
lea rbp, [0x1402daa50]
cmp rcx, rbp
je 0x1400cfa02
test byte [rcx + 0x44], 0x40
je 0x1400cfa02
cmp byte [rcx + 0x41], 4
jb 0x1400cfa02
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0x35]
lea r8, [0x1402656a8]
call fcn.140024250
add rbx, 0x94e08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x1402e0850], dil
jne 0x1400cfaa7
mov rcx, rbx
mov byte [0x1402e0850], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1402daa50]
cmp rax, rbp
je 0x1400cfa86
test byte [rax + 0x44], 0x40
je 0x1400cfa86
cmp byte [rax + 0x41], 2
jb 0x1400cfa86
mov rcx, rsi
call fcn.1400061d0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400d02c0
mov rcx, rax
mov edi, 1
call fcn.1400062f0
mov rcx, qword [0x1402daa50]
lea edx, [rdi + 0x36]
mov r9, rax
lea r8, [0x1402656a8]
mov rcx, qword [rcx + 0x38]
call fcn.14002a6f0
test dil, 1
je 0x1400cfa96
lea rcx, [rsp + 0x20]
call fcn.140006340
call fcn.1400d0d30
mov ecx, 0x2c9
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [0x1402daa50]
cmp rcx, rbp
je 0x1400cfad4
test byte [rcx + 0x44], 0x40
je 0x1400cfad4
cmp byte [rcx + 0x41], 5
jb 0x1400cfad4
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402656a8]
mov edx, 0x36
call fcn.140024250
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400cff00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1402e0770]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047d56.0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400cff32
mov eax, 0x1392
add rsp, 0x28
ret
mov ecx, 8
mov qword [rsp + 0x30], rbx
call fcn.14015450c
mov rbx, rax
test rax, rax
je 0x1400cfff1
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov qword [rax], 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400cff7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x1400cffbd
mov rcx, qword [0x1402e0770]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047d56.0]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400cffb5
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400cffd3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
call fcn.1401544c8
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x30]
mov eax, 0xe
add rsp, 0x28
ret
Function at 0x1400d51a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
lea rax, [0x1402daa50]
mov rcx, qword [0x1402daa50]
cmp rcx, rax
je 0x1400d51ff
test dword [rcx + 0x44], 0x8000
je 0x1400d51ff
cmp byte [rcx + 0x41], 4
jb 0x1400d51ff
mov edx, 0x11
mov r9d, dword [rbx + 0x58]
lea r8, [0x140267d30]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
lea rcx, [rbx + 0x30]
mov qword [rsp + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x38], 1
mov eax, dword [rbx + 0x20]
cmp eax, 4
je 0x1400d5225
mov esi, 0x139f
jmp 0x1400d5321
mov dword [rbx + 0x20], 1
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1400d5248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400d5321
xor esi, esi
cmp qword [rbx + 0x18], rsi
je 0x1400d5321
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rcx, qword [0x1402e0770]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140047d56.0]
mov rdx, rax
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], sil
mov r9d, 0xb8
lea r8, str.ServiceThread::resume
lea rcx, [rsp + 0x40]
call fcn.140085860
mov rdi, qword [rbx + 0x18]
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rdi + 9], sil
je 0x1400d52e5
mov rax, qword [0x1402e0718]
test rax, rax
jne 0x1400d52d8
mov qword [0x1402e0710], rdi
mov qword [0x1402e0718], rdi
jmp 0x1400d5305
mov qword [rax + 0x10], rdi
mov qword [0x1402e0718], rdi
jmp 0x1400d5305
mov rax, qword [0x1402e0708]
test rax, rax
jne 0x1400d52fa
mov qword [0x1402e0700], rdi
jmp 0x1400d52fe
mov qword [rax + 0x10], rdi
mov qword [0x1402e0708], rdi
lea rcx, [0x1402e0728]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0x18], rsi
lea rcx, [rsp + 0x40]
call fcn.14007f320
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140154660
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400d5350
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movzx esi, dl
mov rcx, qword [rcx + 0x60]
add rcx, 0xa0
call fcn.1400c0910
mov edi, eax
test eax, eax
je 0x1400994a1
mov rcx, qword [0x1402daa50]
lea rdx, [0x1402daa50]
cmp rcx, rdx
je 0x14009948f
test byte [rcx + 0x44], 4
je 0x14009948f
cmp byte [rcx + 0x41], 2
jb 0x14009948f
mov edx, 0x2d
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261db0]
call fcn.140024250
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x60]
mov ecx, dword [rax + 0xac]
cmp ecx, 2
je 0x14009950f
mov rcx, qword [rbx + 0x60]
add rcx, 0xa0
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140047d56.0]
mov edi, eax
test eax, eax
je 0x1400994f4
mov rcx, qword [0x1402daa50]
lea rdx, [0x1402daa50]
cmp rcx, rdx
je 0x14009948f
test byte [rcx + 0x44], 4
je 0x14009948f
cmp byte [rcx + 0x41], 2
jb 0x14009948f
mov edx, 0x2e
jmp 0x14009947f
movzx edx, sil
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp method.ServiceThread.virtual_16
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movzx ebp, dl
mov rbx, rcx
mov rcx, qword [0x1402daa50]
lea rax, [0x1402daa50]
cmp rcx, rax
je 0x1400d53a5
test dword [rcx + 0x44], 0x8000
je 0x1400d53a5
cmp byte [rcx + 0x41], 4
jb 0x1400d53a5
mov r9d, dword [rbx + 0x58]
lea r8, [0x140267d30]
mov rcx, qword [rcx + 0x38]
mov edx, 0x12
call fcn.1400268c0
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x20]
cmp eax, 3
je 0x1400d53be
mov edi, 0x139f
jmp 0x1400d540d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebp
lea r8, [0x1400d4a60]
shl eax, 2
xor edi, edi
mov qword [rsp + 0x28], rdi
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140109730
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d53fa
lea edi, [rax + 0x6f]
jmp 0x1400d540d
test bpl, bpl
mov edx, 1
mov eax, 4
cmovne edx, eax
mov dword [rbx + 0x20], edx
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14010d6a0
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 0x14010d70f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010d70f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010d70f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010d70f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010d70f
cmp dword [rcx + 0x84], 0xe
jbe 0x14010d70f
cmp dword [rcx + 0xf8], 0
je 0x14010d70f
mov ecx, ebx
call fcn.14010d82c
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.14010d47c
nop
cmp dword [rbp + 0x20], 0
je 0x14010d75d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14010d768
int3
xor r8d, r8d
xor edx, edx
jmp 0x14010d6a0

Function at 0x14010d924
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 0x14010d70f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010d70f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010d70f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010d70f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010d70f
cmp dword [rcx + 0x84], 0xe
jbe 0x14010d70f
cmp dword [rcx + 0xf8], 0
je 0x14010d70f
mov ecx, ebx
call fcn.14010d82c
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.14010d47c
nop
cmp dword [rbp + 0x20], 0
je 0x14010d75d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14010d768
int3
xor r8d, r8d
xor edx, edx
jmp 0x14010d6a0
Function at 0x14012c800
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 0x14012c836
call fcn.1400e3c40
mov dword [rax], 0x16
call fcn.1400e3a50
jmp 0x14012c986
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14012c986
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14012c986
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14012c865
lock or dword [rcx + 0x14], 0x10
jmp 0x14012c986
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14012c879
call fcn.14012d11c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14012c889
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14012c88c
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14012ac24
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14013f408
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14012c974
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14012c91f
mov rcx, rbx
call fcn.14012ac24
cmp eax, 0xffffffff
je 0x14012c90a
mov rcx, rbx
call fcn.14012ac24
cmp eax, 0xfffffffe
je 0x14012c90a
mov rcx, rbx
call fcn.14012ac24
movsxd rdi, eax
lea rsi, [0x1402e0a80]
mov rcx, rbx
sar rdi, 6
call fcn.14012ac24
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14012c911
lea rdx, [0x1402d7630]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14012c91f
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14012c943
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14012c943
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14012c943
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14012c961
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14012c96c
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14012c98b
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 0x14012c800
Function at 0x14012ca28
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14012ca5a
call fcn.1400e3c40
mov dword [rax], 0x16
call fcn.1400e3a50
jmp 0x14012cb79
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14012cb79
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14012cb79
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14012ca89
lock or dword [rcx + 0x14], 0x10
jmp 0x14012cb79
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14012ca9d
call fcn.14012d11c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14012ac24
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14013f408
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14012cb67
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14012cb32
mov rcx, rsi
call fcn.14012ac24
cmp eax, edi
je 0x14012cb1d
mov rcx, rsi
call fcn.14012ac24
cmp eax, 0xfffffffe
je 0x14012cb1d
mov rcx, rsi
call fcn.14012ac24
movsxd rbx, eax
lea r14, [0x1402e0a80]
mov rcx, rsi
sar rbx, 6
call fcn.14012ac24
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14012cb24
lea rdx, [0x1402d7630]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14012cb32
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14012cb56
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14012cb56
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14012cb56
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14012cb7c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14012cb94
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 0x14012c836
call fcn.1400e3c40
mov dword [rax], 0x16
call fcn.1400e3a50
jmp 0x14012c986
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14012c986
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14012c986
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14012c865
lock or dword [rcx + 0x14], 0x10
jmp 0x14012c986
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14012c879
call fcn.14012d11c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14012c889
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14012c88c
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14012ac24
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14013f408
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14012c974
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14012c91f
mov rcx, rbx
call fcn.14012ac24
cmp eax, 0xffffffff
je 0x14012c90a
mov rcx, rbx
call fcn.14012ac24
cmp eax, 0xfffffffe
je 0x14012c90a
mov rcx, rbx
call fcn.14012ac24
movsxd rdi, eax
lea rsi, [0x1402e0a80]
mov rcx, rbx
sar rdi, 6
call fcn.14012ac24
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14012c911
lea rdx, [0x1402d7630]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14012c91f
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14012c943
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14012c943
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14012c943
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14012c961
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14012c96c
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14012c98b
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 0x14012c800
Function at 0x14012ed70
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.1401546b0
sub rsp, rax
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14012ac24
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14012edbf
mov rax, rbp
jmp 0x14012eec7
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 + 0x2e0a80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14012f8ac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2e0a80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14012eec3
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 0x14012eec3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14012f8ac
test rax, rax
js 0x14012eec3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14012eec3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14012eeb5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14012eeb5
cmp byte [rcx], 0xd
jne 0x14012ee9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14012eeaa
cmp byte [rcx + 1], 0xa
jne 0x14012eeaa
inc rcx
jmp 0x14012eeaa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2d7be0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14012ee7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14012eec7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140154660
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 0x14013ee64
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, [0x1402e0a80]
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 0x14013eec2
cmp word [rdx], r12w
jne 0x14013eec2
or byte [rax + r8*8 + 0x38], cl
jmp 0x14013eec8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14013f023
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14013effe
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14013ef01
mov rcx, r9
jmp 0x14013ef24
cmp r9, rdx
jae 0x14013ef3b
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 0x14013eee5
jmp 0x14013f023
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 0x14013eff8
cmp dword [rsp + 0x80], edi
je 0x14013eff8
mov rdx, r14
lea r11, [0x1402e0a80]
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 0x14013efd1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14013efa4
mov word [rbx], r12w
jmp 0x14013f01f
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 0x14013efad
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14013f01f
cmp word [rsp + 0x70], r12w
jne 0x14013efde
cmp rbx, rsi
je 0x14013ef9e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14012f8b4
cmp word [rsp + 0x70], r12w
je 0x14013f023
mov word [rbx], r13w
jmp 0x14013f01f
lea r11, [0x1402e0a80]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14013f01b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14013f023
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