joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008b944
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800cd460]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18008b99b
cmp word [rdx], r13w
jne 0x18008b99b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008b9a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18008bac5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18008bae6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18008b9d9
mov rdx, r9
mov word [rbx], cx
jmp 0x18008ba00
cmp r9, r8
jae 0x18008ba10
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18008b9ba
jmp 0x18008bac5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008baba
cmp dword [rsp + 0x80], esi
je 0x18008baba
lea r8, [0x1800cd460]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008ba92
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008ba62
mov word [rbx], r13w
jmp 0x18008bac2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18008ba6f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008bac2
cmp word [rsp + 0x70], r13w
jne 0x18008ba9f
cmp rbx, r14
je 0x18008ba5c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008b8a0
cmp word [rsp + 0x70], r13w
je 0x18008bac5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800cd460]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008babf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18008bac5
Function at 0x18008d9ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008da02
mov al, 1
jmp 0x18008da62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008da13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008da60
mov ecx, dword [rcx + 0x18]
nop
call fcn.18009387c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008da60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008da60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008da60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008da62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800925ec
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18009261c
xor eax, eax
jmp 0x1800926df
mov rbp, rbx
cmp word [rax], si
je 0x180092641
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180092628
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180092624
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18008f6c4
movsxd r14, eax
test eax, eax
jne 0x18009267f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180092615
mov rcx, r14
call fcn.18008808c
mov rdi, rax
test rax, rax
jne 0x180092698
xor ecx, ecx
call fcn.180087124
jmp 0x180092674
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18008f6c4
test eax, eax
jne 0x1800926c9
mov rcx, rdi
call fcn.180087124
jmp 0x1800926d3
xor ecx, ecx
call fcn.180087124
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800926fc
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 0x180092783
mov rsi, rbx
cmp word [rax], bp
je 0x180092742
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18009272c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180092728
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18008808c
mov rdi, rax
test rax, rax
je 0x180092770
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800a00c0
mov rbp, rdi
xor ecx, ecx
call fcn.180087124
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 0x180097684
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800898dc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180097725
cmp ebx, dword [rsp + 0x30]
je 0x18009771e
test esi, esi
je 0x18009771e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800976f9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180097706
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800976e3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18009770a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180097727
mov eax, 1
jmp 0x180097727
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180099a7c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18007855c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180099b06
cmp byte [rbp - 0x21], r15b
je 0x180099b01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180099b3c
call fcn.180087428
test eax, eax
jne 0x180099b28
cmp byte [rbp - 0x21], r15b
je 0x180099b20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180099b3c
cmp byte [rbp - 0x21], r15b
je 0x180099b39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180081de0
test eax, eax
jne 0x180099bdc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18007855c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180099b7b
cmp byte [rbp - 0x21], r15b
je 0x180099bb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180099bb0
call fcn.180087428
test eax, eax
jne 0x180099b9c
cmp byte [rbp - 0x21], r15b
je 0x180099b95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180099bb0
cmp byte [rbp - 0x21], r15b
je 0x180099bad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180081de0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180099bdc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180099bdf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180099bed
mov rcx, rdi
call fcn.180087124
cmp byte [rbp + 0x3f], r15b
je 0x180099bfc
mov rcx, qword [rbp + 0x27]
call fcn.180087124
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18009aa78
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18008b8a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008b8a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18009abc8
cmp rax, 0xffffffffffffffff
je 0x18009abc8
xor edi, edi
test rbp, rbp
jle 0x18009ab73
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800870ac
mov rbx, rax
test rax, rax
jne 0x18009ab00
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18009ab69
mov edx, 0x8000
mov ecx, r14d
call fcn.18009a8fc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18008d1e8
cmp eax, 0xffffffff
je 0x18009ab49
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009ab10
mov edx, r15d
mov ecx, r14d
call fcn.18009a8fc
jmp 0x18009ab69
cmp byte [rsi + 0x38], dil
je 0x18009ab60
cmp dword [rsi + 0x34], 5
jne 0x18009ab60
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18009ab69
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180087124
jmp 0x18009abdc
jns 0x18009abdc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008b8a0
cmp rax, 0xffffffffffffffff
jne 0x18009ab94
cmp byte [rsi + 0x30], dil
je 0x18009abdc
mov edi, dword [rsi + 0x2c]
jmp 0x18009abdc
mov ecx, r14d
call fcn.18009387c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009abdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18009abdc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009abd5
mov eax, dword [rsi + 0x2c]
jmp 0x18009abda
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008b8a0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18009b5f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18009b618
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18009b618
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400adf80]
mov dword [rax], 1
mov rax, qword [0x1400adf90]
mov dword [rax], 1
mov rax, qword [0x1400adfa0]
mov dword [rax], 1
mov rax, qword [0x1400adf00]
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 0x14001fb20
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14008a3c0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14001fbc9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14001fb8e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001fb80
test rax, rax
je 0x14009b2e0
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14001fb68
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001fbf8
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14001fc10
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14001fcb1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14001fc76
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001fc68
test rax, rax
je 0x14009b2e6
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14001fc50
mov rdx, r14
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 0x14007fe10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400bf269], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007fe98
lea rdx, [0x1400a9e52]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007ff00
mov rbx, qword [0x1400bf120]
jmp 0x14007fe55
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 0x14007fe50
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.14006e430
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 [0x1400bf120], rax
mov ebx, dword [rax]
mov qword [0x1400bf120], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400bf120], rdx
call fcn.14007ef40
cmp eax, ebx
jne 0x14007ff68
mov byte [0x1400bf269], 1
jmp 0x14007fe2c
cmp byte [0x1400bf268], 0
jne 0x14007fe43
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400bfbc8], rax
call rbx
mov qword [0x1400bfbc0], rax
call rbx
mov qword [0x1400bfbb8], rax
call rbx
mov qword [0x1400bfbb0], rax
call rbx
mov qword [0x1400bfba8], rax
call rbx
mov qword [0x1400bfba0], rax
call rbx
mov qword [0x1400bfb98], rax
call rbx
mov byte [0x1400bf268], 1
mov qword [0x1400bfb90], rax
jmp 0x14007fe43
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400890a0
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.14009a830
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.14009a830
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 0x140089d72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c0088]
test eax, eax
je 0x140089e0a
lea rax, [0x1400c0060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c0090]
mov qword [rbp - 8], rax
jmp 0x140089dee
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 0x140089de2
cmp qword [rbp - 0x10], 0
je 0x140089de2
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 0x140089da8
lea rax, [0x1400c0060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140089e0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140089f10
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 0x140089f38
mov eax, 0
jmp 0x140089f86
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 0x140089f61
mov eax, 0
jmp 0x140089f86
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 0x140089f81
mov eax, 0
jmp 0x140089f86
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140089f8c
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 0x14008a00a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008a001
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 0x14008a001
mov rax, qword [rbp - 8]
jmp 0x14008a01f
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 0x140089fd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001460c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140018068]
test rax, rax
je 0x140014656
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014656
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014656
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014656
cmp dword [rcx + 0x84], 0xe
jbe 0x140014656
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014658
xor al, al
add rsp, 0x28
ret
Function at 0x140001640
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rbx, rcx
movsxd rsi, edx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
test rax, rax
je 0x1400017e6
cmp rax, 0xffffffffffffffff
je 0x1400017e6
mov qword [rsp + 0xa0], rbp
xor ebp, ebp
mov r8d, ebp
cmp byte [rbx], bpl
je 0x14000168d
inc r8d
cmp byte [r8 + rbx], bpl
jne 0x140001684
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], rbp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, str.0123456789ABCDEF
mov word [rsp + 0x40], 0x3020
mov rax, rsi
mov byte [rsp + 0x42], 0x78
sar rax, 0x1c
lea r9, [rsp + 0xb0]
and eax, 0xf
mov word [rsp + 0x4b], 0xa0d
mov rcx, rsi
mov byte [rsp + 0x4d], bpl
and ecx, 0xf
mov qword [rsp + 0x20], rbp
mov r8d, 0xd
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x43], al
mov rax, rsi
sar rax, 0x18
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x44], al
mov rax, rsi
sar rax, 0x14
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x45], al
mov rax, rsi
sar rax, 0x10
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x46], al
mov rax, rsi
sar rax, 0xc
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x47], al
mov rax, rsi
sar rax, 8
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x48], al
mov rax, rsi
sar rax, 4
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x49], al
movzx eax, byte [rcx + rdx]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov byte [rsp + 0x4a], al
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov r9d, 0x409
mov r8d, esi
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0xb8], rbp
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x1400017cb
mov rdx, qword [rsp + 0xb8]
lea r9, [rsp + 0xb0]
mov r8d, eax
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400017e6
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret