joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c820
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14003e050]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x14000c85f
mov rax, qword [rdx]
mov word [rax], si
call fcn.14000c930
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x14000c87f
test dil, dil
jne 0x14000c8f9
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000c895
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x30]
call fcn.14001a000
mov r8d, 0x207
lea rdx, [rsp + 0x30]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14000c8d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140002c20
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400183b0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rdx, rcx
jmp 0x14000c820

Function at 0x14000cbe0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14003e050]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x14000c85f
mov rax, qword [rdx]
mov word [rax], si
call fcn.14000c930
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x14000c87f
test dil, dil
jne 0x14000c8f9
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000c895
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x30]
call fcn.14001a000
mov r8d, 0x207
lea rdx, [rsp + 0x30]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14000c8d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140002c20
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400183b0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rdx, rcx
jmp 0x14000c820
Function at 0x14000fbc0
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14003e050]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.140010770
nop
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], ax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14000a560
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], r14b
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x14000fc48
xor dil, dil
jmp 0x14000fc66
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14000fc5f
xor dil, dil
jmp 0x14000fc66
mov byte [rbp - 0x48], 1
mov dil, 1
mov byte [rbp - 0x38], dil
mov byte [rbp - 0x60], 0
lea r9, [rbp - 0x60]
mov r8, rsi
mov rdx, rbx
call fcn.14000fd50
test al, al
jne 0x14000fc9a
cmp byte [rbp - 0x60], al
je 0x14000fc9a
cmp qword [rbx + 0x18], 8
jb 0x14000fc90
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x14000fcb2
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000fcae
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x40], r14
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000fcc9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14000fd0b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fd06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fd41
call fcn.14001867c
movdqa xmm0, xmmword [0x140035d00]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400183b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14001c634
int3
Function at 0x140012000
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14003e050]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], 0x114
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, 0x110
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call fcn.14001a000
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x140012080
cmp dword [rsp + 0x24], 6
jb 0x140012080
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400183b0
add rsp, 0x150
pop rbx
ret
Function at 0x1400120a0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x48], xmm0
movdqa xmm1, xmmword [0x140035d00]
movdqu xmmword [rax - 0x48], xmm1
xor ebp, ebp
mov word [rax - 0x58], bp
lea r8d, [rbp + 0xc]
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x58]
call fcn.140002c20
nop
call fcn.140003470
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140003510
mov rbx, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140012146
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012141
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400122ed
call fcn.14001867c
movdqa xmm0, xmmword [0x140035d00]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x140035d00]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], bp
mov r8d, 0xb
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x40]
call fcn.140002c20
nop
call fcn.140003470
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140003510
mov rdi, rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400121e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400121df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400122e7
call fcn.14001867c
movdqa xmm0, xmmword [0x140035d00]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bp
test rbx, rbx
je 0x1400122d1
test rdi, rdi
je 0x1400122d1
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14001c634
int3
call fcn.14001c634
int3
Function at 0x140017270
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x880
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14003e050]
xor rax, rsp
mov qword [rsp + 0x870], rax
call fcn.140008dc0
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400172bd
mov rcx, rax
call fcn.140007c90
nop
mov ecx, dword [0x14003f128]
lea rsi, [0x14003ed00]
xor ebp, ebp
test cl, 1
jne 0x140017305
or ecx, 1
mov dword [0x14003f128], ecx
xor edx, edx
mov r8d, 0x412
mov rcx, rsi
call fcn.14001a000
mov qword [0x14003f118], rbp
mov byte [0x14003f120], bpl
lea rcx, [0x14002b7d0]
call fcn.140018928
nop
cmp byte [0x14003f120], 0
jne 0x1400174c0
mov byte [0x14003f120], 1
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.14001a000
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x20]
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x140017371
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x14001736c
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140017371
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140017371
mov word [rsp + 0x40], bp
lea rcx, [rsp + 0x40]
sub rcx, 2
nop word [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140017380
mov eax, dword [0x140034934]
mov dword [rcx], eax
lea rax, [rsp + 0x40]
sub rax, 2
nop dword [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x1400173a0
movups xmm0, xmmword [str.2345Pic]
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400173c9
mov word [rsp + 0x40], bp
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x450]
call fcn.14001a000
lea rcx, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400173f0
test rax, rax
je 0x14001748a
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x450]
call fcn.14001e9b4
lea rcx, [rsp + 0x450]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140017426
test rax, rax
je 0x14001748a
lea rcx, [rsp + 0x450]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140017441
mov eax, dword [0x140034934]
mov dword [rcx], eax
lea rcx, [rsp + 0x450]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140017460
movups xmm0, xmmword [str.2345Image.hzv]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x14002c518]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [0x14002c520]
mov dword [rcx + 0x18], eax
call fcn.14000b060
lea rcx, [rsp + 0x450]
nop word [rax + rax]
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x1400174a0
test rbx, rbx
je 0x1400174c0
lea rdx, [rsp + 0x450]
mov rcx, rax
call fcn.14000b150
nop
test rdi, rdi
je 0x1400174d2
mov rcx, rdi
call fcn.140007ca0
mov qword [rsp + 0x28], rbp
mov rax, rsi
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1400183b0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140017510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140017556
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017556
test al, 0x10
jne 0x140017556
call fcn.14000b060
mov rdx, rbx
mov rcx, rax
call fcn.14000b3e0
test al, al
jne 0x140017563
mov rdx, rbx
mov rcx, rdi
call fcn.1400175d0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
Function at 0x14001f588
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f2ec
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401599c0]
mov dword [rax], 1
mov rax, qword [0x1401599d0]
mov dword [rax], 1
mov rax, qword [0x1401599e0]
mov dword [rax], 1
mov rax, qword [0x140159960]
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 0x1400b9b20
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.1401338a0
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 0x1400b9be5
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 0x1401447a2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400b9bc6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400b9bb8
test rsi, rsi
je 0x1401447a2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400b9b78
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 0x1400b9c14
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 0x1400b9c30
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 0x1400b9ced
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 0x1401447a8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400b9cce
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400b9cc0
test rsi, rsi
je 0x1401447a8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400b9c80
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 0x1400d8af0
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 [0x14016f850]
mov rsi, rcx
test rbx, rbx
je 0x1400d8b70
mov rax, qword [0x140159b10]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1400d8b60
mov rdx, qword [0x14016fa88]
test rdx, rdx
je 0x1400d8c60
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 0x1400d8b41
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1400b9b20
test rax, rax
je 0x1400d8c80
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 0x140144842
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400d8c0e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400d8c00
test rbx, rbx
je 0x140144842
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 0x1400d8bc0
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.1400d8980
mov rbx, rax
mov qword [0x14016f850], rbx
jmp 0x1400d8b12
lea rcx, [0x140156052]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x14016fa88], rax
mov rdx, rax
jmp 0x1400d8b32
mov rbx, qword [0x14016f868]
test rbx, rbx
jne 0x1400d8c51
cmp byte [0x14016fa82], 0
je 0x1400d8cc3
mov rdx, 0xffffffffffffffff
lea rcx, [0x14016f880]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x14016f868], rax
mov rbx, rax
test rax, rax
je 0x1400d8ccf
mov eax, dword [rax]
add eax, 1
je 0x1400d8c51
mov dword [rbx], eax
jmp 0x1400d8c51
mov ecx, 1
call fcn.1400ba7a0
jmp 0x1400d8c95
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 0x1400d9550
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.1400b9b20
test rax, rax
je 0x1400d96a0
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 0x14014485a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1400d9606
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400d95f8
test rbx, rbx
je 0x14014485a
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 0x1400d95b8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1401701c0]
mov rsi, rax
mov rax, qword [0x140159b10]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1400d970d
mov rdx, rbx
call fcn.1400aa1f0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400cd120
mov rdx, qword [rbx]
test edx, edx
js 0x1400d9682
sub rdx, 1
mov qword [rbx], rdx
je 0x1400d96f5
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14016f860]
lea rsi, [0x14016f860]
test bl, bl
je 0x1400d96c0
mov rax, qword [0x14016f868]
lea rsi, [0x14016f868]
test rax, rax
jne 0x1400d9682
cmp byte [0x14016fa82], 0
je 0x1400d9737
mov rdx, 0xffffffffffffffff
lea rcx, [0x14016f880]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400d9741
mov edx, dword [rax]
add edx, 1
je 0x1400d9682
mov dword [rax], edx
jmp 0x1400d9682
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400d9682
mov rcx, qword [0x140170138]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1400d974c
mov rdx, rdi
call fcn.1400aa1f0
mov qword [0x1401701c0], rax
mov rcx, rax
jmp 0x1400d9659
movzx ecx, bl
call fcn.1400ba7a0
jmp 0x1400d96ce
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140150c33]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x140170138], rax
mov rcx, rax
test rax, rax
je 0x14014485a
jmp 0x1400d9720
Function at 0x14012ff90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14016f841], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140130038
lea rdx, [0x14015592a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401300a0
mov rbx, qword [0x14016f6e0]
jmp 0x14012ffd5
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 0x14012ffd0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140130027
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14011ff90
mov r8, rax
cmp rdi, rbx
jne 0x140130010
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 [0x14016f6e0], rax
mov ebx, dword [rax]
mov qword [0x14016f6e0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14016f6e0], rdx
call fcn.14012f0c0
cmp eax, ebx
jne 0x140130108
mov byte [0x14016f841], 1
jmp 0x14012ffb0
cmp byte [0x14016f840], 0
jne 0x14012ffc7
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1401703e8], rax
call rbx
mov qword [0x1401703e0], rax
call rbx
mov qword [0x1401703d8], rax
call rbx
mov qword [0x1401703d0], rax
call rbx
mov qword [0x1401703c8], rax
call rbx
mov qword [0x1401703c0], rax
call rbx
mov qword [0x1401703b8], rax
call rbx
mov byte [0x14016f840], 1
mov qword [0x1401703b0], rax
jmp 0x14012ffc7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140132580
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.140143d00
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.140143d00
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