joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400236a0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
or r12d, 0xffffffff
mov dword [rbp - 0x69], 0x67452301
xor eax, eax
mov dword [rbp - 0x65], 0xefcdab89
mov qword [rbp - 0x55], rax
mov r14, rdx
mov r15d, r12d
mov dword [rbp - 0x61], 0x98badcfe
mov dword [rbp - 0x5d], 0x10325476
mov dword [rbp - 0x59], 0xc3d2e1f0
nop
mov rcx, r14
lea rbx, [rbp - 9]
mov esi, gethostbyaddr
call fcn.1400837e8
mov edi, eax
cmp eax, 0xffffffff
je 0x14002376d
cmp edi, 0xa
je 0x14002373b
cmp rsi, 1
jbe 0x14002372c
dec rsi
mov byte [rbx], dil
inc rbx
mov rcx, r14
call fcn.1400837e8
mov edi, eax
cmp eax, 0xffffffff
jne 0x140023718
lea rax, [rbp - 9]
cmp rbx, rax
je 0x14002376d
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rbx - 1]
lea rsi, [rbx - 1]
call fcn.1400812fc
test eax, eax
je 0x14002376d
lea rax, [rbp - 9]
mov rbx, rsi
cmp rsi, rax
jne 0x140023750
lea rax, [rbp - 9]
mov byte [rbx], 0
cmp rbx, rax
jne 0x140023782
cmp edi, 0xffffffff
je 0x14002382d
mov r8d, 2
lea rdx, [0x1400b12f0]
lea rcx, [rbp - 9]
call fcn.1400807b0
test eax, eax
jne 0x1400237b2
lea rdx, [rbp - 7]
lea rcx, [rsp + 0x20]
call fcn.140023440
mov r15d, eax
jmp 0x140023700
mov r8d, 2
lea rdx, [0x1400b12f4]
lea rcx, [rbp - 9]
call fcn.1400807b0
test eax, eax
jne 0x1400237de
lea rdx, [rbp - 7]
lea rcx, [rbp - 0x69]
call fcn.140023520
jmp 0x140023700
mov r8d, 2
lea rdx, [0x1400b12f8]
lea rcx, [rbp - 9]
call fcn.1400807b0
test eax, eax
jne 0x14002380a
lea rdx, [rbp - 7]
lea rcx, [rbp - 0x69]
call fcn.140023520
jmp 0x140023700
movzx ecx, byte [rbp - 9]
call fcn.140081198
test eax, eax
je 0x140023700
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x69]
call fcn.140023520
jmp 0x140023700
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x69]
call fcn.1400709b0
test r15d, r15d
jns 0x140023844
xor eax, eax
jmp 0x14002387a
jne 0x14002384d
mov eax, 0xfffffffe
jmp 0x14002387a
mov rcx, qword [rsp + 0x20]
sub rcx, qword [rsp + 0x38]
jne 0x14002386e
mov rcx, qword [rsp + 0x28]
sub rcx, qword [rbp - 0x79]
jne 0x14002386e
mov ecx, dword [rsp + 0x30]
mov eax, dword [rbp - 0x71]
sub rcx, rax
test rcx, rcx
mov eax, 1
cmovne eax, r12d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140073c20
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14003c790
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call fcn.14003d7b0
cmp qword [0x1400d5ef0], 0
je 0x14003c8d4
movsd xmm0, qword [0x1400d4588]
movsd xmm2, qword [0x1400d7200]
movsd xmm1, qword [0x1400d4648]
subsd xmm0, xmm2
andps xmm0, xmmword [0x1400bde00]
comisd xmm1, xmm0
jbe 0x14003c7e5
mulsd xmm1, qword [0x1400bdc78]
movsd qword [0x1400d4648], xmm1
add rsp, 0x28
ret
movsd xmm0, qword [0x1400cc8e8]
lea rdx, [0x1400ae8d4]
mov rcx, qword [0x1400d45b8]
movsd qword [0x1400d4648], xmm0
movsd qword [0x1400d4588], xmm2
mov qword [rsp + 0x20], rbx
call fcn.14008026c
mov rbx, rax
test rax, rax
jne 0x14003c83c
mov r8, qword [0x1400d45b8]
lea rdx, str.frequency_file__s:__m
lea ecx, [rax + 3]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.14005c0d0
movsd xmm2, qword [0x1400d7200]
lea rdx, str._.3f_n
mulsd xmm2, qword [0x1400bdd60]
mov rcx, rbx
movq r8, xmm2
call fcn.140004e80
mov rcx, rbx
call fcn.140081584
mov rcx, qword [0x1400d5ef0]
call fcn.140082b70
test eax, eax
je 0x14003c890
mov r8, qword [0x1400d5ef0]
lea rdx, str.Unable_to_remove_prior_drift_file__s___m
mov ecx, 4
call fcn.14005c0d0
mov rdx, qword [0x1400d5ef0]
mov rcx, qword [0x1400d45b8]
call fcn.140082bc4
test eax, eax
je 0x14003c8cf
mov r9, qword [0x1400d5ef0]
lea rdx, str.Unable_to_rename_temp_drift_file__s_to__s___m
mov r8, qword [0x1400d45b8]
mov ecx, 4
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.14005c0d0
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x14003dd90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
or rsi, 0xffffffffffffffff
mov rbx, rcx
mov rdi, rsi
nop dword [rax]
inc rdi
cmp byte [rcx + rdi], 0
jne 0x14003ddb0
test rdi, rdi
je 0x14003de97
mov rcx, qword [0x1400d4640]
mov edx, 0x104
call fcn.140088978
mov rdx, rax
test rax, rax
je 0x14003dea7
mov qword [0x1400d4640], rax
lea rax, [rdi + 1]
cmp rax, 0x104
ja 0x14003de97
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x14003de5d
lea rdx, str.ExpandEnvironmentStrings_KEY_FILE__failed:__m
lea ecx, [rax + 3]
call fcn.14005c0d0
mov r8, qword [0x1400d4640]
mov edx, 0x103
mov rcx, r8
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
je 0x14003de48
sub rdx, 1
jne 0x14003de30
jmp 0x14003de4d
test rdx, rdx
jne 0x14003de64
mov byte [rcx], 0
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
test al, al
jne 0x14003de50
jmp 0x14003de64
mov r8, qword [0x1400d4640]
inc rsi
cmp byte [r8 + rsi], 0
jne 0x14003de64
add rsi, 1
mov ebx, 1
mov rdx, rsi
mov rcx, r8
cmove rdx, rbx
call fcn.140088978
test rax, rax
je 0x14003decf
mov qword [0x1400d4640], rax
call fcn.140071970
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ebx, 1
lea rdx, str.fatal_out_of_memory___lu_bytes_
mov r8d, 0x104
mov dword [0x1400d1b14], ebx
lea ecx, [rbx + 2]
call fcn.14005c0d0
mov ecx, ebx
call fcn.1400786ac
int3
mov r8d, esi
mov dword [0x1400d1b14], ebx
lea rdx, str.fatal_out_of_memory___lu_bytes_
mov ecx, 3
call fcn.14005c0d0
mov ecx, ebx
call fcn.1400786ac
int3
Function at 0x14004c650
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r8d, dword [rax + 0x104]
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xf
sub r8d, eax
cmp r8d, 3
jne 0x14004c719
cmp byte [rcx + 0xd4], 0xc
mov r8d, 3
mov byte [rcx + 0x98], 1
jne 0x14004c6ca
cmp byte [rcx + 0x99], 2
jne 0x14004c6b9
lea rdx, [0x1400cd2fc]
add rsp, 0x20
pop rbx
jmp fcn.14004bff0
lea rdx, [0x1400cd414]
add rsp, 0x20
pop rbx
jmp fcn.14004bff0
cmp byte [rcx + 0x529], 0
je 0x14004c708
lea rdx, [0x1400cd318]
call fcn.14004bff0
cmp byte [rbx + 0x99], 2
jne 0x14004c702
mov rcx, rbx
lea rdx, [0x1400cd3a8]
mov r8d, 3
add rsp, 0x20
pop rbx
jmp fcn.14004bff0
add rsp, 0x20
pop rbx
ret
lea rdx, [0x1400cd334]
add rsp, 0x20
pop rbx
jmp fcn.14004bff0
cmp byte [rcx + 0x98], 0
jne 0x14004c728
cmp dword [rcx + 0x5c], 1
je 0x14004c702
cmp byte [rcx + 0xd4], 0xc
mov byte [rcx + 0x98], 0
jne 0x14004c741
lea rdx, [0x1400cd3b0]
jmp 0x14004c6f2
cmp byte [rcx + 0x529], 0
je 0x14004c6eb
cmp dword [rcx + 0x5c], 2
jne 0x14004c762
mov r8d, 3
lea rdx, [0x1400cd334]
call fcn.14004bff0
lea rdx, [0x1400cca74]
mov rcx, rbx
jmp 0x14004c6f2
Function at 0x1400562c0
Capabilities:
Check os version
Create thread

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x94
call fcn.1400753f0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14005631e
mov rax, qword [0x1400ce7c0]
mov ecx, 4
cmp dword [rsp + 0x44], 6
cmovae rax, rcx
mov qword [0x1400ce7c0], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 0x14]
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400d4b88], rax
test rax, rax
je 0x1400564ad
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400d5a70], rax
test rax, rax
je 0x1400564c9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400d5a60], rax
test rax, rax
je 0x1400564e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400d4b78], rax
test rax, rax
je 0x140056501
xor r9d, r9d
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [0x1400d4b80], rax
test rax, rax
je 0x14005651d
mov rax, qword [0x1400d8058]
mov qword [0x1400d5a40], rax
mov rax, qword [0x1400d5a60]
mov qword [0x1400d5a48], rax
mov rax, qword [0x1400d5a70]
mov qword [0x1400d5a50], rax
lea rax, [0x140056620]
mov qword [rsp + 0x100], rbx
mov qword [0x1400d50d0], rax
mov qword [rsp + 0xf0], rdi
mov dword [0x1400d5a68], 3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [0x1400d4b70]
mov rcx, rax
mov dword [rsp + 0x28], 0
mov r8, rdi
mov dword [rsp + 0x20], 0
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea rax, [0x1400d450c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140056200]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call fcn.140086734
mov rdi, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0x100]
mov qword [0x1400d47d8], rax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140073c20
add rsp, 0xf8
ret
lea rdx, str.Cant_initialize_Heap:__m
mov ecx, 3
call fcn.14005c0d0
mov ecx, 1
call fcn.1400786ac
int3
lea rdx, str.Cant_create_I_O_event_handle:__m
mov ecx, 3
call fcn.14005c0d0
mov ecx, 1
call fcn.1400786ac
int3
lea rdx, str.Cant_create_exit_event_handle:__m
mov ecx, 3
call fcn.14005c0d0
mov ecx, 1
call fcn.1400786ac
int3
lea rdx, str.Cant_create_RPC_sync_handle:__m
mov ecx, 3
call fcn.14005c0d0
mov ecx, 1
call fcn.1400786ac
int3
lea rdx, str.Cant_create_I_O_completion_port:__m
mov ecx, 3
call fcn.14005c0d0
mov ecx, 1
call fcn.1400786ac
int3
Function at 0x140056540
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
cmp qword [0x1400d4b80], 0
je 0x140056617
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1400d450c], eax
je 0x1400565b4
mov rcx, qword [0x1400d4b80]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov rcx, qword [0x1400d47d8]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400565b4
lea rdx, str.IO_completion_thread_refuses_to_terminate
mov ecx, 3
call fcn.14005c0d0
mov rcx, qword [0x1400d47d8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400d4b70]
xor ebx, ebx
test rcx, rcx
je 0x1400565cf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400d4b70], rbx
mov rcx, qword [0x1400d47d8]
mov qword [0x1400d4b88], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400d4b80]
mov qword [0x1400d47d8], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400d4b78]
mov qword [0x1400d4b80], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400d4b78], rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140056de0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x54], 0xfffffffe
mov r9, rdx
mov rax, qword [rcx + 0x38]
mov rbx, rcx
mov qword [rcx + 0x20], rdx
mov qword [rsp + 0x20], rcx
movsxd r8, dword [rax + 0x20]
lea rax, [0x140033140]
mov qword [rdx + 0x38], r8
mov r8d, 0x4b0
mov qword [rdx + 0x50], rax
mov qword [rdx + 0x30], 0
mov rax, qword [rcx + 0x38]
mov rdx, qword [rax + 8]
mov rax, qword [rdx + 0x18]
lea rdx, [r9 + 0x5c]
mov qword [r9 + 8], rax
movsxd rax, dword [r9 + 0x58]
xor r9d, r9d
mov rcx, qword [rcx + 0x28]
sub r8d, eax
add rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140056ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140056ebf
cmp eax, 0x3b
je 0x140056e92
cmp eax, 0x57
je 0x140056eaf
cmp eax, 0x3e5
je 0x140056ebf
cmp eax, 0x2736
je 0x140056eaf
mov rdx, qword [rbx + 0x28]
lea rcx, str.QueueSerialRead:_cannot_schedule_device_read
mov r8d, eax
call fcn.1400567a0
mov rcx, rbx
call fcn.140058720
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rdx, qword [0x1400d4b70]
test rdx, rdx
je 0x140056eaf
mov r8, qword [rbx + 0x28]
lea rcx, [0x140056780]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rbx
call fcn.140058720
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140057490
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
xor edi, edi
mov ebp, r8d
mov esi, edi
mov rbx, rdx
call fcn.140086474
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14005757d
mov edx, ebp
mov rcx, rbx
call fcn.140058490
mov rsi, rax
test rax, rax
je 0x14005757d
mov rcx, qword [0x1400d4b88]
mov ebx, edi
test rcx, rcx
je 0x1400574ff
lea edx, [rdi + 8]
lea r8d, [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14005750f
call fcn.1400808e8
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
test rbx, rbx
je 0x140057517
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov rdi, rbx
test rbx, rbx
je 0x14005757d
or dword [rbx + 0x54], 1
lea rax, [0x1400575c0]
xor r9d, r9d
mov qword [rbx + 0x30], rax
mov r8d, ebp
mov qword [rbx + 0x28], r14
mov rdx, rsi
mov qword [rbx + 0x20], rsi
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140057579
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.async_write:_cannot_schedule_device_write
mov rdx, rbx
mov ecx, eax
call fcn.140056880
test eax, eax
jne 0x140057579
call fcn.1400808e8
mov dword [rax], 9
jmp 0x1400575a1
mov eax, ebp
jmp 0x1400575a4
mov rcx, rdi
call fcn.140058660
test rsi, rsi
je 0x1400575a1
mov rcx, qword [0x1400d4b88]
test rcx, rcx
je 0x1400575a1
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140057950
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
and dword [rcx + 0x54], 0xfffffffe
lea rax, [0x140057aa0]
mov qword [rcx + 0x30], rax
lea rsi, [rcx + 0x50]
mov rax, qword [rcx + 0x28]
lea r14, [rdx + 0x28]
mov qword [rcx + 0x20], rdx
lea rbp, [rdx + 8]
xor edi, edi
mov rbx, rcx
mov dword [rsi], edi
mov qword [rdx + 0x38], rax
lea rax, [0x14002b190]
mov qword [rdx + 0x50], rax
mov dword [r14], 0x1c
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax + 8]
lea rax, [rdx + 0x5c]
mov qword [rsp + 0x58], rax
mov qword [rdx + 0x30], rcx
mov dword [rsp + 0x50], 0x4b0
nop word [rax + rax]
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbp
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x140057a7d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2744
je 0x1400579d0
test eax, eax
je 0x140057a74
cmp eax, 0x3b
je 0x140057a4b
cmp eax, 0x57
je 0x140057a3f
cmp eax, 0x3e5
je 0x140057a74
cmp eax, 0x2736
je 0x140057a3f
mov rdx, qword [rbx + 0x28]
lea rcx, str.QueueSocketRecv:_cannot_schedule_socket_receive
mov r8d, eax
call fcn.1400567a0
mov rcx, rbx
call fcn.140058720
mov eax, edi
jmp 0x140057a82
mov rdx, qword [0x1400d4b70]
test rdx, rdx
je 0x140057a68
mov r8, qword [rbx + 0x28]
lea rcx, [0x140056780]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rbx
call fcn.140058720
mov eax, edi
jmp 0x140057a82
mov edi, 1
mov eax, edi
jmp 0x140057a82
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140058060
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov eax, 0x7fffffff
mov rbp, r9
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
mov rcx, r8
cmp r9, rax
cmova rbp, rax
mov rdx, rbp
call fcn.140058490
mov rsi, rax
test rax, rax
je 0x1400581a1
mov rcx, qword [0x1400d4b88]
mov rdi, qword [rdi + 0x10]
test rcx, rcx
je 0x1400580cd
lea edx, [rbx + 8]
lea r8d, [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400580e1
call fcn.1400808e8
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
test rbx, rbx
je 0x1400581a1
test rdi, rdi
je 0x1400580e9
lock inc dword [rdi]
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], 0
test rbx, rbx
je 0x1400581a1
or dword [rbx + 0x54], 1
lea rax, [0x140057c40]
mov qword [rbx + 0x30], rax
mov r8d, 2
mov rax, qword [rsp + 0x90]
mov edx, 0x10
mov qword [rbx + 0x20], rsi
mov ecx, 0x1c
mov qword [rbx + 0x28], r14
mov qword [rsp + 0x40], 0
cmp r8w, word [rax]
lea r8d, [rdx - 0xf]
mov qword [rsp + 0x38], rbx
cmove ecx, edx
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x30], ecx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, r14
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x50], ebp
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x14005819d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.sendto:_cannot_schedule_socket_send
mov rdx, rbx
mov ecx, eax
call fcn.140056880
test eax, eax
jne 0x14005819d
call fcn.1400808e8
mov dword [rax], 9
jmp 0x1400581c5
mov eax, ebp
jmp 0x1400581c8
mov rcx, rbx
call fcn.140058660
test rsi, rsi
je 0x1400581c5
mov rcx, qword [0x1400d4b88]
test rcx, rcx
je 0x1400581c5
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
or eax, 0xffffffff
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140058b20
Capabilities:
Access the windows event log
Set console window title

Disassembly:
sub rsp, 0x178
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [0x1400d0a6c], 0
jne 0x140058b6e
lea rdx, [0x140058d50]
lea rcx, str.NetworkTimeProtocol
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov qword [0x1400d0a80], rax
test rax, rax
je 0x140058bc2
mov ecx, 2
call fcn.140058e00
jmp 0x140058b9e
lea r9, str.ntpd_4.2.8p15_1.3985_o_Aug_25_17:39:14.47__UTC_00:00__2023___12_
mov edx, 0x100
lea r8, str.NTP_Version__s
lea rcx, [rsp + 0x60]
call fcn.14005e600
lea rcx, [rsp + 0x60]
mov byte [rsp + 0x15f], 0
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x140058d00]
call fcn.140074170
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140073c20
add rsp, 0x178
ret
lea rax, str.could_not_register_with_SCM
mov qword [rsp + 0x180], rbx
lea rdx, str.ntpd
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov qword [rsp + 0x170], rdi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
xor r9d, r9d
mov edi, 1
mov qword [rsp + 0x40], r9
mov rbx, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, edi
mov dword [rsp + 0x30], r9d
mov rcx, rbx
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], r9
mov r9d, 0xc0000001
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, edi
call fcn.1400786ac
mov rdi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x180]
int3

Function at 0x140058c50
Capabilities:
Access the windows event log

Disassembly:
sub rsp, 0x58
cmp dword [0x1400d0a6c], 0
jne 0x140058c75
cmp qword [0x1400d0a80], 0
je 0x140058c7a
mov ecx, 4
add rsp, 0x58
jmp fcn.140058e00
add rsp, 0x58
ret
lea rax, str.could_not_report_to_SCM
mov qword [rsp + 0x68], rbx
lea rdx, str.ntpd
mov qword [rsp + 0x60], rax
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
xor r9d, r9d
mov edi, 1
mov qword [rsp + 0x40], r9
mov rbx, rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, edi
mov dword [rsp + 0x30], r9d
mov rcx, rbx
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], r9
mov r9d, 0xc0000001
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, edi
call fcn.1400786ac
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
int3

Function at 0x140058f00
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x94
call fcn.1400753f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140058f5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetVersionEx_failed_with_error_code__d.
mov ecx, 4
mov r8d, eax
call fcn.14005c0d0
jmp 0x140058f7c
cmp dword [rsp + 0x24], 6
jne 0x140058f7c
mov eax, dword [rsp + 0x28]
mov dword [0x1400d4bc4], 1
cmp eax, 1
je 0x140058f86
test eax, eax
je 0x140058f86
mov dword [0x1400d4bc4], 0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140073c20
add rsp, 0xd8
ret
Function at 0x1400590a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x28
cmp qword [0x1400d0ab0], 0
je 0x140059164
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
rdtsc
shl rdx, 0x20
mov ecx, 1
or rax, rdx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
shl rdx, 0x20
mov ecx, 1
or rax, rdx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
sub r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
add rcx, r8
add rdx, r8
cmp rbx, rcx
mov rbx, qword [rsp + 0x48]
ja 0x140059158
cmp rcx, rdi
ja 0x140059158
cmp rdi, rdx
ja 0x140059158
mov rdi, qword [rsp + 0x20]
mov eax, 1
mov qword [0x1400d1b28], r8
add rsp, 0x28
ret
xor eax, eax
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
lea r9, str.NomPerfCtrFreq___0
xor r8d, r8d
mov edx, 0x19d
lea rcx, str....._ntpd_nt_clockstuff.c
call qword [0x1400cf0f0]
call fcn.14008013c
int3