joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400313fc
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 0x14003147a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140031471
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 0x140031471
mov rax, qword [rbp - 8]
jmp 0x14003148f
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 0x140031444
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140038f24
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14003906e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140039061
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140039017
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14003902d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140039013
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14003904c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14003906f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14003a08b
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x140044980], eax
mov eax, dword [0x140044980]
cmp eax, 0xffffffff
jne 0x14003a0b2
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x14003a265
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140053110]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140044980]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14003a2b8
mov rax, qword [rbp - 0x10]
jmp 0x14003a418
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14003a2d4
cmp qword [rbp - 0x10], 0
jne 0x14003a2de
mov eax, 0
jmp 0x14003a418
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14003a3b9
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x140044980]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14003a414
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14003a512
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14003a57f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x140044980]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14003a6c3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14003a61c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003a5d7
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140044980]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14003a6c3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003a656
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14003a6c3
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140044980]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14003b305
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x140044990]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140053110]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140044980]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14003b41a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x140044990]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14003b3e8
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x140044990]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14003b429
lea rax, [0x140044990]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003b465
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14003b4d3
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x140044980]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14003b51d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14003b51d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x140044990]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14003b50f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140001000
Capabilities:
Download url
Receive data

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x90], rax
pause
pause
pause
nop
nop
nop
mov qword [rsp + 0x38], 0
pause
pause
pause
mov rsi, r8
mov rdi, rdx
mov rdx, rcx
nop
nop
nop
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
xor ecx, ecx
xor r9d, r9d
call sub.urlmon.dll_URLOpenBlockingStreamA
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001122
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov r8d, 1
call qword [rax + 0x60]
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001142
pause
pause
pause
nop
nop
nop
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
pause
pause
pause
nop
nop
nop
mov ecx, dword [rsi]
call fcn.140001a34
mov qword [rdi], rax
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsi]
mov rdx, qword [rdi]
mov rax, qword [rcx]
lea r9, [rsp + 0x34]
call qword [rax + 0x18]
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001132
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsi]
jne 0x140001132
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
pause
pause
pause
nop
nop
nop
mov sil, 1
jmp 0x140001180
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400034aa]
jmp 0x140001150
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400034e6]
jmp 0x140001150
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x14000346e]
call fcn.1400011a0
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
xor esi, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140001a60
mov eax, esi
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000242a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000242a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000242a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000242a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000242a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000242c
xor al, al
add rsp, 0x28
ret
Function at 0x1004072b0
Capabilities:
Check mutex on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [0x10043f060]
test rcx, rcx
je 0x1004072eb
lea rdx, [0x10043f040]
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [0x10043f060]
call qword [sym.imp.WinDivert.dll_WinDivertClose]
mov qword [0x10043f060], 0
mov rcx, qword [0x10043f058]
test rcx, rcx
je 0x100407308
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x10043f058], 0
mov qword [rsp + 0x48], 0
lea r8, str.Globalwinws_windivert_mutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rax, rax
je 0x1004073c8
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
cmp eax, 0xb7
je 0x100407470
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WinDivert.dll_WinDivertOpen]
mov rbx, rax
call rdi
mov rcx, rsi
mov dword [0x10043f028], eax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10043f028]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, 0xffffffffffffffff
je 0x1004073f1
mov qword [0x10043f060], rbx
test rbx, rbx
je 0x10040745d
xor edx, edx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, 1
mov qword [0x10043f058], rax
test rax, rax
je 0x100407488
mov eax, edx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WinDivert.dll_WinDivertOpen]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, rax
call rdi
mov dword [0x10043f028], eax
cmp rbx, 0xffffffffffffffff
jne 0x100407385
lea rax, [rsp + 0x48]
mov r8d, dword [0x10043f028]
xor edx, edx
mov ecx, 0x1300
mov r9d, 0x409
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x48]
lea rcx, str.windivert:_error_opening_filter:__s
call fcn.100412030
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10043f028], 0x241
je 0x1004074e8
mov qword [0x10043f060], 0
xor edx, edx
mov eax, edx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100407345
call rdi
mov rcx, qword [0x10043f060]
mov dword [0x10043f028], eax
test rcx, rcx
je 0x1004074c1
lea rdx, [0x10043f040]
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [0x10043f060]
call qword [sym.imp.WinDivert.dll_WinDivertClose]
mov qword [0x10043f060], 0
mov rcx, qword [0x10043f058]
test rcx, rcx
je 0x10040745d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [0x10043f058], 0
jmp 0x10040745f
lea rcx, str.windivert:_try_to_disable_secure_boot_and_install_OS_patches_n
call fcn.100412030
xor edx, edx
mov qword [0x10043f060], 0
jmp 0x10040745f
Function at 0x100407510
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, qword [0x10042dbc0]
mov r13, qword [0x10043f060]
cmp byte [rbp], 0
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
jne 0x100407610
mov r12, qword [sym.imp.KERNEL32.dll_GetTickCount]
call r12
mov eax, eax
imul rax, rax, 0x10624dd3
shr rax, 0x26
cmp eax, dword [0x10043f02c]
je 0x100407590
mov dword [0x10043f02c], eax
call fcn.100406c10
test al, al
jne 0x100407590
call sub.cygwin1.dll___errno
mov dword [rax], 0x13
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
lea r14, [0x10043f040]
call sub.cygwin1.dll_usleep
mov qword [rsp + 0x38], r14
mov rdx, rsi
mov rcx, r13
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov r8d, dword [rbx]
call qword [sym.imp.WinDivert.dll_WinDivertRecvEx]
test eax, eax
jne 0x1004076a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10043f028], eax
cmp eax, 0xe8
je 0x1004076c0
cmp eax, 0x3e5
je 0x100407620
cmp eax, 0x7a
je 0x1004076d0
call sub.cygwin1.dll___errno
mov dword [rax], 5
jmp 0x100407578
call sub.cygwin1.dll___errno
mov dword [rax], 4
jmp 0x100407578
mov rsi, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100407668
cmp byte [rbp], 0
jne 0x100407610
call r12
mov eax, eax
imul rax, rax, 0x10624dd3
shr rax, 0x26
cmp eax, dword [0x10043f02c]
je 0x100407661
mov dword [0x10043f02c], eax
call fcn.100406c10
test al, al
je 0x10040756d
xor ecx, ecx
call sub.cygwin1.dll_usleep
mov rcx, qword [0x10043f058]
mov edx, 0x32
call rsi
cmp eax, 0x102
je 0x100407630
mov r9d, 1
lea r8, [rsp + 0x4c]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1004075d6
mov eax, dword [rsp + 0x4c]
jmp 0x1004076ac
mov eax, dword [rsp + 0x48]
mov qword [rbx], rax
mov eax, 1
jmp 0x10040757a
call sub.cygwin1.dll___errno
mov dword [rax], 0x6e
jmp 0x100407578
call sub.cygwin1.dll___errno
mov dword [rax], 0x69
jmp 0x100407578
Function at 0x10040e910
Capabilities:
Read file on windows

Disassembly:
push r15
mov eax, 0x4098
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1004201a0
sub rsp, rax
xor eax, eax
mov r9d, 0x70
mov qword [rdx], 0
mov r12, rcx
mov rsi, rdx
mov rbx, r8
lea rbp, [rsp + 0x20]
mov ecx, 0xe
mov edx, 0x2f
mov qword [r8], 0
mov rdi, rbp
lea r8, [0x100426140]
rep stosq qword [rdi], rax
mov rcx, rbp
call fcn.10041c030
mov edi, eax
test eax, eax
jne 0x10040ea6f
xor r14d, r14d
lea r13, [rsp + 0x90]
mov r9, r12
mov r8d, 0x4000
mov edx, 1
mov rcx, r13
call sub.cygwin1.dll_fread
mov dword [rsp + 0x28], eax
test byte [r12 + 0x10], 0x40
jne 0x10040ea43
mov rdx, qword [rbx]
test eax, eax
je 0x10040ea88
mov qword [rsp + 0x20], r13
jmp 0x10040ea1b
mov rdx, r14
call sub.cygwin1.dll_realloc
mov rcx, rax
test rcx, rcx
je 0x10040eaa9
mov qword [rsi], rcx
mov rdx, qword [rbx]
add rcx, rdx
mov eax, r14d
sub eax, edx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x40], eax
call fcn.10041c1f0
mov r15d, eax
cmp eax, 1
ja 0x10040ea50
mov eax, dword [rsp + 0x40]
mov rdx, r14
sub rdx, rax
mov qword [rbx], rdx
test r15d, r15d
jne 0x10040ea88
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x10040e981
mov rax, r14
mov rcx, qword [rsi]
sub rax, rdx
cmp rax, 0x7f
ja 0x10040e9da
add r14, 0x20000
test rcx, rcx
jne 0x10040e9c0
mov rcx, r14
call sub.cygwin1.dll_malloc
mov rcx, rax
jmp 0x10040e9cb
mov r15d, 0xffffffff
nop dword [rax]
mov rcx, rbp
call fcn.10041ddf0
mov rcx, qword [rsi]
test rcx, rcx
je 0x10040ea6c
call sub.cygwin1.dll_free
mov qword [rsi], 0
mov edi, r15d
mov eax, edi
add rsp, 0x4098
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp rdx, r14
jb 0x10040ea97
mov rcx, rbp
call fcn.10041ddf0
jmp 0x10040ea6f
mov rcx, qword [rsi]
call sub.cygwin1.dll_realloc
test rax, rax
je 0x10040ea8d
mov qword [rsi], rax
jmp 0x10040ea8d
mov r15d, 0xfffffffc
jmp 0x10040ea50

Function at 0x10040eac0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
xor r8d, r8d
xor edx, edx
mov rbx, rcx
call sub.cygwin1.dll_fseek
test eax, eax
je 0x10040eaf0
xor esi, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sub.cygwin1.dll_fseek
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, [rsp + 0x2e]
mov r9, rbx
mov r8d, 2
mov edx, 1
call sub.cygwin1.dll_fread
cmp rax, 2
jne 0x10040ead7
cmp byte [rsp + 0x2e], 0x1f
jne 0x10040ead7
cmp byte [rsp + 0x2f], 0x8b
sete sil
jmp 0x10040ead9

Function at 0x10040ed50
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rdx
lea rdx, [0x100426168]
mov rsi, r8
call sub.cygwin1.dll_fopen
mov rbx, rax
test rax, rax
je 0x10040edad
mov r8, qword [rsi]
mov rcx, rdi
mov r9, rax
mov edx, 1
call sub.cygwin1.dll_fread
mov rcx, rbx
mov qword [rsi], rax
test byte [rbx + 0x10], 0x40
jne 0x10040eda8
call sub.cygwin1.dll_fclose
cmp qword [rsi], 0
setne al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.cygwin1.dll_fclose
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret