joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f3b1
Capabilities:
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rsi, rdx
mov rbx, rcx
movzx eax, byte [rcx + 0x4090]
test eax, eax
je 0x14002f3ea
cmp eax, 3
jne 0x14002f417
mov rdx, qword [rbx + 0x4078]
mov r9, qword [rbx + 0x4080]
mov rax, qword [rbx + 0x4088]
jmp 0x14002f454
lea rdi, [rbx + 0x78]
mov r8d, 0x4000
mov rcx, rdi
xor edx, edx
call fcn.140093fe0
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x4000
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
jmp 0x14002f42f
lea rcx, str._async_fn__resumed_after_completion
lea r8, str.windows_encrypt_src_main.rs
mov edx, 0x23
call fcn.140096040
lea r9, [rbx + 0x78]
mov qword [rbx + 0x4078], rbx
mov qword [rbx + 0x4080], r9
mov qword [rbx + 0x4088], 0x4000
mov eax, 0x4000
mov rdx, rbx
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov r8, rsi
call fcn.14007e23f
mov r14, qword [rdi]
cmp r14, 2
je 0x14002f4bc
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x30], xmm0
cmp qword [rsp + 0x30], 0
jne 0x14002f4c0
lea rdx, [rbx + 0x70]
lea r8, [rsp + 0x58]
mov qword [r8 + 8], 0x4000
movabs rax, 0x8000000000000001
mov qword [r8], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400071ba
mov rcx, rdi
call fcn.140001922
jmp 0x14002f42f
mov cl, 3
jmp 0x14002f4f0
lea rcx, [rsp + 0x38]
call fcn.1400029bf
lea rax, [rsp + 0x58]
mov ecx, 0xe
mov rdi, rax
mov rsi, rbx
rep movsq qword [rdi], qword [rsi]
mov rcx, rax
call fcn.140002a34
lea rcx, [rbx + 0x70]
call fcn.140004b35
mov cl, 1
cmp r14d, 2
sete al
mov byte [rbx + 0x4090], cl
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400322be
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
mov rax, rcx
add qword [rcx + 0x30], 8
mov qword [rsp], rdx
mov r10, qword [rcx + 0x40]
test r10, r10
je 0x140032365
mov esi, 8
mov r9d, 8
sub r9, r10
cmp r9, 8
cmovb rsi, r9
xor r11d, r11d
xor r8d, r8d
cmp rsi, 4
mov ecx, edx
cmovae r11, rcx
setae r8b
lea rcx, [r8*4 + 1]
shl r8, 2
cmp rcx, rsi
jae 0x14003232c
movzx edx, word [rsp + r8]
lea ecx, [r8*8]
shl rdx, cl
or r11, rdx
or r8, 2
cmp r8, rsi
jae 0x140032343
movzx edx, byte [rsp + r8]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r11, rdx
lea ecx, [r10*8]
shl r11, cl
or r11, qword [rax + 0x38]
mov qword [rax + 0x38], r11
cmp r10, 8
jbe 0x14003236a
add r10, 8
jmp 0x14003248f
xor r9d, r9d
jmp 0x1400323be
mov r8, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, rdx
rol rdx, 0xd
xor r8, r11
xor rdx, rcx
rol rcx, 0x20
mov r10, qword [rax + 8]
add r10, r8
rol r8, 0x10
xor r8, r10
add rcx, r8
rol r8, 0x15
xor r8, rcx
add r10, rdx
rol rdx, 0x11
mov qword [rax + 0x18], r8
xor rdx, r10
rol r10, 0x20
mov qword [rax + 0x10], rdx
mov qword [rax + 8], r10
xor rcx, r11
mov qword [rax], rcx
mov ecx, 8
sub rcx, r9
mov r10d, ecx
and r10d, 7
and rcx, 0xfffffffffffffff8
cmp r9, rcx
jae 0x140032437
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rsi, qword [rax + 0x18]
mov r11, qword [rax + 0x10]
add rdx, r11
rol r11, 0xd
mov rdi, qword [rsp + r9]
xor r11, rdx
rol rdx, 0x20
xor rsi, rdi
add r8, rsi
rol rsi, 0x10
xor rsi, r8
add rdx, rsi
rol rsi, 0x15
add r8, r11
rol r11, 0x11
xor r11, r8
rol r8, 0x20
xor rsi, rdx
xor rdx, rdi
add r9, 8
cmp r9, rcx
jb 0x1400323e5
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], r11
mov qword [rax + 8], r8
mov qword [rax], rdx
cmp r10d, 4
jb 0x140032448
mov r8d, dword [rsp + r9]
mov edx, 4
jmp 0x14003244d
xor r8d, r8d
xor edx, edx
mov rcx, rdx
or rcx, 1
cmp rcx, r10
jae 0x140032473
lea rcx, [rdx + r9]
movzx r11d, word [rsp + rcx]
lea ecx, [rdx*8]
shl r11, cl
or r8, r11
or rdx, 2
cmp rdx, r10
jae 0x14003248b
add r9, rdx
movzx r9d, byte [rsp + r9]
shl edx, 3
mov ecx, edx
shl r9, cl
or r8, r9
mov qword [rax + 0x38], r8
mov qword [rax + 0x40], r10
add rsp, 8
pop rdi
pop rsi
ret
Function at 0x140038ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140038d30
cmp r11, r10
ja 0x140038da6
cmp r10, rdx
ja 0x140038db8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140038d32
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140038d10
jmp 0x140038d94
ja 0x140038d3a
mov r11, r10
cmp rax, r8
jne 0x140038cd4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140038d70
mov rdi, r8
sub ecx, edx
jns 0x140038d8b
jmp 0x140038d96
cmp r8, rsi
je 0x140038dc7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140038d96
xor al, 1
cmp rdi, rsi
jne 0x140038d50
jmp 0x140038d96
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.Rs_J_Yh9RJ_P_HtbF____VNnw_o_2r_8VgLD
mov rcx, r11
mov rdx, r10
call fcn.140096290
lea r8, str.Rs_J_Yh9RJ_P_HtbF____VNnw_o_2r_8VgLD
mov rcx, r10
call fcn.140095fc0
lea rcx, str.Rs_J_Yh9RJ_P_HtbF____VNnw_o_2r_8VgLD
call fcn.140096470
int3
Function at 0x14003e882
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x28
mov r9d, r8d
movsx eax, cx
movsx r8d, dx
imul r8d, eax
xor ecx, ecx
xor edx, edx
call fcn.14003e8b4
test rax, rax
je 0x14003e8a7
add rsp, 0x28
ret
xor ecx, ecx
xor edx, edx
add rsp, 0x28
jmp case.0x14002292a.198

Function at 0x14003f33d
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r15, r8
mov rsi, rcx
lea rdi, [rcx + 0xd0]
mov al, byte [rcx + 0x118]
movzx ebx, al
mov r8d, 0x48
sub r8, rbx
mov r14, r15
sub r14, r8
jae 0x14003f389
add rdi, rbx
mov rcx, rdi
mov r8, r15
call fcn.140093940
add rbx, r15
jmp 0x14003f446
test al, al
je 0x14003f3c8
lea r12, [rdx + r8]
add rbx, rdi
mov rcx, rbx
call fcn.140093940
xor eax, eax
mov rcx, qword [rsi + rax*8 + 0xd0]
xor qword [rsi + rax*8], rcx
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 9
jne 0x14003f39e
mov rdx, qword [rsi + 0xc8]
mov rcx, rsi
call fcn.14004dc84
jmp 0x14003f3ce
mov r14, r15
mov r12, rdx
movabs rcx, 0xe38e38e38e38e38f
mov rax, r14
mul rcx
shr rdx, 6
lea rax, [rdx*8]
lea r15, [rax + rax*8]
mov rbx, r14
sub rbx, r15
add r15, r12
cmp r14, 0x48
jb 0x14003f438
lea rax, [rdx + rdx*8]
lea r14, [r12 + rax*8]
lea r13, [r12 + 0x48]
xor eax, eax
mov rcx, qword [r12 + rax*8]
xor qword [rsi + rax*8], rcx
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 9
jne 0x14003f40c
mov rdx, qword [rsi + 0xc8]
mov rcx, rsi
call fcn.14004dc84
mov r12, r13
cmp r13, r14
jne 0x14003f405
mov rcx, rdi
mov rdx, r15
mov r8, rbx
call fcn.140093940
mov byte [rsi + 0x118], bl
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14003f773
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
movzx r15d, byte [rdx + 0x48]
lea rcx, [rdx + r15]
mov r8d, 0x48
sub r8, r15
xor r14d, r14d
xor edx, edx
call fcn.140093fe0
mov byte [rbx + 0x48], 0
mov byte [rbx + r15], 6
or byte [rbx + 0x47], 0x80
mov rax, qword [rbx + r14*8]
xor qword [rdi + r14*8], rax
lea rax, [r14 + 1]
mov r14, rax
cmp rax, 9
jne 0x14003f7b0
mov rdx, qword [rdi + 0xc8]
mov rcx, rdi
call fcn.14004dc84
xor eax, eax
mov rcx, qword [rdi + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp rax, 8
jne 0x14003f7d6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140057a53
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3f8

Function at 0x14005bdde
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov esi, edx
sub r8w, word [rcx + 0x1a]
imul r8w, word [rcx + 0x1c]
mov rax, qword [rsp + 0x170]
movzx r14d, dx
sub si, word [rcx + 0x18]
mov rdx, qword [rsp + 0x160]
add esi, r8d
mov r8d, 0xffff
and esi, r8d
mov r10, qword [rcx + 0x18]
mov r11, r10
shr r11, 0x20
add r11w, r10w
cmovb r11d, r8d
and r11d, r8d
mov r8, qword [rsp + 0x168]
add r8, r14
mov rbp, 0xffffffffffffffff
cmovae rbp, r8
cmp r11, rbp
cmovb rbp, r11
xor r8d, r8d
lea rbx, [rsp + 0x58]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x20], r8
mov qword [rbx + 0x28], rdx
mov qword [rbx + 0x30], r8
mov r10b, 2
mov byte [rbx + 0x38], r10b
mov r11d, 0xf020001
mov dword [rbx + 0x3c], r11d
mov dil, 0xf
mov byte [rbx + 0x40], dil
mov qword [rbx + 0x48], r8
mov qword [rbx + 0x58], r8
mov qword [rbx + 0x68], rdx
mov qword [rbx + 0x70], rdx
mov qword [rbx + 0x78], r8
mov byte [rbx + 0x80], r10b
mov dword [rbx + 0x84], r11d
mov byte [rbx + 0x88], dil
mov rdi, r14
mov qword [rbx + 0x90], r9
mov qword [rbx + 0x98], rdx
mov rdx, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
mov cl, byte [rax]
mov byte [rsp + 0x2d], cl
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x3c], ecx
mov cl, byte [rax + 4]
mov byte [rsp + 0x2c], cl
movzx ecx, word [rax + 8]
mov word [rsp + 0x2e], cx
movzx eax, word [rax + 0xa]
not eax
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rdx
lea rax, [rdx + 0x28]
mov qword [rsp + 0x48], rax
mov rcx, rbx
call fcn.1400568a1
test rax, rax
je 0x14005bff7
mov r12, rax
mov r13, rdx
mov rcx, rax
call fcn.140083b69
test rax, rax
je 0x14005bf05
mov r15, rax
mov rax, rbp
sub rax, rdi
mov ecx, 0
cmovae rcx, rax
cmp r15, rcx
ja 0x14005bff7
cmp r14, rsi
jbe 0x14005c01f
mov qword [rsp + 0x50], rdi
lea rdi, [rsi + rsi*4]
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rdi*8]
mov qword [rcx + 0x10], 0
mov r8, r12
add r8, r13
mov rdx, r12
call case.0x14007cfd4.321
cmp byte [rsp + 0x2d], 0x13
je 0x14005bf89
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
mov dword [rax + rdi*8 + 0x18], ecx
cmp byte [rsp + 0x2c], 0x13
je 0x14005bf9d
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + rdi*8 + 0x1c], ecx
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rdi*8 + 0x20]
or ax, word [rsp + 0x2e]
and eax, dword [rsp + 0x44]
mov word [rcx + rdi*8 + 0x20], ax
lea r13, [r15 + rsi]
inc rsi
cmp rsi, r13
jae 0x14005bfe7
mov rax, qword [rsp + 0x48]
lea r12, [rax + rdi*8]
lea rdi, [r15 - 1]
cmp r14, rsi
jbe 0x14005c00d
mov rcx, r12
call fcn.14005bd50
inc rsi
add r12, 0x28
dec rdi
jne 0x14005bfce
mov rdi, qword [rsp + 0x50]
add rdi, r15
mov rsi, r13
jmp 0x14005bf05
mov eax, edi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x1400a69a0]
mov rcx, rsi
mov rdx, r14
call fcn.140095f40
lea r8, [0x1400a6988]
jmp 0x14005c014
Function at 0x1400641d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400350a0
cmp rax, rcx
je 0x1400641f5
cmp rdx, 4
jae 0x1400641f8
xor eax, eax
xor r8d, r8d
jmp 0x140064290
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14009b160]
movdqa xmm3, xmmword [0x14009b170]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140064220
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400642a7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140064290
ret

Function at 0x140069130
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
add byte [rax - 0x77], cl
xlatb

Function at 0x140072450
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140072493
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [case.0x14006a771.440]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.sTbd_J__f_xi__C____o_5_LrE3_HaZR_nbJKp
lea rcx, [rbp - 0x60]
call fcn.140095e80
ud2

Function at 0x140075d50
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140075d85
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140075d8a
call fcn.140072450
nop
add rsp, 0x38
ret
Function at 0x14007d5fd
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
add esi, eax
cmpxchg qword [rcx], rdx
jne 0x14007d604
test al, 1
je 0x14007d623
test al, 2
jne 0x14007d63b
invalid
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1400ad3f0]
mov edi, 0xba0002fd
and eax, dword [rax]
add byte [rax], al
call fcn.140096040
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1400ad430]
invalid
mov edx, 0x25
call fcn.140096040
int3
Function at 0x140084969
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx]
jne 0x14008498f
mov rcx, rsi
call fcn.14004eb3b
mov rdx, qword [rsi + 0x10]
mov rdi, qword [rsi + 8]
mov byte [rdi + rdx], 0
inc rdx
mov qword [rsi + 0x10], rdx
mov r15, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, r15
jne 0x1400849b9
mov rcx, rbx
call fcn.14004eb3b
mov r15, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov r14, qword [rbx + 8]
mov byte [r14 + rdx], 0
inc rdx
mov qword [rbx + 0x10], rdx
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rdi
mov r9, r14
call sub.shell32.dll_ShellExecuteA
test r15, r15
je 0x140084a00
mov rcx, qword [0x1400c9350]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsi], 0
je 0x140084a24
mov rcx, qword [0x1400c9350]
xor edx, edx
mov r8, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140084abc
Capabilities:
Impersonate user

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea r13, [rsp + 0x30]
mov qword [r13], 0
mov rdx, qword [rdx + 8]
mov r8, qword [rdi + 0x10]
lea r14, [rsp + 0x38]
mov rcx, r14
call fcn.140084c17
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.140084c17
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
lea r12, [rsp + 0x68]
mov rcx, r12
call fcn.140084c17
mov r14, qword [r14 + 8]
mov r15, qword [r15 + 8]
mov r12, qword [r12 + 8]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0
mov rcx, r14
mov rdx, r15
mov r8, r12
mov r9d, 3
call sub.advapi32.dll_LogonUserW
test eax, eax
je 0x140084b6a
mov rcx, qword [rsp + 0x30]
call sub.advapi32.dll_ImpersonateLoggedOnUser
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0
je 0x140084b84
mov rcx, qword [0x1400c9350]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x50], 0
je 0x140084b9e
mov rcx, qword [0x1400c9350]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x38], 0
je 0x140084bb8
mov rcx, qword [0x1400c9350]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbx], 0
je 0x140084bd1
mov r8, qword [rbx + 8]
mov rcx, qword [0x1400c9350]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rdi], 0
je 0x140084bea
mov r8, qword [rdi + 8]
mov rcx, qword [0x1400c9350]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsi], 0
je 0x140084c03
mov r8, qword [rsi + 8]
mov rcx, qword [0x1400c9350]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400854fc
Capabilities:
Parse pe header

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

Function at 0x140086514
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008665c

Function at 0x140088e30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140088e58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140088e58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140097731
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140097786
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140097786
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140097786
mov r14, rax
xor edi, edi
jmp 0x14009780e
lea rcx, [0x1400a6420]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140097879
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140097879
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140097879
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140097879
mov rsi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x140097879
mov r14, qword [rsp + 0x28]
mov al, byte [0x1400c93d0]
mov edx, 0x18
xor ecx, ecx
call fcn.140072aa0
test rax, rax
je 0x1400978ae
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1400c9270], rbx
je 0x14009786c
mov rsi, rax
cmp qword [rbx], 0
je 0x140097857
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x1400c9350]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rbx, rsi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.Kd_n_
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], 1
lea rax, [0x1400b4e80]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str._p5___5M4____7__1_C_N__kWc__v1__g7_Cge6w__3m__M_X_i_Dc1LJ____BEE_b___G__v8G_zXZ7i2___L4_tD_r_M_ak_vP__Gs_Z_sCP_x_c___E_3
call fcn.140095e80
mov ecx, 8
mov edx, 0x18
call fcn.1400948e0
int3
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140109820]
mov dword [rax], 1
mov rax, qword [0x140109830]
mov dword [rax], 1
mov rax, qword [0x140109840]
mov dword [rax], 1
mov rax, qword [0x1401097a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14005c4b0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.1400e7580
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.140079f90
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14005c511
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x14005c520
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.140079f90
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x14005c5f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.140075840
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14005c6aa
mov rdx, r14
mov rcx, rbx
call fcn.14005c520
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x14005c6ec
sub qword [r14], 1
jne 0x14005c671
mov rcx, r14
call fcn.14005c560
sub qword [r13], 1
jne 0x14005c680
mov rcx, r13
call fcn.14005c560
sub qword [r12], 1
jne 0x14005c69c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.14005c560
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140079f90
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14005c671
mov rcx, r15
call fcn.14005c570
jmp 0x14005c671
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop