joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004c20
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x18000a180], 0
je 0x180004c34
xor eax, eax
jmp 0x180004e93
cmp qword [0x18000a178], 0
je 0x180004c4a
mov rax, qword [0x18000a178]
jmp 0x180004e93
mov r8d, 0x48
xor edx, edx
lea rcx, [0x18000a130]
call sub.VCRUNTIME140.dll_memset
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x18000a130], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x18000a138], rax
cmp qword [0x18000a138], 0
jne 0x180004d00
mov dword [0x18000a180], 1
cmp qword [0x18000a138], 0
je 0x180004cac
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x18000a140], 0
mov qword [0x18000a148], 0
mov qword [0x18000a150], 0
mov qword [0x18000a158], 0
mov qword [0x18000a160], 0
mov qword [0x18000a168], 0
mov qword [0x18000a170], 0
xor eax, eax
jmp 0x180004e93
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18000a140], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18000a148], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18000a150], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18000a158], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18000a160], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18000a168], rax
lea rdx, str.SymFromName
mov rcx, qword [0x18000a138]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18000a170], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x18000a140], 0
je 0x180004e04
cmp qword [0x18000a148], 0
je 0x180004e04
cmp qword [0x18000a160], 0
je 0x180004e04
cmp qword [0x18000a168], 0
je 0x180004e04
cmp qword [0x18000a170], 0
jne 0x180004e09
jmp 0x180004c8c
lea rcx, [rsp + 0x28]
call qword [0x18000a140]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x180004e23
jmp 0x180004c8c
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18000a130]
call qword [0x18000a148]
test eax, eax
jne 0x180004e3e
jmp 0x180004c8c
cmp qword [0x18000a158], 0
je 0x180004e7e
cmp qword [0x18000a150], 0
je 0x180004e7e
call qword [0x18000a158]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x18000a150]
lea rax, [0x18000a130]
mov qword [0x18000a178], rax
mov rax, qword [0x18000a178]
add rsp, 0x38
ret
Function at 0x6d8a2790
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8c35e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8a2918
mov rax, qword [0x6d8c35e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8a27dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8a2865
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8a27c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8a294d
mov rax, qword [0x6d8c35e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8c35e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8a2930
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8a285e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8a28c0
add dword [0x6d8c35e4], 1
cmp edi, 8
jae 0x6d8a2893
test dil, 4
jne 0x6d8a2904
test edi, edi
je 0x6d8a2888
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8a291f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8a2888
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8a28ac
jmp 0x6d8a2888
add rsi, qword [0x6d8c35e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8a285e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8a2888
xor esi, esi
jmp 0x6d8a27e7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8a2888
mov rax, qword [0x6d8c35e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8a30a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8c38c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8c38a0]
test rbx, rbx
je 0x6d8a30f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8a30eb
test rsi, rsi
je 0x6d8a30eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8a30d0
lea rcx, [0x6d8c38c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8a3330
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8a3340
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8a3350
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8a3391
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8a3388
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8a3393
add rax, 0x28
cmp rax, r9
jne 0x6d8a3374
xor eax, eax
ret

Function at 0x6d8a3430
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c01f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8a349d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a349d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8a349d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8a3494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a349f
add rax, 0x28
cmp rax, r9
jne 0x6d8a3480
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8a35a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c01f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8a35c0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a35b8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8a361d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8a3614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a3624
add rax, 0x28
cmp rax, r9
jne 0x6d8a3600
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8a3640
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8c01f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8a36ae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a36ae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8a36ae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8a36ae
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8a36a5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8a36b5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8a3690
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8a36c8
jmp 0x6d8a36ae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8a36d6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8a36ae
test r9d, r9d
jg 0x6d8a36c0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8a3a40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x6d7da760
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7fb5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7da8e8
mov rax, qword [0x6d7fb5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7da7ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7da835
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7da790
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7da91d
mov rax, qword [0x6d7fb5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7fb5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7da900
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7da82e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7da890
add dword [0x6d7fb5e4], 1
cmp edi, 8
jae 0x6d7da863
test dil, 4
jne 0x6d7da8d4
test edi, edi
je 0x6d7da858
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7da8ef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7da858
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7da87c
jmp 0x6d7da858
add rsi, qword [0x6d7fb5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7da82e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7da858
xor esi, esi
jmp 0x6d7da7b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7da858
mov rax, qword [0x6d7fb5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7db070
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7fb8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7fb8a0]
test rbx, rbx
je 0x6d7db0c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7db0bb
test rsi, rsi
je 0x6d7db0bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7db0a0
lea rcx, [0x6d7fb8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7db300
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7db310
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7db320
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7db361
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7db358
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7db363
add rax, 0x28
cmp rax, r9
jne 0x6d7db344
xor eax, eax
ret

Function at 0x6d7db400
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f81f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7db46d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7db46d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7db46d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7db464
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7db46f
add rax, 0x28
cmp rax, r9
jne 0x6d7db450
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7db570
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f81f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7db590
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7db588
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7db5ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7db5e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7db5f4
add rax, 0x28
cmp rax, r9
jne 0x6d7db5d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7db610
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f81f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7db67e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7db67e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7db67e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7db67e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7db675
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7db685
add rcx, 0x28
cmp rcx, rax
jne 0x6d7db660
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7db698
jmp 0x6d7db67e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7db6a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7db67e
test r9d, r9d
jg 0x6d7db690
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7db9e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b8830]
mov dword [rax], 1
mov rax, qword [0x1400b8840]
mov dword [rax], 1
mov rax, qword [0x1400b8850]
mov dword [rax], 1
mov rax, qword [0x1400b87c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000e150
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.1400991b0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.14002bc20
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14000e1b1
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x14000e1c0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.14002bc20
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x14000e290
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.1400274d0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14000e34a
mov rdx, r14
mov rcx, rbx
call fcn.14000e1c0
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x14000e38c
sub qword [r14], 1
jne 0x14000e311
mov rcx, r14
call fcn.14000e200
sub qword [r13], 1
jne 0x14000e320
mov rcx, r13
call fcn.14000e200
sub qword [r12], 1
jne 0x14000e33c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000e200
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.14002bc20
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14000e311
mov rcx, r15
call fcn.14000e210
jmp 0x14000e311
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x14008e220
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c9329], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x14008e2a8
lea rdx, [0x1400b6c02]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14008e3c0
mov rsi, qword [0x1400c91e0]
jmp 0x14008e265
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14008e260
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.14007bbf0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
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]
mov qword [0x1400c91e0], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400c91e0], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400c91e0], rcx
test eax, eax
je 0x14008e3a8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14008e310
not eax
cmp r9d, eax
jne 0x14008e428
mov byte [0x1400c9329], 1
jmp 0x14008e23d
cmp byte [0x1400c9328], 0
jne 0x14008e254
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400c9c88], rax
call rbx
mov qword [0x1400c9c80], rax
call rbx
mov qword [0x1400c9c78], rax
call rbx
mov qword [0x1400c9c70], rax
call rbx
mov qword [0x1400c9c68], rax
call rbx
mov qword [0x1400c9c60], rax
call rbx
mov qword [0x1400c9c58], rax
call rbx
mov byte [0x1400c9328], 1
mov qword [0x1400c9c50], rax
jmp 0x14008e254
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140097eb0
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.1400a9210
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.1400a9210
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop