joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016c9
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x7c], eax
cmp dword [rbp + 0x7c], 1
ja 0x1400016ff
mov eax, 0
jmp 0x14000182d
mov dword [rbp - 0x10], 0x40
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 8]
shr rax, 0x14
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0x7ff
ja 0x140001734
mov eax, 0
jmp 0x14000182d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0
lea rcx, str..PhysicalDrive0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0xffffffffffffffff
jne 0x140001783
mov eax, 0
jmp 0x14000182d
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x18
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x70000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp + 0x6c], 0
jne 0x1400017e7
mov eax, 0
jmp 0x14000182d
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x20]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x1c]
mov edx, edx
imul rax, rdx
lea rdx, [rax + 0x3fffffff]
test rax, rax
cmovs rax, rdx
sar rax, 0x1e
mov dword [rbp + 0x68], eax
cmp dword [rbp + 0x68], 0x63
ja 0x140001828
mov eax, 0
jmp 0x14000182d
mov eax, 1
add rsp, 0x100
pop rbp
ret
Function at 0x14000bba0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140021dc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140021dc0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000bc10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400ee114]
mov r12, rcx
test ebx, ebx
jle 0x14000bd40
mov rax, qword [0x1400ee118]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000bc5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000bce3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000bc40
mov rcx, r12
call fcn.14000c5b0
mov rsi, rax
test rax, rax
je 0x14000bd62
mov rax, qword [0x1400ee118]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000c6e0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400ee118]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bd47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000bcdc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000bcf0
add dword [0x1400ee114], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400ee118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bcdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000bba0
nop dword [rax]
xor ebx, ebx
jmp 0x14000bc67
mov rax, qword [0x1400ee118]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000bba0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000bba0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c220
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400ee180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ee160]
test rbx, rbx
je 0x14000c274
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000c26b
test r12, r12
je 0x14000c26b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c250
lea rcx, [0x1400ee180]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000c5b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c5b70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c5d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c5d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c5d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000c625
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c61c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c5d0
add rax, 0x28
cmp rax, r9
jne 0x14000c608
xor eax, eax
ret

Function at 0x14000c630
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c5b70]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000c650
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c658
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c650
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000c6e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c5b70]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000c700
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000c708
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000c8b0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000c8d0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x14000c918
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000c8c4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000c905
Function at 0x14000ca30
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400ee290]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14000ca53
lea rax, [0x1400ee298]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000ca9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000ca98
lea rax, [0x1400ee2c0]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000cacb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000cac8
xor ecx, ecx
mov byte [0x1400ee2d4], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400ee2dd], rdx
lea r8, [0x1400ee290]
lea rbx, [0x1400ee2d5]
mov qword [0x1400ee2ed], rdx
mov qword [0x1400ee2fd], rdx
mov qword [0x1400ee30d], rdx
xor edx, edx
mov qword [0x1400ee2d5], rax
mov qword [0x1400ee2e5], rax
mov qword [0x1400ee2f5], rax
mov qword [0x1400ee305], rax
mov byte [0x1400ee315], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000cca6
lea rcx, [0x1400ee2c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000cbf1
lea rsi, [0x1400ee200]
lea r8, [0x1400ee315]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000cb9d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000cb90
lea rcx, [0x1400ee2c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000cc93
lea rcx, [0x14000c940]
mov qword [0x1400ee200], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400ee200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x1400ee2c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400ee315]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000ccc6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000cc43
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000cc30
mov rax, rdx
mov qword [0x1400ee200], rax
lea rsi, [0x1400ee200]
jmp 0x14000cc69
cmp rdx, rsi
je 0x14000cbcf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000cc60
cmp rdx, rsi
je 0x14000cbcf
mov qword [rdx + 8], rsi
lea rcx, [0x14000c940]
call sub.msvcrt.dll__onexit
jmp 0x14000cbcf
lea rcx, [0x1400c4560]
call fcn.14000c8b0
xor eax, eax
jmp 0x14000cbe8
lea rcx, [0x1400c4538]
call fcn.14000c8b0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x1400c4588]
call fcn.14000c8b0
xor eax, eax
jmp 0x14000cc4f
Function at 0x1400107b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c5bf0]
mov rax, qword [rsi]
test rax, rax
je 0x140010840
cmp qword [rax + 0x30], 0
jne 0x140010860
lea rbx, [0x1400bd098]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140010810
cmp qword [rax + 0x30], 0
jne 0x140010830
lea rdx, [0x1400bd098]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400bc850
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140015a80
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400107f2
test rax, rax
jne 0x140010830
call fcn.140015a80
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140010800
call fcn.140015a80
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400107d0
test rax, rax
jne 0x140010860
call fcn.140015a80
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400107db
call sub.msvcrt.dll_abort
nop

Function at 0x140010870
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140010982
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001095a
add rax, 1
cmp rax, 0x6b
je 0x140010977
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140010950
cmp edx, 0x6a
je 0x140010977
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001096b
Function at 0x140015900
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140015920
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140015968
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140015914
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140015955
Function at 0x140015a80
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400ee460]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140015aa3
lea rax, [0x1400ee468]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140015aeb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140015ae8
lea rax, [0x1400ee4a0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140015b1b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140015b18
xor ecx, ecx
mov byte [0x1400ee4b9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400ee4c2], rdx
lea r8, [0x1400ee460]
lea rbx, [0x1400ee4ba]
mov qword [0x1400ee4d2], rdx
mov qword [0x1400ee4e2], rdx
mov qword [0x1400ee4f2], rdx
xor edx, edx
mov qword [0x1400ee4ba], rax
mov qword [0x1400ee4ca], rax
mov qword [0x1400ee4da], rax
mov qword [0x1400ee4ea], rax
mov byte [0x1400ee4fa], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140015cf6
lea rcx, [0x1400ee4a0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140015c41
lea rsi, [0x1400ee3a0]
lea r8, [0x1400ee4fa]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140015bed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140015be0
lea rcx, [0x1400ee4a0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140015ce3
lea rcx, [0x140015990]
mov qword [0x1400ee3a0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400ee3a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400ee4a0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400ee4fa]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140015d16
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140015c93
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140015c80
mov rax, rdx
mov qword [0x1400ee3a0], rax
lea rsi, [0x1400ee3a0]
jmp 0x140015cb9
cmp rdx, rsi
je 0x140015c1f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140015cb0
cmp rdx, rsi
je 0x140015c1f
mov qword [rdx + 8], rsi
lea rcx, [0x140015990]
call sub.msvcrt.dll__onexit
jmp 0x140015c1f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140015900
xor eax, eax
jmp 0x140015c38
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140015900
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140015900
xor eax, eax
jmp 0x140015c9f
Function at 0x14007ec00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x14007ec27
call rbp
cmp dword [rax], 4
jne 0x14007ec44
mov rcx, rdi
call fcn.14007ea20
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x14007ec20
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001fa4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140015128]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r12, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
xor r15d, r15d
xor r14d, r14d
call fcn.1400044e0
lea r8, [0x140010ff8]
lea rcx, [rsp + 0x30]
call fcn.14000456c
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140002055
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140002147
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.140001eb0
mov esi, eax
jmp 0x14000212d
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.1400021a8
mov esi, eax
test eax, eax
jns 0x140002093
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.140001e74
mov rcx, rbx
call fcn.140001f44
jmp 0x14000212d
lea r8, [0x140011000]
lea rcx, [rsp + 0x30]
call fcn.14000456c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400020d6
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.140001eb0
mov esi, eax
jmp 0x140002086
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400021a8
mov esi, eax
test eax, eax
jns 0x14000210a
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.140001e74
mov rcx, rdi
call fcn.140001f44
jmp 0x140002086
mov rcx, rdi
call fcn.140001f44
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.140001f44
xor esi, esi
test esi, esi
jns 0x140002147
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.140001e74
jmp 0x14000214c
mov r15, r14
xor esi, esi
test esi, esi
jns 0x140002168
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, WSAGetLastError
call fcn.140001e74
mov eax, esi
jmp 0x140002175
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000e7b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400078a8
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x140015128]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, rcx
mov ebp, 1
mov rcx, qword [rbx + 0x688]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
jne 0x140007aac
mov rcx, qword [rbx + 0x688]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop dword [rax + rax]
mov ecx, dword [rbx + 0x6a4]
test ecx, ecx
je 0x1400079ff
sub ecx, 1
je 0x140007955
sub ecx, 1
je 0x14000794b
sub ecx, 1
je 0x140007941
cmp ecx, 1
jne 0x140007a84
mov rcx, rbx
call fcn.140008b30
mov edi, eax
jmp 0x140007a84
mov rcx, rbx
call fcn.1400088d0
jmp 0x14000793a
mov rcx, rbx
call fcn.1400081d4
jmp 0x14000793a
mov rcx, qword [0x140015828]
lea r8, [rsp + 0x260]
mov r9d, 0x80
mov edx, 0x918
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x698]
lea r9, [rsp + 0x260]
xor r8d, r8d
mov edx, 0x408
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x230
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x228]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], 0x230
xor ecx, ecx
mov dword [rsp + 0x20], 5
call qword [sym.imp.bthprops.cpl_BluetoothAuthenticateDeviceEx]
nop dword [rax + rax]
test eax, eax
je 0x140007a84
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140007a84
mov rsi, qword [rbx + 0x6a8]
xor ebp, ebp
test rsi, rsi
je 0x140007a24
mov rcx, rsi
call fcn.14000b97c
mov rcx, rsi
call sub.msvcrt.dll_free
and qword [rbx + 0x6a8], rdi
cmp qword [rbx + 0x668], rdi
je 0x140007aac
xor edx, edx
lea rsi, [rbx + 0x44c]
mov rcx, rsi
lea r8d, [rdx + 2]
call fcn.14000957c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140007a74
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140007a74
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
mov rcx, rsi
call sub.msvcrt.dll_memset
test ebp, ebp
je 0x140007aac
mov edx, dword [rbx + 0x6a0]
xor r8d, r8d
mov rcx, qword [rbx + 0x698]
movsxd r9, edi
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
jmp 0x1400078d9
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14000e7b0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret