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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.14000fc80
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x140013e76
lea rcx, [rbp - 0x50]
call fcn.14000dce0
mov qword [rsi], rdi
jmp 0x140014079
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x408], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140013f00
jmp 0x140013eef
jae 0x140013fc3
cmp r8, 0x201
jae 0x140013f00
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140013f58
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140013f2f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.14003ed70
mov rdi, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x418], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140013f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014003
mov r8d, r14d
cmp r15, r8
jne 0x140013ee0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400140af
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140013eef
jmp 0x140013f00
cmp rsi, r8
jb 0x1400140c9
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140011bb0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rbx, 0x8000000000000000
jmp 0x140014029
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rbx, 0x8000000000000000
mov qword [rbp + 0x3d0], rbx
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140014046
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.1400014a0
cmp qword [rbp + 0x3d0], rbx
jne 0x14001408e
mov qword [rsi], rbx
lea rcx, [rbp + 0x3d8]
call fcn.14000dce0
cmp qword [rbp + 0x408], 0
je 0x140014079
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.1400014a0
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140014068
jmp 0x140014079
lea rcx, str.internal_error:_entered_unreachable_code_registry_srcindex.crates.io_6f17d22bba15001f_serde_json_1.0.115_src_ser.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14003e1a0
jmp 0x1400140de
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003e120
ud2
Function at 0x140017830
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
sub esp, 0x70
Function at 0x140022820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
in al, dx
jo 0x140022874
mov esi, ecx
Function at 0x140025510
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14002554f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140014ae0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003dfe0
ud2

Function at 0x1400273f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14002753b
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140027427
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140027525
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140027508
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140027489
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400274bb
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1400274bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400274c3
cmp eax, 0x6d
jne 0x1400274ee
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400274c8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400274f4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.14000dce0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400274fe
cmp rax, 1
je 0x140027472
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14002747c
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14003ee30
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140027434
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.14003ee30
mov rax, qword [rbx]
jmp 0x140027427
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14003f270
int3
Function at 0x14002de92
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov qword [rsp + 0x38], rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140019fe0
cmp qword [rdi], 0
je 0x14002e0b5
lea rax, [rsp + 0x40]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
lea rax, [rsp + 0x30]
and qword [rax], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x78], rax
xor r15d, r15d
mov rdi, qword [rsp + 0x88]
cmp rdi, qword [rsp + 0x78]
je 0x14002e098
mov rax, rdi
add rdi, 0x20
mov qword [rsp + 0x88], rdi
movzx r12d, word [rax]
cmp r12w, 2
je 0x14002e098
mov esi, dword [rax + 0x14]
mov ebx, dword [rax + 0x18]
movzx r13d, word [rax + 0x1c]
movzx eax, word [rdi - 0xe]
mov word [rsp + 0x70], ax
movups xmm0, xmmword [rdi - 0x1e]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [0x140056bf8]
cmp rax, 3
jne 0x14002e08e
test r12w, r12w
mov ebp, 2
je 0x14002df65
mov ebp, 0x17
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14002dfa5
test r12w, r12w
je 0x14002e00a
mov r8d, 0x1c
mov ax, 0x17
movups xmm0, xmmword [rsp + 0x62]
jmp 0x14002e021
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14002dfc0
mov r15d, eax
cmp eax, 0x2726
jne 0x14002e067
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14002e083
mov r14, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14002df8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002e05b
movzx r13d, word [rsp + 0x64]
mov esi, dword [rsp + 0x60]
mov r8d, reloc.WS2_32.dll_recv
mov ax, 2
xorps xmm0, xmm0
rol r13w, 8
mov word [rsp + 0x40], ax
mov word [rsp + 0x42], r13w
mov dword [rsp + 0x44], esi
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], ebx
mov rcx, r14
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14002e0df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r15d, eax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
shl r15, 0x20
or r15, 2
lea rcx, [rsp + 0x30]
call fcn.14002d86d
mov qword [rsp + 0x30], r15
jmp 0x14002defe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r15d, eax
jmp 0x14002e067
call fcn.14003f0d0
jmp 0x14002df55
lea rcx, [rsp + 0x80]
call fcn.14002e63a
test r15, r15
lea rax, str.could_not_resolve_to_any_addresses
cmovne rax, r15
jmp 0x14002e0ba
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 8], rax
mov eax, 1
mov qword [rcx], rax
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x80]
call fcn.14002e63a
lea rcx, [rsp + 0x30]
call fcn.14002d86d
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 8], r14
xor eax, eax
jmp 0x14002e0c8
Function at 0x14002f0fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002f146
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002f146
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002f146
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002f146
cmp dword [rcx + 0x84], 0xe
jbe 0x14002f146
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002f148
xor al, al
add rsp, 0x28
ret

Function at 0x14003387c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140033678
Function at 0x14003693c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003696c
xor eax, eax
jmp 0x140036a2f
mov rbp, rbx
cmp word [rax], si
je 0x140036991
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140036978
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140036974
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003685c
movsxd r14, eax
test eax, eax
jne 0x1400369cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140036965
mov rcx, r14
call fcn.140037818
mov rdi, rax
test rax, rax
jne 0x1400369e8
xor ecx, ecx
call fcn.140034ebc
jmp 0x1400369c4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003685c
test eax, eax
jne 0x140036a19
mov rcx, rdi
call fcn.140034ebc
jmp 0x140036a23
xor ecx, ecx
call fcn.140034ebc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140039f20
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003592c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140039faa
cmp byte [rbp - 0x21], r15b
je 0x140039fa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140039fe0
call fcn.140038028
test eax, eax
jne 0x140039fcc
cmp byte [rbp - 0x21], r15b
je 0x140039fc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140039fe0
cmp byte [rbp - 0x21], r15b
je 0x140039fdd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140034f0c
test eax, eax
jne 0x14003a080
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003592c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003a01f
cmp byte [rbp - 0x21], r15b
je 0x14003a054
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003a054
call fcn.140038028
test eax, eax
jne 0x14003a040
cmp byte [rbp - 0x21], r15b
je 0x14003a039
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003a054
cmp byte [rbp - 0x21], r15b
je 0x14003a051
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140034f0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003a080
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003a083
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003a091
mov rcx, rdi
call fcn.140034ebc
cmp byte [rbp + 0x3f], r15b
je 0x14003a0a0
mov rcx, qword [rbp + 0x27]
call fcn.140034ebc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003cf80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003cfa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003cfa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14003f130
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140001670
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14003f1bf
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14003f1f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14003f204
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14003f21c
mov rcx, qword [rsp + 0x38]
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400014a0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x14003f21c
mov edx, 1
mov rcx, rdi
call fcn.1400014a0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400acfe0]
mov dword [rax], 1
mov rax, qword [0x1400acff0]
mov dword [rax], 1
mov rax, qword [0x1400ad000]
mov dword [rax], 1
mov rax, qword [0x1400acf80]
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 0x14001e150
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400894b0
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 0x14001e1f9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14001e1be
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001e1b0
test rax, rax
je 0x14009a3ae
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 0x14001e198
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 0x14001e228
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 0x14001e240
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 0x14001e2e1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14001e2a6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001e298
test rax, rax
je 0x14009a3b4
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 0x14001e280
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 0x140046d70
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.14001e150
test rax, rax
je 0x140046eb0
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 0x140046dee
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140046de0
test rax, rax
je 0x14009a44e
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 0x140046dd0
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x1400be8f8]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x1400ad110]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140046f08
mov rdx, rbx
call fcn.140004200
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003b380
sub qword [rbx], 1
jne 0x140046e96
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 [0x1400be1c0]
lea rsi, [0x1400be1c0]
test bl, bl
je 0x140046ed0
mov rax, qword [0x1400be1c8]
lea rsi, [0x1400be1c8]
test rax, rax
jne 0x140046e96
cmp byte [0x1400be3e2], 0
jne 0x140046ee6
movzx ecx, bl
call fcn.140006210
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400be1e0]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140046f32
add qword [rax], 1
jmp 0x140046e96
mov rcx, qword [0x1400be870]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x140046f3d
mov rdx, rdi
call fcn.140004200
mov qword [0x1400be8f8], rax
mov rcx, rax
jmp 0x140046e63
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a5473]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1400be870], rax
mov rcx, rax
test rax, rax
je 0x14009a44e
jmp 0x140046f1b
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 0x14007e9d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400be1a9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007ea58
lea rdx, [0x1400a8ef2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007eac0
mov rbx, qword [0x1400be060]
jmp 0x14007ea15
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 0x14007ea10
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.14006db80
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 [0x1400be060], rax
mov ebx, dword [rax]
mov qword [0x1400be060], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400be060], rdx
call fcn.14007db00
cmp eax, ebx
jne 0x14007eb28
mov byte [0x1400be1a9], 1
jmp 0x14007e9ec
cmp byte [0x1400be1a8], 0
jne 0x14007ea03
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400beb08], rax
call rbx
mov qword [0x1400beb00], rax
call rbx
mov qword [0x1400beaf8], rax
call rbx
mov qword [0x1400beaf0], rax
call rbx
mov qword [0x1400beae8], rax
call rbx
mov qword [0x1400beae0], rax
call rbx
mov qword [0x1400bead8], rax
call rbx
mov byte [0x1400be1a8], 1
mov qword [0x1400bead0], rax
jmp 0x14007ea03
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140088190
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.140099910
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.140099910
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