joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180076760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
or eax, 0xffffffff
xor r10d, r10d
mov r11, rdx
mov rbx, rcx
test rdx, rdx
je 0x1800767a6
mov qword [rsp + 0x10], rdi
lea rdi, [0x180156280]
nop
movzx r9d, byte [r10 + rbx]
mov r8d, eax
mov ecx, eax
xor r9, r8
shr ecx, 8
inc r10
movzx edx, r9b
mov eax, dword [rdi + rdx*4]
xor eax, ecx
cmp r10, r11
jb 0x180076780
mov rdi, qword [rsp + 0x10]
not eax
pop rbx
ret

Function at 0x180078510
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebp, ebp
mov r14, rdx
mov qword [rcx], rbp
mov rdi, rcx
mov qword [rdx], rbp
mov rcx, r8
lea rdx, [0x1801164e0]
call fcn.1800b8ea8
mov rbx, rax
test rax, rax
jne 0x18007854f
lea eax, [rbp + 0x4e]
jmp 0x1800785c1
xor edx, edx
mov qword [rsp + 0x30], rsi
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1800b97a0
mov rcx, rbx
call fcn.1800b9d58
mov rcx, rbx
movsxd rsi, eax
call fcn.1800ba0b8
mov rcx, rsi
mov qword [r14], rbp
call fcn.1800785e0
mov qword [rdi], rax
test esi, esi
je 0x1800785a2
test rax, rax
je 0x1800785a2
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.1800b9340
mov qword [r14], rax
mov rcx, rbx
call fcn.1800b86dc
cmp qword [rdi], rbp
jne 0x1800785ba
test esi, esi
je 0x1800785ba
mov eax, 0x53
jmp 0x1800785bc
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800786f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
lea rdx, [0x1801172e0]
mov rcx, r8
call fcn.1800b8ea8
mov rbx, rax
test rax, rax
jne 0x18007872f
lea eax, [rbx + 0x4f]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.1800ba034
mov rcx, rbx
call fcn.1800b86dc
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180078eb0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
cmp qword [rcx + 0x18], 0x10
jb 0x180078ebe
mov rcx, qword [rcx]
lea rax, [0x1801163f0]
mov dword [rsp + 0x28], 0xa
mov r8, rcx
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea r9, [0x1801121a5]
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret
Function at 0x1800eebe8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800ee810
call fcn.1800b8224
mov dword [rax], 0x16
call fcn.1800b6dc8
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800ee7f8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800ee7f8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800ee842
lock or dword [rax + 0x14], 0x10
jmp 0x1800ee7f8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800ee85f
mov rcx, qword [rbp + 0x10]
call fcn.1800f0e20
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800ed8ac
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800f038c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800ee8b6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800ee7f8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800ee922
mov rcx, qword [rbp + 0x10]
call fcn.1800ed8ac
cmp eax, 0xffffffff
je 0x1800ee909
mov rcx, qword [rbp + 0x10]
call fcn.1800ed8ac
cmp eax, 0xfffffffe
je 0x1800ee909
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800ed8ac
movsxd rdi, eax
lea rsi, [0x18016abb0]
mov rcx, rbx
sar rdi, 6
call fcn.1800ed8ac
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800ee910
lea rax, [0x180156c70]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800ee922
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800ee958
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800ee954
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800ee954
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800ee7fb
jmp 0x1800ee7c8
Function at 0x180103de4
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.1800ed180
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x180103e37
test rbx, rbx
je 0x180103e28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x180103e37
mov edi, 4
jmp 0x180103ee0
call fcn.1800ecf28
test al, al
jne 0x180103e54
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x180103ee0
test bpl, bpl
je 0x180103eb7
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x180103c08]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180103ee0
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x180103eb1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180103ee0
mov edi, dword [rsp + 0x44]
jmp 0x180103ea9
call fcn.1800ed0ac
test al, al
jne 0x180103ec8
bts esi, 0x15
xor ecx, ecx
jmp 0x180103ed0
call fcn.1800ecfe4
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.1800ecd60
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140001000
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rdi, rdx
mov dword [rbp + 0x77], 1
mov rbx, rcx
lea rdx, [0x140004bb0]
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, rbx
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x2f], 0
lea rax, [rbp + 0x17]
xorps xmm0, xmm0
mov qword [rbp + 0x37], rax
lea r8, [rbp + 0x27]
mov dword [rbp + 0x27], 0x30
mov edx, 0x10000000
mov dword [rbp + 0x3f], 0x40
lea rcx, [rbp + 0x7f]
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400010d1
test rdi, rdi
jne 0x140001090
lea r9d, [rdi + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x77]
jmp 0x1400010b1
mov rdx, rdi
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
movzx eax, word [rbp - 9]
mov r9d, 1
add eax, eax
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 1]
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp + 7]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140002d90
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x140008160]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movups xmm0, xmmword [rcx]
and qword [rbp - 0x11], 0
lea r9, [rbp - 9]
xor esi, esi
lea r8, [rbp + 7]
and dword [rsp + 0x50], esi
lea rcx, [rbp - 0x11]
and qword [rsp + 0x48], rsi
mov ebx, 0x80
mov dword [rsp + 0x40], 0x20
mov edx, 0xc0000000
mov dword [rsp + 0x38], 1
xor r14d, r14d
movdqu xmmword [rbp + 7], xmm0
mov dword [rsp + 0x30], 7
xor r15d, r15d
xorps xmm0, xmm0
mov dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rsi
movups xmmword [rbp - 9], xmm0
call fcn.140002f3c
test eax, eax
jns 0x140002e3a
lfence
mov edx, eax
lea rcx, [0x140004d90]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140002f10
xor eax, eax
mov dword [rsp + 0x20], 4
xorps xmm0, xmm0
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x37], ebx
lea r8, [rbp + 0x17]
mov rbx, qword [rbp - 0x11]
lea rdx, [rbp - 9]
mov rcx, rbx
lea r9d, [rax + 0x28]
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call fcn.1400033f4
mov edi, eax
test eax, eax
jns 0x140002e8a
lfence
lea rcx, [0x140004db0]
mov edx, edi
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140002f0e
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x140002eb4
mov rsi, qword [rax + 0x10]
mov r14, qword [rax]
mov r15, qword [rax + 8]
and qword [rax + 0x10], 0
mov rax, qword [rbx + 0x28]
and qword [rax], 0
mov rax, qword [rbx + 0x28]
and qword [rax + 8], 0
mov r9d, 1
mov byte [rbp - 0x19], 1
lea r8, [rbp - 0x19]
mov dword [rsp + 0x20], 0xd
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.1400033f4
mov edi, eax
lfence
test eax, eax
jns 0x140002ee8
lea rcx, [0x140004df0]
jmp 0x140002e7e
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x140002f04
mov qword [rax + 0x10], rsi
mov rax, qword [rbx + 0x28]
mov qword [rax], r14
mov rax, qword [rbx + 0x28]
mov qword [rax + 8], r15
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140004670
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400042b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [0x140005030]
call section..text
lea rax, [0x140005070]
mov dword [rsp + 0x40], 0x280026
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x140008180], rax
call fcn.1400041e4
mov rcx, rbx
call fcn.140003a1c
test eax, eax
je 0x14000430e
lea rcx, [0x1400050b0]
jmp 0x140004324
mov rdx, rdi
mov rcx, rbx
call fcn.1400043b4
test eax, eax
je 0x140004330
lea rcx, [0x1400050d0]
lea rdx, [0x1400050a0]
call section..text
mov rcx, rdi
call fcn.1400044a4
and qword [rsp + 0x30], 0
lea rax, [0x140004530]
and qword [rsp + 0x60], 0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140004379
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rax, [0x1400043a0]
mov qword [rbx + 0x68], rax
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400044a4
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
and dword [rbp - 0x18], 0
xorps xmm0, xmm0
mov qword [rbp - 0x20], rcx
mov edx, 0x10000000
lea rcx, [rbp + 0x18]
mov dword [rbp + 0x10], 1
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x30], 0x30
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140004527
lea rdx, [0x140005030]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov r9d, 4
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x70
pop rbp
ret
Function at 0xa1dea0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa1dead
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa1debd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa1dea5
lea eax, [rcx + 1]
jmp 0xa1decb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa1dede
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa1dec4
sub eax, 3
jb 0xa1defe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa1df4d
sar eax, 1
movsxd rbp, eax
jb 0xa1df34
jmp 0xa1df0c
add ebx, ebx
jne 0xa1df0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa1df34
inc ecx
add ebx, ebx
jne 0xa1df1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa1df34
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa1df2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa1df1c
add ecx, 2
jmp 0xa1df39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a1de62
jmp 0xa1dead
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x255200
mov dl, 0x29
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa1df99
cmp rsi, rcx
jae 0xa1dfa1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa1df80
cmp al, 0x8f
ja 0xa1df80
cmp byte [rsi - 2], 0xf
je 0xa1df86
sub al, 0xe8
cmp al, 1
ja 0xa1df6a
cmp rsi, rcx
jae 0xa1dfa1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa1df70
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa1dfa1
lodsb al, byte [rsi]
jmp 0xa1df80
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x60d000]
mov eax, dword [rdi]
or eax, eax
je 0xa1dffe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x61e6d8]
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 0xa1dfae
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 0xa1dff8
mov qword [rbx], rax
add rbx, 8
jmp 0xa1dfce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa1e042
cmp al, 0xef
ja 0xa1e02a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa1e00a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa1e019
mov eax, dword [rdi]
add rdi, 4
jmp 0xa1e019
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 0xa1e096
sub rsp, 0xffffffffffffff80
jmp 0x647de0
Function at 0x140048810
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1400739c0
sub rsp, rax
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x1400488d2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140066f98
cmp rax, 1
jne 0x14004892e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400488af
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400488a3
cmp rcx, 1
jb 0x14004892e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140048870
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140048903
lea rcx, [rsp + 0x80]
call fcn.14006876c
jmp 0x140048905
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140058dd0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14005c500
int3

Function at 0x140048940
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov al, 0x4e
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140066f98
cmp rax, 1
jne 0x140048a25
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400489cc
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400489c0
cmp rcx, 1
jb 0x140048a25
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140048990
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140058dd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14005c500
int3
Function at 0x1400597a8
Capabilities:
Parse pe header

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

Function at 0x14005c65c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005c6cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005c6cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005c6cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005c6cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005c6cb
cmp dword [rcx + 0x84], 0xe
jbe 0x14005c6cb
cmp dword [rcx + 0xf8], 0
je 0x14005c6cb
mov ecx, ebx
call fcn.14005c77c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14005c558
nop
cmp dword [rbp + 0x20], 0
je 0x14005c719
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005c724
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005c65c

Function at 0x14005c860
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005c6cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005c6cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005c6cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005c6cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005c6cb
cmp dword [rcx + 0x84], 0xe
jbe 0x14005c6cb
cmp dword [rcx + 0xf8], 0
je 0x14005c6cb
mov ecx, ebx
call fcn.14005c77c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14005c558
nop
cmp dword [rbp + 0x20], 0
je 0x14005c719
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005c724
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005c65c
Function at 0x14006d494
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14006d51b
mov rsi, rbx
cmp word [rax], bp
je 0x14006d4da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006d4c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006d4c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006ad1c
mov rdi, rax
test rax, rax
je 0x14006d508
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140074020
mov rbp, rdi
xor ecx, ecx
call fcn.1400690ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140071090
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400710a6
mov al, 1
jmp 0x140071106
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400710b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140071104
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006dc38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140071104
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140071104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140071104
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140071106
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400738d0
Capabilities:
Parse pe header

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