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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14001c71a]
mov rdx, rax
lea rax, [0x1400f7c10]
mov rcx, rax
call fcn.14001bd12
mov eax, dword [0x1400c2170]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001c94a
mov rax, qword [rbp - 0x10]
jmp 0x14001caaa
call fcn.14001b475
mov qword [rbp - 0x10], rax
mov rax, qword [0x1400fa048]
test rax, rax
je 0x14001c966
cmp qword [rbp - 0x10], 0
jne 0x14001c970
mov eax, 0
jmp 0x14001caaa
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14001b599
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001ca4b
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400c2170]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001caa6
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001cba7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.14001c8f7
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.14001c748
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001cc14
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400c2170]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001cd58
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001ccb1
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001cc6c
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001b34e
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400c2170]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001cd58
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001cceb
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001cd58
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001b34e
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400c2170]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140085300
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140085348
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008531a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400beb30
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call fcn.1400be2b0
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call fcn.140024300
mov rcx, rax
jmp 0x1400bea50
call fcn.1400be2b0
call fcn.1400be500
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400bead7
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.140023ed0
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.140023fc0
test al, al
jne 0x1400beaf5
lea rbx, [0x1400cd720]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.140023fc0
test al, al
je 0x1400beafa
mov ecx, 8
call fcn.1400be240
lea r8, [0x14008b520]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1400cb200]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400be7c0
add rbx, 0x90
jmp 0x1400bea66
call fcn.1400be770
mov rcx, rdi
call fcn.1400242e0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.1400be2b0
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400bebac
call fcn.1400be2b0
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400be3e0
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.1400185d0
call fcn.1400be770
call fcn.1400be2b0
call fcn.1400be3e0
jmp 0x1400beb9a
Function at 0x7ff8c1331493
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x7ff8c13b2268]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, [0x7ff8c13b2e08]
mov rsi, qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call rsi
lea rcx, [0x7ff8c13b2e30]
call rsi
cmp dword [0x7ff8c13b2e00], 0
jne 0x7ff8c1331644
mov dword [0x7ff8c13b2e00], 0
lea rcx, str.VK_LOADER_DEBUG
xor r13d, r13d
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x7ff8c1331524
mov esi, eax
mov ecx, eax
call fcn.7ff8c13734e8
test rax, rax
je 0x7ff8c1331521
mov r13, rax
lea rcx, str.VK_LOADER_DEBUG
mov rdx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x7ff8c1331524
xor r13d, r13d
lea rdi, [0x7ff8c1393e4e]
mov r15d, 0xffffffff
lea rbx, str.warn
mov r14b, 2
mov rsi, r13
test rsi, rsi
je 0x7ff8c133163c
mov rcx, rsi
mov edx, 0x2c
call fcn.7ff8c1363f00
mov r12, rax
test rax, rax
je 0x7ff8c1331564
mov rbp, r12
sub rbp, rsi
jmp 0x7ff8c133156f
mov rcx, rsi
call fcn.7ff8c1375170
mov rbp, rax
test rbp, rbp
je 0x7ff8c133162e
mov rcx, rsi
mov rdx, rdi
mov r8, rbp
call fcn.7ff8c13753e0
test eax, eax
je 0x7ff8c13315f8
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.7ff8c13753e0
test eax, eax
je 0x7ff8c1331608
mov rcx, rsi
lea rdx, str.info
mov r8, rbp
call fcn.7ff8c13753e0
test eax, eax
je 0x7ff8c1331618
mov rcx, rsi
lea rdx, str.perf
mov r8, rbp
call fcn.7ff8c13753e0
test eax, eax
je 0x7ff8c133161c
mov rcx, rsi
lea rdx, str.error
mov r8, rbp
call fcn.7ff8c13753e0
test eax, eax
je 0x7ff8c1331620
mov rcx, rsi
lea rdx, str.debug
mov r8, rbp
call fcn.7ff8c13753e0
test eax, eax
jne 0x7ff8c133162e
mov al, 0x10
jmp 0x7ff8c1331622
mov dword [0x7ff8c13b2e00], r15d
mov dword [0x7ff8c13b2e04], r15d
jmp 0x7ff8c133162e
or byte [0x7ff8c13b2e00], r14b
or byte [0x7ff8c13b2e04], r14b
jmp 0x7ff8c133162e
mov al, 1
jmp 0x7ff8c1331622
mov al, 4
jmp 0x7ff8c1331622
mov al, 8
or byte [0x7ff8c13b2e00], al
or byte [0x7ff8c13b2e04], al
lea rsi, [r12 + 1]
test r12, r12
jne 0x7ff8c133153e
mov rcx, r13
call fcn.7ff8c13729a0
movups xmm0, xmmword [fcn.7ff8c132e7e5]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call fcn.7ff8c1321085
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.7ff8c1361750
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x7ff8c133286c
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x10
lea rbp, [rsp + 0x10]
mov r14, rcx
mov rax, qword [0x7ff8c13b2268]
xor rax, rbp
mov qword [rbp - 8], rax
test r8, r8
je 0x7ff8c133298b
mov rsi, r8
mov r15, rdx
mov qword [r8], 0
sub rsp, 0x20
lea rdx, [0x7ff8c139436d]
mov rcx, r15
call fcn.7ff8c13722a8
add rsp, 0x20
test rax, rax
je 0x7ff8c13329a9
mov rdi, rax
sub rsp, 0x20
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.7ff8c13729b4
mov rcx, rdi
call fcn.7ff8c1372bc4
add rsp, 0x20
movsxd rbx, eax
sub rsp, 0x20
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.7ff8c13729b4
add rsp, 0x20
lea rax, [rbx + 0x10]
and rax, 0xfffffffffffffff0
call fcn.7ff8c13616e0
sub rsp, rax
mov r12, rsp
sub rsp, 0x20
mov edx, 1
mov rcx, r12
mov r8, rbx
mov r9, rdi
call fcn.7ff8c13726f0
add rsp, 0x20
cmp rax, rbx
jne 0x7ff8c13329d1
mov byte [r12 + rbx], 0
test ebx, ebx
je 0x7ff8c13329f2
sub rsp, 0x20
mov rcx, r12
call fcn.7ff8c132172e
add rsp, 0x20
mov qword [rsi], rax
xor esi, esi
test rax, rax
jne 0x7ff8c13329f7
sub rsp, 0x30
mov qword [rsp + 0x20], r15
lea r9, str.loader_get_json:_Failed_to_parse_JSON_file__s__this_is_usually_because_something_ran_out_of_memory.
mov rcx, r14
mov edx, 8
call fcn.7ff8c1324e82
add rsp, 0x30
mov esi, 0xffffffff
jmp 0x7ff8c13329f7
sub rsp, 0x20
lea r9, str.loader_get_json:_Received_invalid_JSON_file
mov rcx, r14
mov edx, 8
call fcn.7ff8c1324e82
add rsp, 0x20
jmp 0x7ff8c13329ca
sub rsp, 0x30
mov qword [rsp + 0x20], r15
lea r9, str.loader_get_json:_Failed_to_open_JSON_file__s
mov rcx, r14
mov edx, 8
call fcn.7ff8c1324e82
add rsp, 0x30
mov esi, 0xfffffffd
jmp 0x7ff8c1332a07
sub rsp, 0x30
mov qword [rsp + 0x20], r15
lea r9, str.loader_get_json:_Failed_to_read_JSON_file__s.
mov rcx, r14
mov edx, 8
call fcn.7ff8c1324e82
add rsp, 0x30
mov esi, 0xfffffffd
sub rsp, 0x20
mov rcx, rdi
call fcn.7ff8c1371dbc
add rsp, 0x20
mov rcx, qword [rbp - 8]
xor rcx, rbp
sub rsp, 0x20
call fcn.7ff8c1361750
add rsp, 0x20
mov eax, esi
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x7ff8c1332a74
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x7fffffff
mov r12d, 1
mov dword [rbp + 0x40], eax
lock dec dword [rbp + 0x40]
sub rax, r12
jne 0x7ff8c1332a93
xor ebx, ebx
cmp dword [rbp + 0x40], ebx
jne 0x7ff8c1332c26
mov rax, qword gs:[0x60]
mov r10d, ebx
mov r14d, 0x78f1e5bf
mov rdx, qword [rax + 0x18]
add rdx, 0x10
mov rcx, qword [rdx]
jmp 0x7ff8c1332b08
mov r9, qword [rcx + 0x60]
mov r10, rcx
mov r8d, r14d
movzx eax, word [r9]
test ax, ax
je 0x7ff8c1332b05
movzx eax, ax
lea r9, [r9 + 2]
xor eax, r8d
imul r8d, eax, 0x5bd1e995
mov eax, r8d
shr eax, 0xf
xor r8d, eax
movzx eax, word [r9]
test ax, ax
jne 0x7ff8c1332ad9
cmp r8d, 0x66b65ce9
je 0x7ff8c1332b0d
mov rcx, qword [rcx]
cmp rcx, rdx
jne 0x7ff8c1332ac6
mov rdx, qword [r10 + 0x30]
movzx r11d, bx
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r10d, dword [rcx + 0x20]
mov edi, dword [rcx + 0x1c]
add r10, rdx
mov r8d, dword [rcx + 0x24]
add rdi, rdx
mov esi, dword [rcx + 0x18]
add r8, rdx
test esi, esi
je 0x7ff8c1332b89
mov ecx, dword [r10]
mov r9d, r14d
add rcx, rdx
mov al, byte [rcx]
test al, al
je 0x7ff8c1332b75
movsx eax, al
add rcx, r12
xor eax, r9d
imul r9d, eax, 0x5bd1e995
mov eax, r9d
shr eax, 0xf
xor r9d, eax
mov al, byte [rcx]
test al, al
jne 0x7ff8c1332b4d
cmp r9d, 0x64098594
je 0x7ff8c1332b97
add r11w, r12w
add r10, 4
movzx eax, r11w
add r8, 2
cmp eax, esi
jb 0x7ff8c1332b3e
mov rsi, rbx
mov rdi, qword [rbp + 0x38]
mov eax, 0x324871ba
jmp 0x7ff8c1332ba6
movzx eax, word [r8]
mov esi, dword [rdi + rax*4]
add rsi, rdx
jmp 0x7ff8c1332b8c
add rdi, r12
cmp dword [rdi], eax
jne 0x7ff8c1332ba3
lea rax, [rbp + 0x50]
mov r14d, 0x2660f
lea r15, [rdi + 4]
mov qword [rbp + 0x58], r14
mov r9d, 4
mov qword [rbp - 0x10], r15
lea r8, [rbp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x10]
or rcx, 0xffffffffffffffff
call rsi
mov rdx, r15
mov dword [rbp + 0x48], 0xc5f7a2db
mov rax, rbx
add rbx, r12
and eax, 3
mov al, byte [rbp + rax + 0x48]
xor byte [rdx], al
add rdx, r12
sub r14, r12
jne 0x7ff8c1332be3
lea rax, [rbp + 0x50]
mov qword [rbp - 8], r15
lea r9d, [r14 + 0x20]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x58]
or rcx, 0xffffffffffffffff
invalid
invalid
Function at 0x7ff8c1334786
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
push rax
mov rbp, rsp
mov r14, r9
mov r13, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x7ff8c13b2268]
xor rax, rbp
mov qword [rbp], rax
sub rsp, 0x20
lea rcx, str.VK_INSTANCE_LAYERS
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add rsp, 0x20
test eax, eax
je 0x7ff8c13348e2
mov r12d, eax
test rsi, rsi
je 0x7ff8c1334801
mov rax, qword [rsi + 0x3fd8]
test rax, rax
je 0x7ff8c1334801
mov edx, r12d
mov rcx, qword [rsi + 0x3fd0]
sub rsp, 0x20
mov r8d, 8
xor r9d, r9d
call rax
jmp 0x7ff8c133480d
mov ecx, r12d
sub rsp, 0x20
call fcn.7ff8c13734e8
add rsp, 0x20
mov rdi, rax
test rax, rax
je 0x7ff8c13348e2
sub rsp, 0x20
lea rcx, str.VK_INSTANCE_LAYERS
mov rdx, rdi
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rcx, rdi
call fcn.7ff8c1375170
add rsp, 0x20
add rax, 0x10
and rax, 0xfffffffffffffff0
call fcn.7ff8c13616e0
sub rsp, rax
mov rbx, rsp
sub rsp, 0x20
mov rcx, rbx
mov r12, rdi
mov rdx, rdi
call fcn.7ff8c1374f70
add rsp, 0x20
cmp byte [rbx], 0
je 0x7ff8c13348af
sub rsp, 0x20
mov rcx, rbx
call fcn.7ff8c132f724
add rsp, 0x20
mov rdi, rax
sub rsp, 0x30
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov rdx, rbx
mov r8d, 2
mov r9, r14
call fcn.7ff8c1330c18
add rsp, 0x30
mov rbx, rdi
test rdi, rdi
jne 0x7ff8c1334869
test rsi, rsi
je 0x7ff8c13348d2
mov rax, qword [rsi + 0x3fe8]
test rax, rax
je 0x7ff8c13348d2
mov rcx, qword [rsi + 0x3fd0]
sub rsp, 0x20
mov rdx, r12
call rax
jmp 0x7ff8c13348de
sub rsp, 0x20
mov rcx, r12
call fcn.7ff8c13729a0
add rsp, 0x20
mov rcx, qword [rbp]
xor rcx, rbp
sub rsp, 0x20
call fcn.7ff8c1361750
nop
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x7ff8c133a6e0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rsi
push rdi
lea r10d, [rdx + 3]
test edx, edx
mov eax, edx
cmovs eax, r10d
sar eax, 2
movsxd r9, eax
shl r9, 2
cmp r10d, 7
jb 0x7ff8c133a740
mov r11, r9
sub r11, r9
add r11, rcx
mov r10d, eax
xor eax, eax
mov esi, dword [r11 + rax*4]
imul edi, esi, 0xcc9e2d51
imul esi, esi, 0x16a88000
shr edi, 0x11
or edi, esi
imul esi, edi, 0x1b873593
xor esi, r8d
rol esi, 0xd
lea r8d, [rsi + rsi*4]
add r8d, 0xe6546b64
inc rax
cmp r10d, eax
jne 0x7ff8c133a70c
mov eax, edx
and eax, 3
xor r10d, r10d
cmp rax, 1
je 0x7ff8c133a76e
cmp eax, 2
je 0x7ff8c133a762
cmp eax, 3
jne 0x7ff8c133a790
movzx r10d, byte [rcx + r9 + 2]
shl r10d, 0x10
movzx eax, byte [rcx + r9 + 1]
shl eax, 8
or r10d, eax
movzx eax, byte [rcx + r9]
xor eax, r10d
imul ecx, eax, 0xcc9e2d51
imul eax, eax, 0x16a88000
shr ecx, 0x11
or ecx, eax
imul eax, ecx, 0x1b873593
xor r8d, eax
xor r8d, edx
mov eax, r8d
shr eax, 0x10
xor eax, r8d
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop rdi
pop rsi
ret

Function at 0x7ff8c13482a8
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x138
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x7ff8c13b2268]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rbx, [rsp + 0x20]
mov esi, 0x104
mov r8d, 0x104
mov rcx, rbx
xor edx, edx
call fcn.7ff8c1363d70
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [rbx], 0
je 0x7ff8c1348303
inc rbx
dec rsi
jne 0x7ff8c13482f4
jmp 0x7ff8c1348330
xor eax, eax
lea rcx, str.dxgi.dll
cmp rax, 9
je 0x7ff8c1348322
mov dl, byte [rax + rcx]
mov byte [rbx], dl
inc rbx
inc rax
dec rsi
jne 0x7ff8c134830c
lea rax, [rbx - 1]
test rsi, rsi
cmovne rax, rbx
mov byte [rax], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.CreateDXGIFactory1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x7ff8c134835f
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call rax
mov esi, eax
jmp 0x7ff8c1348364
mov esi, 0x887a0002
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.7ff8c1361750
mov eax, esi
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x7ff8c1349d82
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x7ff8c1349e8a
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x7ff8c13b2268]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x7ff8c1349ecf
movzx edi, word [rsi + 0x5c]
test bl, bl
je 0x7ff8c1349fd4
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
jmp 0x7ff8c1349fd4
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.7ff8c137349c
cmp eax, 0xffffffff
je 0x7ff8c1349fd0
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x7ff8c1349ede
cmp byte [rsi + 0x5f], 0
je 0x7ff8c1349f22
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test bl, bl
je 0x7ff8c1349f94
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x7ff8c1349fd4
lea r13, [rsp + 0x56]
lea r12, [rsp + 0x48]
lea r14, [rsp + 0x58]
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r15, qword [rdx]
lea r9, [rsp + rdi]
add r9, 0x58
mov rax, qword [rcx]
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov r8, r14
call qword [rax + 0x18]
cmp eax, 1
jne 0x7ff8c1349fbd
mov rax, qword [rsi + 0x50]
mov qword [rax], r15
cmp rdi, 8
je 0x7ff8c1349fd0
mov rcx, qword [rsi + 0x40]
call fcn.7ff8c137349c
cmp eax, 0xffffffff
je 0x7ff8c1349fd0
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x7ff8c1349f31
mov edi, edi
test rdi, rdi
jle 0x7ff8c1349fb6
mov rdx, qword [rsi + 0x40]
movsx eax, byte [rsp + rdi + 0x57]
dec rdi
movzx ecx, ax
call fcn.7ff8c1375604
cmp eax, 0xffffffff
jne 0x7ff8c1349f96
jmp 0x7ff8c1349fd0
movzx edi, word [rsp + 0x56]
jmp 0x7ff8c1349fd4
cmp eax, 2
je 0x7ff8c1349fd0
cmp eax, 3
je 0x7ff8c1349f02
jmp 0x7ff8c1349f0c
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff8c1361750
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x7ff8c134a02c
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x7ff8c13b2268]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x38]
lea r12, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov ebp, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x28]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.7ff8c13730c0
cmp rax, rbx
jne 0x7ff8c134a0b3
cmp edi, 1
je 0x7ff8c134a060
cmp edi, 2
je 0x7ff8c134a0b3
mov rcx, qword [rsi + 0x40]
call fcn.7ff8c1371ea4
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.7ff8c1361750
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x7ff8c134a0d2
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x7ff8c134a107
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.7ff8c13730c0
xor ebx, ebx
test rsi, rsi
jle 0x7ff8c134a12c
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x7ff8c134a12c
inc rbx
cmp rsi, rbx
jne 0x7ff8c134a10e
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x7ff8c134a13a
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x7ff8c13b2268]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 0xffffffff
je 0x7ff8c134a197
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x7ff8c134a1a6
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.7ff8c13730c0
mov esi, 0xffffffff
cmp rax, 1
jne 0x7ff8c134a256
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x7ff8c134a256
lea rbx, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], rbx
lea rsi, [rsp + 0x57]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x7ff8c134a251
mov ebp, eax
cmp eax, 3
je 0x7ff8c134a230
cmp ebp, 1
ja 0x7ff8c134a251
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.7ff8c13730c0
cmp rax, rsi
jne 0x7ff8c134a251
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x7ff8c134a1c3
jmp 0x7ff8c134a197
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.7ff8c13730c0
cmp rax, 1
je 0x7ff8c134a197
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff8c1361750
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x7ff8c134a2ae
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x7ff8c134a2e3
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.7ff8c13730c0
xor ebx, ebx
test rsi, rsi
jle 0x7ff8c134a309
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x7ff8c134a309
inc rbx
cmp rsi, rbx
jne 0x7ff8c134a2ea
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret