joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1405f59e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1400ab2d0
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.1405fd4d0]
mov rbx, rax
test rax, rax
je 0x1405f5b86
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1405f5a70
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + 8]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + 0x10]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1405f5ad2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + 8]
sub r15, 1
jne 0x1405f5a90
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1405f5b13
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140635109]
mov r8d, 1
call qword [rbp + 8]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14063510a]
mov r8d, 1
call qword [rbp + 8]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1405f5ae0
mov rcx, qword [rsp + 0x70]
call fcn.1400ab2d0
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + 8]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1405f5b42
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + 0x10]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + 8]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + 0x10]
mov rcx, rbx
call qword [fcn.1405fc8f4]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1405f5cb0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140678038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1405f5cfc
mov eax, 0x1b
jmp 0x1405f5dce
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1405f5d40
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1405f5dce
mov rcx, rbp
call fcn.1400ab2d0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1405f5daa
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1405f5dba
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1405f5dcc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140586b60
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1405f6cd0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1405f6d35
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1405f6ce0
ret

Function at 0x1406044ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1406042fc
Function at 0x14060a6f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140678038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14063a500]
mov rbp, rcx
call fcn.1406162c8
xor edi, edi
test rax, rax
je 0x14060a7d6
mov ebx, edi
call fcn.14000ae60
mov r14d, dword [rax]
call fcn.14000ae60
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140028b18
mov rsi, rax
test rax, rax
je 0x14060a767
call fcn.14000ae60
mov dword [rax], r14d
jmp 0x14060a791
call fcn.14000ae60
cmp dword [rax], 0x22
jne 0x14060a7ce
call fcn.14000ae60
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140028b18
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14060a7ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14060a795
cmp rax, 3
je 0x14060a7b0
mov rcx, rsi
call fcn.14060a638
test al, al
je 0x14060a7c1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14060a7c1
mov dil, 1
mov rcx, rbx
call fcn.1405fc8f4
mov al, dil
jmp 0x14060a7d8
mov rcx, rbx
call fcn.1405fc8f4
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140586b60
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14060b9b8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140586b90
sub rsp, rax
mov rax, qword [0x140678038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003defc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14060ba07
mov rax, rbp
jmp 0x14060bb0f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x970620]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140026ab0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x970620]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14060bb0b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14060bb0b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140026ab0
test rax, rax
js 0x14060bb0b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14060bb0b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14060bafd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14060bafd
cmp byte [rcx], 0xd
jne 0x14060bae3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14060baf2
cmp byte [rcx + 1], 0xa
jne 0x14060baf2
inc rcx
jmp 0x14060baf2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x679230]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14060bac5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14060bb0f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140586b60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1406177c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140970620]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14061781e
cmp word [rdx], r12w
jne 0x14061781e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140617824
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14061797f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14061795a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14061785d
mov rcx, r9
jmp 0x140617880
cmp r9, rdx
jae 0x140617897
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140617841
jmp 0x14061797f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140617954
cmp dword [rsp + 0x80], edi
je 0x140617954
mov rdx, r14
lea r11, [0x140970620]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14061792d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140617900
mov word [rbx], r12w
jmp 0x14061797b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140617909
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14061797b
cmp word [rsp + 0x70], r12w
jne 0x14061793a
cmp rbx, rsi
je 0x1406178fa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140069ec8
cmp word [rsp + 0x70], r12w
je 0x14061797f
mov word [rbx], r13w
jmp 0x14061797b
lea r11, [0x140970620]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140617977
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14061797f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140049010]
mov dword [rax], 1
mov rax, qword [0x140049020]
mov dword [rax], 1
mov rax, qword [0x140049030]
mov dword [rax], 1
mov rax, qword [0x140048fb0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000cfa0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10058
push r12
call fcn.140036580
sub rsp, rax
xor eax, eax
mov r8d, 0x14
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x50], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x50]
mov rcx, r12
call fcn.140020c80
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14000d001
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10058
pop r12
pop r13
ret

Function at 0x14000d010
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x58
xor eax, eax
mov r8d, 0x14
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.140020c80
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x58
pop r12
pop r13
ret
Function at 0x14000eb80
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x58
mov r12, qword [0x140049300]
mov r15, rcx
mov rcx, qword [r12]
mov r14, rdx
test rcx, rcx
je 0x14000ec80
lea rdx, str.environ
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, r15
mov r12, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14000ec41
mov rdx, r14
mov rcx, r15
call fcn.14000d010
mov rcx, r14
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x14000eca2
sub qword [r14], 1
jne 0x14000ec0a
mov rcx, r14
call fcn.14000eb70
sub qword [r13], 1
jne 0x14000ec19
mov rcx, r13
call fcn.14000eb70
sub qword [r12], 1
jne 0x14000ec34
mov rcx, r12
add rsp, 0x58
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000eb70
add rsp, 0x58
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x14
mov rdx, r15
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140020c80
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14000ec0a
call fcn.1400020d0
jmp 0x14000ec0a
lea rcx, [0x14004479a]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [r12], rax
mov rcx, rax
test rax, rax
jne 0x14000eba6
jmp 0x14003daa0
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop dword [rax]
call sub.msvcrt.dll_abort
nop
Function at 0x14002ca50
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x140051890], 0
mov r12, rcx
mov rdi, rdx
je 0x14002cad8
lea rdx, [0x140047c92]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14002cbe0
mov rsi, qword [0x140051888]
jmp 0x14002ca95
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14002ca90
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.140029a50
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
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]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x140051888], rcx
test eax, eax
je 0x14002cbc8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14002cb30
not eax
cmp r9d, eax
jne 0x14002cc60
mov byte [0x140051890], 1
jmp 0x14002ca68
cmp byte [0x140051880], 0
jne 0x14002ca7f
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov rdx, qword [0x1400492d0]
mov qword [rdx], rax
call rbx
mov rdx, qword [0x140049200]
mov qword [rdx], rax
call rbx
mov rdx, qword [0x1400491b0]
mov qword [rdx], rax
call rbx
mov rdx, qword [0x1400493a0]
mov qword [rdx], rax
call rbx
mov rdx, qword [0x1400492b0]
mov qword [rdx], rax
call rbx
mov rdx, qword [0x1400491f0]
mov qword [rdx], rax
call rbx
mov rdx, qword [0x140049390]
mov qword [rdx], rax
call rbx
mov rdx, qword [0x140049270]
mov byte [0x140051880], 1
mov qword [rdx], rax
jmp 0x14002ca7f
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140035280
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.14003d0e0
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.14003d0e0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140035f32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140051968]
test eax, eax
je 0x140035fca
lea rax, [0x140051940]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140051970]
mov qword [rbp - 8], rax
jmp 0x140035fae
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 0x140035fa2
cmp qword [rbp - 0x10], 0
je 0x140035fa2
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 0x140035f68
lea rax, [0x140051940]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140035fcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400360d0
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 0x1400360f8
mov eax, 0
jmp 0x140036146
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 0x140036121
mov eax, 0
jmp 0x140036146
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 0x140036141
mov eax, 0
jmp 0x140036146
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003614c
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 0x1400361ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400361c1
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 0x1400361c1
mov rax, qword [rbp - 8]
jmp 0x1400361df
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 0x140036194
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x141625058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416251df
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 0x141625089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14162506f
add dl, dl
jne 0x141625096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416250f6
xor eax, eax
add dl, dl
jne 0x1416250a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416251ad
add dl, dl
jne 0x1416250b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416250c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416250d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416250dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416250ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14162507e
mov eax, 1
add dl, dl
jne 0x141625106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141625113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416250fb
sub eax, ebx
mov ebx, 1
jne 0x14162514c
mov ecx, 1
add dl, dl
jne 0x14162512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14162513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141625123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141625168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141625175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14162515d
cmp eax, 0x7d00
jae 0x14162519b
cmp eax, 0x500
jb 0x141625196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162507e
cmp eax, 0x7f
ja 0x14162519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14162507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416251d2
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 0x14162507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20