joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400027f8
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r9d, r9d
xor r8d, r8d
mov r14d, eax
lea rax, [rbp + 0x6f]
lea r15d, [r9 + 1]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov edx, r15d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x14000297a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14000285c
xor eax, eax
jmp 0x14000297d
mov ebx, dword [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140002855
mov r9d, dword [rbp + 0x67]
lea rax, [rbp + 0x6f]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov edx, r15d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x140002855
xor ebx, ebx
cmp dword [rbp + 0x6f], ebx
jbe 0x140002966
lea rcx, [rbx + rbx*2]
mov r8d, 0x24
add rcx, rcx
movups xmm1, xmmword [rdi + rcx*8 + 0x10]
movups xmm0, xmmword [rdi + rcx*8 + 0x20]
mov rdx, qword [rdi + rcx*8]
xor ecx, ecx
movups xmmword [rbp + 0xf], xmm1
movups xmmword [rbp + 0x1f], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x140002855
lea r8, [rbp - 0x29]
mov edx, r15d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140002855
jmp 0x14000294b
mov ecx, dword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0x67]
lea r8, [rbp - 0x29]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002855
cmp dword [rbp - 0x25], r15d
je 0x140002951
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x7530
ja 0x140002855
cmp dword [rbp - 0x25], r15d
jne 0x140002902
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebx, r15d
cmp ebx, dword [rbp + 0x6f]
jb 0x1400028b1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r15d
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002994
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400066d0]
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x1400066d0], rbx
mov rcx, qword [0x140006538]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1400029d1
mov eax, dword [rsp + 0x30]
cmp eax, 0x103
jne 0x1400029e9
mov ecx, socket
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
inc ebx
cmp eax, 0xfa
jae 0x1400029ed
jmp 0x1400029b0
test eax, eax
je 0x1400029ff
mov rcx, qword [0x140006538]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140006538]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140006538], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140002a1c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
movzx eax, word [0x1400043a0]
movsd xmm0, qword [0x140004398]
mov rbx, rdx
mov word [rbp - 8], ax
mov al, byte [0x140004378]
movsd qword [rbp - 0x10], xmm0
movsd xmm0, qword [0x140004370]
mov rsi, rcx
mov r8d, 8
lea rdx, [rbp - 8]
movsd qword [rbp - 0x20], xmm0
mov byte [rbp - 0x18], al
mov eax, r8d
and eax, 0x80000007
jge 0x140002a82
dec eax
or eax, 0xfffffff8
inc eax
cdqe
mov cl, byte [rbp + rax - 0x20]
add byte [rdx], cl
dec rdx
dec r8d
jns 0x140002a71
lea rcx, [rbp - 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140002a9a
lea rcx, [rbp - 0x10]
add rcx, rax
je 0x140002ab8
mov edx, 0xa
call fcn.140001d64
jmp 0x140002abd
mov eax, 2
test eax, eax
je 0x140002ac8
xor eax, eax
jmp 0x140002b5d
and qword [rsp + 0x38], 0
mov eax, 0x1000
mov dword [rsp + 0x30], 0x1d4c0
mov dword [rsp + 0x28], eax
lea rcx, [rbp - 0x10]
mov r9d, 1
xor r8d, r8d
mov edx, 0x40000001
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rdi, rax
test rax, rax
je 0x140002ac1
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x140002b52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140002ac1
mov qword [rbx], rax
mov qword [rsi], rdi
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003064
Capabilities:
Get local ipv4 addresses

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
lea rax, [rax + 0x10]
mov r14, rcx
xor edi, edi
mov dword [rax], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov ebx, dword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov r15, rax
test rax, rax
jne 0x1400030d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x140003168
xor r8d, r8d
lea rax, [rsp + 0xd8]
mov r9, rbx
lea r12d, [r8 + 2]
mov qword [rsp + 0x20], rax
mov edx, r12d
mov ecx, r12d
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
jne 0x140003152
mov rsi, qword [rbx + 0x18]
jmp 0x140003137
mov rbp, qword [rsi + 0x10]
cmp word [rbp], r12w
jne 0x140003133
lea rdx, [rbp + 4]
lea r8, [rsp + 0x30]
mov r9d, 0x64
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_inet_ntop]
cmp dword [rbx + 0x68], 1
jne 0x140003133
cmp dword [rbx + 0x64], 6
je 0x140003147
cmp dword [rbx + 0x64], 0x47
je 0x140003147
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x1400030fe
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140003152
jmp 0x1400030f8
mov eax, dword [rbp + 4]
mov edi, 1
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400031f4
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
xor eax, eax
mov ebx, 1
xor r13d, r13d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea eax, [rbx + 3]
movzx r12d, r9w
movzx r14d, r13w
mov dword [rbp + 0x190], ebx
mov qword [rsp + 0x40], rbx
mov esi, r13d
cmp cl, al
jne 0x14000336e
mov eax, dword [rdx]
lea edi, [rbx + 1]
movzx ecx, r8w
mov dword [rsp + 0x34], eax
mov word [rsp + 0x30], di
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rbx + 5]
mov edx, ebx
mov ecx, edi
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000336c
lea r8, [rbp + 0x190]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140003363
cmp r13w, word [rbp + 0x1b0]
jae 0x140003363
movzx eax, r12w
imul r12d, eax, 0x3e8
mov ecx, r12d
call fcn.140002bc4
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x50], ebx
test esi, esi
jne 0x1400032e5
lea r8d, [rsi + 0x10]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140003338
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1400032fa
cmp eax, 0x2733
jne 0x14000338c
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14000338a
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov esi, r13d
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000338c
lea r8, [rbp + 0x190]
mov edx, 0x8004667e
mov rcx, rdi
mov dword [rbp + 0x190], r13d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140003363
mov rcx, rdi
call fcn.1400037b0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov esi, ebx
add r14w, bx
cmp r14w, word [rbp + 0x1b0]
jae 0x140003363
jmp 0x1400032b9
Function at 0x1400033a0
Capabilities:
Get socket status
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov ebx, 1
movzx edi, r8w
movzx esi, dx
lea eax, [rbx + 4]
mov dword [rbp + 0x170], ebx
mov dword [rbp + 0x188], ebx
cmp ax, r8w
cmova edi, eax
and dword [rbp + 0x18c], 0
lea eax, [rbx + 3]
cmp cl, al
jne 0x1400034de
xor eax, eax
lea r14d, [rbx + 1]
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x30], rax
mov word [rsp + 0x30], r14w
mov qword [rsp + 0x38], rax
call fcn.140003064
test eax, eax
je 0x1400034dc
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, r14d
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400034dc
lea r8d, [rbx + 0xf]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400034d3
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400034d3
lea r8, [rbp + 0x170]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400034d3
test edi, edi
je 0x1400034c3
lea rax, [rbp + 0x188]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], ebx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1400034f6
sub edi, ebx
jne 0x140003493
mov rdi, qword [rbp + 0x188]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400034d3
mov rcx, rax
call fcn.1400037b0
mov ebx, eax
jmp 0x1400034ca
Function at 0x14000351c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov esi, r8d
mov r14, rdx
mov rbp, rcx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [rdi + 0x17]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400035ce
and qword [rsp + 0x28], 0
and qword [rax + 0x10], 0
and dword [rsp + 0x20], 0
lea r8, [0x140003930]
mov r9, rax
xor edx, edx
xor ecx, ecx
mov qword [rax], r14
mov dword [rax + 8], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400035b6
mov qword [rbx], rax
mov qword [rbx + 8], rax
lea edi, [rax + 7]
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400035ce
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.140003b80
mov rcx, rsi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400035ec
Capabilities:
Create thread
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor ebx, ebx
mov ecx, 0xfffffff5
and qword [rax - 0x40], rbx
mov r14d, r9d
mov ebp, 1
mov qword [rax - 0x48], rbx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [rbp + 0x17]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000370d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140002a1c
test eax, eax
je 0x140003708
mov rbx, qword [rsp + 0x38]
mov ecx, 0xfffffff5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rbx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x10], rbx
mov qword [rdi], rax
mov eax, dword [rsp + 0x90]
xor ebx, ebx
lea r8, [0x140003930]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rdi + 8], eax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14000375f
mov rcx, qword [rdi + 0x10]
lea ebp, [rbx + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rdx, r12
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, r13
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
test rbx, rbx
je 0x140003737
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140003745
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x30]
mov r8d, r14d
mov rcx, r15
mov rdx, rbx
call fcn.140003b80
mov ebp, eax
cmp eax, 6
jne 0x14000370d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x14000370d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea edx, [rbp - 5]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000370d
Function at 0x1400039c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and dword [rbp + 0x58], 0
and dword [rbp + 0x68], 0
and dword [rbp + 0x50], 0
mov r12d, r9d
mov r13, r8
mov rsi, rdx
mov edi, 1
call fcn.140002c30
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
lea r8d, [rdi + 0x1f]
lea rcx, [rbp - 0x28]
xor edx, edx
mov rbx, rax
mov qword [rbp - 0x40], rax
call sub.msvcrt.dll_memset
mov r15, qword [rbp + 0x60]
mov qword [rbp - 0x10], rbx
xor ebx, ebx
mov dword [rbp - 0x38], r12d
mov qword [rbp - 0x30], r13
mov r8d, edi
mov dword [r15], ebx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rbx
lea r9, [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov rcx, rsi
mov qword [rsp + 0x28], rax
cmp dword [rbp + 0x40], ebx
je 0x140003b1e
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSASend]
jmp 0x140003b2d
call fcn.140002c30
lea rcx, [r14 + 0x1e]
sub rcx, rax
js 0x140003b53
xor r8d, r8d
imul r9d, ecx, 0x3e8
lea rdx, [rbp - 0x40]
lea ecx, [r8 + 1]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, eax
cmp eax, 0x102
je 0x140003b53
cmp ebx, 0xffffffff
jne 0x140003aad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, qword [rbp + rbx*8 - 0x40]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
lea rax, [rbp + 0x58]
lea r8, [rbp + 0x68]
lea rdx, [rbp - 0x28]
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov ecx, dword [rbp + 0x68]
test ecx, ecx
je 0x140003b58
add dword [r15], ecx
cmp dword [r15], r12d
je 0x140003b4f
and dword [rbp + 0x58], 0
xor edx, edx
lea rcx, [rbp - 0x28]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rax, qword [rbp + rbx*8 - 0x40]
mov qword [rbp - 0x10], rax
mov eax, r12d
sub eax, dword [r15]
mov dword [rbp - 0x38], eax
mov eax, dword [r15]
add rax, r13
xor ebx, ebx
lea r8d, [rbx + 1]
mov qword [rbp - 0x30], rax
jmp 0x140003a34
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140003b3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x140003b58
mov al, byte [0x140006529]
test al, al
je 0x140003a65
jmp 0x140003b58
xor edi, edi
jmp 0x140003b58
mov edi, 6
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rbx, qword [rsp + 0xc8]
mov eax, edi
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004a80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140004add
lea rbx, [0x1400c4b40]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140004ac4
cmp r10, 2
jb 0x140004ac4
cmp byte [r9], r8b
jne 0x140004ac4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140004aa0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140004b1f
lea rbx, [0x1400c4b40]
cmp r8b, 0x23
jne 0x140004b03
cmp byte [r9], r8b
jne 0x140004b03
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140004af0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140004ce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140004d0f
mov r8d, 0x7d2
lea rdx, str.C:Users_nocdrDesktop_nocdimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140004d1b
mov qword [rdi], 0
lea rdx, [0x1400c4358]
mov rcx, rbx
call fcn.140004b30
mov rbx, rax
test rax, rax
jne 0x140004d3d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140004e14
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004e14
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140004e14
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004e14
cmp rsi, 0xffffffffffffffff
je 0x140004e14
mov rax, qword [0x1400f11e0]
test rax, rax
je 0x140004db1
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140004e14
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140004e01
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400f11e0]
test rax, rax
je 0x140004df6
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140004e1d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140004e0f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140004e1f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140008600
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xf0], 0
mov rsi, rcx
movsxd rdi, edx
jg 0x14000863c
mov r8d, 0x716
lea rdx, str.C:Users_nocdrDesktop_nocdimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rsi + 0xf8]
lea rdx, [0x1400c4b40]
movsxd r8, dword [rsi + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [rsi]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x1400086b7
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001f770
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400086d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xf0], 0
mov rdi, rdx
mov rbx, rcx
jg 0x140008703
mov r8d, 0x716
lea rdx, str.C:Users_nocdrDesktop_nocdimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movss xmm2, dword [rbx + 0x110]
lea r9, [0x1400c4b40]
movss xmm0, dword [rdi]
movsxd rcx, dword [rbx + 0xf0]
subss xmm0, xmm2
mov rax, qword [rbx + 0xf8]
movss xmm3, dword [rbx + 0x114]
movss xmm1, dword [rdi + 4]
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0x20]
movss xmm0, dword [rdi + 8]
movzx ecx, r8b
subss xmm0, xmm2
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x21]
movss dword [rsp + 0x24], xmm1
movss xmm1, dword [rdi + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x22]
movss dword [rsp + 0x28], xmm0
movss dword [rsp + 0x2c], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x23]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x24]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x25]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x26]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x27]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x28]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x29]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2a]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2b]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2c]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
mov rbx, qword [rsp + 0x40]
xor rcx, rax
movzx eax, byte [rsp + 0x2d]
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2e]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0x2f]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x30
pop rdi
ret