joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e720
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18005e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18005f200]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003e793
mov eax, 0xa
jmp 0x18003e826
test esi, esi
je 0x18003e7b5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18003e7d8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18003e7d8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18003e7d1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18003e7d8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180046ca0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18003e850
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18005f20c]
mov ebx, edi
test ecx, ecx
je 0x18003e98b
mov rax, qword [0x18005f200]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18003e8a8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003e880
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18003e98b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18003e570
mov r8d, dword [0x18005f20c]
cmp ebx, r8d
jae 0x18003e918
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18005f200]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18003e911
mov edx, esi
mov ecx, ebx
call fcn.18003e720
mov edi, eax
test eax, eax
jne 0x18003e918
mov r8d, dword [0x18005f20c]
inc ebx
cmp ebx, r8d
jb 0x18003e8e0
cmp qword [rsp + 0x20], 0
je 0x18003e98b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003e977
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003e968
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18003e940
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18005ef40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003ed20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18005ef38], ebp
je 0x18003ed77
cmp rbx, 0x20
jae 0x18003ed60
xor ecx, ecx
jmp 0x18003ed62
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18005ef38], ebp
jne 0x18003ed56
cmp qword [0x18005ef40], r15
je 0x18003ee71
test rdi, rdi
jne 0x18003ed97
mov ecx, esi
call fcn.18003e850
mov ebp, eax
jmp 0x18003ee76
mov ecx, dword [0x18005f20c]
mov ebx, r15d
test ecx, ecx
je 0x18003edbf
mov r8, qword [0x18005f200]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18003edc9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003edb0
mov ebp, 4
jmp 0x18003ee76
cmp ebx, 0xffffffff
je 0x18003edbf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18003ee68
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18003e570
mov edx, esi
mov ecx, ebx
call fcn.18003e720
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18003ee76
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003ee52
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003ee48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18003ee20
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18005ef40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18003ee76
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18003ee76
mov ebp, 2
xchg dword [0x18005ef38], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18003fc10
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
test edx, edx
je 0x18003fd10
cmp edx, 1
jne 0x18003fd3a
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
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 0x18003fcc7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x18003fcc7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x18003fcc2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x18003fca0
cmp r8d, 0x8fb39146
je 0x18003fccc
test r9d, r9d
jne 0x18003fc80
mov rax, qword [rax]
jmp 0x18003fc50
mov ecx, dword [rbx + 0x24]
lea r8, [0x18003f360]
add rcx, r10
movzx edx, word [rcx + r9*2]
xor r9d, r9d
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
add rax, r10
xor edx, edx
mov dword [rsp + 0x20], ecx
call rax
mov rdi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
cmp dword [0x18005f0b8], 0
je 0x18003fd3a
call fcn.18003eea0
mov rcx, qword [0x18005f0b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
mov qword [0x18005f0b0], rcx
mov dword [0x18005f0b8], ecx
mov eax, 1
add rsp, 0x38
ret
Function at 0x18003fd50
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18005e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], 0
cmp byte [rdx], 0
lea rdx, [rsp + 0x20]
jne 0x18003fdb4
movsxd rax, dword [rcx]
lea rcx, [0x180051400]
mov rcx, qword [rcx + rax*8]
call fcn.18002bb60
test al, al
je 0x18003fee6
mov byte [r14], 1
jmp 0x18003fee6
lea rcx, [0x18004b804]
call fcn.18002bb60
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov r9, rax
cmp rbx, 0x989680
jne 0x18003fde1
imul rbx, r9, 0x64
jmp 0x18003fe5b
cmp rbx, 0x16e3600
jne 0x18003fe3f
movabs r10, 0xb2f4fc0794908cf3
mov rax, r10
imul r9
add rdx, r9
sar rdx, 0x18
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
imul r8, rdx, 0x3b9aca00
imul rcx, rdx, 0x16e3600
sub r9, rcx
imul rcx, r9, 0x3b9aca00
mov rax, r10
imul rcx
add rdx, rcx
sar rdx, 0x18
mov rbx, rdx
shr rbx, 0x3f
add rbx, rdx
add rbx, r8
jmp 0x18003fe5b
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
mov rax, rbx
sub rax, qword [0x18005f0e8]
cmp rax, 0xbebc200
jl 0x18003fee6
lea rsi, [0x180051160]
lea rbp, [0x1800513f8]
nop dword [rax + rax]
mov ecx, dword [rsi]
cmp ecx, 1
je 0x18003fec4
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18003fe94
mov rax, qword [rdi]
cmp qword [rdi + 0x10], 1
jne 0x18003feb2
cmp byte [rax], 0x31
jne 0x18003fea4
xor eax, eax
jmp 0x18003fea9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x18003feb2
cmp ecx, 2
je 0x18003fec4
mov byte [0x18005e454], 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x18003fecf
add rsi, 4
cmp rsi, rbp
jne 0x18003fe80
jmp 0x18003fee6
mov eax, dword [rsi]
mov dword [r15], eax
mov byte [r14], 0
mov qword [0x18005f0e8], rbx
mov byte [0x18005e454], 1
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x18003ff1c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18003ff17
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003ff50
mov rcx, r8
call fcn.18004706c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180046ca0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180041ec0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, r8
je 0x1800420b6
cmp qword [rdx + 0x28], 0xf
lea r8, [rdx + 0x10]
mov rax, qword [rdx + 8]
mov r9, qword [r8 + 0x10]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov r13, qword [rcx + 8]
mov qword [rsp + 0x28], r14
mov r14, qword [rcx + 0x18]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x68], rax
jbe 0x180041f1b
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
movabs r10, 0x100000001b3
test r9, r9
je 0x180041f54
nop word [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x180041f40
mov r15, qword [rdi + 0x30]
mov rbx, qword [rsi]
and r15, rdx
shl r15, 4
mov rdx, rsi
add r15, r14
mov rax, qword [r15]
mov r12, qword [r15 + 8]
mov qword [rsp + 0x70], rax
call fcn.18003d3a0
dec qword [rdi + 0x10]
cmp rsi, r12
je 0x180041fa3
mov r14, rbx
cmp rbx, rbp
je 0x180041fb7
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.18003d3a0
dec qword [rdi + 0x10]
cmp r14, r12
jne 0x180041f82
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x68]
cmp qword [rsp + 0x70], rsi
jne 0x180041fd2
mov qword [r15], r13
mov rax, r13
jmp 0x180041fd5
cmp qword [rsp + 0x70], rsi
jne 0x180041fc1
mov qword [r15], rbx
mov rax, qword [rsp + 0x68]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x18004209d
mov rax, r12
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x180042095
nop dword [rax]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
mov rsi, rbx
jbe 0x180042005
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x180042039
movabs r12, 0x100000001b3
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r12
cmp rdx, r9
jb 0x180042020
mov r12, qword [rsp + 0x68]
and rcx, qword [rdi + 0x30]
mov rdx, rbx
mov rbx, qword [rbx]
add rcx, rcx
lea r15, [r14 + rcx*8]
mov r14, qword [r14 + rcx*8 + 8]
call fcn.18003d3a0
dec qword [rdi + 0x10]
cmp rsi, r14
je 0x18004207c
nop dword [rax]
mov rsi, rbx
cmp rbx, rbp
je 0x180042092
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.18003d3a0
dec qword [rdi + 0x10]
cmp rsi, r14
jne 0x180042060
mov qword [r15], r13
mov qword [r15 + 8], r13
cmp rbx, rbp
je 0x180042095
mov r14, qword [rsp + 0x78]
jmp 0x180041ff0
mov qword [r15], rbx
mov qword [r12], rbx
mov qword [rbx + 8], r12
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rax, rbp
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800434e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x180043541
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180043500
mov ecx, dword [r9]
jmp 0x180043628
cmp ecx, 0x4e0
jb 0x180043628
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180043560
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1800435b0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140013200
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 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014550
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014570
xor al, al
jmp 0x1400145f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014583
xor al, al
jmp 0x1400145f1
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 0x1400145ad
xor al, al
jmp 0x1400145f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400145c1
xor al, al
jmp 0x1400145f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400145d3
xor al, al
jmp 0x1400145f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145ef
xor al, al
jmp 0x1400145f1
mov al, 1
add rsp, 0x38
ret
Function at 0x1401c9e10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1401f7370
sub rsp, rax
mov rax, qword [0x14023b480]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401f2060
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401c9e8d
lea rcx, [rsp + 0x70]
call fcn.140202bc8
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f73d0
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f73d0
add rsp, 0x10088
ret

Function at 0x1401c9f40
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14023b480]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140212f08]
call fcn.1401c9e10
xor edi, edi
mov qword [0x140249460], rax
lea rdx, [0x140212f08]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.1401f2060
lea rdx, [0x140212f10]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1401c9e10
mov cl, 1
mov qword [0x140249468], rax
call fcn.1401f3190
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1401f2060
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.1401f3190
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f73d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1401ca360
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14023b480]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rsi, rcx
call fcn.1401dd600
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401f2060
lea rcx, [rsp + 0x20]
test rbp, rbp
je 0x1401ca421
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1401ca40f
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1401ca43e
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1401ca43e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1401ca43e
call fcn.1401c9a30
sub qword [rdi], 1
jne 0x1401ca44e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1401ca45e
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f73d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f2110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1401f21d4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1401f2130
not eax
ret
Function at 0x1401f7da8
Capabilities:
Parse pe header

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

Function at 0x140202478
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140202274
Function at 0x140207c50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140207cd7
mov rsi, rbx
cmp word [rax], bp
je 0x140207c96
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140207c80
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140207c7c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140203450
mov rdi, rax
test rax, rax
je 0x140207cc4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14020e630
mov rbp, rdi
xor ecx, ecx
call fcn.140203e04
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14020a2d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14020a2e6
mov al, 1
jmp 0x14020a346
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14020a2f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14020a344
mov ecx, dword [rcx + 0x18]
nop
call fcn.140208510
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14020a344
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14020a344
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14020a344
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14020a346
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14020e410
Capabilities:
Parse pe header

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