joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
sar eax, 4
movsxd rcx, eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
xor eax, 0x7ff
sar eax, 4
movsxd rcx, eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
sar eax, 4
movsxd rcx, eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + rcx*4]
mov eax, dword [rsp + 0x28]
add eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
xor eax, 0x7ff
sar eax, 4
movsxd rcx, eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + rcx*4]
mov eax, dword [rsp + 0x28]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x24], 0
jmp 0x44664
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 8
jae 0x446b5
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
jb 0x4467a
jmp 0x44769
mov eax, dword [rsp + 0x58]
shl eax, 3
mov ecx, eax
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rcx*2 + 4]
mov r9, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x24]
mov edx, 3
call fcn.00044780
mov edx, dword [rsp + 0x30]
add edx, eax
mov ecx, dword [rsp + 0x24]
mov rax, qword [rsp + 0x68]
mov dword [rax + rcx*4], edx
jmp 0x44659
jmp 0x446c2
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x10
jae 0x4471a
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
jb 0x446d8
jmp 0x44769
mov r8d, dword [rsp + 0x24]
sub r8d, 8
mov eax, dword [rsp + 0x58]
shl eax, 3
mov ecx, eax
mov rax, qword [rsp + 0x50]
lea rcx, [rax + rcx*2 + 0x104]
mov r9, qword [rsp + 0x70]
mov edx, 3
call fcn.00044780
mov edx, dword [rsp + 0x20]
add edx, eax
mov ecx, dword [rsp + 0x24]
mov rax, qword [rsp + 0x68]
mov dword [rax + rcx*4], edx
jmp 0x446b7
jmp 0x44727
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
jae 0x44769
mov r8d, dword [rsp + 0x24]
sub r8d, 0x10
mov rcx, qword [rsp + 0x50]
add rcx, 0x204
mov r9, qword [rsp + 0x70]
mov edx, 8
call fcn.00044780
mov edx, dword [rsp + 0x2c]
add edx, eax
mov ecx, dword [rsp + 0x24]
mov rax, qword [rsp + 0x68]
mov dword [rax + rcx*4], edx
jmp 0x4471c
add rsp, 0x48
ret
Function at 0x46320
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0x100
mov eax, dword [rsp + 0x50]
or eax, 0x100
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x58]
shl eax, 1
mov dword [rsp + 0x58], eax
mov r8d, dword [rsp + 0x50]
shr r8d, 7
and r8d, 1
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x58]
and ecx, eax
mov eax, dword [rsp + 0x20]
add eax, ecx
mov ecx, dword [rsp + 0x50]
shr ecx, 8
add eax, ecx
mov ecx, eax
mov rax, qword [rsp + 0x48]
lea rdx, [rax + rcx*2]
mov rcx, qword [rsp + 0x40]
call fcn.000461d0
mov eax, dword [rsp + 0x50]
shl eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
xor ecx, eax
not ecx
mov eax, dword [rsp + 0x20]
and eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x50], 0x10000
jb 0x4634d
add rsp, 0x38
ret

Function at 0x48ee0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov eax, dword [rsp + 0x28]
or eax, 0x100
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
shr eax, 8
mov ecx, eax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + rcx*2]
mov ecx, dword [rsp + 0x28]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
sar eax, 4
movsxd rcx, eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + rcx*4]
mov eax, dword [rsp]
add eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
shl eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x10000
jb 0x48f06
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x48f70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov dword [rsp + 4], 0x100
mov eax, dword [rsp + 0x28]
or eax, 0x100
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 4]
mov ecx, dword [rsp + 0x30]
and ecx, eax
mov eax, dword [rsp + 4]
add eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
add eax, ecx
mov ecx, eax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + rcx*2]
mov ecx, dword [rsp + 0x28]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
sar eax, 4
movsxd rcx, eax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + rcx*4]
mov eax, dword [rsp]
add eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
shl eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
xor ecx, eax
not ecx
mov eax, dword [rsp + 4]
and eax, ecx
mov dword [rsp + 4], eax
cmp dword [rsp + 0x28], 0x10000
jb 0x48fa3
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x4e330
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x40], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x64], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x28], 0
mov rcx, qword [rsp + 0x40]
call fcn.0004e3f0
mov dword [rsp + 0x20], 0
jmp 0x4e37e
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jae 0x4e3e2
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
jmp 0x4e3a5
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 8
jge 0x4e3cc
mov eax, dword [rsp + 0x24]
shr eax, 1
mov ecx, dword [rsp + 0x24]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x4e39a
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x24]
mov dword [rcx + rdx*4 + 0x8c], eax
jmp 0x4e373
add rsp, 0x38
ret
Function at 0x180002274
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x180042008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rdx
and dword [rbp - 0x30], 0
and qword [rcx], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rbp - 0x30], 1
xor edi, edi
test r8, r8
je 0x18000235a
xor eax, eax
mov word [rbp - 0x18], ax
mov byte [rbp - 0x16], al
xor edx, edx
cmp rdi, r15
jae 0x1800022f6
mov rax, qword [rsi]
mov cl, byte [rdi + rax]
mov byte [rbp + rdx - 0x18], cl
inc rdi
inc rdx
cmp rdx, 3
jb 0x1800022db
mov cl, byte [rbp - 0x18]
mov al, cl
shr al, 2
mov byte [rbp - 0x14], al
and cl, 3
shl cl, 4
mov dl, byte [rbp - 0x17]
mov al, dl
shr al, 4
or cl, al
mov byte [rbp - 0x13], cl
and dl, 0xf
shl dl, 2
mov cl, byte [rbp - 0x16]
mov al, cl
shr al, 6
or dl, al
mov byte [rbp - 0x12], dl
and cl, 0x3f
mov byte [rbp - 0x11], cl
xor r14d, r14d
movzx eax, byte [rbp + r14 - 0x14]
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dl, byte [rax + rcx]
mov rcx, rbx
call fcn.180005420
inc r14
cmp r14, 4
jb 0x180002330
cmp rdi, r15
jb 0x1800022d0
mov rcx, rdi
not rcx
movabs r14, 0xaaaaaaaaaaaaaaab
mov rax, r14
mul rcx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rcx, rax
test ecx, ecx
je 0x1800023b1
mov edx, ecx
mov rcx, qword [rbx + 0x10]
dec rcx
mov qword [rbx + 0x10], rcx
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180002398
mov rax, qword [rbx]
mov byte [rax + rcx], 0
sub rdx, 1
jne 0x180002380
jmp 0x1800023b1
mov dl, 0x3d
mov rcx, rbx
call fcn.180005420
inc rdi
mov rax, r14
mul rdi
shr rdx, 1
lea rcx, [rdx + rdx*2]
cmp rdi, rcx
jne 0x1800023a4
mov rcx, qword [rsi]
test rcx, rcx
je 0x180002406
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1800023f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002429
mov rcx, r8
call fcn.180008ef0
and qword [rsi], 0
and qword [rsi + 8], 0
and qword [rsi + 0x10], 0
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180008ed0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180014c20
int3
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.dU4_]
mov dword [rax], 1
mov rax, qword [str.hU4_]
mov dword [rax], 1
mov rax, qword [str.lU4_]
mov dword [rax], 1
mov rax, qword [0x14030c910]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14027bb50
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1402e6350
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14027bc15
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f725e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14027bbf6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14027bbe8
test rsi, rsi
je 0x1402f725e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14027bba8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14027bc44
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14027bc60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14027bd1d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f7264
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14027bcfe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14027bcf0
test rsi, rsi
je 0x1402f7264
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14027bcb0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402a50d0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1403447e8]
mov rsi, rcx
test rbx, rbx
je 0x1402a5150
mov rax, qword [0x14030cad0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1402a5140
mov rdx, qword [0x140344a28]
test rdx, rdx
je 0x1402a5248
mov rcx, rbx
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
jmp 0x1402a5121
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14027bb50
test rax, rax
je 0x1402a5268
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f72f8
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1402a51ee
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1402a51e0
test rbx, rbx
je 0x1402f72f8
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1402a51a0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f8]
call fcn.1402a4f80
mov rbx, rax
mov qword [0x1403447e8], rbx
jmp 0x1402a50f2
lea rcx, [0x140309000]
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov qword [0x140344a28], rax
mov rdx, rax
jmp 0x1402a5112
mov rbx, qword [0x140344800]
test rbx, rbx
jne 0x1402a5236
cmp byte [0x140344a22], 0
jne 0x1402a5287
mov ecx, 1
call fcn.140264510
mov rdx, 0xffffffffffffffff
lea rcx, [0x140344820]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [0x140344800], rax
mov rbx, rax
test rax, rax
je 0x1402a52b0
add qword [rax], 1
jmp 0x1402a5236
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax]
call sub.msvcrt.dll_abort
nop
Function at 0x1402a68b0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14027bb50
test rax, rax
je 0x1402a6a08
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402f7316
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1402a6966
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1402a6958
test rbx, rbx
je 0x1402f7316
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1402a6918
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x140344f40]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x14030cad0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1402a6a60
mov rdx, rbx
call fcn.1402625b0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140298f40
sub qword [rbx], 1
jne 0x1402a69f1
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1403447f8]
lea rsi, [0x1403447f8]
test bl, bl
je 0x1402a6a28
mov rax, qword [0x140344800]
lea rsi, [0x140344800]
test rax, rax
jne 0x1402a69f1
cmp byte [0x140344a22], 0
jne 0x1402a6a3e
movzx ecx, bl
call fcn.140264510
mov rdx, 0xffffffffffffffff
lea rcx, [0x140344820]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1402a6a8a
add qword [rax], 1
jmp 0x1402a69f1
mov rcx, qword [0x140344eb8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1402a6a95
mov rdx, rdi
call fcn.1402625b0
mov qword [0x140344f40], rax
mov rcx, rax
jmp 0x1402a69be
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140304efb]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x140344eb8], rax
mov rcx, rax
test rax, rax
je 0x1402f7316
jmp 0x1402a6a73
Function at 0x1402dc770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1403447e1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1402dc7f8
lea rdx, [0x14030883a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1402dc860
mov rbx, qword [0x140344680]
jmp 0x1402dc7b5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1402dc7b0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1402cb940
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140344680], rax
mov ebx, dword [rax]
mov qword [0x140344680], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140344680], rdx
call fcn.1402db8a0
cmp eax, ebx
jne 0x1402dc8c8
mov byte [0x1403447e1], 1
jmp 0x1402dc78c
cmp byte [0x1403447e0], 0
jne 0x1402dc7a3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x140345148], rax
call rbx
mov qword [0x140345140], rax
call rbx
mov qword [0x140345138], rax
call rbx
mov qword [0x140345130], rax
call rbx
mov qword [0x140345128], rax
call rbx
mov qword [0x140345120], rax
call rbx
mov qword [0x140345118], rax
call rbx
mov byte [0x1403447e0], 1
mov qword [0x140345110], rax
jmp 0x1402dc7a3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1402e5030
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1402f67b0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1402f67b0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1402e5d02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140345608]
test eax, eax
je 0x1402e5d9a
lea rax, [0x1403455e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140345610]
mov qword [rbp - 8], rax
jmp 0x1402e5d7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1402e5d72
cmp qword [rbp - 0x10], 0
je 0x1402e5d72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1402e5d38
lea rax, [0x1403455e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1402e5d9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1402e5ea0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1402e5ec8
mov eax, 0
jmp 0x1402e5f16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1402e5ef1
mov eax, 0
jmp 0x1402e5f16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1402e5f11
mov eax, 0
jmp 0x1402e5f16
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1402e5f1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1402e5f9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1402e5f91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1402e5f91
mov rax, qword [rbp - 8]
jmp 0x1402e5faf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1402e5f64
mov eax, 0
add rsp, 0x20
pop rbp
ret