joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053b78
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 0x140053ba8
xor eax, eax
jmp 0x140053c6b
mov rbp, rbx
cmp word [rax], si
je 0x140053bcd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140053bb4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140053bb0
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.1400522b8
movsxd r14, eax
test eax, eax
jne 0x140053c0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140053ba1
mov rcx, r14
call fcn.14004f6dc
mov rdi, rax
test rax, rax
jne 0x140053c24
xor ecx, ecx
call fcn.14004d4d8
jmp 0x140053c00
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.1400522b8
test eax, eax
jne 0x140053c55
mov rcx, rdi
call fcn.14004d4d8
jmp 0x140053c5f
xor ecx, ecx
call fcn.14004d4d8
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 0x140056be0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004ce8c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140056c81
cmp ebx, dword [rsp + 0x30]
je 0x140056c7a
test esi, esi
je 0x140056c7a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140056c55
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140056c62
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140056c3f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140056c66
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140056c83
mov eax, 1
jmp 0x140056c83
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140059be4
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.1400414a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140059c6e
cmp byte [rbp - 0x21], r15b
je 0x140059c69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140059ca4
call fcn.14004d7dc
test eax, eax
jne 0x140059c90
cmp byte [rbp - 0x21], r15b
je 0x140059c88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140059ca4
cmp byte [rbp - 0x21], r15b
je 0x140059ca1
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.140049448
test eax, eax
jne 0x140059d44
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400414a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140059ce3
cmp byte [rbp - 0x21], r15b
je 0x140059d18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140059d18
call fcn.14004d7dc
test eax, eax
jne 0x140059d04
cmp byte [rbp - 0x21], r15b
je 0x140059cfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140059d18
cmp byte [rbp - 0x21], r15b
je 0x140059d15
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.140049448
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140059d44
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140059d47
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140059d55
mov rcx, rdi
call fcn.14004d4d8
cmp byte [rbp + 0x3f], r15b
je 0x140059d64
mov rcx, qword [rbp + 0x27]
call fcn.14004d4d8
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 0x14005b6d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005b6f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005b6f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x6a0df0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x6a0dfd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x6a0e0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x6a0df5
lea eax, [rcx + 1]
jmp 0x6a0e1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x6a0e2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x6a0e14
sub eax, 3
jb 0x6a0e4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x6a0e9d
sar eax, 1
movsxd rbp, eax
jb 0x6a0e84
jmp 0x6a0e5c
add ebx, ebx
jne 0x6a0e5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6a0e84
inc ecx
add ebx, ebx
jne 0x6a0e6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6a0e84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x6a0e7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x6a0e6c
add ecx, 2
jmp 0x6a0e89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.006a0db2
jmp 0x6a0dfd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x105000
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x6a0ee9
cmp rsi, rcx
jae 0x6a0ef1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x6a0ed0
cmp al, 0x8f
ja 0x6a0ed0
cmp byte [rsi - 2], 0xf
je 0x6a0ed6
sub al, 0xe8
cmp al, 1
ja 0x6a0eba
cmp rsi, rcx
jae 0x6a0ef1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x6a0ec0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x6a0ef1
lodsb al, byte [rsi]
jmp 0x6a0ed0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x29c000]
mov eax, dword [rdi]
or eax, eax
je 0x6a0f4e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2a42f8]
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 0x6a0efe
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 0x6a0f48
mov qword [rbx], rax
add rbx, 8
jmp 0x6a0f1e
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 0x6a0f92
cmp al, 0xef
ja 0x6a0f7a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x6a0f5a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x6a0f69
mov eax, dword [rdi]
add rdi, 4
jmp 0x6a0f69
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 + 0x1af]
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 0x6a0fe6
sub rsp, 0xffffffffffffff80
jmp 0x4648e0
Function at 0x18754
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x1a0
mov rax, qword [0x00016a80]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r12d, r8d
mov rbp, rdx
mov rsi, rcx
mov rax, cr8
xor ebx, ebx
cmp al, bl
je 0x1878f
lea eax, [rbx + 1]
jmp 0x1884c
lea r8, str.RegistryMACHINESystemCurrentControlSetutool
lea rdx, [0x00023fc0]
lea rcx, [rsp + 0x90]
add r9, 0x1528
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 0x20006
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0x30
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 0x40
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
mov edi, eax
jl 0x18845
lea rcx, [rsp + 0x68]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, ebx
setl bl
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.00015fb0
add rsp, 0x1a0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1802c066b
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp], rbx
mov word [rsp + 5], ax
mov word [rsp + 5], r8w
mov word [rsp], si
mov qword [rsp + 0x20], r14
call fcn.1802c0616
cpuid
mov r13d, dword [rsp]
jmp 0x1802c0771
xchg r8d, edi
call fcn.1802c07a0
cmp byte [rcx + 0x7dbb4829], bh
sbb bl, byte [rdx + 0x2e9a6f08]
js 0x1802c076a
jmp [rdi + 0xa]
outsd dx, dword [rsi]
or bh, cl
mov dl, 0x52
int 0x44
mov esp, dword [rsp + 0x90]
mov r12d, dword [rsp + 0x90]
bsf dx, cx
jb 0x1802c0755
xchg r8d, edi
jmp 0x1802c0818
mov r10d, dword [rsp]
sub rsp, 0x1d
lea rsp, [rsp + 5]
jmp 0x1802c0869
mov rdi, 0x7ec51d71
lea rsp, [rsp + 2]
jmp 0x1802c0a6f
lea r14, [rsp + 0x18]
pushfq
cmp rax, rsp
jae 0x1802c0853
jb 0x1802c087e
xor eax, 0xba4f28ba
invalid
mov rdi, 0x7ec51d71
lea rsp, [rsp + 2]
jmp 0x1802c09e0
jnp 0x1802c0989
rdtsc
jmp 0x1802c098b
rdtsc
call 0x1802c08d9
lea rsp, [rsp + 6]
jmp 0x1802c0a74
lea rsp, [rsp + 6]
sub rsp, 0x228
mov rcx, rsp
bsr rax, rcx
jmp 0x1802c0912

Function at 0x1802c0b9c
Capabilities:
Execute anti-debugging instructions

Disassembly:
movabs r13, 0x180000000
jmp 0x1802c0baf
lea r8, [r13 + r13]
jmp 0x1802c0b7d
mov r10w, 0x265d
lea rsp, [rsp + 0x18]
xor r12d, 0x262f5e5f
bswap r15d
jmp 0x1802c0bf3
rdtsc
neg r13b
js 0x1802c0b72
lea r8, [r13 + r13]
mov r10w, 0x265d
jmp 0x1802c0b82
bswap rax
sub rsp, 0xa
jmp 0x1802c0c1c
jmp 0x1802bfb7a
not r11d
pop word [rsp + 3]
jmp 0x1802c0c06
xchg bl, r9b
add r12, qword [r14 + riz]
bsf ebx, r11d
jmp 0x1802c0c5b
xchg bx, r15w
xchg rdx, rax
btc rax, rdi
jle 0x1802c0bc5
jg 0x1802bfb7a
add r12, r13
mov dl, 0xff
mov bx, word [rsp]
ror bl, 3
jmp 0x1802c0ca4
jp 0x1802c0bca
not r11d
pop word [rsp + 3]
jmp 0x1802c0bd2
jge 0x1802c0c75
mov dl, 0x6e
rcr r9d, 0
jmp 0x1802c0c84
mov dl, 0x6e
rcr r9d, 0
xchg bpl, sil
jmp fcn.1802c0cda
xchg bpl, sil
jmp fcn.1802c0cda
je 0x1802c0bd4
xchg bl, r9b
jmp 0x1802c0bd7

Function at 0x1802c0f21
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov r10w, word [rsp + 2]
mov ebp, dword [rsp + 3]
add rsp, 3
jmp 0x1802c0f4b
lea rsp, [rsp + 5]
jmp 0x1802c0f6c
jo 0x1802c0f0b
mov dword [rsp], eax
setne r13b
jmp 0x1802c0f31

Function at 0x1803cc2c5
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [rsp + 0x12]
pop r11
push word [rsp + 0xd]
lea r8, [rdx + r14]
jmp 0x1803cc314
mov r9b, byte [rsp + 3]
mov r14, r8
mov r9, r12
mov r11, qword [rsp + 0x17]
jmp 0x1803cc2af
push qword [rsp + 0x10]
mov byte [rsp + 8], r11b
lea rcx, [0xffffffffc1a97605]
pop r15
mov r12d, 0x194b8a31
mov r12, qword [rsp + 1]
jmp 0x1803cc2f4
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021

Function at 0x140004210
Capabilities:
Encode data using xor

Disassembly:
pop rsi
xor rax, rax
mov r8, rdi
stosb byte [rdi], al
inc al
jne 0x140004217
xor rbx, rbx
add bl, byte [r8 + rax]
mov rdx, rax
and dl, 0xf
add bl, byte [rsi + rdx]
mov dl, byte [r8 + rax]
xchg byte [r8 + rbx], dl
mov byte [r8 + rax], dl
inc al
jne 0x14000421f
xor rbx, rbx
inc al
add bl, byte [r8 + rax]
mov dl, byte [r8 + rax]
xchg byte [r8 + rbx], dl
mov byte [r8 + rax], dl
add dl, byte [r8 + rbx]
mov dl, byte [r8 + rdx]
xor byte [r9], dl
inc r9
dec rcx
jne 0x14000423f
pop rdi
jmp r15
Function at 0x1408c00b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408c0237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408c00e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408c00c7
add dl, dl
jne 0x1408c00ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408c014e
xor eax, eax
add dl, dl
jne 0x1408c00fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408c0205
add dl, dl
jne 0x1408c010e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c011b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c0128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c0135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408c0142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408c00d6
mov eax, 1
add dl, dl
jne 0x1408c015e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408c016b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408c0153
sub eax, ebx
mov ebx, 1
jne 0x1408c01a4
mov ecx, 1
add dl, dl
jne 0x1408c0186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408c0193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408c017b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408c00d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408c01c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408c01cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408c01b5
cmp eax, 0x7d00
jae 0x1408c01f3
cmp eax, 0x500
jb 0x1408c01ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408c00d6
cmp eax, 0x7f
ja 0x1408c01f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408c00d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408c022a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408c00d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002b7d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1400594d0
sub rsp, rax
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14002b892
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002b83d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14002b830
cmp rcx, 1
jb 0x14002b8ea
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14002b860
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14004caa8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14002b820
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14002b8c3
lea rcx, [rsp + 0x80]
call fcn.14004e27c
jmp 0x14002b8c5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14003da20
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140042010
int3

Function at 0x14002b8f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002b94d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14002b940
cmp rcx, 1
jb 0x14002b9c7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14002b963
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14004caa8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14002b930
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003da20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140042010
int3
Function at 0x14003e3f4
Capabilities:
Parse pe header

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

Function at 0x140042370
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 0x1400421db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400421db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400421db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400421db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400421db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400421db
cmp dword [rcx + 0xf8], 0
je 0x1400421db
mov ecx, ebx
call fcn.14004228c
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.140042068
nop
cmp dword [rbp + 0x20], 0
je 0x140042229
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140042234
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004216c
Function at 0x140052fa4
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 0x14005302b
mov rsi, rbx
cmp word [rax], bp
je 0x140052fea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140052fd4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140052fd0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005082c
mov rdi, rax
test rax, rax
je 0x140053018
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140059b30
mov rbp, rdi
xor ecx, ecx
call fcn.14004ebfc
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 0x140056ba0
Capabilities:
Get file size

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

Function at 0x1400593e0
Capabilities:
Parse pe header

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

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
push r9
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021