joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e7f8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [rcx + 0x9c0], 0x270
mov r8, rcx
jl 0x18000e8bd
xor r9d, r9d
mov r10d, 0x7fffffff
lea r11, [0x1800227f0]
mov edx, 0xe3
mov ecx, dword [r8 + r9*4 + 4]
xor ecx, dword [r8 + r9*4]
and ecx, r10d
xor ecx, dword [r8 + r9*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + r9*4 + 0x634]
mov dword [r8 + r9*4], eax
inc r9
cmp r9, rdx
jl 0x18000e820
mov ecx, dword [r8 + rdx*4 + 4]
xor ecx, dword [r8 + rdx*4]
and ecx, r10d
xor ecx, dword [r8 + rdx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + rdx*4 - 0x38c]
mov dword [r8 + rdx*4], eax
inc rdx
cmp rdx, 0x26f
jl 0x18000e851
mov edx, dword [r8 + 0x9bc]
xor edx, dword [r8]
and edx, r10d
xor edx, dword [r8 + 0x9bc]
mov eax, edx
shr edx, 1
and eax, 1
mov ecx, dword [r11 + rax*4]
xor ecx, dword [r8 + 0x630]
xor ecx, edx
and dword [r8 + 0x9c0], 0
mov dword [r8 + 0x9bc], ecx
movsxd rcx, dword [r8 + 0x9c0]
mov edx, dword [r8 + rcx*4]
lea eax, [rcx + 1]
mov dword [r8 + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x18000e994
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
not r8d
test edx, edx
jne 0x18000e9a1
xor eax, eax
ret
mov r9d, edx
lea rdx, [0x180019d30]
movzx eax, byte [r10]
inc r10
xor r8d, eax
mov eax, r8d
shr r8d, 4
and eax, 0xf
mov ecx, dword [rdx + rax*4]
xor ecx, r8d
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
dec r9
jne 0x18000e9ab
not r8d
mov eax, r8d
ret

Function at 0x18000ebd0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
mov rsi, rdx
call fcn.18000eaa0
mov rdi, rax
test rax, rax
je 0x18000ec5e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x18000ec55
lea ecx, [rbx + 1]
call fcn.18000ca40
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18000ec55
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.18000eb50
test eax, eax
je 0x18000ec55
cmp dword [rsp + 0x40], ebx
jne 0x18000ec55
mov rax, qword [rsp + 0x48]
mov byte [rbx + rax], 0
test rsi, rsi
je 0x18000ec45
mov dword [rsi], ebx
mov rcx, rdi
call qword [0x180028748]
mov rax, qword [rsp + 0x48]
jmp 0x18000ec74
mov rcx, rdi
call qword [0x180028748]
cmp qword [rsp + 0x48], 0
je 0x18000ec72
lea rcx, [rsp + 0x48]
xor edx, edx
call fcn.18000ca70
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18000fce4
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x80
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]
Function at 0x18000fd08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x18000fea0
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x68
xor r13d, r13d
mov word [rbp + 0x44], 0x500
lea ecx, [r13 + 8]
mov ebx, r13d
mov qword [rbp + 0x48], r13
mov dword [rbp + 0x40], r13d
call fcn.18000fd24
mov rsi, rax
test rax, rax
je 0x18000ff97
mov edi, 2
lea r8, [rbp + 0x38]
mov rcx, rax
mov edx, edi
call fcn.18000fd80
mov qword [rbp + 0x48], rax
test rax, rax
je 0x18000ff7b
lea rax, [rbp + 0x50]
lea r8d, [rdi + 0x1e]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov r9d, 0x220
mov edx, edi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [0x180028890]
test eax, eax
je 0x18000ff7b
mov rax, qword [rbp + 0x48]
mov edi, r13d
cmp dword [rax], r13d
jbe 0x18000ff71
mov r12, r13
mov rdx, qword [rbp + 0x50]
mov rcx, qword [r12 + rax + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x18000ff6c
mov rax, qword [rbp + 0x48]
inc edi
add r12, 0x10
cmp edi, dword [rax]
jb 0x18000ff49
jmp 0x18000ff71
mov ebx, 1
mov rcx, qword [rbp + 0x50]
call qword [0x1800287d0]
mov rcx, rsi
call qword [0x180028748]
cmp qword [rbp + 0x48], r13
je 0x18000ff95
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.18000ca70
mov eax, ebx
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x18000ffa4
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
xor r9d, r9d
mov dword [rax + 0x10], 0
mov word [rax + 0x14], 0x500
lea rax, [rax + 0x18]
mov rbx, rcx
lea edx, [r9 + 1]
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8d, [r9 + 0x12]
lea rcx, [rsp + 0x78]
call qword [0x180028890]
test eax, eax
je 0x180010020
mov rdx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [0x1800287d0]
mov eax, ebx
add rsp, 0x60
pop rbx
ret

Function at 0x180010834
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
cmp dword [0x180026660], 0
je 0x180010848
mov eax, 9
jmp 0x180010858
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x180011798
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9b, byte [r8 + 0x100]
mov r10b, byte [r8 + 0x101]
movsxd rdx, edx
mov r11, rcx
test rdx, rdx
jle 0x180011839
movzx r9d, r9b
inc r9d
and r9d, 0x800000ff
jge 0x1800117d8
dec r9d
or r9d, 0xffffff00
inc r9d
movzx r10d, r10b
movzx ebx, r9b
movzx edi, byte [rbx + r8]
add r10d, edi
and r10d, 0x800000ff
jge 0x1800117fe
dec r10d
or r10d, 0xffffff00
inc r10d
movzx ecx, r10b
mov al, byte [rcx + r8]
mov byte [rbx + r8], al
mov byte [rcx + r8], dil
movzx ecx, byte [rbx + r8]
add ecx, edi
and ecx, 0x800000ff
jge 0x180011827
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cl
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
dec rdx
jne 0x1800117bb
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov byte [r8 + 0x100], r9b
mov byte [r8 + 0x101], r10b
ret

Function at 0x180011a70
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x5c]
cmp dword [rcx + 0x5c], 0x37
mov rbx, rcx
mov byte [rax + rcx + 0x1c], 0x80
jle 0x180011abe
jmp 0x180011a91
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x40
jl 0x180011a8a
call fcn.180011884
jmp 0x180011aaf
movsxd rax, dword [rbx + 0x5c]
mov byte [rax + rbx + 0x1c], 0
inc dword [rbx + 0x5c]
cmp dword [rbx + 0x5c], 0x38
jl 0x180011aa3
jmp 0x180011ac9
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x38
jl 0x180011ab7
mov al, byte [rbx + 0x1b]
mov rcx, rbx
mov byte [rbx + 0x54], al
mov al, byte [rbx + 0x1a]
mov byte [rbx + 0x55], al
mov al, byte [rbx + 0x19]
mov byte [rbx + 0x56], al
mov al, byte [rbx + 0x18]
mov byte [rbx + 0x57], al
mov al, byte [rbx + 0x17]
mov byte [rbx + 0x58], al
mov al, byte [rbx + 0x16]
mov byte [rbx + 0x59], al
mov al, byte [rbx + 0x15]
mov byte [rbx + 0x5a], al
mov al, byte [rbx + 0x14]
mov byte [rbx + 0x5b], al
add rsp, 0x20
pop rbx
jmp fcn.180011884
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004b060]
mov dword [rax], 1
mov rax, qword [0x14004b070]
mov dword [rax], 1
mov rax, qword [0x14004b080]
mov dword [rax], 1
mov rax, qword [0x14004b010]
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 0x140016610
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.14002bad0
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 0x1400166d5
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 0x14003c980
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400166b6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400166a8
test rsi, rsi
je 0x14003c980
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140016668
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 0x140016704
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 0x140016720
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 0x1400167dd
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 0x14003c986
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400167be
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400167b0
test rsi, rsi
je 0x14003c986
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140016770
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 0x140016810
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov qword [rsp + 0x38], rcx
mov rcx, qword [0x140053408]
mov rsi, rdx
mov rbx, r8
test rcx, rcx
je 0x1400169bb
lea rdx, str.environ
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rbp, rax
test rbx, rbx
je 0x1400168ea
mov rdx, rbx
mov rcx, rsi
call fcn.140016720
mov rcx, rbx
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, rbp
mov rcx, rdi
mov rbx, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x1400169e0
sub qword [rbx], 1
jne 0x1400168a6
mov rcx, rbx
call fcn.140003360
sub qword [rbp], 1
jne 0x1400168b5
mov rcx, rbp
call fcn.140003360
sub qword [rdi], 1
jne 0x1400168d6
mov rcx, rdi
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140003360
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsi]
mov word [rsp + 0x50], 0
test al, al
je 0x1400169f6
lea rdx, [rsp + 0x4a]
xor r14d, r14d
lea r12, [rsp + 0x50]
mov r13d, 0x28
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x30], rdx
nop
mov rdx, qword [rsp + 0x28]
mov r15, r13
mov byte [rsp + 0x4a], al
lea rbx, [r12 + r14*2]
mov rcx, qword [rsp + 0x30]
mov r8d, 2
sub r15, r14
mov byte [rsp + 0x4b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14003c98c
cmp word [r12 + r14*2], 0
movzx eax, word [rsp + 0x4c]
je 0x14001696e
nop
add rbx, 2
sub r15, 1
cmp word [rbx], 0
jne 0x140016960
test r15, r15
je 0x14003c98c
mov word [rbx], ax
add r14, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rsi + r14]
test al, al
jne 0x140016920
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1400168a6
mov rcx, qword [rsp + 0x38]
call fcn.1400037c0
jmp 0x1400168a6
lea rcx, [0x140046a28]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x140053408], rax
mov rcx, rax
test rax, rax
jne 0x14001683e
jmp 0x14003c98c
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
lea r12, [rsp + 0x50]
jmp 0x14001698d
Function at 0x1400192c0
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.140016610
test rax, rax
je 0x140019418
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 0x14003c998
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140019376
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140019368
test rbx, rbx
je 0x14003c998
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 0x140019328
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x140053400]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x14004b290]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14001946b
mov rdx, rbx
call fcn.140020f20
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400188e0
sub qword [rbx], 1
jne 0x140019401
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 [0x1400534a8]
lea rsi, [0x1400534a8]
test bl, bl
je 0x140019438
mov rax, qword [0x1400534b0]
lea rsi, [0x1400534b0]
test rax, rax
jne 0x140019401
mov rax, qword [0x14004b2b0]
cmp byte [rax], 0
je 0x140019495
mov rcx, qword [0x14004b1e0]
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14001949f
add qword [rax], 1
jmp 0x140019401
mov rcx, qword [0x140053408]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1400194aa
mov rdx, rdi
call fcn.140020f20
mov qword [0x140053400], rax
mov rcx, rax
jmp 0x1400193ce
movzx ecx, bl
call fcn.140022fd0
jmp 0x140019449
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140046a28]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x140053408], rax
mov rcx, rax
test rax, rax
je 0x14003c998
jmp 0x14001947e
Function at 0x14002a7b0
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.14003bf30
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.14003bf30
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 0x14002b482
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140053b48]
test eax, eax
je 0x14002b51a
lea rax, [0x140053b20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140053b50]
mov qword [rbp - 8], rax
jmp 0x14002b4fe
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 0x14002b4f2
cmp qword [rbp - 0x10], 0
je 0x14002b4f2
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 0x14002b4b8
lea rax, [0x140053b20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002b51b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002b620
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 0x14002b648
mov eax, 0
jmp 0x14002b696
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 0x14002b671
mov eax, 0
jmp 0x14002b696
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 0x14002b691
mov eax, 0
jmp 0x14002b696
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002b69c
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 0x14002b71a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002b711
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 0x14002b711
mov rax, qword [rbp - 8]
jmp 0x14002b72f
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 0x14002b6e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400063f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140006432
mov r10d, 8
sub r10, r11
cmp r10, r8
mov rdi, r8
cmovb rdi, r10
cmp rdi, 4
jb 0x14000643a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000644b
jmp 0x140006462
xor r10d, r10d
jmp 0x1400064ed
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140006462
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140006479
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140006499
add r11, r8
jmp 0x1400065c9
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140006562
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140006510
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14000657f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x140006590
jmp 0x1400065ab
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x1400065ab
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
invalid
add byte [rax], al
add byte [rax], al
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x1400065c5
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret