joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000115f
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x140001182
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0xffffffff9f345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x1400011ad
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x1400011a6
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

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

Disassembly:
push rdi
sub rsp, 0x490
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rax, qword [0x140016058]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov ebx, edx
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400055e0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x160]
call fcn.1400055e0
xor edi, edi
mov word [rsp + 0x270], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x272]
call fcn.1400055e0
mov r8d, 0x104
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400030ef
lea edx, [rdi + 0x5c]
lea rcx, [rsp + 0x270]
call fcn.1400050d8
test rax, rax
je 0x1400030ef
mov word [rax + 2], di
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0x270]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8, [0x140014098]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140005104
mov word [rsp + 0x270], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x272]
call fcn.1400055e0
mov r8d, 0x104
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000318f
mov edx, 0x5c
lea rcx, [rsp + 0x270]
call fcn.1400050d8
test rax, rax
je 0x14000318f
mov word [rax + 2], di
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0x270]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8, str.detoured.dll
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.140005104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400031cf
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400031cf
mov r9, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x160]
mov ecx, ebx
call fcn.1400048ec
jmp 0x140003212
mov rax, qword [0x1400184a0]
test rax, rax
jne 0x140003201
lea ecx, [rax + 0x38]
call fcn.140004f90
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400031f7
mov rcx, rax
call fcn.140003390
jmp 0x1400031fa
mov rax, rdi
mov qword [0x1400184a0], rax
lea rdx, str.HookProcess:_FtAgtLdr.dll_or_Detoured.dll_not_found_r_n
mov rcx, rax
call fcn.1400038b0
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140004990
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x490
pop rdi
ret
Function at 0x1400032c0
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140016058]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor edx, edx
lea rcx, [rsp + 0x21]
mov byte [rsp + 0x20], 0
lea r8d, [rdx + 0x63]
call fcn.1400055e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8, str.Check_debug_flag____d___n
lea rcx, [rsp + 0x20]
mov r9d, eax
mov edx, 0x64
call fcn.140005364
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbx, rax
test rax, rax
je 0x140003364
cmp word [rax], 0
je 0x140003364
nop
lea rdx, str.DSM_DEBUGON
mov r8d, 0xc
mov rcx, rbx
call fcn.1400052bc
test eax, eax
je 0x14000337f
cmp word [rbx], 0
je 0x14000335a
nop
add rbx, 2
cmp word [rbx], 0
jne 0x140003350
add rbx, 2
cmp word [rbx], 0
jne 0x140003330
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140004990
add rsp, 0xa0
pop rbx
ret
mov eax, 1
jmp 0x140003366

Function at 0x140003d10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x1c0
mov rax, qword [0x140016058]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, rcx
mov r12d, 0x30
lea rcx, [rsp + 0x30]
mov r8, r12
xor edx, edx
call fcn.1400055e0
mov ebx, 0x10000
lea r8, [rsp + 0x30]
mov r9, r12
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140003e37
cmp dword [rsp + 0x50], 0x1000
jne 0x140003e20
bt dword [rsp + 0x54], 8
jb 0x140003e20
xor edx, edx
lea rcx, [rsp + 0x170]
lea r8d, [rdx + 0x40]
call fcn.1400055e0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x170]
mov r9d, 0x40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140003e20
mov eax, 0x5a4d
cmp word [rsp + 0x170], ax
jne 0x140003e20
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x108
call fcn.1400055e0
movsxd rdx, dword [rsp + 0x1ac]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
add rdx, rbx
mov r9d, 0x108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140003e20
cmp dword [rsp + 0x60], 0x4550
jne 0x140003e20
mov eax, 0x2000
test word [rsp + 0x76], ax
je 0x140003e32
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rbx, rcx
jmp 0x140003d52
mov rax, rbx
jmp 0x140003e3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140004990
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x140005de7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140016058]
jne 0x1400049aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400049a6
repz ret
ror rcx, 0x10
jmp 0x140005d40
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400175c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400176b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140005dc5
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, [0x1400175c0]
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 0x140005de7
mov rax, qword [rsp + 0x88]
mov qword [0x1400176b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140017658], rax
mov rax, qword [0x1400176b8]
mov qword [0x140017530], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140017640], rax
mov dword [0x140017520], 0xc0000409
mov dword [0x140017524], 1
mov rax, qword [0x140016058]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140016060]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400175b8], eax
mov ecx, 1
call fcn.140009a04
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400124a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400175b8], 0
jne 0x140005e6e
mov ecx, 1
call fcn.140009a04
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 0x1400062f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140009c1c
nop
cmp dword [0x140017ae8], 1
je 0x14000629c
mov dword [0x140017ae4], 1
mov byte [0x140017ae0], r12b
test ebx, ebx
jne 0x140006288
mov rcx, qword [0x140019830]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140006275
mov rcx, qword [0x140019828]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140006214
call fcn.1400085e8
cmp qword [rdi], rax
jne 0x140006214
jmp 0x1400061fa
cmp rdi, rsi
jb 0x140006275
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400085e8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140019830]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140019828]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140006253
cmp r13, rax
je 0x140006273
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400061fa
lea rdx, [0x140012420]
lea rcx, [0x140012408]
call fcn.140006044
lea rdx, [0x140012430]
lea rcx, [0x140012428]
call fcn.140006044
nop
test r12d, r12d
je 0x1400062ab
mov ecx, 8
call fcn.140009b1c
test r12d, r12d
jne 0x1400062d6
mov dword [0x140017ae8], 1
lea ecx, [r12 + 8]
call fcn.140009b1c
mov ecx, r15d
call fcn.140005fd8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140006164

Function at 0x1400062fc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140006164
Function at 0x140009fec
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400085e8
xor ebx, ebx
mov rdi, rax
cmp qword [0x140018300], rbx
jne 0x14000a0f2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000a1c7
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000a1c7
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140018300], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140018308], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140018310], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140018320], rax
test rax, rax
je 0x14000a0e9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140018318], rax
jmp 0x14000a0f9
mov rax, qword [0x140018318]
jmp 0x14000a100
mov rax, qword [0x140018318]
mov r11, qword [0x140018320]
cmp rax, rdi
je 0x14000a168
cmp r11, rdi
je 0x14000a168
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140018320]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000a168
test rax, rax
je 0x14000a168
call rsi
test rax, rax
je 0x14000a162
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000a162
test byte [rsp + 0x38], 1
jne 0x14000a168
bts ebp, 0x15
jmp 0x14000a1a6
mov rcx, qword [0x140018308]
cmp rcx, rdi
je 0x14000a1a6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a1a6
call rax
mov rbx, rax
test rax, rax
je 0x14000a1a6
mov rcx, qword [0x140018310]
cmp rcx, rdi
je 0x14000a1a6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a1a6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140018300]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a1c7
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000a1c9
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1415b7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1415b71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415b7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b706f
add dl, dl
jne 0x1415b7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b70f6
xor eax, eax
add dl, dl
jne 0x1415b70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415b71ad
add dl, dl
jne 0x1415b70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415b70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415b707e
mov eax, 1
add dl, dl
jne 0x1415b7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415b7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b70fb
sub eax, ebx
mov ebx, 1
jne 0x1415b714c
mov ecx, 1
add dl, dl
jne 0x1415b712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415b713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415b7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415b7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415b715d
cmp eax, 0x7d00
jae 0x1415b719b
cmp eax, 0x500
jb 0x1415b7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b707e
cmp eax, 0x7f
ja 0x1415b719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415b707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415b71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1415b707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001470
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov ecx, 0xc18
call fcn.140051bc0
test rax, rax
mov rbx, rax
je 0x1400014b6
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov edx, 0xc18
mov rcx, rax
call fcn.14007d790
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call fcn.140051bc8
add rsp, 0x20
pop rbx
ret

Function at 0x1400014d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.mvhlewsi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x1400015af
lea rdx, str.OpenEWSPort_W
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.OpenEWSPort_A
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.OpenEWS_W
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.OpenEWS_A
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.CloseEWS
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.EWSLastError
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.WriteEWS
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.ReadEWS
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.WriteReadEWS
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140001340
Function at 0x140002a20
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x220
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.140001150
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140002a8a
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x248], rax
test rax, rax
je 0x140002a81
mov rcx, rax
call fcn.140023810
jmp 0x140002a83
xor eax, eax
mov qword [0x1400ec150], rax
mov r8, rbx
lea rdx, str.SetWifiCredentials__s_
mov rcx, rax
call fcn.140023be0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400017c0
test eax, eax
jne 0x140002add
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140002ac6
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140002ac6
call rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002ad6
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140002c1d
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140002b82
mov rax, qword [rsp + 0x108]
test rax, rax
jne 0x140002b4f
test rbx, rbx
je 0x140002b37
lea rdx, str.SetCredentials
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x108], rax
test rax, rax
jne 0x140002b4f
mov esi, 0x7f
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::set_credentials:_Function_not_found_in_DLL:_SetCredentials_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140002b86
mov esi, 6
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::set_credentials:_Attempting_to_lookup_SetCredentials_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140002b86
mov rdx, rsi
mov rcx, rdi
call rax
test eax, eax
je 0x140002b82
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140002b6a
mov rcx, rdi
call rax
test rbx, rbx
je 0x140002b78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140002c1d
mov esi, dword [rsp + 0x30]
or ebp, 0xffffffff
test rdi, rdi
je 0x140002bb2
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140002bb4
lea rdx, [rsp + 0x248]
mov rcx, rdi
call rax
test eax, eax
je 0x140002bb4
mov ebp, dword [rsp + 0x248]
jmp 0x140002bb4
mov ebp, esi
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140002be7
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140002bde
mov rcx, rax
call fcn.140023810
jmp 0x140002be0
xor eax, eax
mov qword [0x1400ec150], rax
lea r8, str.ewsinfo.set_credentials___failed
mov edx, ebp
mov rcx, rax
call fcn.140023e20
nop
test rdi, rdi
je 0x140002c0d
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140002c0d
mov rcx, rdi
call rax
test rbx, rbx
je 0x140002c1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004490
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x220
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140001150
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x1400044fa
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x248], rax
test rax, rax
je 0x1400044f1
mov rcx, rax
call fcn.140023810
jmp 0x1400044f3
xor eax, eax
mov qword [0x1400ec150], rax
mov r8, rbx
lea rdx, str.GetWifiScanResults__s_
mov rcx, rax
call fcn.140023be0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400017c0
test eax, eax
jne 0x14000454d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004536
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140004536
call rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004546
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14000469d
xor edx, edx
mov r8d, 0x1bde
mov rcx, rdi
call fcn.140082240
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x140004602
mov rax, qword [rsp + 0x158]
test rax, rax
jne 0x1400045cf
test rbx, rbx
je 0x1400045b7
lea rdx, str.GetWifiScanResults
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x158], rax
test rax, rax
jne 0x1400045cf
mov edi, 0x7f
mov dword [rsp + 0x30], edi
lea rcx, str.EWSIntf::get_wifi_scan_results:_Function_not_found_in_DLL:_GetWifiScanResults_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140004606
mov edi, 6
mov dword [rsp + 0x30], edi
lea rcx, str.EWSIntf::get_wifi_scan_results:_Attempting_to_lookup_GetWifiScanResults_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140004606
mov rdx, rdi
mov rcx, rsi
call rax
test eax, eax
je 0x140004602
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400045ea
mov rcx, rsi
call rax
test rbx, rbx
je 0x1400045f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x14000469d
mov edi, dword [rsp + 0x30]
or ebp, 0xffffffff
test rsi, rsi
je 0x140004632
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140004634
lea rdx, [rsp + 0x248]
mov rcx, rsi
call rax
test eax, eax
je 0x140004634
mov ebp, dword [rsp + 0x248]
jmp 0x140004634
mov ebp, edi
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140004667
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000465e
mov rcx, rax
call fcn.140023810
jmp 0x140004660
xor eax, eax
mov qword [0x1400ec150], rax
lea r8, str.get_wifi_scan_results_failed
mov edx, ebp
mov rcx, rax
call fcn.140023e20
nop
test rsi, rsi
je 0x14000468d
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14000468d
mov rcx, rsi
call rax
test rbx, rbx
je 0x14000469b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret