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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [str..ATHAMPFL]
lea rcx, [rsp + 0x50]
movzx eax, word [0x1400420e8]
movsd xmm1, qword [0x1400420e0]
xor edi, edi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
movups xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x68], ax
movsd qword [rsp + 0x60], xmm1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000eead
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_l2cap_disconnect_all__INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000ef07
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x28], edi
mov r9d, 8
mov edx, 0x2a0508
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000eefe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ath_l2cap_disconnect_all__error__x_n
call fcn.14000e530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001a550
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14000ef30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [str..ATHAMPFL]
lea rcx, [rsp + 0x48]
movzx eax, word [0x1400420e8]
movsd xmm1, qword [0x1400420e0]
xor edi, edi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x60], ax
movsd qword [rsp + 0x58], xmm1
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000efbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_fake_disconnect_event__INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000f019
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x2a0518
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000f004
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ath_fake_disconnect_event__error__x_n
call fcn.14000e530
jmp 0x14000f010
lea rcx, str.ath_fake_disconnect_event_success__n
call fcn.14000e530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001a550
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400105c0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx ebx, cl
lea rcx, str.DisableBTENUMDevice_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableBTENUMDevice_Start_n
mov ecx, 2
call fcn.14001a030
cmp word [0x1400514c0], 0
lea rax, str.enable
mov qword [rsp + 0x30], rax
lea rdx, [0x1400514c0]
lea rax, str.disable
mov qword [rsp + 0x38], rax
lea rcx, str.argv2_5_:__s_n
lea rax, str.remove
mov qword [rsp + 0x40], rax
lea rax, str.BTHMS_BTHBRB
mov qword [rsp + 0x48], rax
lea rax, str.BTHMS_BTHLE
mov qword [rsp + 0x50], rax
lea rax, str.USBClass_E0
cmove rdx, rax
mov qword [rsp + 0x58], rdx
call fcn.14000e530
lea rax, str.BTHENUM
mov qword [rsp + 0x60], rax
lea rax, str.rescan
mov qword [rsp + 0x68], rax
test bl, bl
je 0x1400106c5
lea rcx, str.DisableBTENUMDevice__Enable_device_n
call fcn.14000e530
lea rdx, str.DisableBTENUMDevice__Enable_device_n
mov ecx, 2
call fcn.14001a030
lea rax, [rsp + 0x58]
movzx ecx, bl
mov qword [rsp + 0x28], rax
call fcn.140007fd0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.radio_Rescan_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140010712
lea rcx, str.DisableBTENUMDevice__Disable_device_n
call fcn.14000e530
lea rdx, str.DisableBTENUMDevice__Disable_device_n
mov ecx, 2
call fcn.14001a030
lea rax, [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x28], rax
call fcn.140007fd0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1400513ac], 0
jne 0x140010712
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.DisableBTENUMDevice_End_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableBTENUMDevice_End_n
mov ecx, 2
call fcn.14001a030
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001a550
add rsp, 0x80
pop rbx
ret
Function at 0x140010d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rcx
mov rsi, rdx
mov ecx, 0x2004
call fcn.14001a57c
mov rdi, rax
test rax, rax
je 0x140010e58
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 0x2000
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140010e30
mov r14, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140010e50
cmp dword [rsp + 0x68], 7
jne 0x140010e50
mov ebx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.14001a574
mov ecx, ebx
mov eax, 2
shr rcx, 1
add rcx, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.14001a57c
mov rdi, rax
test rax, rax
je 0x140010e58
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010dc4
mov ecx, dword [rsp + 0x60]
xor edx, edx
shr ecx, 1
lea eax, [rcx + 1]
mov word [rdi + rcx*2], dx
mov rcx, rdi
mov word [rdi + rax*2], dx
call fcn.140010970
test rax, rax
jne 0x140010e5a
mov rcx, rdi
call fcn.14001a574
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140013be0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov dword [rsp + 0x60], 1
mov rsi, rdx
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x68], 4
lea rdx, str.ForceHCResetOnResume
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Start_to_write_reg_key___2_
mov ecx, 4
cmp eax, 2
sete dil
call fcn.14001a030
lea rax, [rsp + 0x30]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013d3f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.ResetKeyAddded
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Start_to_write_reg_key___3_
mov ecx, 4
call fcn.14001a030
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.ResetKeyAddded
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x140013d14
mov rcx, qword [rsp + 0x30]
lea rdx, str.ForceResetKey
mov dword [rsp + 0x28], 0x104
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.ForceHCResetOnResume
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140014870
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x210
call fcn.14001c4c0
lea rcx, str.Enter_USBRootHubAndHCReset____n_n
call fcn.14000e530
lea rcx, [rsp + 0x20]
call fcn.140014290
test eax, eax
je 0x140014a42
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__dongle_status_is__d____n
call fcn.14000e530
mov edx, 1
mov dword [0x1400514b8], 1
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e530
mov r8d, 1
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 1]
call fcn.14001a030
call fcn.14000a160
cmp eax, 0x32
jl 0x140014930
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.14001a030
mov dword [0x14004fbb4], 1
mov ecx, dword [0x14004fb90]
xor r9d, r9d
mov edx, 0x5e5d
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
xor edx, edx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
call fcn.14000e530
xor r8d, r8d
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
lea ecx, [r8 + 2]
call fcn.14001a030
mov ecx, dword [0x14004fb90]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call fcn.140014290
test eax, eax
je 0x140014a42
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__after_off_on_radio__dongle_status_is__d_n
call fcn.14000e530
cmp dword [rsp + 0x20], 1
je 0x140014a3b
mov edx, ebx
lea rcx, str.USBRootHubAndHCReset__USBRootHubReset__index_is__d____n
call fcn.14000e530
mov ecx, ebx
call fcn.140013ff0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call fcn.140014290
test eax, eax
je 0x140014a42
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__after_USBRootHubReset__dongle_status_is__d____n
call fcn.14000e530
cmp dword [rsp + 0x20], 1
je 0x140014a3b
mov edx, ebx
lea rcx, str.USBRootHubAndHCReset__USBControllerReset__index_is__d____n
call fcn.14000e530
mov ecx, ebx
call fcn.140013880
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call fcn.140014290
test eax, eax
je 0x140014a42
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__after_USBControllerReset__dongle_status_is__d___n
call fcn.14000e530
mov eax, 1
jmp 0x140014a50
lea rcx, str.USBRootHubAndHCReset__GetBTAdapterStatus_failed____n
call fcn.14000e530
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001a550
add rsp, 0x240
pop rbx
ret
Function at 0x1400188e0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
xor ecx, ecx
mov rax, rdi
cmp qword [rdi + 0x18], 8
mov qword [rdi + 0x10], rcx
jb 0x140018915
mov rax, qword [rdi]
mov word [rax], cx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
cmp ax, 9
je 0x14001893c
cmp ax, 6
je 0x14001893c
mov ebx, dword [0x14004ecd8]
jmp 0x140018947
mov ebx, 0xf013f
mov dword [0x14004ecd8], ebx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.14001c4c0
mov rcx, qword [0x14004ece0]
lea rax, [rsp + 0x38]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
lea rdx, str.SOFTWAREAtherosVistaAddOn
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018a00
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
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 ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140018a00
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140018a00
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400189e1
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14000cb10
mov eax, 1
jmp 0x140018a02
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001a550
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rdi
ret
Function at 0x140019bb0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea rcx, [0x14004fb30]
xor r8d, r8d
xor edx, edx
lea r9d, [rbp + 0x10]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
test rax, rax
je 0x140019ceb
xor eax, eax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
xor edx, edx
mov dword [rsp + 0x28], 0x20
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov edi, ebp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140019cdb
mov qword [rsp + 0x60], rbx
nop
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov dword [rsp + 0x24], 0xff
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], 0xff
call qword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
mov edx, eax
lea rcx, str.The_status_of_uResult_is__d__n
mov ebx, eax
call fcn.14000e530
mov edx, dword [rsp + 0x20]
lea rcx, str.The_status_of_uProblem_is__d__n
call fcn.14000e530
test ebx, ebx
je 0x140019cc4
xor eax, eax
lea rcx, str.The_MemberIndex_of_SetupDiEnumDeviceInfo_is__d__n
mov qword [rsp + 0x28], rax
inc edi
mov edx, edi
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.14000e530
lea r8, [rsp + 0x28]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140019c30
jmp 0x140019cd6
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, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001a550
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
Function at 0x14001a030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x10118
call fcn.140032720
sub rsp, rax
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rsp + 0x100d0], rax
mov eax, dword [0x14004fbc8]
test eax, eax
je 0x14001a27f
cmp ecx, eax
jg 0x14001a27f
test ecx, eax
je 0x14001a27f
mov qword [rsp + 0x10110], rbx
mov qword [rsp + 0x10108], rbp
mov qword [rsp + 0x100e8], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14004fbcc], eax
mov ebx, eax
je 0x14001a0d5
nop dword [rax]
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x14004fbcc], ebx
cmp dword [0x14004fbcc], ebx
je 0x14001a0d5
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14004fbcc], ebx
jne 0x14001a0b0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rbp, qword [0x14004fbc0]
mov rbx, 0xffffffffffffffff
cmp rbp, rbx
jne 0x14001a104
lea rcx, [0x14004fbc0]
call fcn.140019f30
mov rbp, rax
jmp 0x14001a14a
movzx eax, word [0x14004fbd8]
cmp word [rsp + 0x50], ax
jne 0x14001a12e
movzx eax, word [0x14004fbda]
cmp word [rsp + 0x52], ax
jne 0x14001a12e
movzx eax, word [0x14004fbde]
cmp word [rsp + 0x56], ax
je 0x14001a14a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14004fbc0]
mov qword [0x14004fbc0], rbx
call fcn.140019f30
xor r15d, r15d
test rbp, rbp
je 0x14001a258
movzx ecx, word [rsp + 0x5e]
movzx edx, word [rsp + 0x5c]
mov eax, dword [0x14004fbcc]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d__03d__X:
mov qword [rsp + 0x10100], rsi
mov qword [rsp + 0x100f8], rdi
mov qword [rsp + 0x100f0], r14
call fcn.140009cd0
movsxd rsi, eax
lea r14, [rsp + 0x10130]
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x48], r14
lea rdi, [rdi + rsi*2]
call fcn.140001030
mov r9, qword [rsp + 0x10128]
mov r8d, 0x8000
mov qword [rsp + 0x28], r14
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov rcx, qword [rax]
or rcx, 1
call fcn.14002219c
test eax, eax
lea rcx, [rsp + 0x60]
lea rdx, [0x140047454]
cmovs eax, ebx
add eax, esi
cdqe
lea rcx, [rcx + rax*2]
call fcn.140009cd0
mov r14, qword [rsp + 0x100f0]
lea rax, [rsp + 0x60]
mov rdi, qword [rsp + 0x100f8]
mov rsi, qword [rsp + 0x10100]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], r15w
lea rbx, [rbx + 1]
jne 0x14001a230
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov rcx, rbp
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, qword [rsp + 0x10108]
mov rbx, qword [rsp + 0x10110]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14004fbcc], r15d
mov r15, qword [rsp + 0x100e8]
mov rcx, qword [rsp + 0x100d0]
xor rcx, rsp
call fcn.14001a550
add rsp, 0x10118
ret

Function at 0x140024a54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024880
Function at 0x2fc5ace80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc5ad882
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc5d0108]
test eax, eax
je 0x2fc5ad91a
lea rax, [0x2fc5d00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc5d0110]
mov qword [rbp - 8], rax
jmp 0x2fc5ad8fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5ad8f2
cmp qword [rbp - 0x10], 0
je 0x2fc5ad8f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5ad8b8
lea rax, [0x2fc5d00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5ad91b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5ada20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc5ada48
mov eax, 0
jmp 0x2fc5ada96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc5ada71
mov eax, 0
jmp 0x2fc5ada96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc5ada91
mov eax, 0
jmp 0x2fc5ada96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5ada9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc5adb1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5adb11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc5adb11
mov rax, qword [rbp - 8]
jmp 0x2fc5adb2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5adae4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov esi, ecx
test ecx, ecx
je 0x1800010b0
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov rbx, qword [rdx + 0x20]
test rbx, rbx
je 0x1800010b0
mov ebp, 0x103
nop dword [rax]
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x1800010b0
cmp word [rbx + 0x48], bp
jae 0x1800010a8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180002cb0
xor eax, eax
cmp word [rdi], ax
je 0x180001095
cmp eax, ebp
jae 0x180001095
movzx r9d, byte [rdi + rax*2]
lea r8d, [r9 - 0x61]
cmp r8b, 0x19
lea ecx, [r9 - 0x20]
movzx edx, cl
cmova edx, r9d
mov byte [rsp + rax + 0x20], dl
inc eax
mov rdi, qword [rbx + 0x50]
cmp word [rdi + rax*2], 0
jne 0x180001068
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call fcn.180003ba0
cmp eax, esi
je 0x1800010cb
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180001040
xor eax, eax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1800010b2

Function at 0x1800010e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
sub rsp, 0x28
mov r15d, edx
mov rbp, rcx
test rcx, rcx
je 0x18000119d
test edx, edx
je 0x18000119d
movsxd rax, dword [rcx + 0x3c]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov ebx, dword [r8 + 0x20]
mov r12d, dword [r8 + 0x1c]
add rbx, rcx
mov edi, dword [r8 + 0x24]
add r12, rcx
mov esi, dword [r8 + 0x18]
add rdi, rcx
test esi, esi
je 0x180001179
nop word [rax + rax]
mov ecx, dword [rbx]
dec esi
add rcx, rbp
call fcn.180003ba0
cmp eax, r15d
je 0x18000116f
add rbx, 4
add rdi, 2
test esi, esi
jne 0x180001150
jmp 0x180001179
movzx eax, word [rdi]
mov r14d, dword [r12 + rax*4]
add r14, rbp
mov r12, qword [rsp + 0x58]
mov rax, r14
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop r15
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop r15
pop rbp
ret