joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bc460
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
xor edx, edx
mov qword [rsp + 0x20], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x58], rax
lea rdi, vtable.SqliteStatement.0
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], edx
lea rax, [rcx + 0x10]
mov qword [rsp + 0x38], rax
lea rdx, str.SELECT_FILE_STATE_FROM_FILES_WHERE_FILE_ID___id
mov qword [rsp + 0x40], rdx
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x58], 0
mov r8d, 6
lea rcx, str.SELECT
call fcn.1400e0530
movzx ecx, byte [rsp + 0x58]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [rsp + 0x58], cl
lea rax, vtable.TransactionSafeStatement.0
mov qword [rsp + 0x28], rax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.14002ab90
test eax, eax
jne 0x1400bc513
lea rcx, [rsp + 0x28]
call fcn.14002afe0
cmp eax, 0x64
jne 0x1400bc567
lea r8, [rsp + 0x20]
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14002aed0
test eax, eax
je 0x1400bc567
lea rdx, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdx
je 0x1400bc567
test dword [rcx + 0x44], 0x20000
je 0x1400bc567
cmp byte [rcx + 0x41], 2
jb 0x1400bc567
mov edx, 0x13
mov r9d, eax
lea r8, [0x1402331e8]
mov rcx, qword [rcx + 0x38]
call fcn.1400388f0
movzx ebx, byte [rsp + 0x20]
and bl, 1
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x28]
call fcn.14002b160
nop
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400c5c10
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0xc]
mov rbx, rcx
cmp eax, 1
jne 0x1400c5c50
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
xor eax, eax
lea rcx, [0x1400d4ef0]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.1400fa5ec
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400c5c50
lea ebx, [rax + 0x6f]
jmp 0x1400c5c5d
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400c5c9f
mov ebx, 0x139f
mov rcx, qword [0x1402aa8a0]
lea rax, [0x1402aa8a0]
cmp rcx, rax
je 0x1400c5c97
test dword [rcx + 0x44], 0x400
je 0x1400c5c97
cmp byte [rcx + 0x41], 2
jb 0x1400c5c97
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234610]
mov edx, 0x11
mov r9d, ebx
call fcn.1400268d0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0xc], 2
xor edx, edx
mov rcx, qword [rbx + 0x58]
mov qword [rsp + 0x40], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140047660.0]
mov edi, eax
test eax, eax
je 0x1400c5d0f
mov rcx, qword [0x1402aa8a0]
lea rax, [0x1402aa8a0]
cmp rcx, rax
je 0x1400c5d02
test dword [rcx + 0x44], 0x400
je 0x1400c5d02
cmp byte [rcx + 0x41], 2
jb 0x1400c5d02
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234610]
mov edx, 0x12
mov dword [rsp + 0x20], edi
xor r9d, r9d
call fcn.140025680
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400c5f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400cb510
test al, al
je 0x1400c5fc2
mov rcx, qword [0x1402b0640]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140047660.0]
xor r8d, r8d
xor edx, edx
mov rcx, rax
add rsp, 0x28
jmp 0x1400b5980
mov eax, 0x8007139f
add rsp, 0x28
ret
Function at 0x1400ca2a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400ca385
cmp byte [rcx + 0x72], 0
je 0x1400ca385
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
mov rax, qword [rax + 0x18]
call qword [case.0x140047660.0]
cmp di, ax
je 0x1400ca381
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x140047660.0]
test eax, eax
je 0x1400ca344
sub eax, 1
je 0x1400ca348
cmp eax, 2
jne 0x1400ca381
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140140100
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400ca378
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1400fd4ac
cmp rdi, rax
jne 0x1400ca381
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400ca32c
xor al, al
jmp 0x1400ca32c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140140100
add rsp, 0x60
pop rbx
ret
Function at 0x1400ca7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rcx, rdx
jb 0x1400ca7ba
mov rcx, qword [rdx]
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea rdi, [0x1402aa8a0]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400ca91d
test sil, 0x10
je 0x1400ca8ca
test sil, 2
je 0x1400ca877
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca82c
test byte [rcx + 0x44], 0x40
je 0x1400ca82c
cmp byte [rcx + 0x41], 4
jb 0x1400ca82c
cmp qword [rbx + 0x18], 8
mov r9, rbx
jb 0x1400ca810
mov r9, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x12
call fcn.140033560
mov rcx, qword [0x1402aa8a0]
test sil, 4
je 0x1400ca87e
cmp rcx, rdi
je 0x1400ca865
test byte [rcx + 0x44], 0x40
je 0x1400ca865
cmp byte [rcx + 0x41], 4
jb 0x1400ca865
cmp qword [rbx + 0x18], 8
jb 0x1400ca84d
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x13
mov r9, rbx
call fcn.140033560
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca8b5
test byte [rcx + 0x44], 0x40
je 0x1400ca8b5
cmp byte [rcx + 0x41], 2
jb 0x1400ca8b5
cmp qword [rbx + 0x18], 8
jb 0x1400ca899
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x14
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140038950
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca908
test byte [rcx + 0x44], 0x40
je 0x1400ca908
cmp byte [rcx + 0x41], 2
jb 0x1400ca908
cmp qword [rbx + 0x18], 8
jb 0x1400ca8ec
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x15
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140038950
mov eax, 0x50
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca957
test byte [rcx + 0x44], 0x40
je 0x1400ca957
cmp byte [rcx + 0x41], 4
jb 0x1400ca957
cmp qword [rbx + 0x18], 8
jb 0x1400ca93f
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x16
mov r9, rbx
call fcn.140033560
mov rdi, qword [rsp + 0x40]
mov eax, 2
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
Function at 0x1400caa30
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov r14d, r8d
mov rbx, rdx
mov esi, ebp
test r8d, r8d
je 0x1400caad0
xor r9d, r9d
mov dword [rsp + 0x40], ebp
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], 0x18
lea edx, [rbp + 1]
lea rcx, str.D:_A_OI_FA___SY__A_OI_FA___BA_
call sub.ADVAPI32.DLL_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1400caacb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov rcx, qword [0x1402aa8a0]
lea rdi, [0x1402aa8a0]
cmp rcx, rdi
je 0x1400caac4
test byte [rcx + 0x44], 0x40
je 0x1400caac4
cmp byte [rcx + 0x41], 2
jb 0x1400caac4
mov rcx, qword [rcx + 0x38]
lea edx, [rbp + 0x19]
mov r9d, eax
lea r8, [0x140234758]
call fcn.140026630
mov eax, ebx
jmp 0x1400cab87
lea rsi, [rsp + 0x30]
mov rcx, qword [0x1402aa8a0]
lea rdi, [0x1402aa8a0]
cmp rcx, rdi
je 0x1400cab11
test byte [rcx + 0x44], 0x40
je 0x1400cab11
cmp byte [rcx + 0x41], 4
jb 0x1400cab11
cmp qword [rbx + 0x18], 8
mov r9, rbx
jb 0x1400caafc
mov r9, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x1a
call fcn.140033560
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400cab1e
mov rcx, qword [rbx]
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x1400cab71
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400cab71
test byte [rcx + 0x44], 0x40
je 0x1400cab71
cmp byte [rcx + 0x41], 2
jb 0x1400cab71
cmp qword [rbx + 0x18], 8
jb 0x1400cab55
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x1b
mov dword [rsp + 0x20], eax
mov r9, rbx
call fcn.1400335d0
test r14d, r14d
je 0x1400cab85
test rsi, rsi
je 0x1400cab85
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140140100
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1402b0640]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047660.0]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rcx, qword [0x1402b0640]
mov rbx, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x80]
call qword [case.0x140047660.0]
mov ecx, eax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test rbx, rbx
je 0x1400cb236
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400cb224
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14013ff64
add rsp, 0x20
pop rbx
ret
Function at 0x1400cb9d0
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 [0x1402a7d08]
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 0x1400cba6a
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.140132e10
mov word [rbx + rdi*2], bp
jmp 0x1400cba8e
lfence
mov qword [rsp + 0x20], 0x12
lea r9, str.c:IntelOptaneData
xor r8d, r8d
lea edx, [r8 + 0x12]
lea rcx, [rsp + 0x30]
call fcn.14001c380
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400ca7a0
test eax, eax
je 0x1400cbaae
cmp eax, 0xc
je 0x1400cbaae
mov ebp, 2
jmp 0x1400cbb87
lea rbx, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rbx
je 0x1400cbb05
test byte [rcx + 0x44], 0x40
je 0x1400cbb05
cmp byte [rcx + 0x41], 4
jb 0x1400cbb05
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400cbada
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, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.14003e490
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400cbb12
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 0x1400cbb87
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
mov rcx, qword [0x1402aa8a0]
cmp rcx, rbx
je 0x1400cbb87
test byte [rcx + 0x44], 0x40
je 0x1400cbb87
cmp byte [rcx + 0x41], 2
jb 0x1400cbb87
cmp qword [rsi + 0x18], 8
jb 0x1400cbb57
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, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.1400cd700
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400cbbc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbbc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cbbe9
call fcn.14013ff64
mov eax, ebp
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140140100
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.1400e0284
int3
Function at 0x1400cbdf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x1400cbe24
xor eax, eax
jmp 0x1400cbf82
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x1400cbe61
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x1400cbe61
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x1400cbf82
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xc0], rbp
je 0x1400cbf77
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400cbea8
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400cbed1
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.1400fc244
cmp ax, di
je 0x1400cbf77
movzx edi, si
jmp 0x1400cbf77
lea r8, [rsp + 0x50]
mov word [rsp + 0x60], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x62]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x60]
call qword [case.0x140047660.0]
test eax, eax
js 0x1400cbf77
cmp eax, 1
jle 0x1400cbf34
cmp eax, 3
jne 0x1400cbf77
lfence
movzx ecx, word [rsp + 0x60]
jmp 0x1400cbeb4
mov rbp, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
sub rbp, rax
je 0x1400cbf64
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rbp
mov edx, 1
call fcn.1400fd4ac
cmp rbp, rax
jne 0x1400cbf77
lea rax, [rsp + 0x60]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x58], rax
movzx eax, si
jne 0x1400cbf7a
movzx eax, di
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140140100
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400cc5b0
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 [0x1402aa8a0]
lea rbp, [0x1402aa8a0]
cmp rcx, rbp
je 0x1400cc602
test byte [rcx + 0x44], 0x40
je 0x1400cc602
cmp byte [rcx + 0x41], 4
jb 0x1400cc602
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0x35]
lea r8, [0x140234758]
call fcn.140024300
add rbx, 0x94e08
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [0x1402b0720], dil
jne 0x1400cc6a7
mov rcx, rbx
mov byte [0x1402b0720], 1
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rax, qword [0x1402aa8a0]
cmp rax, rbp
je 0x1400cc686
test byte [rax + 0x44], 0x40
je 0x1400cc686
cmp byte [rax + 0x41], 2
jb 0x1400cc686
mov rcx, rsi
call fcn.1400061f0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400ccec0
mov rcx, rax
mov edi, 1
call fcn.140006310
mov rcx, qword [0x1402aa8a0]
lea edx, [rdi + 0x36]
mov r9, rax
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.14002a750
test dil, 1
je 0x1400cc696
lea rcx, [rsp + 0x20]
call fcn.140006360
call fcn.1400cd940
mov ecx, 0x2c9
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rbp
je 0x1400cc6d4
test byte [rcx + 0x44], 0x40
je 0x1400cc6d4
cmp byte [rcx + 0x41], 5
jb 0x1400cc6d4
mov rcx, qword [rcx + 0x38]
lea r8, [0x140234758]
mov edx, 0x36
call fcn.140024300
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 0x1400ccb00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1402b0640]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047660.0]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1400ccb32
mov eax, 0x1392
add rsp, 0x28
ret
mov ecx, 8
mov qword [rsp + 0x30], rbx
call fcn.14013ffac
mov rbx, rax
test rax, rax
je 0x1400ccbf1
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 0x1400ccb7e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test eax, eax
jne 0x1400ccbbd
mov rcx, qword [0x1402b0640]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140047660.0]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x1400ccbb5
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 0x1400ccbd3
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
call fcn.14013ff64
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 0x1400d1d80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
lea rax, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rax
je 0x1400d1ddf
test dword [rcx + 0x44], 0x8000
je 0x1400d1ddf
cmp byte [rcx + 0x41], 4
jb 0x1400d1ddf
mov edx, 0x11
mov r9d, dword [rbx + 0x58]
lea r8, [0x140236de0]
mov rcx, qword [rcx + 0x38]
call fcn.1400268d0
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 0x1400d1e05
mov esi, 0x139f
jmp 0x1400d1f01
mov dword [rbx + 0x20], 1
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x1400d1e28
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x1400d1f01
xor esi, esi
cmp qword [rbx + 0x18], rsi
je 0x1400d1f01
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 [0x1402b0640]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140047660.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.140084010
mov rdi, qword [rbx + 0x18]
lea rcx, [0x1402b05f8]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [rdi + 9], sil
je 0x1400d1ec5
mov rax, qword [0x1402b05e8]
test rax, rax
jne 0x1400d1eb8
mov qword [0x1402b05e0], rdi
mov qword [0x1402b05e8], rdi
jmp 0x1400d1ee5
mov qword [rax + 0x10], rdi
mov qword [0x1402b05e8], rdi
jmp 0x1400d1ee5
mov rax, qword [0x1402b05d8]
test rax, rax
jne 0x1400d1eda
mov qword [0x1402b05d0], rdi
jmp 0x1400d1ede
mov qword [rax + 0x10], rdi
mov qword [0x1402b05d8], rdi
lea rcx, [0x1402b05f8]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov qword [rbx + 0x18], rsi
lea rcx, [rsp + 0x40]
call fcn.14007dbd0
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.140140100
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400d1f30
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.1400bd310
mov edi, eax
test eax, eax
je 0x140096a61
mov rcx, qword [0x1402aa8a0]
lea rdx, [0x1402aa8a0]
cmp rcx, rdx
je 0x140096a4f
test byte [rcx + 0x44], 4
je 0x140096a4f
cmp byte [rcx + 0x41], 2
jb 0x140096a4f
mov edx, 0x2d
mov rcx, qword [rcx + 0x38]
lea r8, [0x140230e20]
call fcn.140024300
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 0x140096acf
mov rcx, qword [rbx + 0x60]
add rcx, 0xa0
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov edi, eax
test eax, eax
je 0x140096ab4
mov rcx, qword [0x1402aa8a0]
lea rdx, [0x1402aa8a0]
cmp rcx, rdx
je 0x140096a4f
test byte [rcx + 0x44], 4
je 0x140096a4f
cmp byte [rcx + 0x41], 2
jb 0x140096a4f
mov edx, 0x2e
jmp 0x140096a3f
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 [0x1402aa8a0]
lea rax, [0x1402aa8a0]
cmp rcx, rax
je 0x1400d1f85
test dword [rcx + 0x44], 0x8000
je 0x1400d1f85
cmp byte [rcx + 0x41], 4
jb 0x1400d1f85
mov r9d, dword [rbx + 0x58]
lea r8, [0x140236de0]
mov rcx, qword [rcx + 0x38]
mov edx, 0x12
call fcn.1400268d0
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [rbx + 0x20]
cmp eax, 3
je 0x1400d1f9e
mov edi, 0x139f
jmp 0x1400d1fed
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov eax, ebp
lea r8, [0x1400d1640]
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.1400fa6c0
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400d1fda
lea edi, [rax + 0x6f]
jmp 0x1400d1fed
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 0x1400fdefc
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 0x1400fdceb
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400fdceb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400fdceb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400fdceb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fdceb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400fdceb
cmp dword [rcx + 0xf8], 0
je 0x1400fdceb
mov ecx, ebx
call fcn.1400fde1c
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.1400fda70
cmp dword [rbp + 0x20], 0
je 0x1400fdd38
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400fdd40
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400fdc84