joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016260
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x21b0]
mov eax, 0x22b0
call fcn.1400232c0
sub rsp, rax
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rbp + 0x21a0], rax
mov rsi, rcx
lea rcx, str.enter_IsDeviceYB
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
xor r12d, r12d
lea rcx, [rbp + 0x1a2]
xor edx, edx
mov r8d, 0x1ffe
mov qword [rbp + 0x180], r12
mov qword [rbp + 0x188], rax
mov qword [rbp + 0x190], rax
mov qword [rbp + 0x198], rax
mov word [rbp + 0x1a0], r12w
call fcn.14001dd20
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], r12d
test rsi, rsi
je 0x14001646d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14001646d
lea r9d, [r12 + 6]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140016486
lea r8, [rbp + 0x180]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x22d8], rbx
mov dword [rbp + 0x180], 0x20
mov ebx, r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14001644a
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1a0]
mov r8d, 1
mov rcx, rdi
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x1400163ba
lea rcx, [rbp + 0x1a0]
mov rdx, rsi
call fcn.140016170
test rax, rax
jne 0x1400163d4
lea rcx, [rbp + 0x1a0]
xor edx, edx
mov r8d, 0x1000
call fcn.14001dd20
inc ebx
lea r8, [rbp + 0x180]
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140016355
jmp 0x14001644a
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov dword [rsp + 0x50], 0x230
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailW]
test eax, eax
je 0x14001644a
mov rax, qword [rsp + 0x68]
mov r8d, dword [rbp + 0x194]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status_Ex]
test eax, eax
jne 0x14001644a
test dword [rsp + 0x40], 0x400
je 0x14001643e
cmp dword [rsp + 0x44], 0x16
je 0x14001643e
lea rcx, str.IsDeviceYB:_Detect_the_adapter__s_is_yellow_marked._n
mov rdx, rsi
call fcn.14000f070
mov r12d, 1
jmp 0x14001644a
lea rcx, str.IsDeviceYB:_no_YB_device_found._n
call fcn.14000f070
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rcx, str.exit_IsDeviceYB
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x22d8]
mov eax, r12d
jmp 0x140016489
lea rcx, str.WaitDriverCompleteparam_error_n
call fcn.14001b3b4
lea rcx, str.parameter_check_fail
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x21a0]
xor rcx, rsp
call fcn.14001a650
mov rsi, qword [rsp + 0x22e0]
add rsp, 0x22b0
pop r12
pop rdi
pop rbp
ret
Function at 0x1400164b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rcx, str.ResetWlanAdapter_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r11, str.enable
lea rdi, str.disable
lea rcx, str.WLAN_Device_instance_PVID__s_n
mov rdx, rbx
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rbx
call fcn.14000f070
lea rcx, str.cmdDisableEnable_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
xor ecx, ecx
call fcn.1400085d0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.cmdDisableEnable_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x20]
mov r8d, 1
lea r9, [rsp + 0x30]
movzx ecx, r8b
call fcn.1400085d0
lea rcx, str.ResetWlanAdapter_end_n
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
Function at 0x140016570
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x880
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rsi, rcx
lea rcx, str.GetDriverProperty_start.
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
xor edi, edi
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x70], di
call fcn.14001dd20
mov ecx, 0x2000
call fcn.14001ab78
xor edx, edx
mov r8d, 0x2000
mov rcx, rax
mov rbp, rax
call fcn.14001dd20
lea r9d, [rdi + 6]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140016618
or eax, 0xffffffff
jmp 0x14001671a
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x48], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140016703
nop dword [rax + rax]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov r8d, 1
mov rcx, rbx
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14001668b
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.140016170
test rax, rax
jne 0x1400166b5
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x400
call fcn.14001dd20
inc edi
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140016640
jmp 0x140016703
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r8d, 9
mov rcx, rbx
mov dword [rsp + 0x28], 0x2000
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
mov r8, rbp
not rcx
mov rdx, rcx
mov rcx, qword [r12]
call fcn.14001af54
mov rcx, rbp
call fcn.14001a988
lea rcx, str.GetDriverProperty_finished.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.14001a650
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140016750
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x4070
call fcn.1400232c0
sub rsp, rax
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x4060], rax
mov rbx, rcx
mov ecx, 0x2000
call fcn.14001ab78
lea rcx, [rsp + 0xb0]
xor edx, edx
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlClass_]
movaps xmm1, xmmword [0x140039bf0]
mov r8d, 0x3fb0
mov qword [rsp + 0x48], rax
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x140039c00]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm1, xmmword [0x140039c10]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x140039c20]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm1
call fcn.14001dd20
lea rdx, [rsp + 0x48]
xor edi, edi
mov rcx, rbx
mov qword [rsp + 0x50], rdi
call fcn.140016570
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov r8, rbx
mov edx, 0x2000
call fcn.14001aecc
lea rdx, [rsp + 0x60]
lea rcx, str.full_driver_key_is__s_n
call fcn.14000f070
lea r11, [rsp + 0x50]
lea r9d, [rdi + 1]
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400168aa
lea rax, [rsp + 0x48]
lea r9d, [rdi + 0x18]
lea r8, str.serviceMonWlan
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edx, dword [rsp + 0x40]
lea rcx, str.serviceMonWlan_value__d_n
call fcn.14000f070
cmp dword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x50]
sete dil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14001a988
mov eax, edi
mov rcx, qword [rsp + 0x4060]
xor rcx, rsp
call fcn.14001a650
mov rbx, qword [rsp + 0x4088]
add rsp, 0x4070
pop rdi
ret
Function at 0x1400168e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
lea rcx, str.Enter_CheckAndRecoverWlan_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.Enter_GetWlanHardwareID_n
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r11, str.find
lea rax, str.PCIVEN_168C
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], rax
call fcn.1400120b0
lea rcx, str.exit_GetWlanHardwareID_n
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x40]
test ebx, ebx
jne 0x14001695b
lea rcx, str.no_Wlan_exists__exit_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001699f
cmp qword [rdi], 0
je 0x14001699f
mov rdx, qword [rdi]
lea rcx, str.WLAN_Device_instance_PVID__s_n
call fcn.14000f070
mov rcx, qword [rdi]
call fcn.140016750
test eax, eax
jne 0x14001698b
lea rcx, str.no_need_to_do_the_YB_check_and_recover_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001699f
mov rcx, qword [rdi]
call fcn.140016260
test eax, eax
je 0x14001699f
mov rcx, qword [rdi]
call fcn.1400164b0
test rdi, rdi
je 0x1400169bd
cmp qword [rdi - 8], 0
je case.default.0x1400169ce
mov rcx, qword [rdi - 8]
call fcn.14001b478
lea rcx, [rdi - 8]
call fcn.14001b478
lea rcx, str.exit_CheckAndRecoverWlan_n
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]

Function at 0x1400169e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
lea rdx, str.Software_atherosVistaAddon
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140016a16
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.HidePBAP
xor r8d, r8d
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140016a72
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 1
setne al
add rsp, 0x38
ret
Function at 0x140018d20
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rcx + 0x10], rsi
jb 0x140018d59
mov rax, qword [rcx]
jmp 0x140018d5c
mov rax, rcx
lea rcx, [rsp + 0x40]
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [rsp + 0x40]
cmp dx, 9
je 0x140018d83
cmp dx, 6
je 0x140018d83
mov edi, dword [0x1400446d0]
jmp 0x140018d8e
mov edi, 0xf013f
mov dword [0x1400446d0], edi
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], si
call fcn.14001dd20
mov rcx, qword [0x1400446c8]
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018e4a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.InstallDir
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140018e4a
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140018e4a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x70]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14000d920
mov eax, 1
jmp 0x140018e4c
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001a650
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140019de0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea rcx, [0x1400444b0]
xor r8d, r8d
lea r9d, [rbp + 0x10]
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
test rax, rax
je 0x140019f1b
xor eax, eax
lea r8, [rsp + 0x28]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x28], 0x20
mov esi, ebp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140019f0b
mov qword [rsp + 0x60], rbx
nop
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x24]
xor r9d, r9d
mov dword [rsp + 0x24], 0xff
mov dword [rsp + 0x20], 0xff
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
lea rcx, str.The_status_of_uResult_is__d__n
mov edx, eax
mov ebx, eax
call fcn.14000f070
mov edx, dword [rsp + 0x20]
lea rcx, str.The_status_of_uProblem_is__d__n
call fcn.14000f070
test ebx, ebx
je 0x140019ef4
xor eax, eax
inc esi
lea rcx, str.The_MemberIndex_of_SetupDiEnumDeviceInfo_is__d__n
mov qword [rsp + 0x28], rax
mov edx, esi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0x20
call fcn.14000f070
lea r8, [rsp + 0x28]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140019e60
jmp 0x140019f06
lea rcx, str.This_device_is_3002_UART_dongle._n
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rsi, qword [rsp + 0x68]
mov eax, ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001a650
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001a330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x100f8
call fcn.1400232c0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x100e0], rax
mov eax, dword [0x140044970]
test eax, eax
je 0x14001a502
cmp ecx, eax
jg 0x14001a502
test ecx, eax
je 0x14001a502
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
cmp dword [0x140044974], eax
je 0x14001a3c5
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x140044974], edi
cmp dword [0x140044974], edi
je 0x14001a3c5
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140044974], edi
jne 0x14001a3a0
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rbx, qword [0x140044968]
cmp rbx, 0xffffffffffffffff
jne 0x14001a3ee
lea rcx, [0x140044968]
call fcn.14001a160
mov rbx, rax
jmp 0x14001a43e
movzx eax, word [0x140044980]
cmp word [rsp + 0x58], ax
jne 0x14001a418
movzx eax, word [0x140044982]
cmp word [rsp + 0x5a], ax
jne 0x14001a418
movzx eax, word [0x140044986]
cmp word [rsp + 0x5e], ax
je 0x14001a43e
cmp rbx, 0xffffffffffffffff
je 0x14001a427
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140044968], 0xffffffffffffffff
lea rcx, [0x140044968]
call fcn.14001a160
test rbx, rbx
je 0x14001a4ee
movzx ecx, word [rsp + 0x66]
movzx edx, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov eax, dword [0x140044974]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d__03d__X:
lea rcx, [rsp + 0x70]
call fcn.14001a670
movsxd rdi, eax
lea r9, [rsp + 0x10120]
mov qword [rsp + 0x48], r9
lea rcx, [rsp + rdi*2 + 0x70]
mov r8, qword [rsp + 0x10118]
mov edx, 0x8000
call fcn.14001c94c
add eax, edi
cdqe
lea rcx, [rsp + rax*2 + 0x70]
lea rdx, [0x14003c1ac]
call fcn.14001a670
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14001a4f0
xor edi, edi
jmp 0x14001a4f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x140044974], edi
mov rcx, qword [rsp + 0x100e0]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x100f8
pop rdi
pop rbx
ret
Function at 0x14001cc2b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140043468]
jne 0x14001a66a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001a666
repz ret
ror rcx, 0x10
jmp 0x14001cb84
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140044b30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140044c28]
mov qword [rsp + 0x58], rax
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 0x14001cc09
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, [0x140044b30]
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 0x14001cc2b
mov rax, qword [rsp + 0x88]
mov qword [0x140044c28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140044bc8], rax
mov rax, qword [0x140044c28]
mov qword [0x140044aa0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140044bb0], rax
mov dword [0x140044a90], 0xc0000409
mov dword [0x140044a94], 1
mov rax, qword [0x140043468]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140043470]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140044b28], eax
mov ecx, 1
call fcn.140024b3c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002e8e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140044b28], 0
jne 0x14001ccb2
mov ecx, 1
call fcn.140024b3c
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 0x14001f0d4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001ef44

Function at 0x140023d88
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140023db2
call fcn.14001dca8
and dword [rax], 0
call fcn.14001dc88
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14001dc20
mov eax, ebx
jmp 0x140023e02
test edx, 0xfffffff9
jne 0x140023d95
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140023ddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001dcc8
call fcn.14001dc88
mov eax, dword [rax]
jmp 0x140023e02
test al, 0x10
jne 0x140023e00
test al, 1
je 0x140023e00
test bl, 2
je 0x140023e00
call fcn.14001dca8
mov dword [rax], 5
call fcn.14001dc88
mov dword [rax], 0xd
jmp 0x140023dd2
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140026484
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001e9d0
xor ebx, ebx
cmp qword [0x140045b78], rbx
mov rdi, rax
jne 0x140026597
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002666e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002666e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140045b78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140045b80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140045b88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140045b98], rax
test rax, rax
je 0x14002658e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140045b90], rax
jmp 0x14002659e
mov rax, qword [0x140045b90]
jmp 0x1400265a5
mov rax, qword [0x140045b90]
mov r11, qword [0x140045b98]
cmp rax, rdi
je 0x14002660c
cmp r11, rdi
je 0x14002660c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140045b98]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14002660c
test rax, rax
je 0x14002660c
call rsi
test rax, rax
je 0x140026606
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140026606
test byte [rsp + 0x40], 1
jne 0x14002660c
bts ebp, 0x15
jmp 0x14002664c
mov rcx, qword [0x140045b80]
cmp rcx, rdi
je 0x14002664c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002664c
call rax
mov rbx, rax
test rax, rax
je 0x14002664c
mov rcx, qword [0x140045b88]
cmp rcx, rdi
je 0x14002664c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002664c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140045b78]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002666e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140026670
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009040
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.140017258
test rax, rax
je 0x140009075
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.140009040
mov ebx, eax
test eax, eax
je 0x140009081
mov word [rsi], 0x2f
jmp 0x140009077
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x14000906e
mov rcx, rdi
call fcn.140020e0c
test eax, eax
jns 0x14000906e
call fcn.14001c700
cmp dword [rax], 0x11
je 0x14000906e
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400090de
call fcn.14001c700
mov r9d, dword [rax]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.140013970
mov ebx, 7
jmp 0x14000906e
lea rcx, [0x14004fe88]
call fcn.140015430
cmp dword [0x14004fe88], 0xffffffff
jne 0x1400090c0
mov qword [0x14004fc78], 0
lea rcx, [0x1400086f0]
call fcn.1400155c8
lea rcx, [0x14004fe88]
call fcn.140015498
jmp 0x1400090c0