joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002c90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, pe_nt_image_headers64
call fcn.1400035e0
sub rsp, rax
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp dword [0x1401ccf64], ebx
jne 0x140002d33
lea rcx, str.CDS_NO_SPBCDSINIT
call qword [sym.imp.MSVCR110.dll_getenv]
test rax, rax
jne 0x140002d33
lea rdx, [rsp + 0x20]
mov r8d, Ordinal_265
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140002d28
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x140002cf0
dec eax
movsxd rcx, eax
js 0x140002d1e
nop
movzx edx, byte [rsp + rcx + 0x20]
cmp dl, 0x5c
je 0x140002d18
cmp dl, 0x2f
je 0x140002d18
dec eax
dec rcx
jns 0x140002d00
jmp 0x140002d1e
cdqe
mov byte [rsp + rax + 0x20], bl
lea rcx, [rsp + 0x20]
call fcn.140002ac0
mov ebx, 1
mov dword [0x1401ccf64], ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.cdsCommon64.dll_cdsInit]
mov edi, eax
cmp ebx, 1
jne 0x140002d4d
call fcn.1400029c0
mov eax, edi
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140004f00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, rcx
test rcx, rcx
je 0x14000502b
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rcx + rdi], bl
jne 0x140004f30
cmp qword [0x1401cd620], rbx
mov esi, ebx
mov ebp, ebx
je 0x140004f54
mov rdx, rcx
lea rcx, str.Validating_server_path:__s
call fcn.140008560
lea rcx, str.CDS_LIC_STRICT_SERVER_PATH
call qword [sym.imp.MSVCR110.dll_getenv]
test rax, rax
je 0x140004f80
cmp qword [0x1401cd620], rbx
je 0x140004f7b
lea rcx, str.Strict_server_path_validation_turned_on
call fcn.140008560
mov ebp, 1
movsxd r8, edi
mov rdi, qword [rsp + 0x40]
movsxd rcx, ebp
mov r9d, 0xfffffc59
test r8, r8
js 0x140004fc5
mov rdx, r14
neg rdx
nop dword [rax]
movzx eax, byte [r14]
test al, al
je 0x140004fc5
cmp al, 0x2c
jne 0x140004fb0
inc esi
jmp 0x140004fe2
cmp al, 0x3a
jne 0x140004fe2
cmp rcx, 1
jne 0x140004fd7
test esi, 0xfffffffd
je 0x140004fe0
mov ebx, r9d
cmp ebp, 1
jne 0x140004ff0
test esi, 0xfffffffd
je 0x140004ffb
mov ebx, r9d
jmp 0x140004ffb
test ebp, ebp
jne 0x140004fe0
cmp esi, 2
jg 0x140004fc2
mov esi, ebx
inc r14
lea rax, [rdx + r14]
cmp rax, r8
jle 0x140004fa0
jmp 0x140004fc5
test ebp, ebp
jne 0x140004ffb
cmp esi, 2
cmovg ebx, r9d
cmp qword [0x1401cd620], 0
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x140005040
lea rcx, str.Server_path_validation_status:__d
mov edx, ebx
call fcn.140008560
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [0x1401cd620], rbx
je 0x140005040
lea rcx, str.Server_path_validation:_No_server_path_to_validate
call fcn.140008560
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400075d0
Capabilities:
Get hostname
Query environment variable

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
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [0x1402818b0]
xor esi, esi
test rcx, rcx
je 0x14000761f
lea r8, [0x1401861f4]
lea rdx, str.c:Program_FilesCadence_Design_SystemsCadence_License_Managerlicense.dat
call fcn.140006e80
mov r14, rax
jmp 0x140007622
mov r14, rsi
lea rcx, str.CDS_LIC_FILE
call qword [sym.imp.MSVCR110.dll_getenv]
or rdi, 0xffffffffffffffff
mov rbx, rax
test rax, rax
jne 0x140007640
mov rbp, rsi
jmp 0x14000766f
mov rax, rdi
cmp byte [rbx + rax + 1], sil
lea rax, [rax + 1]
jne 0x140007643
lea ecx, [rax + 1]
call fcn.140008430
mov rdx, rax
mov rbp, rax
sub rdx, rbx
nop
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rdx + rbx - 1], cl
test cl, cl
jne 0x140007660
mov rdx, rbp
mov rcx, r14
call fcn.140006d80
mov rbx, rax
test rbp, rbp
je 0x140007692
mov rcx, rbp
call qword [sym.imp.MSVCR110.dll_free]
sub dword [0x1402818b8], 8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], 0x28
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x1400076c6
mov rax, qword [0x1401915e8]
mov qword [rsp + 0x28], rax
movzx eax, word [reloc.WSOCK32.dll_WSACleanup]
mov word [rsp + 0x30], ax
xor edx, edx
mov rcx, rbx
call fcn.140006d80
lea rcx, str.CDS_LIC_ONLY
mov rbp, rax
call qword [sym.imp.MSVCR110.dll_getenv]
test rax, rax
jne 0x140007752
lea rcx, [0x140191670]
call qword [sym.imp.MSVCR110.dll_getenv]
mov rbx, rax
test rax, rax
je 0x14000772f
nop word [rax + rax]
cmp byte [rax + rdi + 1], sil
lea rdi, [rdi + 1]
jne 0x140007700
lea ecx, [rdi + 1]
call fcn.140008430
mov rsi, rax
sub rax, rbx
nop dword [rax]
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rax + rbx - 1], cl
test cl, cl
jne 0x140007720
mov rdx, rsi
mov rcx, rbp
call fcn.140006d80
mov rbp, rax
test rsi, rsi
je 0x140007752
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_free]
sub dword [0x1402818b8], 8
call fcn.140007090
mov rcx, rbp
mov rdx, rax
mov rbx, rax
call fcn.140006d80
mov rdi, rax
test rbx, rbx
je 0x140007780
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_free]
sub dword [0x1402818b8], 8
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006b6a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14001f570
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
lea rcx, [0x1401bb940]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x48], rax
lea rcx, str.SELECT__FROM_Win32_BaseBoard
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0xa0]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x14001f60c
jmp 0x14001f6ee
cmp qword [rsp + 0x30], 0
je 0x14001f6ee
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14001f6ee
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Product
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x20]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x14001f6d9
movzx eax, word [rsp + 0x68]
cmp eax, 8
jne 0x14001f6d9
cmp qword [rsp + 0x70], 0
je 0x14001f6d9
mov rdx, qword [rsp + 0x70]
lea rcx, str.Virtual_Machine
call sub.MSVCR110.dll_wcsstr
test rax, rax
je 0x14001f6ce
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + reloc.WSOCK32.dll_recv]
jmp 0x14001f629
cmp qword [rsp + 0x30], 0
je 0x14001f706
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x14001f730
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
lea rcx, [0x1401bb9b8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x58], rax
lea rcx, str.SELECT__FROM_Win32_BIOS
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0xa0]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x14001f7cc
jmp 0x14001f8b8
cmp qword [rsp + 0x30], 0
je 0x14001f8b8
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x68]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [rax + 0x20]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14001f8b8
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.SerialNumber
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x20]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x14001f8a3
movzx eax, word [rsp + 0x70]
cmp eax, 8
jne 0x14001f8a3
cmp qword [rsp + 0x78], 0
je 0x14001f8a3
lea rdx, str.VMware
mov rcx, qword [rsp + 0x78]
call sub.MSVCR110.dll_wcsstr
test rax, rax
je 0x14001f890
mov dword [rsp + 0x40], 1
jmp 0x14001f898
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [rax + reloc.WSOCK32.dll_recv]
jmp 0x14001f7e9
cmp qword [rsp + 0x30], 0
je 0x14001f8d0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [rsp + 0x40]
add rsp, 0x98
ret
Function at 0x14001f900
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x58], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x68], 0
jge 0x14001f982
cmp dword [rsp + 0x68], 0x80010106
je 0x14001f982
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [rsp + 0x54]
jmp 0x14001fb29
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14001f9d9
cmp dword [rsp + 0x68], 0x80010119
je 0x14001f9d9
jmp 0x14001fada
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x14019ae30]
mov r8d, 1
xor edx, edx
lea rcx, [0x14019add0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14001fa0f
jmp 0x14001fada
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x18]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14001fa64
jmp 0x14001fada
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x14001faa8
jmp 0x14001fada
cmp dword [rsp + 0x90], 1
jne 0x14001fac2
lea rcx, [rsp + 0x60]
call fcn.14001f570
mov dword [rsp + 0x54], eax
jmp 0x14001fada
cmp dword [rsp + 0x90], 0
jne 0x14001fada
lea rcx, [rsp + 0x60]
call fcn.14001f730
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0x60], 0
je 0x14001faf2
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + reloc.WSOCK32.dll_recv]
cmp qword [rsp + 0x70], 0
je 0x14001fb0a
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + reloc.WSOCK32.dll_recv]
cmp dword [rsp + 0x50], 0x80010106
je 0x14001fb1a
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [rsp + 0x54]
add rsp, 0x88
ret
Function at 0x140020590
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x14002061a
movsxd rax, dword [rsp + 0x40]
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 1
je 0x1400205e1
mov eax, dword [rsp + 0x20]
neg eax
mov dword [rsp + 0x20], eax
jmp 0x14002061a
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
cmp eax, 0xd
jne 0x1400205fb
jmp 0x1400205aa
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
cmp eax, 0xa
jne 0x14002060a
jmp 0x14002061a
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
jmp 0x1400205aa
mov rax, qword [rsp + 0x48]
mov byte [rax], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140020a40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
jmp 0x140020a6c
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x140020ac2
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.WSOCK32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jg 0x140020aab
mov eax, dword [rsp + 0x20]
neg eax
jmp 0x140020ac6
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x140020a5c
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400287c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
mov eax, 0x20
call fcn.1400035e0
sub rsp, rax
cmp dword [0x1401c2ac0], 0
je 0x1400287f0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401c2ac0], 0
mov dword [0x1401d099c], eax
jmp 0x1400287f6
mov eax, dword [0x1401d099c]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14002885b
lea ecx, [rax + 0x10]
call fcn.1400299d0
test rax, rax
mov rbx, rax
je 0x140028853
mov ecx, 0x5000
call fcn.1400299d0
test rax, rax
mov qword [rbx + 8], rax
je 0x14002884b
mov ecx, dword [0x1401d099c]
mov rdx, rbx
mov dword [rbx], 0x5000
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14002885b
mov rcx, qword [rbx + 8]
call fcn.140029a10
mov rcx, rbx
call fcn.140029a10
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400307c0
Capabilities:
Read file on windows

Disassembly:
push rbx
mov eax, gethostbyname
call fcn.1400035e0
sub rsp, rax
lea r9, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
cmove ecx, ebx
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x1400308c0
Capabilities:
Write file on windows

Disassembly:
push rbx
mov eax, gethostbyname
call fcn.1400035e0
sub rsp, rax
lea r9, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
cmove ecx, ebx
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140030900
Capabilities:
Get file size

Disassembly:
mov eax, 0x28
call fcn.1400035e0
sub rsp, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [rsp + 0x38], 0
mov ecx, 0xffffffff
cmovne eax, ecx
add rsp, 0x28
ret
Function at 0x140031050
Capabilities:
Encode data using xor

Disassembly:
movzx eax, word [r8 + 0x2c]
mov qword [rsp + 0x18], rsi
mov r11, rcx
mov word [rcx], ax
movzx eax, word [r8 + 0x2e]
mov r10, r8
mov word [rcx + 2], ax
movzx eax, word [r8 + 0x28]
mov rsi, rdx
mov word [rcx + 4], ax
movzx eax, word [r8 + 0x2a]
mov word [rcx + 6], ax
add word [r8 + 0x18], 0xffff
mov rax, qword [r9]
bt word [rax + 0x4c], 8
movzx ecx, word [r8 + 0x18]
jb 0x1400310af
movzx eax, byte [r8 + 0x1c]
cmp al, 2
jb 0x1400310a5
cmp al, 0x34
jbe 0x1400310af
mov ax, 7
mov rsi, qword [rsp + 0x18]
ret
test cx, cx
je 0x140031233
cmp cx, 0x1fff
ja 0x140031233
add r11, 8
test cx, cx
je 0x140031233
mov qword [rsp + 0x10], rbp
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
nop
movzx eax, word [r11]
mov r9d, 5
mov rbx, r10
mov word [r10 + 0x28], ax
movzx eax, word [r11 + 2]
lea rdi, [r10 + 2]
mov word [r10 + 0x2a], ax
movzx eax, word [r11 + 4]
mov word [r10 + 0x2c], ax
movzx eax, word [r11 + 6]
mov word [r10 + 0x2e], ax
nop
nop
nop
movzx r8d, word [r10 + 0x2e]
movzx eax, word [r10 + 0x2c]
add rbx, 4
mov word [r10 + 0x20], ax
movzx ecx, al
shr ax, 8
xor al, cl
mov word [r10 + 0x22], r8w
add rdi, 4
movzx edx, al
movzx eax, r8w
shr ax, 8
shl dx, 8
add dx, cx
xor al, r8b
and r8w, 0xff00
mov word [r10 + 0x2c], dx
movzx ecx, al
add cx, r8w
mov word [r10 + 0x2e], cx
xor dx, word [rbx - 4]
mov word [r10 + 0x2c], dx
xor cx, word [rdi - 4]
mov word [r10 + 0x2e], cx
movzx ecx, byte [rsi + 1]
add cl, byte [rsi + 2]
inc cl
rol cl, 1
rol cl, 1
mov byte [rsi + 1], cl
movzx eax, cl
add cl, byte [rsi + 2]
add al, byte [rsi]
rol al, 1
rol al, 1
rol cl, 1
mov byte [rsi], al
rol cl, 1
mov byte [rsi + 2], cl
add cl, byte [rsi + 3]
inc cl
rol cl, 1
rol cl, 1
mov byte [rsi + 3], cl
movzx eax, word [r10 + 0x28]
xor word [r10 + 0x2c], ax
movzx eax, word [r10 + 0x2a]
xor word [r10 + 0x2e], ax
dec r9
movzx eax, word [r10 + 0x20]
mov word [r10 + 0x28], ax
movzx eax, word [r10 + 0x22]
mov word [r10 + 0x2a], ax
jns 0x140031120
movzx eax, word [r10 + 0x2c]
add r11, 8
mov word [r11 - 8], ax
movzx eax, word [r10 + 0x2e]
mov word [r11 - 6], ax
movzx eax, word [r10 + 0x28]
mov word [r11 - 4], ax
movzx eax, word [r10 + 0x2a]
mov word [r11 - 2], ax
add word [r10 + 0x18], 0xffff
cmp word [r10 + 0x18], 0
ja 0x1400310e0
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
xor ax, ax
ret
Function at 0x140032de0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x28
call fcn.1400035e0
sub rsp, rax
mov qword [rsp + 0x40], rbx
mov r8d, edx
mov rbx, rcx
mov qword [rsp + 0x48], rdi
mov edi, edx
mov rdx, rcx
lea rcx, str.HL_LICENSEDIR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
mov r11d, eax
je 0x140032ece
lea r8d, [rdi - 1]
cmp eax, r8d
jae 0x140032eb2
movzx r10d, byte [rbx]
xor r8d, r8d
test r10b, r10b
mov edx, r8d
je 0x140032e4a
mov rcx, rbx
nop
nop
inc rcx
inc edx
cmp byte [rcx], r8b
jne 0x140032e40
movsxd rax, edx
cmp byte [rax + rbx - 1], 0x5c
je 0x140032eb2
mov edx, r8d
lea r9, [0x1401c2fa0]
cmp byte [0x1401c2fa0], dl
je 0x140032e7a
mov rax, r9
nop
nop
inc rax
inc edx
cmp byte [rax], r8b
jne 0x140032e70
test r10b, r10b
je 0x140032e8d
mov rax, rbx
inc rax
inc r8d
cmp byte [rax], 0
jne 0x140032e82
inc edx
movsxd rax, r8d
lea rcx, [rax + rbx]
je 0x140032eaf
sub r9, rax
sub r9, rbx
nop
movzx eax, byte [r9 + rcx]
inc rcx
dec edx
mov byte [rcx - 1], al
jne 0x140032ea0
inc r11d
test r11d, r11d
je 0x140032ece
cmp r11d, edi
jae 0x140032ece
mov eax, r11d
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov r11d, eax
jne 0x140032ef2
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
cmp byte [r11 + rbx], 0x5c
movsxd rcx, r11d
je 0x140032f19
lea rax, [rcx + rbx]
cmp byte [rax], 0x3a
je 0x140032f19
test r11d, r11d
je 0x140032f19
mov byte [rax], 0
dec rax
add r11d, 0xffffffff
cmp byte [rax], 0x5c
jne 0x140032f00
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea eax, [r11 + 1]
add rsp, 0x28
ret
Function at 0x140035f70
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x68
call fcn.1400035e0
sub rsp, rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r13
mov rbx, rdx
mov r13d, ecx
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov edx, 0x10000
xor ecx, ecx
mov r12, r8
mov rdi, r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rsi, rax
je 0x14003617f
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x78], rbp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x140036148
lea r9, [rsp + 0x40]
mov r8d, 0x10000
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [rsp + 0x40]
mov rcx, rbp
test eax, eax
cmove ebx, r14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rdi, rax
je 0x140036148
test ebx, ebx
mov r8d, r14d
mov r9d, r14d
mov rcx, r14
je 0x140036091
mov rdx, rax
nop
movzx eax, byte [rcx + rsi]
mov byte [rdx], al
cmp byte [rcx + rsi], 0xd
jne 0x140036083
lea eax, [rbx - 1]
cmp r8d, eax
jae 0x140036080
cmp byte [rcx + rsi + 1], 0xa
jne 0x140036080
inc r9d
jmp 0x140036086
mov byte [rdx], 0xa
inc rdx
inc r8d
inc rcx
cmp r8d, ebx
jb 0x140036060
sub ebx, r9d
mov r8d, r14d
mov r9, r14
je 0x140036148
movsx r10d, byte [0x1401c3220]
lea r11, str.Begin_HL_RUS_License_______________________
nop
movzx eax, byte [r9 + rdi]
lea rdx, [r9 + rdi]
cmp eax, r10d
jne 0x1400360eb
mov ecx, r8d
mov eax, ebx
add rcx, 0x2d
cmp rcx, rax
ja 0x140036148
mov rcx, r14
nop
movzx eax, byte [rcx + r11]
cmp byte [rdx + rcx], al
jne 0x1400360eb
inc rcx
cmp rcx, 0x2b
jl 0x1400360d0
cmp byte [r9 + rdi + 0x2b], 0xa
je 0x1400360f8
inc r8d
inc r9
cmp r8d, ebx
jb 0x1400360b0
jmp 0x140036148
add r8d, 0x2c
mov eax, ebx
sub eax, r8d
cmp eax, 0x31
jb 0x140036148
cmp r8d, ebx
mov ecx, r8d
movsxd rax, r8d
jae 0x14003612e
add rax, rdi
cmp byte [rax], 0xa
je 0x140036124
inc ecx
inc rax
cmp ecx, ebx
jb 0x140036114
jmp 0x14003612e
cmp ecx, ebx
mov eax, ecx
mov byte [rax + rdi], r14b
jb 0x140036133
mov byte [rbx + rdi - 1], r14b
mov ecx, r8d
mov edx, r13d
mov r8, r12
add rcx, rdi
call fcn.140035d70
test eax, eax
jne 0x140036163
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14003615f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x14003617a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret