joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1ca0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x20
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rsi, rcx
mov qword [rsp + 0x40], r12
xor ebp, ebp
nop
cmp dword [rsi + 0x90], ebp
jne 0x1400c1cda
mov rax, qword [rsi + 0x68]
test rax, rax
je 0x1400c1d3f
mov eax, dword [rax + 8]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x68]
movsxd r8, dword [rsi + 0x90]
mov rcx, qword [rsi]
movsxd rdx, dword [rax + 8]
xor r9d, r9d
add rdx, qword [rax + 0x10]
sub rdx, r8
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400c1e94
test eax, eax
je 0x1400c1e48
sub dword [rsi + 0x90], eax
jne 0x1400c1cc0
mov rax, qword [rsi + 0x68]
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdi, qword [rax]
call fcn.1400ce0b0
mov rcx, rbx
call fcn.1400ce0b0
test rdi, rdi
mov qword [rsi + 0x68], rdi
jne 0x1400c1cc0
mov qword [rsi + 0x70], rbp
jmp 0x1400c1cc0
cmp dword [rsi + 0x94], ebp
je 0x1400c1ea1
cmp qword [rsi + 0xc0], 0xffffffffffffffff
je 0x1400c1e7f
lea rcx, [rsi + 0xe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [rsi + 0xc8]
mov r12d, dword [rsi + 0xb8]
mov ebx, dword [rsi + 0x10c]
lea rcx, [rsi + 0xe0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1400c1e19
nop
mov rcx, qword [rsi]
movsxd rax, edi
movsxd rdx, r12d
sub rdx, rax
xor r9d, r9d
mov r8d, edi
add rdx, qword [rsi + 0xb0]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
mov ebx, eax
je 0x1400c1e3b
test eax, eax
je 0x1400c1e48
lea rcx, [rsi + 0xe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsi + 0xe0]
sub edi, ebx
mov dword [rsi + 0xc8], edi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsi + 0xe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [rsi + 0xc8]
mov r12d, dword [rsi + 0xb8]
mov ebx, dword [rsi + 0x10c]
lea rcx, [rsi + 0xe0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1400c1d90
cmp ebx, 1
jne 0x1400c1e64
cmp dword [rsi + 0x110], ebp
jne 0x1400c1ea1
mov rcx, qword [rsi]
mov edx, ebx
mov dword [rsi + 0x110], ebx
call qword [sym.imp.WS2_32.dll_shutdown]
mov eax, ebx
jmp 0x1400c1e4a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400c1ea1
xor eax, eax
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
cmp ebx, 2
je 0x1400c1e48
test ebx, ebx
jne 0x1400c1ea1
mov rcx, qword [rsi + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [rbx + 1]
jmp 0x1400c1e4a
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov eax, 1
jmp 0x1400c1e4a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400c1e48
mov eax, 1
jmp 0x1400c1e4a
Function at 0x1400c4e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x198
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea r12, str.main.css
xor esi, esi
mov rbp, rdx
mov rdi, r12
mov r15, rcx
mov ebx, esi
nop
nop
nop
mov rdx, qword [rdi]
mov rcx, rbp
call fcn.14016cd00
test eax, eax
je 0x1400c4eb2
add ebx, 1
add rdi, 0x18
cmp ebx, 8
jb 0x1400c4e90
mov eax, esi
jmp 0x1400c50ad
mov rcx, qword [0x14020b100]
movsxd rax, ebx
mov qword [rsp + 0x190], r14
lea r14, [rax + rax*2]
mov r8d, 0xa
movzx edx, word [r12 + r14*8 + 0x10]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov rbx, rax
je 0x1400c50cd
mov rcx, qword [0x14020b100]
mov rdx, rax
mov qword [rsp + 0x1e0], r13
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
movsxd r13, eax
jle 0x1400c509b
mov rcx, qword [0x14020b100]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbp, rax
je 0x1400c509b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov r12, rax
je 0x1400c5092
lea rcx, [rsp + 0x60]
call fcn.1400012c0
mov rdx, qword [0x14020b100]
lea rcx, [rsp + 0x60]
call fcn.1400d85c0
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x38]
call fcn.1400d8dc0
lea rcx, [rsp + 0x60]
call fcn.140175010
mov r11, qword [rsp + 0x40]
lea rbx, str.main.css
mov rbx, qword [rbx + r14*8 + 8]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], r11
call fcn.1400012c0
lea rdx, str.200_OK_r_n
mov rcx, r15
call fcn.1400c13d0
lea rdx, str.HTTP_1.0_200_OK_r_n
mov rcx, r15
call fcn.1400c2600
lea rdx, str.Server:_Everything_HTTP_Server_r_n
mov rcx, r15
call fcn.1400c2600
lea rdx, str.Content_Type:__s_r_n
mov r8, rbx
mov rcx, r15
call fcn.1400c2600
lea rdx, str.Content_Length:__I64u_r_n
mov r8, r13
mov rcx, r15
call fcn.1400c2600
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400c10b0
mov r8, qword [rsp + 0x68]
lea rdx, str.Date:__s_r_n
mov rcx, r15
call fcn.1400c2600
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400c10b0
mov r8, qword [rsp + 0x68]
lea rdx, str.Last_Modified:__s_r_n
mov rcx, r15
call fcn.1400c2600
lea rdx, str.Cache_Control:_private__max_age3600_r_n
mov rcx, r15
call fcn.1400c2600
lea rdx, str.Connection:_Close_r_n
mov rcx, r15
call fcn.1400c2600
lea rdx, [0x1401aef98]
mov rcx, r15
call fcn.1400c2600
lea rcx, [rsp + 0x60]
call fcn.140175010
mov r8d, r13d
mov rdx, r12
mov rcx, r15
call fcn.1400c24d0
mov rcx, r15
call fcn.1400c1eb0
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r13, qword [rsp + 0x1e0]
mov eax, esi
mov r14, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401a6ae0
add rsp, 0x198
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, esi
jmp 0x1400c50a5
Function at 0x1400c7da0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor r15d, r15d
mov rax, qword [rdi + 0x58]
cmp qword [rdi + 0x50], rax
jne 0x1400c7e0a
mov ecx, 0x10000
call fcn.1400ce030
cmp qword [rdi + 0x40], r15
mov r11, rax
je 0x1400c7de8
mov rax, qword [rdi + 0x48]
mov qword [rax], r11
jmp 0x1400c7dec
mov qword [rdi + 0x40], rax
mov qword [r11], r15
add dword [rdi + 0x60], 1
lea rax, [r11 + 0x10000]
mov qword [rdi + 0x58], rax
lea rax, [r11 + 8]
mov qword [rdi + 0x48], r11
mov qword [rdi + 0x50], rax
mov r8d, dword [rdi + 0x58]
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rdi]
sub r8d, dword [rdi + 0x50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r13, eax
cmp r13d, 0xffffffff
je 0x1400c7f9c
test eax, eax
je 0x1400c7f98
mov rsi, qword [rdi + 0x50]
mov rbx, r15
lea rax, [rsi + r13]
mov qword [rdi + 0x50], rax
cmp byte [rsi], 0xa
jne 0x1400c7f4d
test rbx, rbx
mov byte [rsi], r15b
je 0x1400c7e6e
mov rdx, rbx
mov rcx, rdi
call fcn.1400c7000
add rsi, 1
mov rbx, rsi
jmp 0x1400c7f51
mov ecx, dword [rdi + 0x60]
cmp ecx, 1
jne 0x1400c7e92
mov rdx, qword [rdi + 0x48]
mov rcx, rdi
add rdx, 8
call fcn.1400c7000
add rsi, 1
mov rbx, rsi
jmp 0x1400c7f51
mov eax, esi
sub eax, dword [rdi + 0x48]
sub eax, 8
movsxd rdx, eax
lea eax, [rcx - 1]
movsxd rcx, eax
imul rcx, rcx, 0xfff8
lea rcx, [rdx + rcx + 1]
call fcn.1400ce030
mov rbp, qword [rdi + 0x40]
cmp rbp, qword [rdi + 0x48]
mov r14, rax
mov r12, rax
je 0x1400c7efe
nop
nop
nop
mov rbx, qword [rbp]
lea rdx, [rbp + 8]
mov r8d, 0xfff8
mov rcx, r12
call fcn.1401a6b10
mov rcx, rbp
add r12, 0xfff8
call fcn.1400ce0b0
cmp rbx, qword [rdi + 0x48]
mov rbp, rbx
jne 0x1400c7ed0
mov rdx, qword [rdi + 0x48]
mov eax, esi
mov rcx, r12
sub eax, dword [rdi + 0x48]
add rdx, 8
sub eax, 8
movsxd r8, eax
call fcn.1401a6b10
sub r12, qword [rdi + 0x48]
mov rdx, r14
mov byte [r12 + rsi - 8], r15b
mov rax, qword [rdi + 0x48]
mov rcx, rdi
mov qword [rdi + 0x40], rax
mov dword [rdi + 0x60], 1
call fcn.1400c7000
mov rcx, r14
call fcn.1400ce0b0
add rsi, 1
mov rbx, rsi
jmp 0x1400c7f51
add rsi, 1
sub r13d, 1
jne 0x1400c7e46
test rbx, rbx
je 0x1400c7dc2
mov eax, dword [rdi + 0x50]
mov rcx, qword [rdi + 0x48]
mov rdx, rbx
sub eax, ebx
add rcx, 8
movsxd r8, eax
call fcn.1401a6b10
mov r11d, dword [rdi + 0x50]
mov rax, qword [rdi + 0x48]
sub r11d, ebx
movsxd rcx, r11d
lea rcx, [rcx + rax + 8]
mov qword [rdi + 0x50], rcx
jmp 0x1400c7dc2
xor eax, eax
jmp 0x1400c7fae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400cb600
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [reloc.WS2_32.dll_accept], 0
mov ebx, edx
mov rdi, rcx
je 0x1400cb6c7
mov ecx, edx
call fcn.1400cb500
test eax, eax
je 0x1400cb6c7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov ecx, ebx
mov r8, rax
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
test eax, eax
mov r11d, eax
je 0x1400cb6c7
add ebx, 0xfffffff0
shl r11d, 0x10
cmp ebx, 0x80
ja case.0x1400cb68d.19
lea rdx, [0x140000000]
movsxd rax, ebx
movzx eax, byte [rdx + rax + 0xcb6f8]
mov ecx, dword [rdx + rax*4 + 0xcb6ec]
add rcx, rdx
jmp rcx
bts r11d, 0x19
jmp case.0x1400cb68d.19
bts r11d, 0x18
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov ecx, r11d
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x1400cb6c7
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140175db0
mov eax, 1
jmp 0x1400cb6c9
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401a6ae0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x1400cbc10
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x6b0
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbx, rcx
lea rcx, [rsp + 0x140]
mov rsi, r8
mov rdi, rdx
call fcn.1400012c0
lea rcx, [rsp + 0x20]
call fcn.1400012c0
lea rcx, [rsp + 0x480]
call fcn.1400012c0
lea rcx, [rsp + 0x260]
call fcn.1400012c0
lea rcx, [rsp + 0x140]
xor r12d, r12d
mov r8, rsi
mov rdx, rbx
mov ebp, r12d
call fcn.140176610
lea rcx, [rsp + 0x20]
mov r8, rsi
mov rdx, rdi
call fcn.140176610
mov rcx, qword [rsp + 0x28]
call fcn.1400d42e0
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x480]
call fcn.14017be00
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x260]
call fcn.14017be00
nop
nop
nop
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x488]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400cbd1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.copy_failed:__d_n
mov edx, eax
call fcn.1400b35e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1400cbd25
lea ecx, [rax + 0x44]
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x64
jne 0x1400cbcd0
jmp 0x1400cbd25
mov r12d, 1
lea rcx, [rsp + 0x260]
call fcn.140175010
lea rcx, [rsp + 0x480]
call fcn.140175010
lea rcx, [rsp + 0x20]
call fcn.140175010
lea rcx, [rsp + 0x140]
call fcn.140175010
mov eax, r12d
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1401a6ae0
add rsp, 0x6b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400cd3f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r13
sub rsp, 0x3e0
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rbx, qword [0x14020b0c0]
xor esi, esi
mov r13d, ecx
cmp qword [rbx + 0x10], rsi
je 0x1400cd42d
mov rbx, qword [rbx + 0x10]
cmp byte [rbx], sil
jne 0x1400cd43d
mov rax, qword [0x14020acc0]
mov rbx, rsi
cmp byte [rax], bl
cmovne rbx, rax
lea rcx, [rsp + 0x190]
call fcn.1400012c0
lea rdx, str.EVERYTHING_TASKBAR_NOTIFICATION
lea rcx, [rsp + 0x190]
call fcn.140176700
test rbx, rbx
je 0x1400cd49b
lea rdx, [0x1401cc67c]
lea rcx, [rsp + 0x190]
call fcn.1401752b0
lea rcx, [rsp + 0x190]
mov rdx, rbx
call fcn.1401752b0
lea rdx, [0x1401afa10]
lea rcx, [rsp + 0x190]
call fcn.1401752b0
mov rcx, qword [rsp + 0x198]
call fcn.1400d6dc0
lea rcx, [rsp + 0x190]
mov rbp, rax
call fcn.140175010
test rbp, rbp
je 0x1400cd656
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x400], rdi
mov qword [rsp + 0x408], r12
call fcn.1400012c0
lea rcx, [rsp + 0x2b0]
call fcn.1400012c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.140175db0
lea rcx, [rsp + 0x2b0]
call fcn.1400d8890
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rsp + 0x40]
call qword [0x1402009d0]
mov r11d, dword [rsp + 0x70]
mov eax, dword [rsp + 0x2b0]
lea edi, [rax + r11 + 6]
movsxd rcx, edi
call fcn.1400ce030
mov r12, rax
mov dword [rax], r13d
mov rdx, qword [rsp + 0x78]
lea rbx, [rax + 4]
mov eax, dword [rsp + 0x70]
mov rcx, rbx
add eax, 1
movsxd r8, eax
call fcn.1401a6b10
mov eax, dword [rsp + 0x70]
mov r11d, dword [rsp + 0x2b0]
mov rdx, qword [rsp + 0x2b8]
add eax, 1
add r11d, 1
movsxd rcx, eax
movsxd r8, r11d
add rcx, rbx
call fcn.1401a6b10
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x400
mov rcx, rbp
mov dword [rsp + 0x28], 0x7530
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x20], 9
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], r12
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rdi, qword [rsp + 0x400]
test rax, rax
je 0x1400cd61e
cmp qword [rsp + 0x48], rsi
je 0x1400cd615
xor r8d, r8d
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea edx, [r8 + 0x4a]
mov rcx, rbp
mov dword [rsp + 0x28], 0x7530
mov dword [rsp + 0x20], 9
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov esi, 1
lea rdx, str.send_message_ok_n
mov ecx, 0xff00ff00
jmp 0x1400cd62a
lea rdx, str.version_send_message_bad_version_n
jmp 0x1400cd625
lea rdx, str.version_send_message_failed_n
mov ecx, 0xffff0000
call fcn.1400b3610
mov rcx, r12
call fcn.1400ce0b0
lea rcx, [rsp + 0x2b0]
call fcn.140175010
lea rcx, [rsp + 0x70]
call fcn.140175010
mov r12, qword [rsp + 0x408]
mov eax, esi
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1401a6ae0
mov rbx, qword [rsp + 0x410]
add rsp, 0x3e0
pop r13
pop rsi
pop rbp
ret
Function at 0x1400cd720
Capabilities:
Check for time delay via gettickcount
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x1400cd888
xor ebp, ebp
nop
nop
lea rcx, [rsp + 0x140]
call fcn.1400012c0
lea rcx, [rsp + 0x20]
call fcn.1400012c0
lea rdx, str.EVERYTHING_MUTEX
lea rcx, [rsp + 0x20]
call fcn.140176700
call fcn.1400cd3c0
test rax, rax
je 0x1400cd7bb
call fcn.1400cd3c0
lea rdx, [0x1401cc69c]
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.140176950
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x140]
call fcn.14017b470
lea rcx, [rsp + 0x20]
call fcn.140175010
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x14020b0b0]
test rcx, rcx
je 0x1400cd7f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14020b0b0], rbp
mov r8, qword [rsp + 0x148]
cmp word [r8], bp
je 0x1400cd825
cmp word [r8], 0x5c
jne 0x1400cd813
mov word [r8], 0x5f
add r8, 2
cmp word [r8], bp
jne 0x1400cd806
mov r8, qword [rsp + 0x148]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14020b0b0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x140]
mov ebx, eax
call fcn.140175010
cmp ebx, 0xb7
mov rax, qword [0x14020b0c0]
jne 0x1400cd8bf
bt dword [rax + 4], 0x17
jb 0x1400cd8b3
mov ecx, esi
call fcn.1400cd3f0
test eax, eax
jne 0x1400cd888
lea ecx, [rbx - 0x53]
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
jbe 0x1400cd770
xor eax, eax
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1401a6ae0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov dword [0x14020b0b8], 1
jmp 0x1400cd888
mov eax, dword [rax + 8]
shr eax, 0x17
not eax
and eax, 1
jmp 0x1400cd88a
Function at 0x1400ce170
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.1400012c0
mov rdx, qword [rsp + 0x178]
lea r8, [rsp + 0x180]
lea rcx, [rsp + 0x20]
call fcn.140176660
mov ebx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
test ebx, ebx
jle 0x1400ce1f6
nop
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400ce222
test eax, eax
je 0x1400ce222
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jg 0x1400ce1d0
mov ebx, 1
lea rcx, [rsp + 0x20]
call fcn.140175010
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401a6ae0
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
xor ebx, ebx
jmp 0x1400ce1fb
Function at 0x1400ce4f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
xor r13d, r13d
mov r15, rdx
xor r12d, r12d
mov r14, rcx
mov qword [rsp + 0x50], rbx
nop
nop
mov r9d, dword [0x1401f9c78]
test r9d, r9d
je 0x1400ce531
cmp r12d, r9d
jg 0x1400ce5a8
mov ecx, 0x10000
call fcn.1400ce030
test rdi, rdi
mov rbx, rax
je 0x1400ce549
mov qword [r13], rax
jmp 0x1400ce54c
mov rdi, rax
lea rsi, [rax + 8]
lea rbp, [rax + 0x10000]
mov r13, rax
cmp rsi, rbp
mov qword [rax], 0
jae 0x1400ce59c
nop
nop
nop
mov r8d, ebp
xor r9d, r9d
mov rdx, rsi
sub r8d, esi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400ce661
test eax, eax
je 0x1400ce5c1
cdqe
add rsi, rax
cmp rsi, rbp
jb 0x1400ce570
add r12d, 0xfff8
jmp 0x1400ce520
lea rdx, str._d____d_n
mov r8d, r12d
mov ecx, 0xffff0000
call fcn.1400b3610
jmp 0x1400ce67b
mov r9d, dword [0x1401f9c78]
mov eax, esi
sub eax, ebx
lea r8d, [r12 + rax - 8]
lea edx, [r8 + 1]
cmp edx, r9d
jle 0x1400ce5f0
lea rdx, str.buflen__d1____d_n
mov ecx, 0xffff0000
call fcn.1400b3610
jmp 0x1400ce67b
cmp edx, dword [r15 + 4]
jle 0x1400ce5fe
mov rcx, r15
call fcn.140175030
test rdi, rdi
mov rbp, qword [r15 + 8]
je 0x1400ce656
cmp rdi, r13
mov r12, qword [rdi]
jne 0x1400ce62d
mov eax, esi
lea rdx, [rdi + 8]
mov rcx, rbp
sub eax, edi
sub eax, 8
movsxd rbx, eax
mov r8, rbx
call fcn.1401a6b10
add rbp, rbx
jmp 0x1400ce646
lea rdx, [rdi + 8]
mov r8d, 0xfff8
mov rcx, rbp
call fcn.1401a6b10
add rbp, 0xfff8
mov rcx, rdi
call fcn.1400ce0b0
test r12, r12
mov rdi, r12
jne 0x1400ce607
mov byte [rbp], 0
mov eax, 1
jmp 0x1400ce695
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.recv__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3610
test rdi, rdi
je 0x1400ce693
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.1400ce0b0
test rbx, rbx
mov rdi, rbx
jne 0x1400ce680
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400ce6c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebp, ebp
cmp r8d, 0x50
mov esi, r8d
mov rdi, rdx
mov r12, rcx
jb 0x1400ce902
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.1400ce110
test rax, rax
mov rbx, rax
je 0x1400ce8ed
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.1400da3f0
test eax, eax
je 0x1400ce8d1
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ce8bb
mov edx, dword [rsp + 0x60]
cmp edx, esi
jne 0x1400ce8ad
lea r10, [rbx + 3]
lea r9, str.NTFS
lea r8d, [rbp + 8]
mov rdx, r10
sub r9, r10
nop
nop
nop
nop
movzx eax, byte [r9 + rdx]
movzx ecx, byte [rdx]
sub ecx, eax
jne 0x1400ce896
add rdx, 1
sub r8d, 1
jne 0x1400ce760
movzx edx, byte [rbx + 0xd]
lea rcx, str.sectors_per_cluster__d_n
call fcn.1400b35e0
movzx r11d, byte [rbx + 0xd]
cmp r11b, 0x80
ja 0x1400ce7a5
movzx ecx, word [rbx + 0xb]
movzx eax, r11b
imul ecx, eax
mov dword [rdi + 0x10], ecx
jmp 0x1400ce7c0
mov al, r11b
mov ecx, 0x100
mov edx, 1
sub ecx, eax
movzx eax, word [rbx + 0xb]
shl edx, cl
imul edx, eax
mov dword [rdi + 0x10], edx
mov edx, dword [rdi + 0x10]
lea rcx, str.bytes_per_cluster__d_n
call fcn.1400b35e0
mov r11d, dword [rdi + 0x10]
test r11d, r11d
je 0x1400ce886
movzx eax, word [rbx + 0xb]
test eax, eax
mov dword [rdi + 0x18], eax
je 0x1400ce876
movzx eax, byte [rbx + 0x40]
test al, al
jle 0x1400ce7ff
movsx eax, al
imul eax, r11d
mov dword [rdi + 0x14], eax
jmp 0x1400ce80e
neg eax
mov edx, 1
movzx ecx, al
shl edx, cl
mov dword [rdi + 0x14], edx
cmp dword [rdi + 0x14], ebp
je 0x1400ce866
mov rdx, qword [rbx + 0x30]
lea rcx, str.mft_lcn__I64u_n
mov qword [rdi], rdx
mov rax, qword [rbx + 0x48]
mov qword [rdi + 8], rax
call fcn.1400b35e0
mov rdx, qword [rdi + 8]
lea rcx, str.serial_number__I64u_n
call fcn.1400b35e0
mov edx, dword [rdi + 0x10]
lea rcx, str.bytes_per_cluster__u_n
call fcn.1400b35e0
mov edx, dword [rdi + 0x14]
lea rcx, str.bytes_per_file_record__u_n
call fcn.1400b35e0
mov ebp, 1
jmp 0x1400ce8e5
lea rcx, str.invalid_bytes_per_file_record__u_n
xor edx, edx
call fcn.1400b35e0
jmp 0x1400ce8e5
lea rcx, str.invalid_bytes_per_sector__u_n
xor edx, edx
call fcn.1400b35e0
jmp 0x1400ce8e5
lea rcx, str.invalid_bytes_per_cluster__u_n
xor edx, edx
call fcn.1400b35e0
jmp 0x1400ce8e5
lea rcx, str.bad_NTFS_signature:__t_n
mov r8d, 8
mov rdx, r10
call fcn.1400b35e0
jmp 0x1400ce8e5
lea rcx, str.unable_to_read_all_of_NTFS_boot_sector:__u_n
call fcn.1400b35e0
jmp 0x1400ce8e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_read_NTFS_boot_sector:__u_n
mov edx, eax
call fcn.1400b35e0
jmp 0x1400ce8e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_set_file_pointer_to_boot_sector__u_n
mov edx, eax
call fcn.1400b35e0
mov rcx, rbx
call fcn.1400ce160
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
lea rcx, str.bad_sector_size__u_n
mov edx, esi
call fcn.1400b35e0
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ce9d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
xor r8d, r8d
movsxd rbx, r9d
mov rbp, rdx
mov rdi, rcx
call fcn.1400da3f0
test eax, eax
je 0x1400cea57
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cea3d
mov r8d, dword [rsp + 0x30]
cmp r8d, ebx
je 0x1400cea81
lea rdx, str.NRFR_read_error__d____d_n
mov r9d, ebx
mov ecx, 0xffff0000
call fcn.1400b3610
jmp 0x1400cea57
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NRFR_read_error__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3610
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.read_error__I64x__d_n
mov r8, rbp
mov r9d, eax
mov ecx, 0xffff0000
call fcn.1400b3610
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1401a6e60
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret