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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180031a87
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x180031a3a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18003ff60
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18003fa10
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1800f8bf0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180031a8f
mov rcx, rbx
call fcn.18003fa10
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18003a360
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1800f8be8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5b7c], ecx
test rbx, rbx
je 0x18003a3cf
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.18003a3e0
lea rdx, [0x1800c04d4]
mov rcx, rbx
mov rdi, rax
call fcn.18002f230
mov rbx, rax
test rax, rax
je 0x18003a3ca
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x18003e530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x1800f8be8]
cmp byte [rbx + 0x5b79], 0
jne 0x18003e68a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18003e683
lea rdx, [0x1800bddb8]
mov qword [rsp + 0x40], rdi
call fcn.18002f230
mov rdi, rax
test rax, rax
je 0x18003e67e
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18003e66b
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18003e66b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x18003e66b
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18003e66b
cmp rsi, 0xffffffffffffffff
je 0x18003e66b
mov rax, qword [0x1800f8be8]
test rax, rax
je 0x18003e5f5
inc dword [rax + 0xf4]
mov rdx, qword [0x1800f8bf8]
mov rcx, rsi
call qword [0x1800f7ee0]
mov rbp, rax
test rax, rax
je 0x18003e66b
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x18003e631
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18003e647
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x18003e647
mov rdx, rsi
mov rcx, rbp
call fcn.180031510
mov rax, qword [0x1800f8be8]
test rax, rax
je 0x18003e659
dec dword [rax + 0xf4]
mov rdx, qword [0x1800f8bf8]
mov rcx, rbp
call qword [0x1800f7ee8]
jmp 0x18003e674
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5b79], 1
movss xmm0, dword [rbx + 0x5b7c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18003e6cd
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5b7c], xmm0
jb 0x18003e6cd
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18003e6bc
call fcn.18003a360
jmp 0x18003e6c3
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5b7c], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180042a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800f8be8]
mov rcx, qword [rax + 0x4ae8]
mov r10, qword [rax + 0x3ea0]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x290]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x230], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x290]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp 0x180016940

Function at 0x180042b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800f8be8]
mov rcx, qword [rax + 0x4ae8]
mov r9, qword [rax + 0x3ea0]
movups xmm0, xmmword [r9 + 0x230]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x230], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x20f]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x290]
add rsp, 0x38
jmp 0x180016940
Function at 0x180055be0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x1800f8d00]
lea rdi, str.NONE
mov rax, qword gs:[0x58]
mov rsi, rdx
mov edx, 4
mov rbx, r8
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1800f8c78], eax
jg 0x180055ce3
mov rcx, qword [0x1800f8c70]
mov rdx, rbx
call fcn.180049bf0
test al, al
je 0x180055c4d
lea rax, [0x1800bde7c]
mov byte [0x1800f8c7c], 1
mov qword [0x1800f8c70], rax
jmp 0x180055c56
cmp byte [0x1800f8c7c], 0
je 0x180055cc5
mov rbx, qword [0x1800f8c58]
mov rdi, qword [0x1800f8c60]
cmp rbx, rdi
je 0x180055c86
nop dword [rax]
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x180055cd3
add rbx, 4
cmp rbx, rdi
jne 0x180055c70
lea rbx, [0x1800c49d0]
lea rdi, str.map_set_too_long
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180055cac
mov eax, dword [rbx]
mov dword [rsi], eax
mov byte [0x1800f8c7c], 0
add rbx, 4
cmp rbx, rdi
jne 0x180055c94
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rsi]
mov rax, qword [rdi + rax*8]
mov qword [0x1800f8c70], rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x1800f8c78]
call fcn.180056fb0
cmp dword [0x1800f8c78], 0xffffffff
jne 0x180055c23
movsxd rax, dword [rsi]
lea rcx, [0x1800f8c78]
mov rax, qword [rdi + rax*8]
mov qword [0x1800f8c70], rax
call fcn.180056f44
jmp 0x180055c23

Function at 0x1800564fc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180056536
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18005653b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180056584
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800c4ca0]
cmp byte [rcx + rax], 0
je 0x180056584
dec r8
sub rdx, 1
jne 0x18005656a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000101c
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 0x1400010d6
cmp byte [rbx], 0
je 0x1400010d6
mov edx, 0x5c
mov rcx, rbx
call fcn.1400089d0
mov rbx, rax
test rax, rax
je 0x1400010d6
mov rcx, rsi
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400010a2
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140001098
test rdi, rdi
je 0x140001098
lea rdx, str.CreateDirectory___s_
lea ecx, [rax + 5]
mov r8, rsi
call rdi
jmp 0x1400010a2
mov rdx, rsi
mov ecx, 1
call rdi
test bpl, 0x10
jne 0x1400010c9
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400010c9
lea rdx, str.CreateDirectory___s_
mov r8, rsi
mov ecx, 5
call rdi
mov byte [rbx], 0x5c
add rbx, 1
jne 0x140001042
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 0x140001e6c
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
cmp rdi, rbx
je 0x140001ff1
cmp rsi, rbx
je 0x140001ff1
cmp r14, rbx
je 0x140001ff1
cmp r15, rbx
je 0x140001ff1
cmp rbp, rbx
je 0x140001ff1
cmp r12, rbx
je 0x140001ff1
cmp r13, rbx
je 0x140001ff1
lea rcx, str.__builtin__
call rdi
mov rdi, rax
cmp rax, rbx
je 0x140001fcc
lea rdx, str.ValueError
mov rcx, rax
call rsi
lea rdx, str.OSError
mov rcx, rdi
mov qword [0x140037b90], rax
call rsi
lea rbp, str.create_shortcut
mov rsi, rbp
mov qword [0x140037d28], 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 0x140001fa1
mov rbp, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [0x140037bf0], rbp
mov qword [0x140036b28], r12
mov qword [0x140037b70], rax
xor eax, eax
mov qword [0x140036b30], r13
jmp 0x140001ff6
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 0x14000200c
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x1400342a0]
xor rax, rbp
mov qword [rbp + 0x50], rax
mov rbx, rdx
lea rdx, str.Py_Initialize
mov qword [rbp + 0x18], r9
mov dword [rbp], r8d
mov r14, rcx
mov qword [rbp + 8], rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PySys_SetArgv
mov rcx, r14
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, r14
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_BuildValue
mov rcx, r14
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyCFunction_New
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyArg_ParseTuple
mov rcx, r14
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 8]
lea rdx, str.PyErr_Format
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbp + 0x10], 0
je 0x14000221f
test rdi, rdi
je 0x14000221f
test r13, r13
je 0x14000221f
test r12, r12
je 0x14000221f
test rsi, rsi
je 0x14000221f
test r14, r14
je 0x14000221f
test rax, rax
je 0x14000221f
test r15, r15
je 0x14000221f
test rbx, rbx
je 0x140002218
cmp byte [rbx], 0
je 0x140002218
xor edx, edx
mov rcx, rbx
call fcn.140022450
mov esi, eax
cmp eax, 0xffffffff
jne 0x140002178
call fcn.14000a3b0
lea rdx, str.Could_not_open_postinstall_script__s_n
mov r8, rbx
lea rcx, [rax + 0x60]
call fcn.14000a190
lea eax, [rsi + 4]
jmp 0x140002224
mov rcx, qword [0x140037c00]
lea r8, str.Running_Script...
mov edx, 0x3ec
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
call qword [rbp + 0x10]
mov rcx, qword [rbp + 8]
call fcn.140001e6c
mov rdx, qword [rbp + 0x18]
mov ecx, dword [rbp]
call rdi
lea rdx, [rbp + 0x20]
mov ecx, esi
mov ebx, 3
call fcn.140009d50
test eax, eax
jne 0x14000220a
mov r8d, dword [rbp + 0x34]
lea eax, [r8 + 5]
movsxd rcx, eax
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400021d8
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
int3
call r12
mov ecx, esi
call fcn.140017ba4
mov eax, ebx
jmp 0x140002224
mov eax, 2
jmp 0x140002224
mov eax, 1
mov rcx, qword [rbp + 0x50]
xor rcx, rbp
call fcn.140009080
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x60]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002414
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 0x1400024d3
test rbx, rbx
je 0x1400024d3
test rdi, rdi
je 0x1400024d3
test rbp, rbp
je 0x1400024d3
test rax, rax
je 0x1400024d3
lea rcx, [0x140036900]
call rbx
call r13
mov rcx, r12
call fcn.140001e6c
mov rcx, r14
call rbp
mov ebx, eax
test eax, eax
je 0x1400024cd
call rsi
call rdi
mov eax, ebx
jmp 0x1400024d6
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 0x140002990
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 0x1400029d9
xor eax, eax
jmp 0x140002a42
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 0x1400029d5
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 0x1400040e8
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r9, [0x140027838]
lea r8, [0x140036900]
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 0x140004160
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, [0x1400282f8]
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.140009080
add rsp, 0xc8
ret

Function at 0x140004340
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.14001e864
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.1400089d0
mov rdi, rax
test rax, rax
je 0x140004438
lea rcx, [rax + 1]
mov edx, 0x5d
call fcn.1400089d0
mov rbx, rax
test rax, rax
je 0x140004438
lea rcx, [rax + 1]
mov edx, 0xa
mov byte [rax], 0
call fcn.1400089d0
test rax, rax
je 0x1400043ab
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 0x1400043f1
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 0x140004430
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x140004425
cmp eax, 2
je 0x140004425
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.1400098ac
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140004450
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.14001e864
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.1400089d0
mov rdi, rax
test rax, rax
je 0x14000454c
lea rcx, [rax + 1]
mov edx, 0x5d
call fcn.1400089d0
mov rbx, rax
test rax, rax
je 0x14000454c
lea rcx, [rax + 1]
mov edx, 0x3d
mov byte [rax], 0
call fcn.1400089d0
test rax, rax
je 0x14000454c
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 0x140004505
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 0x140004544
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140004539
cmp eax, 2
je 0x140004539
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.1400098ac
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140004ca4
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 [0x1400358d8], rcx
jne 0x140004d42
xor eax, eax
jmp 0x140004d89
cmp rdi, rcx
je 0x140004d86
cmp rsi, rcx
je 0x140004d86
cmp rbp, rcx
je 0x140004d86
cmp r12, rcx
je 0x140004d86
cmp r14, rcx
je 0x140004d86
cmp rax, rcx
je 0x140004d86
cmp r13d, ecx
setne cl
mov dword [rax], ecx
lea rcx, [0x140036900]
call rsi
call rdi
mov edx, r13d
mov rcx, r12
call fcn.140004b44
mov ebx, eax
call rbp
mov eax, ebx
jmp 0x140004d89
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 0x14000e035
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
Function at 0x140014830
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001483d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001484d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140014835
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140014865
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140014852
sub eax, 3
jb 0x14001487f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400148b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400148a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400148a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140014893
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400147f2
jmp 0x14001483d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8e00
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140014906
cmp rsi, rcx
jae 0x14001490e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400148ed
cmp al, 0x8f
ja 0x1400148ed
cmp byte [rsi - 2], 0xf
je 0x1400148f3
sub al, 0xe8
cmp al, 1
ja 0x1400148d7
cmp rsi, rcx
jae 0x14001490e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400148dd
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001490e
lodsb al, byte [rsi]
jmp 0x1400148ed
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x12000]
mov eax, dword [rdi]
or eax, eax
je 0x14001496b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x141b8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14001491b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140014965
mov qword [rbx], rax
add rbx, 8
jmp 0x14001493b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400149c3
sub rsp, 0xffffffffffffff80
jmp 0x140008c84