joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x1411210b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141121237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1411210e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411210c7
add dl, dl
jne 0x1411210ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14112114e
xor eax, eax
add dl, dl
jne 0x1411210fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141121205
add dl, dl
jne 0x14112110e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14112111b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141121128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141121135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141121142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411210d6
mov eax, 1
add dl, dl
jne 0x14112115e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14112116b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141121153
sub eax, ebx
mov ebx, 1
jne 0x1411211a4
mov ecx, 1
add dl, dl
jne 0x141121186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141121193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14112117b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411210d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411211c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411211cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411211b5
cmp eax, 0x7d00
jae 0x1411211f3
cmp eax, 0x500
jb 0x1411211ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411210d6
cmp eax, 0x7f
ja 0x1411211f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411210d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14112122a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1411210d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002f00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.1400049b0
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.1400049b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x1400030a0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002fbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003045
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002fa0
mov rcx, rbx
call fcn.1400039c0
mov rdi, rax
test rax, rax
je 0x1400030c2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400030a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000303e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003050
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000303e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f00
nop dword [rax]
xor esi, esi
jmp 0x140002fc8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000368c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003683
test rsi, rsi
je 0x140003683
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003668
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400039c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006aa0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400039e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400039e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400039e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003a3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003a34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400039e0
add rax, 0x28
cmp rax, r9
jne 0x140003a20
xor eax, eax
ret

Function at 0x140003a40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003a5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003a5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003b00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003b1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003b28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov r14, rdx
mov r10, rcx
mov r13, qword [rcx]
mov rbx, qword [r13 + 8]
mov rsi, r13
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140001f1e
mov rsi, rbx
test r15b, r15b
je 0x140001ef3
mov rdx, r12
lea rcx, [rbx + 0x20]
call fcn.14000fa50
mov edi, eax
shr edi, 0x1f
xor dil, 1
jmp 0x140001f05
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.14000fa50
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140001f0f
mov rbx, qword [rbx]
jmp 0x140001f13
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x140001ed4
mov r10, qword [rsp + 0x70]
mov rbx, rsi
mov rcx, rsi
test dil, dil
je 0x140001fdd
cmp rsi, qword [r13]
jne 0x140001f6a
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r10
call fcn.140001bd0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140002032
cmp byte [rsi + 0x19], 0
je 0x140001f79
mov rbx, qword [rsi + 0x10]
mov rcx, rbx
jmp 0x140001fdd
mov rax, qword [rsi]
cmp byte [rax + 0x19], 0
jne 0x140001fa2
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140001f9d
nop
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140001f90
mov rcx, rbx
jmp 0x140001fdd
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x140001fd1
mov rdx, rsi
nop
mov r8, rax
mov r9, rax
mov rcx, rdx
cmp rdx, qword [rax]
jne 0x140001fd1
mov rbx, rax
mov rax, qword [rax + 8]
mov rdx, rbx
mov rcx, rbx
cmp byte [rax + 0x19], 0
je 0x140001fb0
cmp byte [rbx + 0x19], 0
jne 0x140001fdd
mov rbx, rax
mov rcx, rax
add rcx, 0x20
mov rdx, r12
call fcn.14000fa50
shr eax, 0x1f
test al, al
je 0x140002027
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
movzx r8d, dil
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.140001bd0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140002032
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002aa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140004890
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.140004890
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002c40
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002b5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002be5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002b40
mov rcx, rbx
call fcn.140003560
mov rdi, rax
test rax, rax
je 0x140002c62
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400036a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002c47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002bde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002bf0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002aa0
nop dword [rax]
xor esi, esi
jmp 0x140002b68
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002aa0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002aa0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400031d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000322c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003223
test rsi, rsi
je 0x140003223
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003208
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003580
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003588
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003580
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400035dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400035d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003580
add rax, 0x28
cmp rax, r9
jne 0x1400035c0
xor eax, eax
ret

Function at 0x1400035e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400035ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003608
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400035ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400036a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400036bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400036c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
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.9_win_amd64.exe_PySys_SetArgvEx
mov rax, qword [0x14000c290]
test rax, rax
jne 0x140001dd3
mov r10, qword [0x14000c248]
mov rbx, qword [0x14000c348]
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, str.PyImport_ImportModule
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 [0x14000c290], 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.9_win_amd64.exe_PyCMethod_New
mov rdx, qword [str._MessageBox]
mov r8, rax
mov rcx, rbx
call sym.run_py3.9_win_amd64.exe_PyObject_SetAttrString
xor r9d, r9d
lea rcx, str._SHGetSpecialFolderPath
xor r8d, r8d
xor edx, edx
call sym.run_py3.9_win_amd64.exe_PyCMethod_New
mov rdx, qword [str._SHGetSpecialFolderPath]
mov r8, rax
mov rcx, rbx
call sym.run_py3.9_win_amd64.exe_PyObject_SetAttrString
call fcn.140002a60
lea rcx, str.PYTHONINSPECT
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, str._stdin_
call sym.run_py3.9_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.9_win_amd64.exe_PyRun_InteractiveLoopFlags
call sym.run_py3.9_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, str.PyImport_ImportModule
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 [0x14000c430], rax
mov rcx, rax
mov qword [0x14000d288], 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 [0x14000c430], rdx
mov dword [0x14000c42c], 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 [0x14000c430], rax
je 0x140002ea7
mov qword [rsp + 0x20], rdx
lea r9, [0x14000c440]
mov edx, 0x608
lea r8, str._s_S
lea rcx, [0x14000c660]
call fcn.140001060
jmp 0x140002ebc
mov r8d, 0x608
lea rdx, [0x14000c660]
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 0x140005210
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068b0
mov rdi, rax
test rax, rax
jne 0x140005259
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001c70
xor eax, eax
jmp 0x140005342
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x2020]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.14000c984
test ebx, ebx
jne 0x140005299
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001c70
xor eax, eax
jmp 0x14000533a
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
xor ecx, ecx
call fcn.140010ea8
mov rbx, rax
test rax, rax
jne 0x1400052c6
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001c70
xor eax, eax
jmp 0x14000533a
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
call fcn.14000b060
mov edx, 0x5c
mov rcx, rbx
call fcn.14000afb4
mov rdi, rax
test rax, rax
je 0x14000532c
nop dword [rax]
mov r8, rdi
lea rcx, [rsp + 0x20]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140011974
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add byte [rdx + 0x5c], bh
lea rcx, [rdi + 2]
call fcn.14000afb4
mov rdi, rax
test rax, rax
jne 0x1400052f0
xor edx, edx
mov rcx, rbx
invalid
invalid
invalid
movsb byte [rdi], byte [rsi]
invalid

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

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140025420]
call fcn.140002d90
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.1400057a0
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140005453
mov rcx, rsi
test rax, rax
je 0x14000545b
call fcn.14000bc38
test eax, eax
jne 0x14000543f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000bef0
test rax, rax
jne 0x1400053fe
mov rcx, rsi
call fcn.14000bc64
test eax, eax
je 0x140005424
mov rcx, rsi
jmp 0x140005435
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000c8f8
test rax, rax
je 0x140005432
mov rcx, rbx
call fcn.14000bc64
test eax, eax
jne 0x140005432
mov rcx, rsi
call fcn.14000bc38
test eax, eax
je 0x1400053d0
jmp 0x14000543f
mov rcx, rbx
call fcn.1400132b4
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000bbd4
mov rcx, rbx
call fcn.14000bbd4
mov eax, edi
jmp 0x140005465
test rbx, rbx
je 0x140005460
mov rcx, rbx
call fcn.14000bbd4
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140009a80
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400054e0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x2060
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x14000556b
lea rcx, [0x1400278c4]
call fcn.1400056f0
mov rcx, rbp
mov rsi, rax
call fcn.140005210
mov rdi, rax
test rax, rax
je 0x14000563f
mov rdx, rax
lea rcx, [0x1400278c8]
call fcn.140012068
mov rcx, rdi
mov ebx, eax
call fcn.14000c984
test ebx, ebx
je 0x140005570
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140001c70
xor eax, eax
jmp 0x1400056c8
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.140006080
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140013298
mov rcx, rax
mov rdi, rax
call fcn.140006560
test eax, eax
je 0x140005646
mov rcx, rdi
call fcn.14000c984
inc ebx
cmp ebx, 5
jl 0x1400055a0
test rbp, rbp
je 0x14000563f
xor r8d, r8d
lea rdx, [0x1400278c4]
xor ecx, ecx
call fcn.1400068b0
test rsi, rsi
je 0x140005629
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400068b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140012068
mov rcx, rdi
call fcn.14000c984
mov rcx, rbx
call fcn.14000c984
mov rcx, rsi
call fcn.14000c984
xor eax, eax
jmp 0x1400056c8
xor edx, edx
mov rcx, rax
mov rbx, rax
invalid
invalid
cmc
invalid
invalid

Function at 0x1400056f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068b0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140005786
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400069c0
test rax, rax
je 0x140005786
cmp byte [rax], 0
je 0x140005786
mov rcx, rax
call fcn.140014974
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009a80
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009a80
add rsp, 0x4038
ret

Function at 0x140005c90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068b0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000c984
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret