joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c2a208
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rax
cwde
movzx rax, r13w
push rsi
cmovle ax, bx
cwde
not eax
pushfq
rcl al, cl
mov ah, 0x77
push r8
btc ax, ax
stc
push rcx
push rdi
push rdx
rcr dx, 5
push r13
rcl dil, cl
movzx rdx, di
clc
push r12
ror r8b, cl
stc
btc r8w, 0x10
push rbx
setp r8b
not ebx
push rbp
push r11
push r9
push r15
movzx rax, r12w
ror r8w, cl
bt r8, 4
push r10
bt dx, bx
clc
seto dil
push r14
rcr bp, 0xdb
movsxd rdi, r14d
movabs r11, 0
btr rdx, rcx
movsx rax, bp
push r11
rdtsc
bswap ax
bts r8w, r10w
mov r8, qword [rsp + 0x90]
rdtsc
movzx rbp, r9w
movsx r10d, bx
bswap r8d
stc
not dil
movzx r10w, dl
rol r8d, 2
not di
dec r8d
bts bp, ax
xor r8d, 0x556b521a
rcl bx, 0x7f
movsx rbx, si
movsx edx, sp
rol r8d, 2
lea r8, [r8 + r11]
movabs rdx, 0x100000000
add r8, rdx
mov rbp, rsp
sar dil, 0x49
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
shrd bx, sp, 0xa
shl bh, 0x76
test r12d, r9d
mov r10, r8
sal edi, cl
movzx rbx, r14w
bswap bx
movabs rax, 0
xor bl, 0x8e
bt rdi, rdx
rcl bh, 0x22
sub r10, rax
cmp rbp, 0x7060303d
movsx rbx, di
lea rdi, [0x140c2a32e]
xor bx, r13w
shrd rbx, rax, 0x55
sub r8, 4
btc rbx, 0xc9
mov ebx, dword [r8]
jmp 0x140d40537
dec ebx
push r10
mov r10d, ebp
sal r10b, 0xa
xor dword [rsp], ebx
cmp r10w, 0x22be
sar r10b, 0xa8
bt r10w, 0xf5
pop r10
movsxd rbx, ebx
cmp r12b, r10b
add rdi, rbx
jmp rdi
ror ebx, 3
jmp 0x140c84ce5
xor ebx, r10d
stc
test rax, rax
add ebx, 0x39d278b2
test rbx, 0x59aa5ad2
not ebx
stc
test ebx, ecx
xor ebx, 0x2f5840eb
stc
jmp 0x140d2061c
Function at 0x1400020bf
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [0x140059200]
test rax, rax
je 0x1400020d3
call rax
mov ecx, 2
call qword [fcn.140020a40]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x140006240
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.1400109a0
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x140051fc0]
movsxd rdx, dword [rax]
mov rax, qword [0x140051fb0]
mov rcx, qword [rax]
jmp 0x140006240
sub rsp, 0x28
call fcn.1400063da
nop
add rsp, 0x28
jmp 0x1400063ef
Function at 0x1400063ef
Capabilities:
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.1400109a0
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x140051fc0]
movsxd rdx, dword [rax]
mov rax, qword [0x140051fb0]
mov rcx, qword [rax]
jmp 0x140006240
sub rsp, 0x28
call fcn.1400063da
nop
add rsp, 0x28
jmp 0x1400063ef
Function at 0x14000640a
Capabilities:
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.1400109a0
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x140051fc0]
movsxd rdx, dword [rax]
mov rax, qword [0x140051fb0]
mov rcx, qword [rax]
jmp 0x140006240
sub rsp, 0x28
call fcn.1400063da
nop
add rsp, 0x28
jmp 0x1400063ef
Function at 0x14000fcd0
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.140020a40
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.140020a40
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 0x14000fd40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400592c4]
mov r12, rcx
test ebx, ebx
jle 0x14000fe70
mov rax, qword [0x1400592c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000fd8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000fe13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000fd70
mov rcx, r12
call fcn.1400106e0
mov rsi, rax
test rax, rax
je 0x14000fe92
mov rax, qword [0x1400592c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140010810
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400592c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000fe77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000fe0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000fe20
add dword [0x1400592c4], 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 [0x1400592c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000fe0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000fcd0
nop dword [rax]
xor ebx, ebx
jmp 0x14000fd97
mov rax, qword [0x1400592c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000fcd0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000fcd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140059320]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140059300]
test rbx, rbx
je 0x1400103a4
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 0x14001039b
test r12, r12
je 0x14001039b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010380
lea rcx, [0x140059320]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400106e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140051e40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140010755
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 0x14001074c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140010700
add rax, 0x28
cmp rax, r9
jne 0x140010738
xor eax, eax
ret

Function at 0x140010760
Capabilities:
Parse pe header

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

Function at 0x140010810
Capabilities:
Parse pe header

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

Function at 0x1400109e0
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 0x140010a00
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 0x140010a48
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400109f4
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 0x140010a35
Function at 0x140010b60
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140059430]
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 0x140010b83
lea rax, [0x140059438]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x140010bcb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010bc8
lea rax, [0x140059460]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x140010bfb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140010bf8
xor ecx, ecx
mov byte [0x140059474], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14005947d], rdx
lea r8, [0x140059430]
lea rbx, [0x140059475]
mov qword [0x14005948d], rdx
mov qword [0x14005949d], rdx
mov qword [0x1400594ad], rdx
xor edx, edx
mov qword [0x140059475], rax
mov qword [0x140059485], rax
mov qword [0x140059495], rax
mov qword [0x1400594a5], rax
mov byte [0x1400594b5], 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 0x140010dd6
lea rcx, [0x140059460]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140010d21
lea rsi, [0x1400593a0]
lea r8, [0x1400594b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140010ccd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140010cc0
lea rcx, [0x140059460]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140010dc3
lea rcx, [0x140010a70]
mov qword [0x1400593a0], 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 [0x1400593a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x140059460]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400594b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140010df6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140010d73
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140010d60
mov rax, rdx
mov qword [0x1400593a0], rax
lea rsi, [0x1400593a0]
jmp 0x140010d99
cmp rdx, rsi
je 0x140010cff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140010d90
cmp rdx, rsi
je 0x140010cff
mov qword [rdx + 8], rsi
lea rcx, [0x140010a70]
call sub.msvcrt.dll__onexit
jmp 0x140010cff
lea rcx, [0x1400516a0]
call fcn.1400109e0
xor eax, eax
jmp 0x140010d18
lea rcx, [0x140051678]
call fcn.1400109e0
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, [0x1400516c8]
call fcn.1400109e0
xor eax, eax
jmp 0x140010d7f
Function at 0x140013480
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140051ef0]
mov rax, qword [rsi]
test rax, rax
je 0x140013510
cmp qword [rax + 0x30], 0
jne 0x140013530
lea rbx, [0x140024468]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1400134e0
cmp qword [rax + 0x30], 0
jne 0x140013500
lea rdx, [0x140024468]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400238e0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018380
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400134c2
test rax, rax
jne 0x140013500
call fcn.140018380
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400134d0
call fcn.140018380
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400134a0
test rax, rax
jne 0x140013530
call fcn.140018380
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400134ab
call sub.msvcrt.dll_abort
nop

Function at 0x140013540
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 0x140013652
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001362a
add rax, 1
cmp rax, 0x6b
je 0x140013647
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140013620
cmp edx, 0x6a
je 0x140013647
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 0x14001363b
Function at 0x140018380
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140059620]
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 0x1400183a3
lea rax, [0x140059628]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400183eb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400183e8
lea rax, [0x140059660]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14001841b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140018418
xor ecx, ecx
mov byte [0x140059679], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140059682], rdx
lea r8, [0x140059620]
lea rbx, [0x14005967a]
mov qword [0x140059692], rdx
mov qword [0x1400596a2], rdx
mov qword [0x1400596b2], rdx
xor edx, edx
mov qword [0x14005967a], rax
mov qword [0x14005968a], rax
mov qword [0x14005969a], rax
mov qword [0x1400596aa], rax
mov byte [0x1400596ba], 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 0x1400185f6
lea rcx, [0x140059660]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140018541
lea rsi, [0x140059560]
lea r8, [0x1400596ba]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1400184ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1400184e0
lea rcx, [0x140059660]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1400185e3
lea rcx, [0x140018290]
mov qword [0x140059560], 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 [0x140059560]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140059660]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400596ba]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140018616
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140018593
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140018580
mov rax, rdx
mov qword [0x140059560], rax
lea rsi, [0x140059560]
jmp 0x1400185b9
cmp rdx, rsi
je 0x14001851f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400185b0
cmp rdx, rsi
je 0x14001851f
mov qword [rdx + 8], rsi
lea rcx, [0x140018290]
call sub.msvcrt.dll__onexit
jmp 0x14001851f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140018200
xor eax, eax
jmp 0x140018538
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140018200
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.140018200
xor eax, eax
jmp 0x14001859f
Function at 0x140003180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14008c320]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x28], rdx
lea rax, str.Load_plugins_from__S
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov rbx, rcx
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
mov rcx, qword [rcx + 0x10]
mov r9d, 3
mov r8d, 0x268
call fcn.140012d40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000323c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x10]
lea rsi, str.GetFileAttributes_failed_for_path:__S__system_err:__lu_
mov dword [rsp + 0x30], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
mov qword [rsp + 0x28], rdi
mov r9d, 1
mov r8d, 0x271
mov qword [rsp + 0x20], rsi
call fcn.140012d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
mov rdx, rsi
mov r9d, eax
mov ecx, 0x2b
call fcn.140004740
xor al, al
jmp 0x1400032e6
test al, 0x10
jne 0x1400032a3
mov rcx, rdi
call fcn.140002e70
test al, al
jne 0x14000328d
mov rcx, qword [rbx + 0x10]
lea rsi, str.File__S_is_not_supported
mov qword [rsp + 0x28], rdi
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcHost.cpp
mov r9d, 1
mov qword [rsp + 0x20], rsi
mov r8d, 0x27d
call fcn.140012d40
mov r8, rdi
mov rdx, rsi
mov ecx, 0x2c
call fcn.140004740
xor al, al
jmp 0x1400032e6
or dword [rbx + 8], 0x10
mov rdx, rdi
mov rcx, rbx
call fcn.140002240
test eax, eax
sete al
jmp 0x1400032e6
mov r9d, dword [rbx + 8]
lea rcx, [rsp + 0x40]
mov rdx, qword [rbx + 0x10]
and r9d, 8
add r9d, r9d
mov r8, rdi
or r9d, 1
call fcn.140013b20
lea rax, vtable.nvc::HostDirectoryEnumerator.0
mov qword [rsp + 0x260], rbx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.140013b60
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400141d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret