joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d7d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [0x14003b100]
xor r8d, r8d
xor edx, edx
lea r9d, [rbx + 2]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000d8d6
mov dword [rsp + 0x40], 0x20
mov ebp, ebx
xor edx, edx
lea r8, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14000d8cd
cmp ebp, 0x20
ja 0x14000d8cd
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 2
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
test rax, rax
je 0x14000d8c1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CUINotRequired
mov dword [rsp + 0x34], ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000d8ca
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov edx, ebp
jmp 0x14000d828
mov rbx, rsi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013c60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000d8fc
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1028]
mov eax, 0x1120
call fcn.140014100
sub rsp, rax
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp + 0x1010], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x8c8
xor ebx, ebx
call fcn.140015ea0
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x800
call fcn.140015ea0
mov edx, 0x400
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x464
lea r8, [rbp + 0x810]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14001b804
lea r8, [0x14003b128]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14001b780
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov edx, eax
lea ecx, [rbx + 0x40]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14000da04
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoExW
lea r9, [rsp + 0x3c]
mov rcx, rdi
lea r8, [rsp + 0x30]
lea rdx, [0x14003b120]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000d9fb
mov rax, qword [rsp + 0x30]
movzx ebx, word [rax + 0x16]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.140013c60
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000da38
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, 1
lea rcx, [0x14003b100]
xor r8d, r8d
xor edx, edx
lea r9d, [rsi + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000db2e
mov dword [rsp + 0x40], 0x20
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14000db25
mov dword [rsp + 0x28], 0x20019
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
test rax, rax
je 0x14000da86
and dword [rsp + 0x34], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CUINotRequired
mov dword [rsp + 0x30], 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
test eax, eax
je 0x14000db1d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000da86
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013c60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000db8c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x260
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call fcn.140004f48
mov rsi, rax
test rax, rax
jne 0x14000dbc6
lea ebx, [rax + 1]
jmp 0x14000dc47
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x208
mov dword [rsp + 0x30], 0x104
lea rcx, [rsp + 0x40]
call fcn.140015ea0
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea rdx, str.Version
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000dc3e
lea rdx, str.3.0.0.0
lea rcx, [rsp + 0x40]
call fcn.14001e808
test eax, eax
jne 0x14000dc39
call fcn.14000d8fc
cmp eax, 0x3fab
jae 0x14000dc3e
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rsi
ret
Function at 0x14000e1f4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, ecx
lea r8, [0x14005c3b0]
mov edi, 0x432
mov edx, edi
lea rsi, [0x14005d420]
mov rcx, rsi
call fcn.14001b804
lea r8, [0x14003b720]
mov edx, edi
mov rcx, rsi
call fcn.14001b780
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000e263
mov rcx, rsi
call fcn.14001f118
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000e471
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call fcn.140015ea0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000ac88
nop
lea rdx, str._echo_off
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rdi, [0x14003b8f4]
cmp ebx, 1
jne 0x14000e309
lea rdx, str.sc_stop_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rdx, str.sc_delete_igfxCUIService1.0.0.0
jmp 0x14000e3d9
cmp ebx, 2
jne 0x14000e3eb
lea rdx, str.sc_stop_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rdx, str.sc_delete_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rdx, str.TIMEOUT_5__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
lea rdx, [0x14005b3b0]
call fcn.14000a34c
mov rcx, rax
lea rdx, [0x14003b120]
call fcn.14000a34c
mov rcx, rax
lea rdx, [0x14003b8f8]
call fcn.14000a34c
mov rcx, rax
mov rdx, rdi
call fcn.14000a34c
mov rcx, rax
lea rdx, str.__service
call fcn.14000a014
mov rcx, rax
call fcn.14000a9c0
lea rdx, str.sc_start_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rdx, [0x14003b9b8]
lea rcx, [rsp + 0x30]
call fcn.14000a34c
mov rcx, rax
mov rdx, rdi
call fcn.14000a34c
mov rcx, rax
lea rdx, [0x14005c3b0]
call fcn.14000a34c
mov rcx, rax
lea rdx, [0x14003b120]
call fcn.14000a34c
mov rcx, rax
lea rdx, str.8A694AF2_286D_429D_867A_3F95898EE308.bat
call fcn.14000a34c
mov rcx, rax
mov rdx, rdi
call fcn.14000a34c
mov rcx, rax
call fcn.14000a9c0
lea rcx, [rsp + 0x30]
call fcn.14000f4f0
nop
lea rcx, [rbp - 0x28]
call fcn.14000b624
nop
lea rcx, vtable.std::ios_base.0
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x28]
call fcn.1400153b8
nop
mov al, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140013c60
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000e92c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x8a0
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rbx, rcx
lea r8, [0x14005bbb0]
lea rcx, [rsp + 0x20]
mov edx, 0x432
xor edi, edi
call fcn.14001b804
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x432
call fcn.14001b780
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000e997
lea rcx, [rsp + 0x20]
call fcn.14001f118
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x8b8]
add rsp, 0x8a0
pop rdi
ret

Function at 0x14000e9bc
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
lea rcx, [0x14003d790]
call fcn.14000e92c
lea rcx, [0x14003d3f0]
call fcn.14000e92c
lea rcx, [0x14003d730]
call fcn.14000e92c
lea rcx, [0x14003d7f0]
call fcn.14000e92c
lea rcx, [0x14003d850]
call fcn.14000e92c
lea rcx, [0x14003b720]
call fcn.14000e92c
lea rcx, [0x14003d640]
add rsp, 0x28
jmp fcn.14000e92c

Function at 0x14000eae0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.140015ea0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005cbb0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000eb7c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140013c60
add rsp, 0xf8
ret

Function at 0x14000eb98
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rdi, rdx
mov qword [r11 - 0x28], rax
mov rdx, rcx
mov rbx, r8
mov rcx, 0xffffffff80000002
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ec26
cmp qword [rsp + 0x30], 0
je 0x14000ec26
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140013168
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, edx
mov rsi, rcx
xor ebx, ebx
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
lea ecx, [rbx + 1]
call fcn.140004f48
mov rdi, rax
test rax, rax
je 0x1400131d2
lea r9d, [rbx + 4]
mov dword [rsp + 0x30], ebp
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140013330
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, r8d
lea rdx, str.Received_Post_Shell_Event__ld_n
lea rcx, [0x140058fe0]
call fcn.140006634
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], eax
and qword [rsp + 0x40], rax
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
lea ecx, [rax + 1]
call fcn.140004f48
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400133d7
mov dword [rsp + 0x48], 2
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
and dword [rsp + 0x38], ebx
call fcn.14000da30
xor edx, edx
mov ecx, edi
call fcn.14000dc6c
mov byte [0x14005e540], 1
test rbx, rbx
je 0x1400133fa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14001e7fc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001e65b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e65b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e65b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e65b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e65b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e65b
cmp dword [rcx + 0xf8], 0
je 0x14001e65b
mov ecx, ebx
call fcn.14001e718
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001e4e8
nop
cmp dword [rbp + 0x20], 0
je 0x14001e6a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e6b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001e5ec

Function at 0x14001f118
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f138
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b62c
or eax, 0xffffffff
jmp 0x14001f13a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140029428
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140029141
call fcn.14001b6b8
mov dword [rax], 0x16
call fcn.14001b54c
jmp 0x14002929d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x14002929d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x14002929d
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x140029178
lock or dword [rcx + 0x14], 0x10
jmp 0x14002929d
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002918b
call fcn.140029828
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x14002919c
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x14002919f
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140028df8
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140033dc8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14002928b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140029232
mov rcx, rbx
call fcn.140028df8
cmp eax, 0xffffffff
je 0x14002921d
mov rcx, rbx
call fcn.140028df8
cmp eax, 0xfffffffe
je 0x14002921d
mov rcx, rbx
call fcn.140028df8
movsxd rdi, eax
lea rsi, [0x14005f7a0]
mov rcx, rbx
sar rdi, 6
call fcn.140028df8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140029224
lea rdx, [0x1400574d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140029232
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140029258
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x140029258
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x140029258
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x140029273
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x14002927f
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x1400292a2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x14002910c
Function at 0x14002ae2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140014100
sub rsp, rax
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028df8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002ae7b
mov rax, rbp
jmp 0x14002af83
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5f7a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002b31c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5f7a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002af7f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002af7f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002b31c
test rax, rax
js 0x14002af7f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002af7f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002af71
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002af71
cmp byte [rcx], 0xd
jne 0x14002af57
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002af66
cmp byte [rcx + 1], 0xa
jne 0x14002af66
inc rcx
jmp 0x14002af66
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x57c10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002af39
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002af83
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140013c60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002d044
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 0x14002d0cb
mov rsi, rbx
cmp word [rax], bp
je 0x14002d08a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002d074
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002d070
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140027844
mov rdi, rax
test rax, rax
je 0x14002d0b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016d10
mov rbp, rdi
xor ecx, ecx
call fcn.14002712c
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 0x14003391c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14005f7a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14003397a
cmp word [rdx], r12w
jne 0x14003397a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140033980
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140033adb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140033ab6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400339b9
mov rcx, r9
jmp 0x1400339dc
cmp r9, rdx
jae 0x1400339f3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14003399d
jmp 0x140033adb
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033ab0
cmp dword [rsp + 0x80], edi
je 0x140033ab0
mov rdx, r14
lea r11, [0x14005f7a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140033a89
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140033a5c
mov word [rbx], r12w
jmp 0x140033ad7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140033a65
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140033ad7
cmp word [rsp + 0x70], r12w
jne 0x140033a96
cmp rbx, rsi
je 0x140033a56
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002b324
cmp word [rsp + 0x70], r12w
je 0x140033adb
mov word [rbx], r13w
jmp 0x140033ad7
lea r11, [0x14005f7a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140033ad3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140033adb
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret