joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140004880
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004880
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002ea0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002dbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002da0
mov rcx, rbx
call fcn.1400037c0
mov rdi, rax
test rax, rax
je 0x140002ec2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003900
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ea7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e50
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d00
nop dword [rax]
xor esi, esi
jmp 0x140002dc8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003430
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000348c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003483
test rsi, rsi
je 0x140003483
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003468
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400037c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000383d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003834
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400037e0
add rax, 0x28
cmp rax, r9
jne 0x140003820
xor eax, eax
ret

Function at 0x140003840
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000385f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003868
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000385f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000391f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003928
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001024
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400010dd
cmp byte [rbx], 0
je 0x1400010dd
mov edx, 0x5c
mov rcx, rbx
call fcn.140008cf8
mov rbx, rax
test rax, rax
je 0x1400010dd
mov rcx, rsi
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400010aa
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400010a0
test rdi, rdi
je 0x1400010a0
lea rdx, str.CreateDirectory___s_
lea ecx, [rax + 5]
mov r8, rsi
call rdi
jmp 0x1400010aa
mov rdx, rsi
mov ecx, 1
call rdi
test bpl, 0x10
jne 0x1400010d1
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400010d1
lea rdx, str.CreateDirectory___s_
mov r8, rsi
mov ecx, 5
call rdi
mov byte [rbx], 0x5c
inc rbx
jne 0x14000104a
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140001ed0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rdx, str.PyImport_ImportModule
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyObject_SetAttrString
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyObject_GetAttrString
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyCFunction_New
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_BuildValue
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyArg_ParseTuple
mov rcx, rbx
mov rbp, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyErr_Format
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyLong_FromVoidPtr
mov rcx, rbx
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov qword [rsp + 0x70], rax
test rdi, rdi
je 0x140002055
test rsi, rsi
je 0x140002055
test r14, r14
je 0x140002055
test r15, r15
je 0x140002055
test rbp, rbp
je 0x140002055
test r12, r12
je 0x140002055
test r13, r13
je 0x140002055
lea rcx, str.builtins
call rdi
mov rdi, rax
test rax, rax
je 0x140002030
lea rdx, str.ValueError
mov rcx, rax
call rsi
lea rdx, str.OSError
mov rcx, rdi
mov qword [0x140038630], rax
call rsi
lea rbp, str.create_shortcut
mov rsi, rbp
mov qword [0x1400389e8], rax
movsxd rcx, ebx
xor edx, edx
shl rcx, 5
add rcx, rbp
call r15
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, rax
call r14
inc ebx
add rsi, 0x20
cmp ebx, 6
jb 0x140002005
mov rbp, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [0x1400388b0], rbp
mov qword [0x1400375c8], r12
mov qword [0x140038610], rax
xor eax, eax
mov qword [0x1400375d0], r13
jmp 0x14000205a
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002070
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
lea rbp, [rsp + 0x20]
mov rax, qword [0x1400342a0]
xor rax, rbp
mov qword [rbp + 0x60], rax
mov rbx, rdx
lea rdx, str.Py_Initialize
mov r12, r9
movsxd r15, r8d
mov rsi, rcx
mov qword [rbp], rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PySys_SetArgv
mov rcx, rsi
mov qword [rbp + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, rsi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, rsi
mov rdi, rax
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_BuildValue
mov rcx, rsi
mov r14, rax
mov qword [rbp + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp]
lea rdx, str.PyCFunction_New
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp]
lea rdx, str.PyArg_ParseTuple
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp]
lea rdx, str.PyErr_Format
mov qword [rbp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp qword [rbp + 8], rcx
je 0x1400022e9
test r13, r13
je 0x1400022e9
test rdi, rdi
je 0x1400022e9
test r14, r14
je 0x1400022e9
test rsi, rsi
je 0x1400022e9
cmp qword [rbp + 0x28], rcx
je 0x1400022e9
test rax, rax
je 0x1400022e9
cmp qword [rbp + 0x10], rcx
je 0x1400022e9
test rbx, rbx
je 0x1400022e2
cmp byte [rbx], cl
je 0x1400022e2
xor edx, edx
mov rcx, rbx
call fcn.140021da4
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400021d6
call fcn.14000a5a0
lea rdx, str.Could_not_open_postinstall_script__s_n
mov r8, rbx
lea rcx, [rax + 0x60]
call fcn.14000a3c8
lea eax, [rsi + 4]
jmp 0x1400022ee
mov rcx, qword [0x1400388c0]
lea r8, str.Running_Script...
mov edx, 0x3ec
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
call qword [rbp + 8]
mov rcx, qword [rbp]
call fcn.140001ed0
lea rcx, [0x1400358b0]
xor edx, edx
mov r8d, 0x800
call fcn.140008d30
xor ebx, ebx
test r15d, r15d
jle 0x140002246
lea r14, [0x1400358b0]
sub r12, r14
lea rax, [r12 + rbx*8]
mov rcx, qword [rax + r14]
test rcx, rcx
je 0x140002234
call fcn.1400018a4
jmp 0x140002236
xor eax, eax
mov qword [r14 + rbx*8], rax
inc rbx
cmp rbx, r15
jl 0x140002220
mov r14, qword [rbp + 0x18]
lea r12, [0x1400358b0]
mov ecx, r15d
mov rdx, r12
call r13
xor ebx, ebx
test r15d, r15d
jle 0x140002273
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
je 0x14000226b
call fcn.140009ba0
inc rbx
cmp rbx, r15
jl 0x14000225d
lea rdx, [rbp + 0x30]
mov ecx, esi
mov ebx, 3
call fcn.14000a014
test eax, eax
jne 0x1400022d4
mov r8d, dword [rbp + 0x44]
lea eax, [r8 + 5]
movsxd rcx, eax
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400022a5
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
int3
call r14
mov ecx, esi
call fcn.140017690
mov eax, ebx
jmp 0x1400022ee
mov eax, 2
jmp 0x1400022ee
mov eax, 1
mov rcx, qword [rbp + 0x60]
xor rcx, rbp
call fcn.1400093b0
lea rsp, [rbp + 0x78]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400024cc
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r14, rdx
lea rdx, str.Py_Initialize
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, r12
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, r12
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyErr_Print
mov rcx, r12
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r13, r13
je 0x14000258b
test rbx, rbx
je 0x14000258b
test rdi, rdi
je 0x14000258b
test rbp, rbp
je 0x14000258b
test rax, rax
je 0x14000258b
lea rcx, [0x140038640]
call rbx
call r13
mov rcx, r12
call fcn.140001ed0
mov rcx, r14
call rbp
mov ebx, eax
test eax, eax
je 0x140002585
call rsi
call rdi
mov eax, ebx
jmp 0x14000258e
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x140002a28
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov rsi, rdx
mov dword [rax - 0x20], 0x80
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002a71
xor eax, eax
jmp 0x140002ada
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, rbx
lea r8d, [r9 + 2]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x140002a6d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsi], ebp
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140004168
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r9, [0x140026818]
lea r8, [0x1400373a0]
lea rdx, str.runas
xor ecx, ecx
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x1400041e0
lea rdx, str.Failed_to_start_elevated_process__ShellExecute_returned__d_
lea rcx, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [0x1400272d8]
lea rdx, [rsp + 0x30]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400093b0
add rsp, 0xc8
ret

Function at 0x1400043b4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.14001e750
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.140008cf8
mov rdi, rax
test rax, rax
je 0x1400044ac
lea rcx, [rax + 1]
mov edx, 0x5d
call fcn.140008cf8
mov rbx, rax
test rax, rax
je 0x1400044ac
lea rcx, [rax + 1]
mov edx, 0xa
mov byte [rax], 0
call fcn.140008cf8
test rax, rax
je 0x14000441f
mov byte [rax], 0
mov rcx, qword [section..data]
lea rax, [rsp + 0x48]
lea rdx, [rdi + 1]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140004465
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_open_key
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400044a4
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x140004499
cmp eax, 2
je 0x140004499
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_delete_key
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call fcn.140009ba0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400044c4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.14001e750
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.140008cf8
mov rdi, rax
test rax, rax
je 0x1400045c0
lea rcx, [rax + 1]
mov edx, 0x5d
call fcn.140008cf8
mov rbx, rax
test rax, rax
je 0x1400045c0
lea rcx, [rax + 1]
mov edx, 0x3d
mov byte [rax], 0
call fcn.140008cf8
test rax, rax
je 0x1400045c0
mov byte [rax], 0
mov rcx, qword [section..data]
lea rax, [rsp + 0x48]
lea rdx, [rdi + 1]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140004579
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_open_key
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400045b8
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1400045ad
cmp eax, 2
je 0x1400045ad
call qword [sym.imp.USER32.dll_GetFocus]
lea r8, str.Could_not_delete_value
xor r9d, r9d
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call fcn.140009ba0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140004d30
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13d, edx
lea rdx, str.Py_Initialize
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PySys_GetObject
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_OptimizeFlag
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp qword [0x1400360b8], rcx
jne 0x140004dce
xor eax, eax
jmp 0x140004e15
test rdi, rdi
je 0x140004e12
test rsi, rsi
je 0x140004e12
test rbp, rbp
je 0x140004e12
test r12, r12
je 0x140004e12
test r14, r14
je 0x140004e12
test rax, rax
je 0x140004e12
test r13d, r13d
setne cl
mov dword [rax], ecx
lea rcx, [0x140038640]
call rsi
call rdi
mov edx, r13d
mov rcx, r12
call fcn.140004bd0
mov ebx, eax
call rbp
mov eax, ebx
jmp 0x140004e15
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x14000e0c1
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x140009ea0]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14000e17e
je 0x14000e195
insb byte [rdi], dx
cld
add byte [rax], al
je 0x14000e19f
jne 0x14000e169
lea rax, [0x14000d692]
add rax, 0xb32
call rax
je 0x14000e13a
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x14000e1a8
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret

Function at 0x140024c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140024cba
call fcn.14000f5ac
and dword [rax], 0
call fcn.14000f58c
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14000e584
mov eax, ebx
jmp 0x140024d0a
test edx, 0xfffffff9
jne 0x140024c9d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140024ce3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000f5cc
call fcn.14000f58c
mov eax, dword [rax]
jmp 0x140024d0a
test al, 0x10
jne 0x140024d08
test al, 1
je 0x140024d08
test bl, 2
je 0x140024d08
call fcn.14000f5ac
mov dword [rax], 5
call fcn.14000f58c
mov dword [rax], 0xd
jmp 0x140024cda
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400341a2
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400341a9
test al, 1
je 0x1400341c8
test al, 2
jne 0x1400341dd
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14008efa0]
mov edx, 0x23
jmp 0x1400341f0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14008ef60]
mov edx, 0x25
call fcn.140083e40
ud2

Function at 0x14003f7ec
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsi + 0x20]
add rsp, 0x50
pop rsi
ret

Function at 0x140051010
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400510a0
jmp 0x14005108f
jae 0x140051160
cmp r8, 0x201
jae 0x1400510a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400510f8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400510cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140083200
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140051121
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400511c8
mov r8d, r14d
cmp r15, r8
jne 0x140051080
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400511eb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14005108f
jmp 0x1400510a0
cmp rsi, r8
jb 0x140051205
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140055c60
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400511b1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140007d30
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140051199
jmp 0x1400511b1
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.Ey_t_
mov edx, 0x28
call fcn.140083e40
jmp 0x14005121a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140084370
ud2