joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004ed0
Capabilities:
Get proxy
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x280
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
lea r8, [rsp + 0x38]
xor ebp, ebp
xor edx, edx
mov dword [rcx], ebp
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000505a
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x2a0], rdi
mov r9d, 0x104
xor edx, edx
mov edi, ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140005047
mov qword [rsp + 0x298], rbx
lea r8, [rsp + 0x50]
lea rdx, [0x140001358]
lea rcx, [rsp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14000501d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140001398]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov dword [rsp + 0x30], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140005012
mov eax, dword [rsp + 0x30]
cmp eax, 1
jbe 0x140005012
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000500c
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140001398]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140005001
mov rdx, rbx
mov rcx, rsi
call fcn.140005080
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140005012
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
inc edi
mov r9d, 0x104
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140004f44
mov rbx, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2a0]
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140005fc0
mov rbp, qword [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
add rsp, 0x280
pop rsi
ret
Function at 0x1400057e0
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x148
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
movzx r14d, r8w
mov ebp, edx
mov rdi, rcx
call fcn.140003fb0
mov esi, eax
cmp eax, 0xffffffff
jne 0x140005820
mov rax, 0xffffffffffffffff
jmp 0x14000592a
xor r8d, r8d
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x140], r15
mov r15d, 2
mov ecx, r15d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000585a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140005913
movzx ecx, word [rdi + 0x30]
mov dword [rsp + 0x24], esi
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x20], r15w
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140005904
xor edx, edx
lea rcx, [rsp + 0x38]
mov r8d, 0xf8
call fcn.140005f00
movzx ecx, r14w
mov word [rsp + 0x30], 0x104
mov dword [rsp + 0x34], ebp
call qword [sym.imp.WS2_32.dll_htons]
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov word [rsp + 0x32], ax
lea r8d, [r9 + 9]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140005904
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140005b20
cmp eax, 8
jne 0x14000590a
cmp byte [rsp + 0x31], 0x5a
jne 0x14000590a
cmp dword [rsp + 0x34], 0
je 0x14000590a
cmp word [rsp + 0x32], 0
je 0x14000590a
mov rax, rbx
jmp 0x14000591a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x178]
mov r15, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140005fc0
add rsp, 0x148
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005950
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x148
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
movzx r14d, r8w
mov ebp, edx
mov rdi, rcx
call fcn.140003fb0
mov esi, eax
cmp eax, 0xffffffff
jne 0x140005990
mov rax, 0xffffffffffffffff
jmp 0x140005af5
xor r8d, r8d
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x140], r15
mov r15d, 2
mov ecx, r15d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400059ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140005ade
movzx ecx, word [rdi + 0x30]
mov dword [rsp + 0x24], esi
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x20], r15w
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140005acf
xor edx, edx
lea rcx, [rsp + 0x32]
mov r8d, 0xfe
call fcn.140005f00
xor r9d, r9d
mov word [rsp + 0x30], 0x105
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140005acf
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140005b20
cmp eax, r15d
jne 0x140005ad5
cmp byte [rsp + 0x30], 5
jne 0x140005ad5
cmp byte [rsp + 0x31], 0
jne 0x140005ad5
movzx ecx, r14w
mov dword [rsp + 0x30], 0x1000105
mov dword [rsp + 0x34], ebp
call qword [sym.imp.WS2_32.dll_htons]
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov word [rsp + 0x38], ax
lea r8d, [r9 + 0xa]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140005acf
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140005b20
cmp eax, 0xa
jne 0x140005ad5
cmp byte [rsp + 0x30], 5
jne 0x140005ad5
cmp byte [rsp + 0x31], 0
jne 0x140005ad5
cmp dword [rsp + 0x34], 0
je 0x140005ad5
cmp word [rsp + 0x38], 0
je 0x140005ad5
mov rax, rbx
jmp 0x140005ae5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x178]
mov r15, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140005fc0
add rsp, 0x148
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005b20
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rsp + 0x460], rax
movsxd rsi, r8d
lea rax, [rsp + 0x30]
mov rdi, rdx
mov qword [rsp + 0x258], rcx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x250]
mov dword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x34], 0x2710
lea r9, [rsp + 0x40]
mov dword [rsp + 0x250], 1
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x140005bf0
test eax, eax
jle 0x140005bf6
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x140005bf6
lea rdx, [rsp + 0x250]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140005bf6
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.140005f00
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140005bf0
test eax, eax
jne 0x140005bfb
jmp 0x140005bf6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140005fc0
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret

Function at 0x140005c20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
test r8d, r8d
jle 0x140005ca3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov rbx, rdx
movsxd rdi, r8d
nop word [rax + rax]
movzx r11d, byte [rcx + 0x100]
lea rbx, [rbx + 1]
inc r11b
movzx r9d, r11b
movzx r8d, byte [r9 + rcx]
movzx r10d, r8b
add r10b, byte [rcx + 0x101]
movzx edx, r10b
movzx eax, byte [rdx + rcx]
mov byte [r9 + rcx], al
mov byte [rdx + rcx], r8b
movzx edx, byte [r9 + rcx]
add rdx, r8
movzx eax, dl
movzx edx, byte [rax + rcx]
xor byte [rbx - 1], dl
mov byte [rcx + 0x100], r11b
mov byte [rcx + 0x101], r10b
sub rdi, 1
jne 0x140005c40
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401bac00]
mov dword [rax], 1
mov rax, qword [0x1401bac10]
mov dword [rax], 1
mov rax, qword [0x1401bac20]
mov dword [rax], 1
mov rax, qword [0x1401baba0]
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 0x14012a900
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140195420
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14012a9a9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14012a96e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14012a960
test rax, rax
je 0x1401a632e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14012a948
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14012a9d8
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14012a9f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14012aa91
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14012aa56
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14012aa48
test rax, rax
je 0x1401a6334
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14012aa30
mov rdx, r14
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 0x1401539a0
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.14012a900
test rax, rax
je 0x140153ae0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x140153a1e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140153a10
test rax, rax
je 0x1401a63d4
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x140153a00
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x1401d5f40]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x1401bad50]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x140153b38
mov rdx, rbx
call fcn.140110b70
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140147be0
sub qword [rbx], 1
jne 0x140153ac6
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1401d5800]
lea rsi, [0x1401d5800]
test bl, bl
je 0x140153b00
mov rax, qword [0x1401d5808]
lea rsi, [0x1401d5808]
test rax, rax
jne 0x140153ac6
cmp byte [0x1401d5a22], 0
jne 0x140153b16
movzx ecx, bl
call fcn.140112ba0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1401d5820]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140153b62
add qword [rax], 1
jmp 0x140153ac6
mov rcx, qword [0x1401d5eb8]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x140153b6d
mov rdx, rdi
call fcn.140110b70
mov qword [0x1401d5f40], rax
mov rcx, rax
jmp 0x140153a93
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1401b301b]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1401d5eb8], rax
mov rcx, rax
test rax, rax
je 0x1401a63d4
jmp 0x140153b4b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python311.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x14018b660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401d57e9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14018b6e8
lea rdx, [0x1401b6ada]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14018b750
mov rbx, qword [0x1401d56a0]
jmp 0x14018b6a5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
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 0x14018b6a0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14017a830
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 [0x1401d56a0], rax
mov ebx, dword [rax]
mov qword [0x1401d56a0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401d56a0], rdx
call fcn.14018a790
cmp eax, ebx
jne 0x14018b7b8
mov byte [0x1401d57e9], 1
jmp 0x14018b67c
cmp byte [0x1401d57e8], 0
jne 0x14018b693
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1401d6148], rax
call rbx
mov qword [0x1401d6140], rax
call rbx
mov qword [0x1401d6138], rax
call rbx
mov qword [0x1401d6130], rax
call rbx
mov qword [0x1401d6128], rax
call rbx
mov qword [0x1401d6120], rax
call rbx
mov qword [0x1401d6118], rax
call rbx
mov byte [0x1401d57e8], 1
mov qword [0x1401d6110], rax
jmp 0x14018b693
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140194100
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.1401a5880
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.1401a5880
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 0x140194dd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401d6608]
test eax, eax
je 0x140194e6a
lea rax, [0x1401d65e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401d6610]
mov qword [rbp - 8], rax
jmp 0x140194e4e
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 0x140194e42
cmp qword [rbp - 0x10], 0
je 0x140194e42
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 0x140194e08
lea rax, [0x1401d65e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140194e6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140194f70
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 0x140194f98
mov eax, 0
jmp 0x140194fe6
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 0x140194fc1
mov eax, 0
jmp 0x140194fe6
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 0x140194fe1
mov eax, 0
jmp 0x140194fe6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140194fec
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 0x14019506a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140195061
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 0x140195061
mov rax, qword [rbp - 8]
jmp 0x14019507f
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 0x140195034
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002140
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14013c170]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea rdx, str.Device_Description
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x100
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400021c0
lea rdx, str.VirtualBox_Graphics_Adapter
lea rcx, [rsp + 0x40]
mov word [rsp + 0x76], ax
call sym.VBoxControl.exe_RTUtf16ICmpAscii
test eax, eax
jne 0x1400021c0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400057e0
add rsp, 0x158
ret
mov eax, 0xffffffb2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400057e0
add rsp, 0x158
ret
Function at 0x140002710
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ecx, ecx
call fcn.1400021e0
mov rbx, rax
test rax, rax
je 0x1400027a3
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
lea rdx, str.VBoxVideoFlags
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140002782
lea rcx, str.Video_flags:_default_n
call sym.VBoxControl.exe_RTPrintf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov edx, dword [rsp + 0x40]
lea rcx, str.Video_flags:_0x_08X_n
call sym.VBoxControl.exe_RTPrintf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400027b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x40
mov rax, r8
movzx esi, cl
cmp edx, 1
je 0x1400027e1
lea rcx, str.Mask_required._n
call fcn.140001820
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rcx, qword [rax]
xor ebx, ebx
lea r8, [rsp + 0x68]
lea edx, [rbx + 0x10]
mov dword [rsp + 0x68], ebx
call sym.VBoxControl.exe_RTStrToUInt32Full
test eax, eax
jns 0x140002815
lea rcx, str.Invalid_video_flags_mask._n
call fcn.140001820
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov cl, 1
mov qword [rsp + 0x50], rdi
call fcn.1400021e0
mov rdi, rax
test rax, rax
je 0x1400028e2
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea rdx, str.VBoxVideoFlags
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x58]
test eax, eax
cmovne ecx, ebx
test sil, sil
je 0x140002879
or ecx, dword [rsp + 0x68]
jmp 0x140002881
mov eax, dword [rsp + 0x68]
not eax
and ecx, eax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], ecx
lea rdx, str.VBoxVideoFlags
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400028c7
lea rcx, str.Error__d_writing_video_flags._n
mov edx, eax
call fcn.140001820
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rdi, qword [rsp + 0x50]
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret