joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008c6d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x1c0
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14008c700
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008c80a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008c71c
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 2
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x75
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 6
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14008c7a7
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14008c8a4
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c800
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008c8bf
call fcn.1400567fc
jmp 0x14008c8a4
test eax, 0x410
jne 0x14008c8a4
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008c822
mov rcx, qword [rbx]
lea rdx, [rsp + 0x178]
call fcn.14008e584
test eax, eax
jne 0x14008c83d
mov rax, qword [rsp + 0x190]
jmp 0x14008c8a6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0xac
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.unsigned___int64___cdecl_crashpad::GetFileSize_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 1
lea rdx, str.stat
mov rcx, rax
call fcn.1400012e0
cmp qword [rbx + 0x18], 8
jb 0x14008c88e
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.140003e40
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140056a30
add rsp, 0x1c0
pop rbx
ret
call fcn.14005d0ac
int3
Function at 0x14008c8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x178], rax
movzx edi, dl
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14008c907
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008ca08
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008c923
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x82
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsDirectory_const_class_base::FilePath__bool_
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14008c9ae
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14008ca13
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c9ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008ca3d
call fcn.1400567fc
xor al, al
jmp 0x14008ca1c
test dil, dil
jne 0x14008ca17
bt eax, 0xa
jae 0x14008ca17
xor al, al
jmp 0x14008ca1c
shr eax, 4
and al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140056a30
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call fcn.14005d0ac
int3
Function at 0x14008ca50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14008ca80
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008cb81
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008ca9c
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x75
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14008cb27
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14008cb7d
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cb78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008cba2
call fcn.1400567fc
xor al, al
jmp 0x14008cb89
test eax, 0x410
sete al
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140056a30
add rsp, 0x180
pop rbx
ret
call fcn.14005d0ac
int3
Function at 0x14008d140
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14008d170
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14008d270
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008d18b
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x30
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::LoggingRemoveDirectoryImpl_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.RemoveDirectory
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14008d216
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14008d26c
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008d267
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008d28b
call fcn.1400567fc
xor al, al
jmp 0x14008d272
mov al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140056a30
add rsp, 0x180
pop rbx
ret
call fcn.14005d0ac
int3
Function at 0x14008d2a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14008d2d0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d2f4
and eax, 0x410
cmp eax, 0x410
jne 0x14008d2f4
mov rcx, rbx
call fcn.14008d140
jmp 0x14008d403
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008d301
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008d401
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008d31c
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x95
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingRemoveFile_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.DeleteFile
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14008d3a7
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14008d3fd
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008d3f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008d41c
call fcn.1400567fc
xor al, al
jmp 0x14008d403
mov al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140056a30
add rsp, 0x180
pop rbx
ret
call fcn.14005d0ac
int3
Function at 0x14008d930
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, rcx
mov dword [rsp + 0x158], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, ax
shr dx, 8
cmp al, 6
jb 0x14008da04
jne 0x14008d968
cmp dx, 1
jbe 0x14008da04
mov ecx, dword [0x1400cf5b0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1400d0a20], eax
jg 0x14008da18
xor edx, edx
mov r8d, 0x10000000
mov rcx, rbx
call qword [0x1400d0a18]
test eax, eax
jne 0x14008da0d
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x21
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutilwincritical_section_with_debug_info.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::CrashpadInitializeCriticalSectionEx_struct__RTL_CRITICAL_SECTION__unsigned_long_unsigned_long_
lea rcx, [rsp + 0x30]
call fcn.14004dda0
nop
mov dword [rsp + 0x158], 1
lea rdx, [0x1400ad470]
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rsp + 0x30]
call fcn.14004e080
xor al, al
add rsp, 0x140
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
add rsp, 0x140
pop rbx
ret
lea rcx, [0x1400d0a20]
call fcn.1400568ac
cmp dword [0x1400d0a20], 0xffffffff
jne 0x14008d98f
mov r8b, 1
lea rdx, str.::InitializeCriticalSectionEx
lea rcx, [0x14009ec08]
call fcn.140048fb0
mov qword [0x1400d0a18], rax
lea rcx, [0x1400d0a20]
call fcn.140056840
jmp 0x14008d98f

Function at 0x14008e474
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400b80b0]
mov rbp, rcx
call fcn.1400785d0
xor edi, edi
test rax, rax
je 0x14008e55a
mov ebx, edi
call fcn.140069380
mov r14d, dword [rax]
call fcn.140069380
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14008e8b4
mov rsi, rax
test rax, rax
je 0x14008e4eb
call fcn.140069380
mov dword [rax], r14d
jmp 0x14008e515
call fcn.140069380
cmp dword [rax], 0x22
jne 0x14008e552
call fcn.140069380
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14008e8b4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14008e552
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14008e519
cmp rax, 3
je 0x14008e534
mov rcx, rsi
call fcn.14008e3d0
test al, al
je 0x14008e545
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14008e545
mov dil, 1
mov rcx, rbx
call fcn.14005d224
mov al, dil
jmp 0x14008e55c
mov rcx, rbx
call fcn.14005d224
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140056a30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14008ed10
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14008ed5a
call fcn.140069360
mov dword [rax], 0xf
call fcn.140069380
mov dword [rax], 0xd
call fcn.14005d08c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140056a30
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14008ed65
lea eax, [rbx + 1]
jmp 0x14008ed47
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14008ed45
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14008ed47
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14019d410]
mov dword [rax], 1
mov rax, qword [0x14019d420]
mov dword [rax], 1
mov rax, qword [0x14019d430]
mov dword [rax], 1
mov rax, qword [0x14019d390]
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 0x14010f180
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140179040
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14010f245
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140189f40
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14010f226
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14010f218
test rsi, rsi
je 0x140189f40
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14010f1d8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14010f274
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14010f290
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14010f34d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140189f46
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14010f32e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14010f320
test rsi, rsi
je 0x140189f46
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14010f2e0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14016f310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401b3201], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14016f398
lea rdx, [0x140199292]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14016f400
mov rbx, qword [0x1401b30a0]
jmp 0x14016f355
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 0x14016f350
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.14015e4e0
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 [0x1401b30a0], rax
mov ebx, dword [rax]
mov qword [0x1401b30a0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401b30a0], rdx
call fcn.14016e440
cmp eax, ebx
jne 0x14016f468
mov byte [0x1401b3201], 1
jmp 0x14016f32c
cmp byte [0x1401b3200], 0
jne 0x14016f343
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1401b3b68], rax
call rbx
mov qword [0x1401b3b60], rax
call rbx
mov qword [0x1401b3b58], rax
call rbx
mov qword [0x1401b3b50], rax
call rbx
mov qword [0x1401b3b48], rax
call rbx
mov qword [0x1401b3b40], rax
call rbx
mov qword [0x1401b3b38], rax
call rbx
mov byte [0x1401b3200], 1
mov qword [0x1401b3b30], rax
jmp 0x14016f343
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140177d20
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.1401894b0
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.1401894b0
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
Function at 0x1401789f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401b4028]
test eax, eax
je 0x140178a8a
lea rax, [0x1401b4000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401b4030]
mov qword [rbp - 8], rax
jmp 0x140178a6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140178a62
cmp qword [rbp - 0x10], 0
je 0x140178a62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140178a28
lea rax, [0x1401b4000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140178a8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140178b90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140178bb8
mov eax, 0
jmp 0x140178c06
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 0x140178be1
mov eax, 0
jmp 0x140178c06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140178c01
mov eax, 0
jmp 0x140178c06
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140178c0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140178c8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140178c81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140178c81
mov rax, qword [rbp - 8]
jmp 0x140178c9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140178c54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000d980
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d9dc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d9dc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d9dc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d9dc
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d9dc
cmp dword [rcx + 0xf8], 0
je 0x14000d9dc
mov ecx, ebx
call fcn.14000d750
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400181c0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000d5d0
cmp dword [rsp + 0x60], 0
jne 0x14000da1f
mov ecx, ebx
call fcn.14000d700
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140001d00
Capabilities:
Parse pe header

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