joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420c40
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x88], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0xa0], 7
mov qword [rsp + 0xa4], 0
mov word [rsp + 0xac], 0
mov byte [rsp + 0xa8], 1
lea r8, [rsp + 0x88]
mov rcx, rdx
mov rdx, rax
call fcn.00439220
mov rdi, rdx
test rax, rax
je 0x420cd8
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call fcn.0041af70
mov qword [rsi], 0
jmp 0x420ea9
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x420d94
test dword [rsp + 0x40], 0x400
je 0x420d39
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x420d94
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x420de9
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x420e6c
mov rbx, qword [rsp + 0x40]
jmp 0x420deb
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], 2
call fcn.0041af70
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x420e5b
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x420e5b
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x420ea1
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x420ea1
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call fcn.0041af70
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x439ba0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.0041d5b0
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x439bef
lea rcx, [rsp + 0xb0]
call fcn.0041af70
mov qword [rsi], rdi
jmp 0x439dcb
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x439c80
jmp 0x439c5f
jae 0x439d27
cmp r8, 0x201
jae 0x439c80
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x439cc7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x439ca7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.0041dac0
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x439cee
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x439d66
mov r8d, r15d
cmp r12, r8
jne 0x439c50
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x439dfb
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x439c5f
jmp 0x439c80
cmp rdi, r8
jb 0x439e15
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.0041f520
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x439d87
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x439da0
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.00401800
cmp qword [rsp + 0x60], rdi
jne 0x439de0
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.0041af70
cmp qword [rsp + 0x40], 0
je 0x439dcb
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.00401800
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x439dbc
jmp 0x439dcb
lea rcx, str.internal_error:_entered_unreachable_codeP_rZ
lea r8, str.xxxxxxxxxxxxxxxxxxxxxxxxxssssccLLLLLLL
mov edx, 0x28
call fcn.00403960
jmp 0x439e2a
lea rax, str.xxxxxxxxxxxxxxxxxxxxxxxxxssssccLLLLLLL
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.004035c0
ud2
Function at 0x43cd20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x0044e0e8]
test ecx, ecx
je 0x43cdf9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x43cd54
mov rdi, rax
cmp qword [rax + 8], 0
je 0x43cd54
add rdi, 0x10
jmp 0x43cdef
mov ecx, dword [0x0044e0e8]
test ecx, ecx
je 0x43ce0c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x43cded
mov rsi, rax
test rax, rax
jne 0x43cdbc
movzx eax, byte [0x005ab030]
mov edx, 0x18
xor ecx, ecx
call fcn.00447a90
test rax, rax
je 0x43ce2f
mov rsi, rax
lea rax, [0x0044e0d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0044e0e8]
test ecx, ecx
je 0x43ce1f
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x43cdef
test rcx, rcx
je 0x43cdef
lock dec qword [rcx]
jne 0x43cdef
call fcn.0043ce40
jmp 0x43cdef
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x0044e0d0]
call fcn.0041b8d0
mov ecx, eax
jmp 0x43cd36
lea rcx, [0x0044e0d0]
call fcn.0041b8d0
mov ecx, eax
jmp 0x43cd64
lea rcx, [0x0044e0d0]
call fcn.0041b8d0
mov ecx, eax
jmp 0x43cdb4
mov ecx, 8
mov edx, 0x18
call fcn.00401d70
int3
Function at 0x443cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.0041d5b0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x443d0d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x443d3a
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.00443c00
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x443d53
lea rcx, [rsp + 0x30]
call fcn.0041af70
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x443d77
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x443d47
mov qword [rsi], rbx
test r14, r14
je 0x443d47
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.00401800
Function at 0x445830
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x005ab030]
mov edx, 0x10
xor ecx, ecx
call fcn.00447a90
test rax, rax
je 0x4458e5
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x00445940]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x4458d8
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x4458b7
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.00401800
mov edx, 8
mov rcx, rsi
call fcn.00401800
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.00401d70
ud2

Function at 0x445be0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.0044bfd0
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.ntdll.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x3c]
lea rbx, [0x0043d550]
lea r13, [rsp + 0x60]
lea r12, [0x00451288]
mov qword [rsp + 0x48], rdi

Function at 0x4460e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x446111
mov rax, qword [rsp + 0x30]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x0043a790]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.QQQQQQQQQQQQQQQQQQQQQQQQQpppppwaaaaaaaa
lea rcx, [rsp + 0x50]
call fcn.00402b10
ud2
Function at 0x44ce80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x005ab724]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x44d008
mov rax, qword [0x005ab728]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x44cecc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x44cf55
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x44ceb0
mov rcx, rbx
call fcn.0044db20
test rax, rax
mov r12, rax
je 0x44d03d
mov rax, qword [0x005ab728]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0044dc50
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005ab728]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x44d020
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x44cf4e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x44cfb0
add dword [0x005ab724], 1
cmp edi, 8
jae 0x44cf83
test dil, 4
jne 0x44cff4
test edi, edi
je 0x44cf78
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x44d00f
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 0x44cf78
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 0x44cf9c
jmp 0x44cf78
add rsi, qword [0x005ab728]
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 0x44cf4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0044de80
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x44cf78
xor esi, esi
jmp 0x44ced7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x44cf78
mov rax, qword [0x005ab728]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0044de80
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0044de80
nop
nop dword [rax]

Function at 0x44d790
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005aba00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005ab9e0]
test rbx, rbx
je 0x44d7e4
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 0x44d7db
test rsi, rsi
je 0x44d7db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x44d7c0
lea rcx, [0x005aba00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x44db20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x005a4320]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x44db8d
mov rcx, r8
call fcn.0044da00
test eax, eax
je 0x44db8d
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 0x44db8d
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 0x44db84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x44db8f
add rax, 0x28
cmp rax, r9
jne 0x44db70
xor eax, eax
add rsp, 0x28
ret

Function at 0x44de80
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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 fcn.0044de20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0044de20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001d40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov edi, ecx
call fcn.1400020c0
test eax, eax
jne 0x140001e85
xor r8d, r8d
mov rdx, rbx
mov ecx, edi
call sym.run_py3.10_win_amd64.exe_PySys_SetArgvEx
mov rax, qword [0x14000c2b0]
test rax, rax
jne 0x140001dd3
mov r10, qword [0x14000c268]
mov rbx, qword [0x14000c378]
test r10, r10
je 0x140001da2
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140001e90
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001d90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14000b850]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea rcx, [0x140004460]
cmove rax, rcx
mov qword [0x14000c2b0], rax
lea rcx, [0x14000b1fc]
call rax
mov rbx, rax
test rax, rax
je 0x140001e30
xor r9d, r9d
lea rcx, str._MessageBox
xor r8d, r8d
xor edx, edx
call sym.run_py3.10_win_amd64.exe_PyCMethod_New
mov rdx, qword [str._MessageBox]
mov r8, rax
mov rcx, rbx
call sym.run_py3.10_win_amd64.exe_PyObject_SetAttrString
xor r9d, r9d
lea rcx, str._SHGetSpecialFolderPath
xor r8d, r8d
xor edx, edx
call sym.run_py3.10_win_amd64.exe_PyCMethod_New
mov rdx, qword [str._SHGetSpecialFolderPath]
mov r8, rax
mov rcx, rbx
call sym.run_py3.10_win_amd64.exe_PyObject_SetAttrString
call fcn.140002a60
lea rcx, [0x14000b3b8]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001e7e
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14000b3b0]
call sym.run_py3.10_win_amd64.exe_Py_FdIsInteractive
test eax, eax
je 0x140001e7e
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r8d, r8d
lea rdx, [0x14000b3a8]
mov rcx, rax
call sym.run_py3.10_win_amd64.exe_PyRun_InteractiveLoopFlags
call sym.run_py3.10_win_amd64.exe_Py_Finalize
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400049c0
mov rcx, qword [r10]
lea rdx, [0x14000b850]
call fcn.140003340
jmp 0x140001dcc
Function at 0x140002d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea r8, str.PYTHONSCRIPT
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140002d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Could_not_locate_script_resource:
jmp 0x140002db9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140002d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Could_not_load_script_resource:
jmp 0x140002db9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14000c460], rax
mov rcx, rax
mov qword [0x14000d2c8], rax
test rax, rax
jne 0x140002e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Could_not_lock_script_resource:
mov rcx, rax
call fcn.140001010
test ebx, ebx
je 0x140002e29
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov r9d, 0x400
mov dword [rsp + 0x28], ecx
mov r8d, ebx
mov ecx, 0x1100
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140001010
xor eax, eax
jmp 0x140002ec1
cmp dword [rcx], 0x78563412
lea rdx, [rcx + 0x10]
mov eax, dword [rax + 0xc]
mov qword [0x14000c460], rdx
mov dword [0x14000c45c], eax
je 0x140002e5e
lea rdx, str.Bug:_Invalid_script_resource
xor ecx, ecx
call fcn.140001ed0
xor eax, eax
jmp 0x140002ec1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x140002e65
add rax, 0x11
add rax, rcx
cmp byte [rdx], 0
mov qword [0x14000c460], rax
je 0x140002ea7
mov qword [rsp + 0x20], rdx
lea r9, [0x14000c480]
mov edx, 0x608
lea r8, str._s_S
lea rcx, [0x14000c6a0]
call fcn.140001060
jmp 0x140002ebc
mov r8d, 0x608
lea rdx, [0x14000c6a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400010d0
add rsp, 0x460
pop rbx
ret
Function at 0x140001070
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2150
call fcn.140002010
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2140], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001153
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x140001153
nop dword [rax + rax]
lea rsi, [rsp + 0x30]
mov r9d, 0x104
mov rdx, qword [rsi + rbx*8]
lea rsi, [rsi + rbx*8]
lea r8, [rsp + 0x2030]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x140001146
mov edx, 0x5c
lea rcx, [rsp + 0x2030]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140001125
inc rax
jmp 0x14000112d
lea rax, [rsp + 0x2030]
test rdi, rdi
jne 0x140001136
test ebx, ebx
jmp 0x140001144
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000117e
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x1400010e0
xor eax, eax
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.140001210
lea r11, [rsp + 0x2150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rax, qword [rsi]
jmp 0x140001155

Function at 0x140001ad0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b1c
xor al, al
add rsp, 0x28
ret
Function at 0x14022d9e4
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rax, qword [0x1403bf028]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor esi, esi
mov ecx, dword [0x1403c3070]
cmp byte [0x1403c3074], sil
je 0x14022da2e
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14022da34
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14022da67
cmp qword [rax + 0x20], rsi
je 0x14022da67
lea rbx, [rax + 0x38]
cmp qword [rbx + 0x10], rsi
jne 0x14022da51
mov rcx, rax
call fcn.140026678
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14000b494
jmp 0x14022da78
movdqa xmm0, xmmword [0x140333fe0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], si
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
mov rcx, rdi
call fcn.14000b420
nop
mov rax, qword [rbp - 0x10]
cmp rax, 8
jb 0x14022daca
mov rcx, qword [rbp - 0x28]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14022dac5
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14022daeb
call fcn.140261814
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1402361b0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.140261a5c
int3

Function at 0x1402750a8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140274ec8