joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011844
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400118a2
call fcn.140017ff4
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400118a2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400118ad
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.1400092b8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400120a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140012161
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140012161
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140012161
test rdi, rdi
je 0x140012161
xor r14d, r14d
xor esi, esi
call fcn.140017ff4
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140012141
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140012161
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.140022298
mov edi, eax
test eax, eax
je 0x14001215d
mov rcx, rbx
call fcn.140011dcc
mov eax, edi
jmp 0x140012163
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140013080
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14001992c
mov rdi, rax
test rax, rax
je 0x1400130fc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400130f7
cmp dword [rbx], 0x40
jb 0x1400130f7
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400130f7
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x140013100
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017954
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 0x28]
movsxd rbx, edx
mov rdi, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jle 0x1400179b1
cmp ebx, dword [rdi + 0xc]
jge 0x1400179b1
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400179b1
cmp qword [rax + 0x18], 0
je 0x1400179b1
cmp ebx, dword [rax + 0x10]
jge 0x1400179b1
lfence
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov rbx, qword [rax + rbx*8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
jmp 0x1400179bc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140019e7c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rax, vtable.CDataRecoveryHandler.0
mov qword [rcx], rax
lea rdi, [rcx + 0x120]
cmp qword [rcx + 0x138], 0
je 0x140019eef
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140024c34
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019ee5
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400126da.0]
cmp qword [rbx + 0x138], 0
jne 0x140019ea4
mov rdx, qword [rbx + 0x180]
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
mov rdx, qword [rbx + 0x160]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019f29
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400126da.0]
mov rdx, qword [rbx + 0x158]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019f54
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400126da.0]
mov rcx, rdi
call fcn.1400249a4
lea rcx, [rbx + 0xe8]
lea rdi, vtable.CMap_class_CDocument____ptr64__class_CDocument____ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64_.0
mov qword [rcx], rdi
call fcn.14001c41c
nop
lea rcx, [rbx + 0xb0]
mov qword [rcx], rdi
call fcn.14001c41c
nop
lea rcx, [rbx + 0x78]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__bool__bool_.0
mov qword [rcx], rax
call fcn.14001c4c0
nop
lea rcx, [rbx + 0x40]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__class_CDocument____ptr64__class_CDocument____ptr64_.0
mov qword [rcx], rax
call fcn.14001c4c0
nop
lea rcx, [rbx + 8]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64_.0
mov qword [rcx], rax
call fcn.14001c564
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ab60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14001ab92
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001ab92
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140024a10
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14001c1b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov rax, qword [0x140065770]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14, rcx
xor r12d, r12d
mov r15d, r12d
call fcn.140017ff4
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.14000d320
mov rbx, rax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], r12d
mov qword [rbp - 0x70], r12
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], r12
mov rcx, qword [r14]
mov rax, qword [rcx + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [case.0x1400126da.0]
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, rbx
call qword [0x140065098]
mov ebx, eax
test eax, eax
jne 0x14001c26b
mov ebx, r12d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], r12d
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001c294
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400126da.0]
test ebx, ebx
jne 0x14001c3cd
mov esi, r12d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.14002aba0
mov dword [rsp + 0x40], 0x104
xor edx, edx
jmp 0x14001c336
inc esi
mov dword [rsp + 0x40], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.14002aba0
mov dword [rsp + 0x60], 0x104
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x1b0]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x48]
call fcn.14001c118
test eax, eax
jne 0x14001c334
lea rcx, [r14 + 8]
lea rdx, [rbp - 0x60]
call fcn.14001a0e4
mov rbx, rax
lea rcx, [rbp + 0x1b0]
call fcn.1400314e8
mov r8d, eax
lea rdx, [rbp + 0x1b0]
mov rcx, rbx
call fcn.140009f10
mov r15d, 1
mov edx, esi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14001c2bc
cmp qword [rsp + 0x48], r12
je 0x14001c37d
mov rcx, qword [rsp + 0x48]
call qword [0x140065090]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov rax, qword [r14]
lea rdx, [rsp + 0x78]
mov rcx, r14
mov rax, qword [rax + 0x40]
call qword [case.0x1400126da.0]
mov rdx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400058a0
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001c3cd
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400126da.0]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001c3de
call qword [0x140065090]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14001c3ed
call qword [0x140065090]
mov eax, r15d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140028810
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140022c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, 0x10000
jae 0x140022c9f
cmp dword [rcx + 0xe8], 0
jne 0x140022c9f
movzx eax, si
mov dword [rcx + 0xe8], eax
call fcn.140017ff4
mov r8d, 5
mov rdx, rsi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x140022f7c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
jne 0x140022fd1
call fcn.14000c968
mov rdx, rax
test rax, rax
je 0x140022fcf
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x1400126da.0]
mov rbx, rax
jmp 0x140022fd1
xor ebx, ebx
and qword [rdi + 0x108], 0
mov r9, rsi
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140022cec
Function at 0x14014a7e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14014ef40
sub rsp, rax
mov rax, qword [0x1401930a8]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14014a8a2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14014a84d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14014a840
cmp rcx, 1
jb 0x14014a8fa
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14014a870
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14015e0c4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14014a830
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14014a8d3
lea rcx, [rsp + 0x80]
call fcn.140160dd0
jmp 0x14014a8d5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14014ec70
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140152e58
int3
Function at 0x14014e760
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401930a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14014e805
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14014e7bd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14014e7b0
cmp rcx, 1
jb 0x14014e836
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14014e7d3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14015e0c4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14014e7a0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14014ec70
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140152e58
int3
Function at 0x14014e940
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x1401930a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14019fbb8]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x14014e990
lea rcx, [0x14016faf4]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x14019fbb8], rax
test rax, rax
je 0x14014ebca
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x14014eac6
test dl, dl
je 0x14014ea62
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14014ea0d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14014ea00
cmp rcx, 1
jb 0x14014ebd0
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14014ea30
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14015e0c4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14014e9f0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x14014eaad
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14014eb67
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14014eb67
test dl, dl
je 0x14014eb42
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14014eaed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14014eae0
cmp rcx, 1
jb 0x14014ebc4
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14014eb10
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14015e0c4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14014ead0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14014eb67
mov rcx, r14
call fcn.140020b50
sub qword [r13], 1
jne 0x14014eb78
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x14014eb88
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14014ec70
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.140152e58
int3
call fcn.140152e58
int3
call fcn.140152e58
int3
Function at 0x14014f6ec
Capabilities:
Parse pe header

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

Function at 0x1401546c8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140154533
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140154533
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140154533
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140154533
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140154533
cmp dword [rcx + 0x84], 0xe
jbe 0x140154533
cmp dword [rcx + 0xf8], 0
je 0x140154533
mov ecx, ebx
call fcn.1401545e4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401543c0
nop
cmp dword [rbp + 0x20], 0
je 0x140154581
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14015458c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401544c4
Function at 0x140165f50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140165fd7
mov rsi, rbx
cmp word [rax], bp
je 0x140165f96
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140165f80
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140165f7c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401615bc
mov rdi, rax
test rax, rax
je 0x140165fc4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14014fa90
mov rbp, rdi
xor ecx, ecx
call fcn.140162104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401696f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140169706
mov al, 1
jmp 0x140169766
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140169717
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140169764
mov ecx, dword [rcx + 0x18]
nop
call fcn.140166298
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140169764
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140169764
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140169764
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140169766
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400010b0
Capabilities:
Access peb ldr_data
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rax, qword gs:[0x30]
mov esi, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x20]
mov rbx, qword [rdx]
mov r10, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
mov rdi, rax
cmp r10, rbx
je 0x140001144
nop dword [rax]
mov r11, qword [rax + 8]
mov r8d, 0x1505
mov r9, qword [r11 + 0x60]
movzx eax, word [r9]
test eax, eax
je 0x14000112f
nop word [rax + rax]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea edx, [rax + 0x20]
lea r9, [r9 + 2]
cmova edx, eax
movzx eax, word [r9]
imul r8d, r8d, 0x21
add r8d, edx
test eax, eax
jne 0x140001110
cmp r8d, esi
je 0x140001156
cmp r10, rdi
je 0x140001144
mov rax, r10
mov r10, qword [r10]
cmp r10, rbx
jne 0x1400010f0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rax, qword [r11 + 0x30]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140001170
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
xor r10d, r10d
mov ebp, edx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r14d, dword [r8 + 0x1c]
mov esi, dword [r8 + 0x20]
add r14, rcx
mov r15d, dword [r8 + 0x24]
add rsi, rcx
mov edi, dword [r8 + 0x18]
add r15, rcx
test edi, edi
je 0x140001210
nop dword [rax]
movzx ebx, r10w
mov r9d, 0x1505
mov r8d, dword [rsi + rbx*4]
add r8, r11
movsx eax, byte [r8]
test eax, eax
je 0x1400011ff
nop dword [rax]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea edx, [rax + 0x20]
lea r8, [r8 + 1]
cmova edx, eax
movsx eax, byte [r8]
imul r9d, r9d, 0x21
add r9d, edx
test eax, eax
jne 0x1400011e0
cmp r9d, ebp
je 0x14000122b
inc r10w
movzx eax, r10w
cmp eax, edi
jb 0x1400011c0
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
movzx eax, word [r15 + rbx*2]
mov eax, dword [r14 + rax*4]
add rax, r11
jmp 0x140001212

Function at 0x14001cb50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret