joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004810
Capabilities:
Bypass uac via icmluautil

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, rdx
xor ecx, ecx
mov edx, 2
mov ebx, 0xc0000022
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rdi, [rsp + 0x38]
mov ecx, 0x30
mov esi, eax
lea r8, str.Elevation:Administrator_new:
xor eax, eax
xor r14d, r14d
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], r14
mov edx, 0x104
mov dword [rsp + 0x38], 0x30
mov dword [rsp + 0x4c], 4
call fcn.18000921c
lea r8, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.18000c3c4
lea r9, [rsp + 0x30]
lea r8, [0x180022908]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoGetObject]
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x1800048f0
test rdi, rdi
je 0x1800048fe
mov rax, qword [rdi]
lea rdx, [0x180027ea0]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov r8, rbp
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call qword [rax + 0x48]
test eax, eax
cmovns ebx, r14d
test rdi, rdi
je 0x1800048fe
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
test esi, esi
jne 0x180004908
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180004950
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x180004c1c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180004cad
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180004cad
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180004cad
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180004c91
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180004c8b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180004c93
add rdx, 0x28
jmp 0x180004c70
xor edx, edx
test rdx, rdx
jne 0x180004c9c
xor al, al
jmp 0x180004cb3
test dword [rdx + 0x24], 0x80000000
je 0x180004ca9
xor al, al
jmp 0x180004cb3
mov al, 1
jmp 0x180004cb3
xor al, al
jmp 0x180004cb3
add rsp, 0x18
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004044d0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404490]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401b70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140120060
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.140124d20
sub rsp, rax
mov rax, qword [0x140163a40]
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 0x140120122
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.140130e78
cmp rax, 1
jne 0x14012017e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1401200ff
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1401200f3
cmp rcx, 1
jb 0x14012017e
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 0x1401200c0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140120153
lea rcx, [rsp + 0x80]
call fcn.1401339f0
jmp 0x140120155
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140124a50
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.140126310
int3
Function at 0x140124570
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 [0x140163a40]
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 0x140124621
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.140130e78
cmp rax, 1
jne 0x140124657
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1401245fd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1401245f0
cmp rcx, 1
jb 0x140124657
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 0x1401245c0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140124a50
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.140126310
int3

Function at 0x1401248d0
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 [0x140163a40]
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 0x14012497f
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.140130e78
cmp rax, 1
jne 0x1401249b5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14012495c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140124950
cmp rcx, 1
jb 0x1401249b5
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 0x140124920
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140124a50
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.140126310
int3

Function at 0x140125484
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14012777f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012777f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012777f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012777f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012777f
cmp dword [rcx + 0x84], 0xe
jbe 0x14012777f
cmp dword [rcx + 0xf8], 0
je 0x14012777f
mov ecx, ebx
call fcn.140127820
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140127610
cmp dword [rbp + 0x20], 0
je 0x1401277cc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401277d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140127718
Function at 0x14013e190
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14013e1b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14013e1b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Enumerate process modules

Disassembly:
push rdi
mov eax, 0x2260
call fcn.140002410
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x2250], rax
mov rdi, rcx
lea r9, [rsp + 0x38]
mov rcx, qword [0x140005768]
lea rdx, [rsp + 0x40]
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1400010ea
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x2278], rbx
xor ebx, ebx
test rax, 0xfffffffffffffff8
jbe 0x1400010e2
mov rdx, qword [rsp + rbx*8 + 0x40]
lea r8, [rsp + 0x2040]
mov rcx, qword [0x140005768]
mov r9d, 0x104
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x14000109d
mov rdx, rdi
lea rcx, [rsp + 0x2040]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400010af
mov eax, dword [rsp + 0x38]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x140001063
jmp 0x1400010e2
mov rdx, qword [rsp + rbx*8 + 0x40]
lea r8, [rsp + 0x20]
mov rcx, qword [0x140005768]
mov r9d, 0x18
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rcx, qword [0x140005780]
test eax, eax
cmovne rcx, qword [rsp + 0x20]
mov qword [0x140005780], rcx
mov rbx, qword [rsp + 0x2278]
mov rcx, qword [rsp + 0x2250]
xor rcx, rsp
call fcn.1400014e0
add rsp, 0x2260
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400f6250]
mov dword [rax], 1
mov rax, qword [0x1400f6260]
mov dword [rax], 1
mov rax, qword [0x1400f6270]
mov dword [rax], 1
mov rax, qword [0x1400f61f0]
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 0x140059050
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.1400d24e0
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 0x140059115
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 0x1400e33ee
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400590f6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400590e8
test rsi, rsi
je 0x1400e33ee
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400590a8
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 0x140059144
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 0x140059160
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 0x14005921d
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 0x1400e33f4
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400591fe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400591f0
test rsi, rsi
je 0x1400e33f4
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400591b0
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 0x140078280
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.140059050
test rax, rax
je 0x1400783d0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.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 0x1400e3494
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140078336
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140078328
test rbx, rbx
je 0x1400e3494
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 0x1400782e8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x140108580]
mov rsi, rax
mov rax, qword [0x1400f63a0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140078445
mov rdx, rbx
call fcn.140049840
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14006c370
mov rdx, qword [rbx]
test edx, edx
js 0x1400783b2
sub rdx, 1
mov qword [rbx], rdx
je 0x14007842d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140107e40]
lea rsi, [0x140107e40]
test bl, bl
je 0x1400783f0
mov rax, qword [0x140107e48]
lea rsi, [0x140107e48]
test rax, rax
jne 0x1400783b2
cmp byte [0x140108062], 0
jne 0x140078406
movzx ecx, bl
call fcn.14004b080
mov rdx, 0xffffffffffffffff
lea rcx, [0x140107e60]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14007846f
mov edx, dword [rax]
add edx, 1
je 0x1400783b2
mov dword [rax], edx
jmp 0x1400783b2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400783b2
mov rcx, qword [0x1401084f8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14007847a
mov rdx, rdi
call fcn.140049840
mov qword [0x140108580], rax
mov rcx, rax
jmp 0x140078389
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400ee07b]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1401084f8], rax
mov rcx, rax
test rax, rax
je 0x1400e3494
jmp 0x140078458
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1400cec80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140107e21], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400ced08
lea rdx, [0x1400f22da]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400ced70
mov rbx, qword [0x140107cc0]
jmp 0x1400cecc5
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 0x1400cecc0
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.1400becc0
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 [0x140107cc0], rax
mov ebx, dword [rax]
mov qword [0x140107cc0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140107cc0], rdx
call fcn.1400cddb0
cmp eax, ebx
jne 0x1400cedd8
mov byte [0x140107e21], 1
jmp 0x1400cec9c
cmp byte [0x140107e20], 0
jne 0x1400cecb3
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x140108788], rax
call rbx
mov qword [0x140108780], rax
call rbx
mov qword [0x140108778], rax
call rbx
mov qword [0x140108770], rax
call rbx
mov qword [0x140108768], rax
call rbx
mov qword [0x140108760], rax
call rbx
mov qword [0x140108758], rax
call rbx
mov byte [0x140107e20], 1
mov qword [0x140108750], rax
jmp 0x1400cecb3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400d11c0
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.1400e2940
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.1400e2940
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 0x1400d1e92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140108c48]
test eax, eax
je 0x1400d1f2a
lea rax, [0x140108c20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140108c50]
mov qword [rbp - 8], rax
jmp 0x1400d1f0e
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 0x1400d1f02
cmp qword [rbp - 0x10], 0
je 0x1400d1f02
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 0x1400d1ec8
lea rax, [0x140108c20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400d1f2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400d2030
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 0x1400d2058
mov eax, 0
jmp 0x1400d20a6
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 0x1400d2081
mov eax, 0
jmp 0x1400d20a6
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 0x1400d20a1
mov eax, 0
jmp 0x1400d20a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400d20ac
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 0x1400d212a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d2121
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 0x1400d2121
mov rax, qword [rbp - 8]
jmp 0x1400d213f
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 0x1400d20f4
mov eax, 0
add rsp, 0x20
pop rbp
ret