joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004eb0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x140048dc0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov dword [rcx], 0xa
mov rbx, rcx
mov rdi, rdx
mov dword [rdx], 5
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x9c
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.140015b00
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, eax
test eax, eax
jne 0x140004f4c
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140005092
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rsp + 0x60]
test r11d, r11d
je 0x14000508a
sub r11d, 1
je 0x140005033
cmp r11d, 1
jne 0x140005090
mov ecx, dword [rsp + 0x54]
mov r8, qword [rsp + 0x20]
movzx edx, byte [rsp + 0xea]
cmp ecx, 6
jne 0x140004fa2
cmp dword [rsp + 0x58], 0
jne 0x140004fee
xor eax, eax
cmp dl, r11b
setne al
mov dword [rbx], eax
jmp 0x140004fee
cmp ecx, 5
jne 0x140004fe3
mov eax, dword [rsp + 0x58]
cmp eax, 2
jne 0x140004fca
cmp dl, 1
jne 0x140004fc2
cmp r8w, 9
jne 0x140004fc2
mov dword [rbx], ecx
mov dword [rdi], eax
jmp 0x140004fee
mov dword [rbx], 2
jmp 0x140004fee
cmp eax, 1
jne 0x140004fd7
mov dword [rbx], 5
jmp 0x140004fee
test eax, eax
jne 0x140004fee
mov dword [rbx], 3
jmp 0x140004fee
cmp ecx, 4
ja 0x140004fee
mov dword [rbx], 4
test esi, esi
je 0x140005090
cmp dl, 1
jne 0x140005090
cmp r8w, 9
je 0x140005090
cmp ecx, 4
jne 0x140005017
mov dword [rdi], 0
jmp 0x140005090
movzx eax, word [rsp + 0xe8]
mov ecx, 0x200
and ax, cx
neg ax
sbb eax, eax
add eax, 2
mov dword [rdi], eax
jmp 0x140005090
cmp dword [rsp + 0x54], 4
jne 0x140005090
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x14000505d
movzx eax, byte [rsp + 0x65]
mov dword [rbx], 7
cmp al, 0x43
je 0x140005055
cmp al, 0x42
jne 0x140005090
mov dword [rdi], 4
jmp 0x140005090
cmp eax, 0xa
jne 0x14000507d
movzx eax, byte [rsp + 0x65]
mov dword [rbx], 6
cmp al, 0x41
je 0x140005075
cmp al, 0x42
jne 0x140005090
mov dword [rdi], 3
jmp 0x140005090
cmp eax, 0x5a
jne 0x140005090
mov dword [rbx], 8
jmp 0x140005090
mov dword [rbx], 9
mov al, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400144f0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000b7e4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140011b08
mov rsi, rax
test rax, rax
je 0x14000b860
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000b85b
cmp dword [rbx], 0x40
jb 0x14000b85b
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14000b85b
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000b864
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400171e4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140020744
nop
cmp dword [0x14004e568], 1
je 0x140017190
mov dword [0x14004e564], 1
mov byte [0x14004e560], r12b
test ebx, ebx
jne 0x14001717c
mov rcx, qword [0x140050850]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140017169
mov rcx, qword [0x140050848]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140017108
call fcn.1400175a0
cmp qword [rdi], rax
jne 0x140017108
jmp 0x1400170ee
cmp rdi, rsi
jb 0x140017169
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400175a0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140050850]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140050848]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140017147
cmp r13, rax
je 0x140017167
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400170ee
lea rdx, [0x140036928]
lea rcx, [0x140036910]
call fcn.140016f38
lea rdx, [0x140036938]
lea rcx, [0x140036930]
call fcn.140016f38
nop
test r12d, r12d
je 0x14001719f
mov ecx, 8
call fcn.140020644
test r12d, r12d
jne 0x1400171ca
mov dword [0x14004e568], 1
lea ecx, [r12 + 8]
call fcn.140020644
mov ecx, r15d
call fcn.140016ecc
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140017058

Function at 0x1400171f0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140017058
Function at 0x1400173b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140048dc0]
jne 0x14001450a
rol rcx, 0x10
test cx, 0xffff
jne 0x140014506
repz ret
ror rcx, 0x10
jmp 0x140017310
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004e610]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14004e708]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140017395
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14004e610]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400173b7
mov rax, qword [rsp + 0x88]
mov qword [0x14004e708], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004e6a8], rax
mov rax, qword [0x14004e708]
mov qword [0x14004e580], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004e690], rax
mov dword [0x14004e570], 0xc0000409
mov dword [0x14004e574], 1
mov rax, qword [0x140048dc0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140048dc8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14004e608], eax
mov ecx, 1
call fcn.140017590
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140039590]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14004e608], 0
jne 0x14001743e
mov ecx, 1
call fcn.140017590
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140023100
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400175a0
xor ebx, ebx
mov rdi, rax
cmp qword [0x14004f358], rbx
jne 0x140023206
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400232db
lea rdx, [0x14003bd78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400232db
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14004f358], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14003bd50]
mov rcx, rsi
mov qword [0x14004f360], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14004f368], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14004f378], rax
test rax, rax
je 0x1400231fd
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14004f370], rax
jmp 0x14002320d
mov rax, qword [0x14004f370]
jmp 0x140023214
mov rax, qword [0x14004f370]
mov r11, qword [0x14004f378]
cmp rax, rdi
je 0x14002327c
cmp r11, rdi
je 0x14002327c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14004f378]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002327c
test rax, rax
je 0x14002327c
call rsi
test rax, rax
je 0x140023276
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140023276
test byte [rsp + 0x38], 1
jne 0x14002327c
bts ebp, 0x15
jmp 0x1400232ba
mov rcx, qword [0x14004f360]
cmp rcx, rdi
je 0x1400232ba
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400232ba
call rax
mov rbx, rax
test rax, rax
je 0x1400232ba
mov rcx, qword [0x14004f368]
cmp rcx, rdi
je 0x1400232ba
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400232ba
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004f358]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400232db
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400232dd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140031b20
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x140048dc0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea rcx, [rsp + 0x68]
call fcn.140002340
nop
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.14002a3b0
lea rcx, [rsp + 0x68]
call fcn.1400023d0
mov rdx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140031c02
mov byte [rsp + 0x90], 0
lea rcx, [rsp + 0x68]
call fcn.140001260
nop
mov rcx, qword [rsp + 0xc8]
call fcn.140001260
mov al, byte [rsp + 0x90]
jmp 0x140031d1c
mov rcx, qword [rsp + 0xc8]
call fcn.1400023f0
mov rbx, rax
mov rcx, qword [rsp + 0xc8]
call fcn.1400023d0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.EventMessageFile
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140031c7e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x91], 0
lea rcx, [rsp + 0x68]
call fcn.140001260
nop
mov rcx, qword [rsp + 0xc8]
call fcn.140001260
mov al, byte [rsp + 0x91]
jmp 0x140031d1c
mov rax, qword [rsp + 0xc0]
add rax, 0x28
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TypesSupported
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140031cea
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x92], 0
lea rcx, [rsp + 0x68]
call fcn.140001260
nop
mov rcx, qword [rsp + 0xc8]
call fcn.140001260
mov al, byte [rsp + 0x92]
jmp 0x140031d1c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x93], 1
lea rcx, [rsp + 0x68]
call fcn.140001260
nop
mov rcx, qword [rsp + 0xc8]
call fcn.140001260
mov al, byte [rsp + 0x93]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400144f0
add rsp, 0xb0
pop rbx
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x14003fdb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003fdbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003fdcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003fdb5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003fde5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003fdd2
sub eax, 3
jb 0x14003fdff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003fe36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003fe26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003fe24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003fe13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003fd72
jmp 0x14003fdbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x31400
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003fe82
cmp rsi, rcx
jae 0x14003fe8a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003fe69
cmp al, 0x8f
ja 0x14003fe69
cmp byte [rsi - 2], 0xf
je 0x14003fe6f
sub al, 0xe8
cmp al, 1
ja 0x14003fe53
cmp rsi, rcx
jae 0x14003fe8a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003fe59
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003fe8a
lodsb al, byte [rsi]
jmp 0x14003fe69
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3c000]
mov eax, dword [rdi]
or eax, eax
je 0x14003fee7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x401dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003fe97
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003fee1
mov qword [rbx], rax
add rbx, 8
jmp 0x14003feb7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14003ff21
cmp al, 0xef
ja 0x14003ff13
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14003fef3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14003ff02
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003ff75
sub rsp, 0xffffffffffffff80
jmp 0x14001de5c
Function at 0x140002a01
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov ecx, 0x2000
mov rbx, rdx
call fcn.1400644b3
xor edx, edx
mov rcx, rsi
mov rdi, rax
call sub.msvcrt.dll__open_1
xor edx, edx
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll__open_1
mov ebx, eax
mov eax, esi
or eax, ebx
js 0x140002af5
mov rbp, qword [sym.imp.msvcrt.dll__fstat64]
lea rdx, [rsp + 0x20]
mov ecx, esi
call rbp
test eax, eax
js 0x140002af5
lea rdx, [rsp + 0x58]
mov ecx, ebx
call rbp
test eax, eax
js 0x140002af5
mov rbp, qword [rsp + 0x38]
cmp rbp, qword [rsp + 0x70]
jne 0x140002af5
mov r15d, 0x1000
lea r14, [rdi + 0x1000]
test rbp, rbp
je 0x140002adb
cmp ebp, 0x1000
mov r13, r15
mov rdx, rdi
mov ecx, esi
cmovle r13, rbp
mov r8d, r13d
call sub.msvcrt.dll__read_1
mov r12d, eax
cmp eax, r13d
jne 0x140002af5
mov r8d, eax
mov rdx, r14
mov ecx, ebx
call sub.msvcrt.dll__read_1
cmp r12d, eax
jne 0x140002af5
mov r8, r13
mov rdx, r14
mov rcx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140002af5
sub rbp, r13
jmp 0x140002a8b
mov rcx, rdi
call fcn.140074210
mov ecx, esi
call sub.msvcrt.dll__close_1
mov ecx, ebx
call sub.msvcrt.dll__close_1
mov al, 1
jmp 0x140002b0d
mov rcx, rdi
call fcn.140074210
mov ecx, esi
call sub.msvcrt.dll__close_1
mov ecx, ebx
call sub.msvcrt.dll__close_1
xor eax, eax
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140005260
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov rsi, rdx
call sub.msvcrt.dll_getenv
cmp byte [rdi + 1], 0
mov rbx, rax
je 0x14000529e
mov ecx, 2
call qword [str.___a_]
mov r9, rbx
mov r8, rsi
lea rdx, str.env_manager::getenv___s______s_n
mov rcx, rax
call fcn.14007aee0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000537e
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp byte [rcx + 1], 0
mov rbx, rcx
mov rdi, rdx
je 0x1400053b7
mov ecx, 2
call qword [str.___a_]
mov r8, rdi
lea rdx, str.env_manager::xput___s__n
mov rcx, rax
call fcn.14007aee0
mov rax, qword [0x14014f3d0]
cmp dword [rax + 0x1750], 0
je 0x1400053e4
mov ecx, 2
call qword [str.___a_]
mov r8, rdi
lea rdx, [0x140089ba6]
mov rcx, rax
call fcn.14002371c
cmp byte [rbx], 0
je 0x140005535
mov edx, 0x3d
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x140005417
lea r8, str.xput
mov edx, 0x7f
lea rcx, str._gcc_13.2.0_gcc_gcc.cc
call fcn.140085ed0
sub rax, rdi
mov rcx, rdi
mov rdx, rax
call fcn.140064660
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_getenv
cmp byte [rbx + 1], 0
mov rsi, rax
je 0x140005456
mov ecx, 2
call qword [str.___a_]
mov r8, rsi
lea rdx, str.saving_old_value:__s_n
mov rcx, rax
call fcn.14007aee0
test rsi, rsi
je 0x140005466
mov rcx, rsi
call fcn.1400645c0
mov rsi, rax
mov r15, qword [rbx + 8]
test r15, r15
je 0x14000549b
mov eax, dword [r15]
mov r12d, dword [r15 + 4]
and eax, 0x7fffffff
cmp eax, r12d
jne 0x140005518
mov r13b, byte [r15 + 3]
shr r13b, 7
je 0x14000549e
xor eax, eax
lea edx, [r12 + 1]
mov qword [rbx + 8], rax
jmp 0x1400054a6
xor r13d, r13d
xor r12d, r12d
mov edx, 1
mov rcx, qword [rbx + 8]
xor r8d, r8d
call fcn.14007c5f0
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, eax
mov r14, rdx
shl rdx, 4
add rdx, 8
test rcx, rcx
je 0x1400054cf
mov r8d, dword [rcx + 4]
mov dword [rsp + 0x2c], r8d
and r14d, 0x7fffffff
call fcn.140064525
mov r8d, dword [rsp + 0x2c]
mov qword [rbx + 8], rax
mov dword [rax], r14d
mov dword [rax + 4], r8d
test r13b, r13b
je 0x140005518
mov ecx, r12d
xor edx, edx
shl rcx, 4
cmp rcx, rdx
je 0x140005514
movups xmm0, xmmword [r15 + rdx + 8]
movups xmmword [rax + rdx + 8], xmm0
add rdx, 0x10
jmp 0x1400054fe
mov dword [rax + 4], r12d
mov rdx, qword [rbx + 8]
mov eax, dword [rdx + 4]
lea ecx, [rax + 1]
shl rax, 4
lea rax, [rdx + rax + 8]
mov dword [rdx + 4], ecx
mov qword [rax], rbp
mov qword [rax + 8], rsi
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x1400743b8
mov rdx, rcx
lea rcx, [0x140163430]
jmp 0x14000537e
jmp qword [sym.imp.msvcrt.dll__putenv]
Function at 0x14000554d
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp byte [rcx + 1], 0
mov rbx, rcx
mov rdi, rdx
je 0x1400053b7
mov ecx, 2
call qword [str.___a_]
mov r8, rdi
lea rdx, str.env_manager::xput___s__n
mov rcx, rax
call fcn.14007aee0
mov rax, qword [0x14014f3d0]
cmp dword [rax + 0x1750], 0
je 0x1400053e4
mov ecx, 2
call qword [str.___a_]
mov r8, rdi
lea rdx, [0x140089ba6]
mov rcx, rax
call fcn.14002371c
cmp byte [rbx], 0
je 0x140005535
mov edx, 0x3d
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x140005417
lea r8, str.xput
mov edx, 0x7f
lea rcx, str._gcc_13.2.0_gcc_gcc.cc
call fcn.140085ed0
sub rax, rdi
mov rcx, rdi
mov rdx, rax
call fcn.140064660
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_getenv
cmp byte [rbx + 1], 0
mov rsi, rax
je 0x140005456
mov ecx, 2
call qword [str.___a_]
mov r8, rsi
lea rdx, str.saving_old_value:__s_n
mov rcx, rax
call fcn.14007aee0
test rsi, rsi
je 0x140005466
mov rcx, rsi
call fcn.1400645c0
mov rsi, rax
mov r15, qword [rbx + 8]
test r15, r15
je 0x14000549b
mov eax, dword [r15]
mov r12d, dword [r15 + 4]
and eax, 0x7fffffff
cmp eax, r12d
jne 0x140005518
mov r13b, byte [r15 + 3]
shr r13b, 7
je 0x14000549e
xor eax, eax
lea edx, [r12 + 1]
mov qword [rbx + 8], rax
jmp 0x1400054a6
xor r13d, r13d
xor r12d, r12d
mov edx, 1
mov rcx, qword [rbx + 8]
xor r8d, r8d
call fcn.14007c5f0
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, eax
mov r14, rdx
shl rdx, 4
add rdx, 8
test rcx, rcx
je 0x1400054cf
mov r8d, dword [rcx + 4]
mov dword [rsp + 0x2c], r8d
and r14d, 0x7fffffff
call fcn.140064525
mov r8d, dword [rsp + 0x2c]
mov qword [rbx + 8], rax
mov dword [rax], r14d
mov dword [rax + 4], r8d
test r13b, r13b
je 0x140005518
mov ecx, r12d
xor edx, edx
shl rcx, 4
cmp rcx, rdx
je 0x140005514
movups xmm0, xmmword [r15 + rdx + 8]
movups xmmword [rax + rdx + 8], xmm0
add rdx, 0x10
jmp 0x1400054fe
mov dword [rax + 4], r12d
mov rdx, qword [rbx + 8]
mov eax, dword [rdx + 4]
lea ecx, [rax + 1]
shl rax, 4
lea rax, [rdx + rax + 8]
mov dword [rdx + 4], ecx
mov qword [rax], rbp
mov qword [rax + 8], rsi
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x1400743b8
mov rdx, rcx
lea rcx, [0x140163430]
jmp 0x14000537e
jmp qword [sym.imp.msvcrt.dll__putenv]
Function at 0x140006d60
Capabilities:
Encode data using xor

Disassembly:
shl rbx, 0x27
xor r11, r11
addps xmm8, xmm13
mov r15, qword [rsp + r11]
shr r12, 0x32
mov rsi, 0x6e194be4
test r11, rdi
mov rbx, 0x6e1958ca
cmp r14, r11
xor rsi, rbx
and rdi, r13
sub r15, rsi
pause
mov rsi, 0x8b5f3e4
lfence
mov rbx, 0x8a37b7c
and r12, r11
xor rsi, rbx
lfence
add rsi, r15
ror r10, 0x20
mov r12, qword [rsi]
mov rdi, 0x84
mov r14, 0x4dcb805
invalid
invalid

Function at 0x1400076f0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x14014eea0]
lea rbp, [0x1401632e0]
xor r8d, r8d
lea r9, [0x14003323e]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov rsi, rdx
xor edx, edx
call fcn.1400629c6
mov rax, qword [0x140163300]
sub rax, qword [0x1401632f8]
cmp rax, 0xb
ja 0x140007743
mov edx, 0xc
mov rcx, rbp
call fcn.1400629fb
mov rax, qword [0x1401632f8]
mov rcx, rsi
movabs rdi, 0x5f5443454c4c4f43
mov qword [rax], rdi
mov dword [rax + 8], 0x3d434347
mov rax, qword [0x1401632f8]
lea rdi, [rax + 0xc]
mov qword [0x1401632f8], rdi
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
mov rax, qword [0x140163300]
sub rax, rdi
cmp rax, rbx
jae 0x140007796
mov rdx, rbx
mov rcx, rbp
call fcn.1400629fb
mov rcx, rbx
mov rdi, qword [0x1401632f8]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [0x1401632f0]
add rbx, qword [0x1401632f8]
cmp rbx, rcx
jne 0x1400077bc
or byte [0x140163330], 2
mov rax, qword [0x140163310]
mov rdx, qword [0x1401632e8]
add rbx, rax
not rax
and rbx, rax
mov rax, qword [0x140163300]
mov r8, rbx
mov r9, rax
sub r8, rdx
sub r9, rdx
cmp r9, r8
cmovb rbx, rax
mov qword [0x1401632f8], rbx
mov qword [0x1401632f0], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14000554d