joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433640
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x4338c6
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
lea rsi, [rax + 0x1298]
mov rcx, qword [rax + 0x1288]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x4338ba
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1288], 0
cmp byte [0x00a7775c], 0
jne 0x43369a
xor edx, edx
xor ebx, ebx
jmp 0x4336e0
xor edx, edx
jmp 0x4336c5
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1298]
mov rax, rcx
call fcn.004219e0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x43369e
add rax, 0x1288
call fcn.004335c0
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x433854
mov rsi, qword [rax + rdx*8 + 0x1298]
cmp rsi, 0x1000
jb 0x4336db
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.004151e0
test rax, rax
jne 0x43372c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x4336db
mov rsi, qword [rbx + 0x48]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x43376c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x4336db
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x4338ad
lea r10, [0x00a09858]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x1040]
lea r8, [r8 + r10]
lea r8, [r8 + 0x1040]
test r11b, r9b
jne 0x4337ef
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x433825
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1270]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1270], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x4336db
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x4338a5
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1298], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x4336db
cmp rbx, 0x200
ja 0x433894
lea rdx, [rax + 0x1298]
lea rsi, [rax + 0x1260]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00428560
mov rax, qword [rsp + 0x48]
add rax, 0x1288
call fcn.004335c0
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.0046ce60
mov rax, r8
call fcn.0046cde0
mov rax, r8
mov ecx, pe_nt_image_headers64
call fcn.0046ce00
mov edx, 0x200
nop
call fcn.0046ce40
nop
mov qword [rsp + 8], rax
call fcn.004716e0
mov rax, qword [rsp + 8]
jmp fcn.00433640
Function at 0x449700
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x449867
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x449712
cmp edx, ecx
jne 0x449855
nop word [rax + rax]
test rsi, rsi
jne 0x449855
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x449774
nop
call fcn.0046e720
xorps xmm15, xmm15
mov r14, qword [0x00a77a70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00449620
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x449850
mov rdx, qword [0x009f0fd8]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x449845
mov rcx, qword [0x009f0fd0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x009f3d50]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x009f3d50], rax
nop
mov edx, 1
lea rsi, [0x009f3d58]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1248]
shr rdx, 0x3d
test dl, dl
jne 0x449833
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1248], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x0070c44b]
mov ebx, 0x28
nop
call fcn.00439660
mov rax, rsi
mov rcx, rdx
call fcn.0046cde0
call fcn.00437ee0
lea rax, [0x00709f5b]
mov ebx, 0x23
call fcn.00439660
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046ab00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00449700
Function at 0x457020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x457197
movzx edx, byte [rax]
test edx, edx
jne 0x457054
nop dword [rax]
test r8b, r8b
jne 0x457054
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x457067
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x457157
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x457145
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x457137
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x4570bd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x457100
mov eax, 1
cmp rax, rbx
ja 0x4570eb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046cea0
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45712f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x4570f3
mov rcx, r11
mov eax, r12d
jmp 0x4570c2
mov rcx, rbx
call fcn.0046cde0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046cde0
mov eax, r8d
mov rcx, rbx
call fcn.0046cea0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45718d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x457150
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45706d
mov eax, edx
mov rcx, rbx
call fcn.0046cde0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046cde0
nop
int3

Function at 0x45d1a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45d255
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.0045ae20
nop
test bl, bl
je 0x45d24f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x0045d2a0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0046a9e0
xorps xmm15, xmm15
mov r14, qword [0x00a77a70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046ab00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045d1a0
Function at 0x460220
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4602cf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00460320]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046a9e0
xorps xmm15, xmm15
mov r14, qword [0x00a77a70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046ab00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00460220
Function at 0x140002da0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13d, edx
mov esi, ecx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x140002f6d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
xor ebp, ebp
mov qword [rsp + 0x58], rbp
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002e28
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r15b, r15b
mov r14, qword [rsp + 0x48]
jmp 0x140002f2a
mov dword [rsp + 0x28], 0x1c
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov rdi, qword [rsp + 0x50]
test eax, eax
je 0x140002eaa
cmp dword [rsp + 0x34], esi
jne 0x140002e98
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140002e98
cmp rdi, rbp
je 0x140002e7c
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x50], rdi
jmp 0x140002e98
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400076b0
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140002e47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15b, 1
mov r14, qword [rsp + 0x48]
mov rsi, r14
cmp r14, rdi
je 0x140002f20
test r13d, r13d
jne 0x140002f02
nop dword [rax + rax]
mov rbx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor r8d, r8d
movzx edx, r15b
cmp eax, 0xffffffff
cmovne r8d, edx
movzx r15d, r8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 8
cmp rsi, rdi
jne 0x140002ed0
jmp 0x140002f20
mov rbx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 8
cmp rsi, rdi
jne 0x140002f02
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x140002f69
sub rbp, r14
and rbp, 0xfffffffffffffff8
mov rax, r14
cmp rbp, 0x1000
jb 0x140002f5e
add rbp, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbp
mov rcx, r14
call fcn.140007d2c
movzx eax, r15b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140007a90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400085cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008616
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008616
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008616
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008616
cmp dword [rcx + 0x84], 0xe
jbe 0x140008616
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008618
xor al, al
add rsp, 0x28
ret
Function at 0x140001400
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [0x140005080]
mov r9d, 0x18
mov dword [rsp + 0x38], ecx
xor r8d, r8d
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea rdi, [0x140005090]
test eax, eax
je 0x14000151a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000151a
mov rcx, qword [rsp + 0x50]
lea rdx, [0x140005430]
xor r9d, r9d
mov r8d, 0x10
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000151a
mov r8, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x14000151a
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000151a
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [rsp + 0x28], 4
lea r9, [0x140005080]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000163a
mov r8d, dword [0x140005080]
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsp + 0x40]
mov r9d, 0x20
lea r8, [0x140005080]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400015ed
call qword [rsp + 0x30]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400016a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001f60
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1401626d0
sub rsp, rax
mov rax, qword [0x1401a6980]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14015db22
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401715b4
cmp rax, 1
jne 0x14015db7e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14015daff
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14015daf3
cmp rcx, 1
jb 0x14015db7e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14015dac0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14015db53
lea rcx, [rsp + 0x80]
call fcn.1401741e8
jmp 0x14015db55
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140162400
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140165b90
int3
Function at 0x14015ead0
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
cmp byte [0x1401b2376], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x14015eb55
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1401b2340], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x1401b2340], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x1401b2340], rdx
call fcn.14015c7b0
cmp eax, ebx
jne 0x14015ecbd
mov byte [0x1401b2376], 1
lea rdx, [0x140183788]
mov rcx, rsi
call fcn.140173060
test eax, eax
je 0x14015ebe0
cmp byte [0x1401b2375], 1
je 0x14015ebe0
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b30e0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b30e8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b30f0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b30f8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b3100], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b3108], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b3110], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1401b3118], rax
mov byte [0x1401b2375], 1
mov r8, qword [0x1401b2340]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14015ec07
inc rax
test cl, cl
jne 0x14015ebf0
mov ecx, r9d
jmp 0x14015ec0c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14015ec13
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14015ec78
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14015ec55
inc rax
test cl, cl
jne 0x14015ec40
mov ecx, r9d
jmp 0x14015ec5a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14015ec61
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14015ec30
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14015eca8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14015ae60
add rdi, 8
sub rbx, 1
jne 0x14015ec90
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14016ddf4
call fcn.140165b90
int3
Function at 0x140161f60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1401a6980]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140162011
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1401715b4
cmp rax, 1
jne 0x140162047
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x140161fed
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140161fe0
cmp rcx, 1
jb 0x140162047
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140161fb0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140162400
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140165b90
int3

Function at 0x140162280
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401a6980]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14016232f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401715b4
cmp rax, 1
jne 0x140162365
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14016230c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140162300
cmp rcx, 1
jb 0x140162365
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401622d0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140162400
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140165b90
int3

Function at 0x140162e34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140162e7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140162e7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140162e7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140162e7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140162e7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140162e80
xor al, al
add rsp, 0x28
ret
Function at 0x140167204
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 0x140167273
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140167273
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140167273
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140167273
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140167273
cmp dword [rcx + 0x84], 0xe
jbe 0x140167273
cmp dword [rcx + 0xf8], 0
je 0x140167273
mov ecx, ebx
call fcn.140167324
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.140167100
nop
cmp dword [rbp + 0x20], 0
je 0x1401672c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401672cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140167204

Function at 0x140167408
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 0x140167273
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140167273
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140167273
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140167273
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140167273
cmp dword [rcx + 0x84], 0xe
jbe 0x140167273
cmp dword [rcx + 0xf8], 0
je 0x140167273
mov ecx, ebx
call fcn.140167324
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.140167100
nop
cmp dword [rbp + 0x20], 0
je 0x1401672c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401672cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140167204