joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003370
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rdi, rcx
xor r12d, r12d
mov dword [rbp + 0x6f], 0x10
lea rdx, [rbp + 0x6f]
lea rcx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140003548
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140003c50
nop
lea rcx, [rbp - 0x11]
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp + 7]
cmp rdx, 7
cmova rcx, r8
mov rax, qword [rbp - 1]
lea r15, [rcx + rax*2]
lea rsi, [rbp - 0x11]
cmova rsi, r8
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r12
mov ebx, 0xf
mov qword [rbp - 0x19], rbx
cmp rsi, r15
jne 0x140003405
mov byte [rbp - 0x31], r12b
jmp 0x1400034f9
mov rax, r15
sub rax, rsi
sar rax, 1
mov r14, r12
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x140003576
cmp rax, rbx
jbe 0x1400034b0
mov rbx, rax
or rbx, 0xf
cmp rbx, rcx
jbe 0x140003468
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14005a548
mov rcx, rax
test rax, rax
je 0x140003490
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400034a6
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140003497
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000357c
jmp 0x14000344a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400034a3
call fcn.14005a548
jmp 0x1400034a6
mov rax, r12
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x19], rbx
nop
lea rcx, [rbp - 0x31]
cmp rbx, 0xf
cmova rcx, qword [rbp - 0x31]
movzx eax, byte [rsi]
mov byte [r14 + rcx], al
mov r14, qword [rbp - 0x21]
inc r14
mov qword [rbp - 0x21], r14
add rsi, 2
cmp rsi, r15
je 0x1400034de
mov rbx, qword [rbp - 0x19]
jmp 0x1400034b0
lea rax, [rbp - 0x31]
cmp qword [rbp - 0x19], 0xf
cmova rax, qword [rbp - 0x31]
mov byte [r14 + rax], 0
mov rdx, qword [rbp + 7]
mov r8, qword [rbp - 0x11]
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [rdi + 0x10], xmm1
cmp rdx, 7
jbe 0x140003557
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x14000353e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000353e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14005a58c
jmp 0x140003557
lea rdx, str.Error_retrieving_PC_name
mov rcx, rdi
call fcn.140003db0
mov rax, rdi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140001aa0
nop
call fcn.140001a00
int3
Function at 0x14000a9a0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [rcx]
test edx, edx
jne 0x14000a9c8
mov dword [rcx + 4], 2
lea rax, [rcx + 4]
cmp edx, 3
jne 0x14000a9f1
mov dword [rax], 4
cmp edx, 0x22
jne 0x14000a9fc
mov dword [rax], 0x4a
ret
cmp edx, 1
jne 0x14000a9d2
mov dword [rcx + 4], edx
jmp 0x14000a9ad
cmp edx, 2
jne 0x14000a9ad
lea rax, [rcx + 4]
mov dword [rax], 3
cmp edx, 0x17
jne 0x14000ab94
mov dword [rax], 0x38
ret
cmp edx, 4
jne 0x14000aa08
mov dword [rax], 5
cmp edx, 0x23
jne 0x14000aa13
mov dword [rax], 0x4b
ret
cmp edx, 5
jne 0x14000aa1f
mov dword [rax], 6
cmp edx, 0x24
jne 0x14000aa2a
mov dword [rax], 0x4c
ret
cmp edx, 6
jne 0x14000aa36
mov dword [rax], 8
cmp edx, 0x25
jne 0x14000aa41
mov dword [rax], 0x4d
ret
cmp edx, 7
jne 0x14000aa4d
mov dword [rax], 9
cmp edx, 0x26
jne 0x14000aa58
mov dword [rax], 0x4e
ret
cmp edx, 8
jne 0x14000aa64
mov dword [rax], 0xc
cmp edx, 0x27
jne 0x14000aa6f
mov dword [rax], 0x4f
ret
cmp edx, 9
jne 0x14000aa7b
mov dword [rax], 0xd
cmp edx, 0x28
jne 0x14000aa86
mov dword [rax], 0x50
ret
cmp edx, 0xa
jne 0x14000aa92
mov dword [rax], 0x10
cmp edx, 0x29
jne 0x14000aa9d
mov dword [rax], 0x51
ret
cmp edx, 0xb
jne 0x14000aaa9
mov dword [rax], 0x11
cmp edx, 0x2a
jne 0x14000aab4
mov dword [rax], 0x52
ret
cmp edx, 0xc
jne 0x14000aac0
mov dword [rax], 0x12
cmp edx, 0x2b
jne 0x14000aacb
mov dword [rax], 0x53
ret
cmp edx, 0xd
jne 0x14000aad7
mov dword [rax], 0x13
cmp edx, 0x2c
jne 0x14000aae2
mov dword [rax], 0x54
ret
cmp edx, 0xe
jne 0x14000aaee
mov dword [rax], 0x14
cmp edx, 0x2d
jne 0x14000aaf9
mov dword [rax], 0x55
ret
cmp edx, 0xf
jne 0x14000ab05
mov dword [rax], 0x30
cmp edx, 0x2e
jne 0x14000ab10
mov dword [rax], 0x56
ret
cmp edx, 0x10
jne 0x14000ab1c
mov dword [rax], 0x31
cmp edx, 0x2f
jne 0x14000ab27
mov dword [rax], 0x57
ret
cmp edx, 0x11
jne 0x14000ab33
mov dword [rax], 0x32
cmp edx, 0x30
jne 0x14000ab3e
mov dword [rax], 0x58
ret
cmp edx, 0x12
jne 0x14000ab4a
mov dword [rax], 0x33
cmp edx, 0x31
jne 0x14000ab55
mov dword [rax], 0x59
ret
cmp edx, 0x13
jne 0x14000ab61
mov dword [rax], 0x34
cmp edx, 0x32
jne 0x14000ab6c
mov dword [rax], 0x5a
ret
cmp edx, 0x14
jne 0x14000ab78
mov dword [rax], 0x35
cmp edx, 0x33
jne 0x14000ab77
mov dword [rax], 0x18
ret
cmp edx, 0x15
jne 0x14000ab84
mov dword [rax], 0x36
ret
cmp edx, 0x16
jne 0x14000a9e1
mov dword [rax], 0x37
ret
cmp edx, 0x18
jne 0x14000aba0
mov dword [rax], 0x39
ret
cmp edx, 0x19
jne 0x14000abac
mov dword [rax], 0x41
ret
cmp edx, 0x1a
jne 0x14000abb8
mov dword [rax], 0x42
ret
cmp edx, 0x1b
jne 0x14000abc4
mov dword [rax], 0x43
ret
cmp edx, 0x1c
jne 0x14000abd0
mov dword [rax], 0x44
ret
cmp edx, 0x1d
jne 0x14000abdc
mov dword [rax], 0x45
ret
cmp edx, 0x1e
jne 0x14000abe8
mov dword [rax], 0x46
ret
cmp edx, 0x1f
jne 0x14000abf4
mov dword [rax], 0x47
ret
cmp edx, 0x20
jne 0x14000ac00
mov dword [rax], 0x48
ret
cmp edx, 0x21
jne 0x14000a9bc
mov dword [rax], 0x49
ret
Function at 0x14000db00
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14000db31
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400c77f8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1400c7808]
lea rdx, [rdi + rdi]
call fcn.14000d6a0
mov rax, qword [0x1400c77f8]
lea r9, [rdi - 1]
mov qword [0x1400c7820], r9
mov qword [0x1400c7828], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000dca4
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1400c7808]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14000dbf0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14000dc65
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000dc2d
mov r10, qword [rdx]
cmp r10, rax
je 0x14000dc27
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14000dc65
cmp r9, rdx
je 0x14000dc41
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14000dc79
cmp r9, rdx
jne 0x14000dc32
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14000dc9f
mov r9, qword [0x1400c7820]
jmp 0x14000dba1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000dc65
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000fab0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000fb0d
lea rbx, [0x140060420]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000faf4
cmp r10, 2
jb 0x14000faf4
cmp byte [r9], r8b
jne 0x14000faf4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000fad0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000fb4f
lea rbx, [0x140060420]
cmp r8b, 0x23
jne 0x14000fb33
cmp byte [r9], r8b
jne 0x14000fb33
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000fb20
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000fc90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000fcaa
mov qword [r8], 0
lea rdx, [0x140065d8c]
call fcn.14000fb60
mov rbx, rax
test rax, rax
jne 0x14000fcca
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000fda1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000fda1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000fda1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000fda1
cmp rdi, 0xffffffffffffffff
je 0x14000fda1
mov rax, qword [0x1400c70d0]
test rax, rax
je 0x14000fd3e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000fda1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000fd8e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400c70d0]
test rax, rax
je 0x14000fd83
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000fdaa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000fd9c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000fdac
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140013540
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140060420]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1400c70d0]
not ebx
cmp dword [rcx + 0x3f08], ebx
jne 0x1400135cb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140026d30
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400135e0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf0]
lea r9, [0x140060420]
movss xmm2, dword [rcx + 0x108]
movss xmm3, dword [rcx + 0x10c]
movsxd rcx, dword [rcx + 0xe8]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x1400200e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1400c70d0]
mov edi, ecx
cmp byte [rbx + 0x4a4d], 0
jne 0x140020132
cmp byte [rbx + 0x4a4e], 0
jne 0x140020132
movsx r9d, word [rbx + 0x5b52]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000f970
test dil, 1
je 0x140020258
jmp 0x1400201bb
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b52]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140066d88]
mulss xmm1, dword [0x140066d64]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x47b0], rax
mov dword [rbx + 0x479c], 1
movss dword [rbx + 0x47a8], xmm0
movss dword [rbx + 0x47ac], xmm1
movss xmm0, dword [rbx + 0x3904]
mulss xmm0, dword [0x140066ca0]
or dword [rbx + 0x4798], 0x41
movss dword [rbx + 0x47f8], xmm0
call fcn.14000f970
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140020210
lea r11, [0x140060420]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400201f3
cmp byte [r8], r9b
jne 0x1400201f3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400201e0
not ecx
call fcn.140017550
test rax, rax
je 0x140020258
cmp byte [rax + 0xae], 0
je 0x140020258
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b52]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b52]
call fcn.14000f970
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140019c00
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140025610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c38], 0
lea rbx, [rcx + 0x5c40]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400256b7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002566a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140027a80
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140010420
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c48]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400c70c8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400256bf
mov rcx, rbx
call fcn.140010420
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140025c30
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400c70d0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140025c93
mov qword [rsp], rbx
lea rbx, [0x140060420]
nop dword [rax]
cmp r9b, 0x23
jne 0x140025c73
cmp byte [r8], r9b
jne 0x140025c73
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140025c60
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bb0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140025cc7
mov r10, qword [r10 + 0x5bb8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140025cce
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140025cb4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14005b038
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14003d300
sub rsp, rax
mov rax, qword [0x140055040]
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 0x140014382
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001432d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140014320
cmp rcx, 1
jb 0x1400143da
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 0x140014350
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140031160
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140014310
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400143b3
lea rcx, [rsp + 0x80]
call fcn.140032800
jmp 0x1400143b5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140022070
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140026690
int3

Function at 0x1400143e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140055040]
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 0x14001443d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140014430
cmp rcx, 1
jb 0x1400144b7
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 0x140014453
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140031160
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140014420
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140022070
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140026690
int3
Function at 0x140022a78
Capabilities:
Parse pe header

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

Function at 0x1400269f0
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 0x14002685b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002685b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002685b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002685b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002685b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002685b
cmp dword [rcx + 0xf8], 0
je 0x14002685b
mov ecx, ebx
call fcn.14002690c
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.1400266e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400268a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400268b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400267ec
Function at 0x14003743c
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 0x1400374c3
mov rsi, rbx
cmp word [rax], bp
je 0x140037482
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003746c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140037468
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140034cc4
mov rdi, rax
test rax, rax
je 0x1400374b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003d8e0
mov rbp, rdi
xor ecx, ecx
call fcn.140033180
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 0x14003abdc
Capabilities:
Get file size

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

Function at 0x14003d210
Capabilities:
Parse pe header

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