joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140155b70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1405c6ac0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1405f4156]
call fcn.140139936
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140166850
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140159630
nop
lea rax, [0x140154550]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1401694e0
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x140155c4c
lea rcx, [rbp + 8]
call fcn.14016a370
nop
jmp 0x140155c65
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140133a72
nop
lea rcx, [rbp + 8]
call fcn.14015f500
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1403b5670]
call fcn.1401383d8
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1401359d0
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x1401e8cf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1405c6ac0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1405f5014]
call fcn.140139936
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140200e70
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1401eb640
nop
lea rax, [0x1401e85e0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140206070
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x1401e8dcc
lea rcx, [rbp + 8]
call fcn.140207490
nop
jmp 0x1401e8de5
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140133a72
nop
lea rcx, [rbp + 8]
call fcn.1401eee60
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1403cd640]
call fcn.1401383d8
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1401359d0
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1402f8e30
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1405f55d9]
call fcn.140139936
nop
call fcn.1402f7200
mov qword [rbp + 8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
add rax, 0x2c
mov r9d, 4
mov r8, rax
mov edx, 0x20001004
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1402f8ea3
mov rax, qword [rbp + 8]
mov dword [rax + 0x2c], 0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140398190
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140139e1d
movzx eax, al
test eax, eax
jne 0x1403981b0
mov ecx, 7
call fcn.1401384a0
nop
mov byte [rsp + 0x20], 0
call fcn.1401386a8
mov byte [rsp + 0x21], al
cmp dword [0x1405cf830], 1
jne 0x1403981d4
mov ecx, 7
call fcn.1401384a0
nop
jmp 0x14039822c
cmp dword [0x1405cf830], 0
jne 0x140398227
mov dword [0x1405cf830], 1
lea rdx, [0x1403b2b08]
lea rcx, [0x1403b27d8]
call fcn.1401358a4
test eax, eax
je 0x140398208
mov eax, 0xff
jmp 0x140398331
lea rdx, [0x1403b26c8]
lea rcx, [section..rdata]
call fcn.140138649
mov dword [0x1405cf830], 2
jmp 0x14039822c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140138333
call fcn.14013762c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140398289
mov rcx, qword [rsp + 0x30]
call fcn.140134d87
movzx eax, al
test eax, eax
je 0x140398289
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1405f8020]
nop
call fcn.140137bc2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1403982bd
mov rcx, qword [rsp + 0x38]
call fcn.140134d87
movzx eax, al
test eax, eax
je 0x1403982bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14013954e
nop
call fcn.1403983e0
mov dword [rsp + 0x28], eax
call fcn.14013730c
movzx eax, al
test eax, eax
jne 0x1403982dc
mov ecx, dword [rsp + 0x28]
call fcn.140132889
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1403982eb
call fcn.1401396cf
nop
xor edx, edx
mov cl, 1
call fcn.140134b25
mov eax, dword [rsp + 0x28]
jmp 0x140398331
add rsp, 0x68
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014180
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014193
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141bd
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141d1
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141e3
xor al, al
jmp 0x140014201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141ff
xor al, al
jmp 0x140014201
mov al, 1
add rsp, 0x38
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.D5_r_]
mov dword [rax], 1
mov rax, qword [str.H5_r_]
mov dword [rax], 1
mov rax, qword [str.L5_r_]
mov dword [rax], 1
mov rax, qword [0x1400c1080]
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 0x14001d6e0
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.14009b130
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 0x14001d7ad
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + 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 0x1400ac3b4
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001d78e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001d780
test rsi, rsi
je 0x1400ac3b4
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001d740
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 0x14001d7dc
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
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
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 0x14001d7f0
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 0x14001d8ad
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 0x1400ac3ba
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001d88e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001d880
test rsi, rsi
je 0x1400ac3ba
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001d840
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 0x14001d8e0
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 edx, edx
movzx eax, byte [rcx]
mov word [rsp + 0x30], dx
mov rbp, rcx
lea r15, [rsp + 0x30]
test al, al
je 0x14001d99d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
nop
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 0x1400ac3c0
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001d97e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001d970
test rsi, rsi
je 0x1400ac3c0
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001d930
xor edx, edx
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 0x1400536a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14001d6e0
test rax, rax
je 0x1400537b0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x30]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x30], cx
mov r13, rax
lea rbp, [rsp + 0x2a]
mov eax, 0x4e
lea rdi, [rsp + 0x2c]
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400ac450
cmp word [r15], 0
movzx edx, word [rsp + 0x2c]
mov rax, r15
je 0x14005375e
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140053750
test rbx, rbx
je 0x1400ac450
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 0x140053710
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, r13
mov rcx, rax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140053520
mov rax, qword [0x1400d2588]
lea rsi, [0x1400d2588]
test bl, bl
je 0x1400537d0
mov rax, qword [0x1400d2590]
lea rsi, [0x1400d2590]
test rax, rax
je 0x1400537e9
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [0x1400d27c2], 0
je 0x140053819
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d25c0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140053823
mov edx, dword [rax]
add edx, 1
je 0x1400537d5
mov dword [rax], edx
jmp 0x1400537d5
movzx ecx, bl
call fcn.14001e050
jmp 0x1400537f2
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140053830
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 [0x1400d2580]
mov rsi, rcx
test rbx, rbx
je 0x1400538b0
mov rax, qword [0x1400c12b0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1400538a0
mov rdx, qword [0x1400d27c8]
test rdx, rdx
je 0x1400539a0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.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.python312.dll_PyNumber_InPlaceAdd]
jmp 0x140053881
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14001d6e0
test rax, rax
je 0x1400539c0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.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 0x1400ac456
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14005394e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140053940
test rbx, rbx
je 0x1400ac456
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 0x140053900
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140053520
mov rbx, rax
mov qword [0x1400d2580], rbx
jmp 0x140053852
lea rcx, [0x1400bd482]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400d27c8], rax
mov rdx, rax
jmp 0x140053872
mov rbx, qword [0x1400d2590]
test rbx, rbx
jne 0x140053991
cmp byte [0x1400d27c2], 0
je 0x140053a03
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d25c0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400d2590], rax
mov rbx, rax
test rax, rax
je 0x140053a0f
mov eax, dword [rax]
add eax, 1
je 0x140053991
mov dword [rbx], eax
jmp 0x140053991
mov ecx, 1
call fcn.14001e050
jmp 0x1400539d5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x1400977f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400d2569], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140097898
lea rdx, [0x1400bcd5a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140097900
mov rbx, qword [0x1400d2400]
jmp 0x140097835
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
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 0x140097830
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140097887
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14008d250
mov r8, rax
cmp rdi, rbx
jne 0x140097870
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
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 [0x1400d2400], rax
mov ebx, dword [rax]
mov qword [0x1400d2400], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400d2400], rdx
call fcn.1400968e0
cmp eax, ebx
jne 0x140097968
mov byte [0x1400d2569], 1
jmp 0x140097810
cmp byte [0x1400d2568], 0
jne 0x140097827
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400d3128], rax
call rbx
mov qword [0x1400d3120], rax
call rbx
mov qword [0x1400d3118], rax
call rbx
mov qword [0x1400d3110], rax
call rbx
mov qword [0x1400d3108], rax
call rbx
mov qword [0x1400d3100], rax
call rbx
mov qword [0x1400d30f8], rax
call rbx
mov byte [0x1400d2568], 1
mov qword [0x1400d30f0], rax
jmp 0x140097827
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140099e10
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.1400ab3d0
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.1400ab3d0
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 0x14009aae2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400d35e8]
test eax, eax
je 0x14009ab7a
lea rax, [0x1400d35c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400d35f0]
mov qword [rbp - 8], rax
jmp 0x14009ab5e
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 0x14009ab52
cmp qword [rbp - 0x10], 0
je 0x14009ab52
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 0x14009ab18
lea rax, [0x1400d35c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009ab7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14009ac80
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 0x14009aca8
mov eax, 0
jmp 0x14009acf6
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 0x14009acd1
mov eax, 0
jmp 0x14009acf6
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 0x14009acf1
mov eax, 0
jmp 0x14009acf6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009acfc
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 0x14009ad7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14009ad71
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 0x14009ad71
mov rax, qword [rbp - 8]
jmp 0x14009ad8f
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 0x14009ad44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011127
Capabilities:
Execute command

Disassembly:
jmp 0x1400119e0
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x1400230a6]
call fcn.1400113a7
mov dword [rbp + 0x24], 0
xor ecx, ecx
call fcn.140011f50
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
lea rcx, [0x14001af3c]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.14001121c
mov dword [rbp + 4], 0
jmp 0x140011a56
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xf
jge 0x140011b13
call qword [sym.imp.ucrtbased.dll_rand]
cdq
mov ecx, 0x1a
idiv ecx
mov eax, edx
add eax, 0x61
movsxd rcx, dword [rbp + 4]
mov byte [rbp + rcx + 0x48], al
mov edx, 9
mov ecx, 4
call fcn.140011078
movsxd rax, dword [rbp + 4]
movsx eax, byte [rbp + rax + 0x48]
mov ecx, dword [rbp + 4]
inc ecx
mov r8d, eax
mov edx, ecx
lea rcx, str._2d__:__c
call fcn.1400111b3
call qword [sym.imp.ucrtbased.dll__getch]
movsxd rcx, dword [rbp + 4]
mov byte [rbp + rcx + 0xa8], al
movsxd rax, dword [rbp + 4]
movsx eax, byte [rbp + rax + 0x48]
movsxd rcx, dword [rbp + 4]
movsx ecx, byte [rbp + rcx + 0xa8]
cmp eax, ecx
jne 0x140011ae6
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 4]
mov byte [rbp + rax + 0x78], 1
jmp 0x140011b0e
movsxd rax, dword [rbp + 4]
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x198], 0xf
jae 0x140011afd
jmp 0x140011b02
call fcn.1400112d5
mov rax, qword [rbp + 0x198]
mov byte [rbp + rax + 0x78], 0
jmp 0x140011a4e
mov edx, 0xa
mov ecx, 4
call fcn.140011078
lea rcx, str._._n
call fcn.1400111b3
mov edx, 0xb
mov ecx, 4
call fcn.140011078
lea rcx, str.___.
call fcn.1400111b3
call qword [sym.imp.ucrtbased.dll__getch]
mov r9d, dword [rbp + 0x24]
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x48]
call fcn.14001130c
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad10]
call fcn.140011343
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret

Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x140011fa0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret