joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401538e0]
mov dword [rax], 1
mov rax, qword [0x1401538f0]
mov dword [rax], 1
mov rax, qword [0x140153900]
mov dword [rax], 1
mov rax, qword [0x140153880]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400b3190
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14012cf10
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400b3255
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013de12
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400b3236
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400b3228
test rsi, rsi
je 0x14013de12
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400b31e8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400b3284
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400b32a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400b335d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013de18
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400b333e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400b3330
test rsi, rsi
je 0x14013de18
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400b32f0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400d2160
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x140169530]
mov rsi, rcx
test rbx, rbx
je 0x1400d21e0
mov rax, qword [0x140153a40]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1400d21d0
mov rdx, qword [0x140169768]
test rdx, rdx
je 0x1400d22d0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x1400d21b1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1400b3190
test rax, rax
je 0x1400d22f0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013deb2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400d227e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400d2270
test rbx, rbx
je 0x14013deb2
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1400d2230
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.1400d1ff0
mov rbx, rax
mov qword [0x140169530], rbx
jmp 0x1400d2182
lea rcx, [0x14014ff52]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x140169768], rax
mov rdx, rax
jmp 0x1400d21a2
mov rbx, qword [0x140169548]
test rbx, rbx
jne 0x1400d22c1
cmp byte [0x140169762], 0
je 0x1400d2333
mov rdx, 0xffffffffffffffff
lea rcx, [0x140169560]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x140169548], rax
mov rbx, rax
test rax, rax
je 0x1400d233f
mov eax, dword [rax]
add eax, 1
je 0x1400d22c1
mov dword [rbx], eax
jmp 0x1400d22c1
mov ecx, 1
call fcn.1400b3e10
jmp 0x1400d2305
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x1400d2bc0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1400b3190
test rax, rax
je 0x1400d2d10
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013deca
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1400d2c76
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400d2c68
test rbx, rbx
je 0x14013deca
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1400d2c28
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x140169ea0]
mov rsi, rax
mov rax, qword [0x140153a40]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1400d2d7d
mov rdx, rbx
call fcn.1400a3860
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400c6790
mov rdx, qword [rbx]
test edx, edx
js 0x1400d2cf2
sub rdx, 1
mov qword [rbx], rdx
je 0x1400d2d65
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140169540]
lea rsi, [0x140169540]
test bl, bl
je 0x1400d2d30
mov rax, qword [0x140169548]
lea rsi, [0x140169548]
test rax, rax
jne 0x1400d2cf2
cmp byte [0x140169762], 0
je 0x1400d2da7
mov rdx, 0xffffffffffffffff
lea rcx, [0x140169560]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400d2db1
mov edx, dword [rax]
add edx, 1
je 0x1400d2cf2
mov dword [rax], edx
jmp 0x1400d2cf2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400d2cf2
mov rcx, qword [0x140169e18]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1400d2dbc
mov rdx, rdi
call fcn.1400a3860
mov qword [0x140169ea0], rax
mov rcx, rax
jmp 0x1400d2cc9
movzx ecx, bl
call fcn.1400b3e10
jmp 0x1400d2d3e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14014ab33]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x140169e18], rax
mov rcx, rax
test rax, rax
je 0x14013deca
jmp 0x1400d2d90
Function at 0x140129600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140169521], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1401296a8
lea rdx, [0x14014f82a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140129710
mov rbx, qword [0x1401693c0]
jmp 0x140129645
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140129640
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140129697
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140119600
mov r8, rax
cmp rdi, rbx
jne 0x140129680
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1401693c0], rax
mov ebx, dword [rax]
mov qword [0x1401693c0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401693c0], rdx
call fcn.140128730
cmp eax, ebx
jne 0x140129778
mov byte [0x140169521], 1
jmp 0x140129620
cmp byte [0x140169520], 0
jne 0x140129637
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x14016a0c8], rax
call rbx
mov qword [0x14016a0c0], rax
call rbx
mov qword [0x14016a0b8], rax
call rbx
mov qword [0x14016a0b0], rax
call rbx
mov qword [0x14016a0a8], rax
call rbx
mov qword [0x14016a0a0], rax
call rbx
mov qword [0x14016a098], rax
call rbx
mov byte [0x140169520], 1
mov qword [0x14016a090], rax
jmp 0x140129637
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14012bbf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14013d370
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14013d370
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14012c8c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14016a588]
test eax, eax
je 0x14012c95a
lea rax, [0x14016a560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14016a590]
mov qword [rbp - 8], rax
jmp 0x14012c93e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14012c932
cmp qword [rbp - 0x10], 0
je 0x14012c932
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14012c8f8
lea rax, [0x14016a560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14012c95b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14012ca60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14012ca88
mov eax, 0
jmp 0x14012cad6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14012cab1
mov eax, 0
jmp 0x14012cad6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14012cad1
mov eax, 0
jmp 0x14012cad6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14012cadc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14012cb5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14012cb51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14012cb51
mov rax, qword [rbp - 8]
jmp 0x14012cb6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14012cb24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001650
Capabilities:
Create pipe

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
test rcx, rcx
jne 0x140001666
xor eax, eax
add rsp, 0x60
pop rsi
ret
mov edx, 1
xor r9d, r9d
xor ecx, ecx
mov r8d, edx
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_event:__d_n
mov edx, eax
call fcn.140010008
mov rbp, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x60
pop rsi
ret
mov ecx, 0x28
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rdi
call fcn.1400101b4
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400016e0
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
jmp 0x1400016e3
mov rbx, rdi
xor eax, eax
lea r8, [rsp + 0x48]
lea rcx, str.D:_A_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_S:_ML__NW___ME_
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x18], rbp
lea edx, [rax + 1]
xor r9d, r9d
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], edi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
xor ecx, ecx
call fcn.14000c920
lea rcx, [rsp + 0x40]
mov r9d, 0xff
cmp eax, 8
mov edx, 0x40000003
cmovle rcx, rdi
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x1388
mov rcx, rsi
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001784
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed_with__d._n
mov edx, eax
call fcn.140010008
xor eax, eax
jmp 0x1400017ac
mov ecx, 0x448
call fcn.1400101b4
test rax, rax
je 0x1400017a9
mov r8, rsi
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.1400017d0
mov rdi, rax
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret

Function at 0x1400018c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov r8d, 0x200
add rcx, 0x2c
call fcn.140012360
cmp dword [rbx + 8], 1
jne 0x14000190d
lea rax, [0x140002040]
test rax, rax
je 0x14000190d
mov r9, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
lea rdx, [rbx + 0x2c]
mov r8d, 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001f80
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rsi, rcx
mov ecx, 0xa8
call fcn.1400101b4
mov qword [rsp + 0x70], rax
xor ebp, ebp
test rax, rax
je 0x140001fbf
mov rcx, rax
call fcn.1400020f0
mov rbx, rax
jmp 0x140001fc2
mov rbx, rbp
mov rcx, rbx
call fcn.1400023e0
test eax, eax
je 0x14000202a
mov edi, 0x3d
mov rcx, rsi
call fcn.140001650
mov rdx, rax
mov rcx, rbx
call fcn.140002970
dec rdi
jne 0x140001fd3
cmp dword [rbx + 8], edi
je 0x14000202a
cmp dword [rbx + 0xc], edi
jne 0x14000202a
mov dword [rsp + 0x68], ebp
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140002490]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x78], rax
cmp rax, 0xffffffffffffffff
setne bpl
mov dword [rbx + 0xc], ebp
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002720
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140002742
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rdx + 0x20]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140002735
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400027ae
cmp eax, 0x3e5
jne 0x140002735
mov rax, qword [rbx + 0x18]
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 1
call fcn.140003a50
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x10]
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140003a80
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x20]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140004190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400041c3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140004209
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140004204
nop
cmp rbx, rcx
jae 0x140004209
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1400041f0
cmp rbx, rcx
jb 0x14000420d
xor eax, eax
jmp 0x140004219
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ab20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rsi, rdx
mov r15, rcx
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.14000e150
nop
xor r12d, r12d
mov dword [rbp + 0x77], r12d
mov r14d, r12d
mov ebx, r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x11]
call fcn.14000e3c0
test eax, eax
je 0x14000abc0
mov dword [rbp + 0x7f], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7f]
lea r8, [rbp - 0x39]
lea rdx, str.DisableTPByGPIO
lea rcx, [rbp - 9]
call fcn.14000ee20
mov r14d, dword [rbp - 0x39]
lea rcx, [rbp - 9]
call fcn.14000edd0
mov qword [rbp - 0x31], r12
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesSynTPParametersTouchPad
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000aca5
xor r9d, r9d
xor r8d, r8d
mov r13d, 1
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rbp - 0x21], rax
mov rax, qword [r15 + 0x48]
mov qword [rbp - 0x19], rax
mov dword [rsp + 0x20], r13d
mov r9, rdi
lea r8d, [r13 + 3]
mov edx, r13d
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x14000ac51
mov r9d, 0x7530
xor r8d, r8d
lea rdx, [rbp - 0x21]
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
cmove ebx, r13d
mov dword [rbp + 0x7f], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DisableTPByGPIO
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rbp + 0x77]
mov dword [rsi], eax
cmp eax, r14d
cmovne ebx, r13d
test rdi, rdi
je 0x14000ac9b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x20006
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x11]
call fcn.14000e3c0
test eax, eax
je 0x14000ace7
xor r9d, r9d
mov r8d, dword [rsi]
lea rdx, str.DisableTPByGPIO
lea rcx, [rbp - 9]
call fcn.14000f3f0
nop
lea rcx, [rbp - 0x11]
call fcn.14000e270
mov eax, ebx
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b2b0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400362d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rdi, rcx
or rbx, 0xffffffffffffffff
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
call fcn.1400080d0
cmp word [rax], 0
je 0x14000b344
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.1400080d0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000b344
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x140039ea4]
test al, 1
jne 0x14000b365
or eax, 1
mov dword [0x140039ea4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140039e9c], eax
jmp 0x14000b36b
mov eax, dword [0x140039e9c]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14000b391
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x140039e9c]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.SynAPI
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14000b3c4
xor edx, edx
lea r9, str.c_a2A
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14000b3d6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14000b3e5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000f8b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret