joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f0a4
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movsxd rbp, dword [rsp + 0x98]
xor edi, edi
cmp dword [rcx], edi
mov r15, r9
mov r12, r8
mov r13, rdx
cmove edi, dword [rsp + 0xa0]
mov rsi, rcx
test ebp, ebp
jne 0x14008f0f7
lea edx, [rbp + 1]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SleepEx]
or eax, 0xffffffff
jmp 0x14008f2e4
mov r14, qword [rsp + 0x90]
mov r9d, edi
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rdx, r14
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
movsxd rbx, eax
cmp ebx, 0xc0
jne 0x14008f12c
cmp dword [rsi + 0x4f0], 0
je 0x14008f0ff
lea rcx, [rsp + 0x70]
call fcn.140096b44
cmp ebx, 0xc0
je 0x14008f1c3
test ebx, ebx
js 0x14008f1c3
cmp ebx, ebp
jge 0x14008f1c3
lea eax, [rbx + 0x40]
movsxd rdx, eax
mov rdi, qword [r14 + rdx*8]
test rdi, rdi
je 0x14008f1c3
mov rax, qword [r14 + rbx*8]
mov qword [rsi + 0x900], rax
mov qword [rsi + 0x908], rdi
and qword [r14 + rdx*8], 0
and qword [r14 + rbx*8], 0
mov rax, qword [rdi + 8]
test rax, rax
je 0x14008f1b3
mov r9, qword [rdi + 0x10]
xor r8d, r8d
mov rdx, qword [rsi + 0x900]
mov rcx, rsi
call rax
test eax, eax
jne 0x14008f1b3
cmp qword [rsi + 0x900], 0
je 0x14008f1b3
mov rcx, rdi
call fcn.14008e898
test eax, eax
je 0x14008f1b3
mov rcx, qword [rdi]
call fcn.1400957f0
and qword [rsi + 0x900], 0
and qword [rsi + 0x908], 0
mov rdi, rbp
cmp ebx, 0x102
jne 0x14008f246
test ebp, ebp
jle 0x14008f2b5
mov ebp, dword [rsp + 0x74]
lea rbx, [r14 + 0x200]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14008f23a
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x14008f1f5
cmp dword [rcx + 0x1c], eax
je 0x14008f23a
cmp dword [rsp + 0x70], eax
jl 0x14008f200
jne 0x14008f23a
cmp ebp, dword [rcx + 0x1c]
mov rax, qword [rcx + 8]
test rax, rax
je 0x14008f226
mov r9, qword [rcx + 0x10]
mov r8d, 2
mov rdx, qword [rbx - 0x200]
mov rcx, rsi
call rax
test eax, eax
jne 0x14008f22e
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call fcn.1400957f0
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub rdi, 1
jne 0x14008f1e1
jmp 0x14008f2b5
or ebp, 0xffffffff
cmp ebx, ebp
jne 0x14008f2b5
test rdi, rdi
jle 0x14008f2b5
lea rbx, [r14 + 0x200]
cmp qword [rbx], 0
je 0x14008f2ab
mov rcx, qword [rbx - 0x200]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebp
jne 0x14008f2ab
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
test rax, rax
je 0x14008f297
mov r9, qword [rcx + 0x10]
mov r8d, 1
mov rdx, qword [rbx - 0x200]
mov rcx, rsi
call rax
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call fcn.1400957f0
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub rdi, 1
jne 0x14008f259
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and dword [rsp + 0x34], 0
mov r9, r15
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, r13
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
and dword [rsi + 0x4f0], 0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140090518
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rcx, qword [rcx + 0x930]
call fcn.14009575c
xor r15d, r15d
mov dword [rsp + 0x30], 0x5265c00
mov dword [rsp + 0x40], r15d
mov rbx, rax
mov qword [rsp + 0x38], r15
mov r14d, r15d
lea rsi, [0x1402c7c20]
test rax, rax
je 0x140090691
mov r12d, 0x208
mov rcx, rbx
call fcn.14008e898
test eax, eax
je 0x140090691
mov rdi, qword [rbx]
test rdi, rdi
je 0x140090691
cmp qword [rdi], r15
je 0x14009067d
lea rax, [rsp + 0x30]
mov dword [rbp + 0x570], r15d
lea r9, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x360]
mov dword [rbp + 0x150], r15d
lea rdx, [rbp + 0x570]
mov dword [rbp + 0x360], r15d
mov rcx, rdi
call qword [rdi]
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x570]
call fcn.1401c3360
test eax, eax
jne 0x14009062d
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x360]
call fcn.1401c3360
test eax, eax
jne 0x14009062d
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call fcn.1401c3360
test eax, eax
je 0x14009067d
lea rax, [rsp + 0x38]
mov ecx, 0x40
lea r9, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x360]
lea rdx, [rbp + 0x570]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14009067d
mov r9, qword [rdi + 0x30]
lea r8, [0x14029cf98]
movsxd rax, r14d
mov edx, 0x1000
sub rdx, rax
lea rcx, [rax + rsi]
call fcn.140001148
add r14d, eax
mov rcx, rbx
call fcn.14009575c
mov rbx, rax
test rax, rax
jne 0x140090587
test r14d, r14d
lea rax, str.UNKNOWN
cmovle rsi, r15
test rsi, rsi
cmovne rax, rsi
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1401c0ed0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400910ec
Capabilities:
Write file on windows

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 ebp, dword [rsp + 0x60]
mov rdi, r9
mov rsi, rdx
mov rbx, r8
mov r14, rcx
mov qword [rax - 0x18], rbx
mov rdx, rdi
mov rcx, rsi
xor r9d, r9d
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400911b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400911ae
mov ecx, 0x50
call fcn.1401cd1cc
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x38]
call fcn.14008e668
mov rcx, qword [rsp + 0x68]
lea r9, [0x140090f14]
or r8d, 0xffffffff
and dword [rax + 0x14], 0
mov qword [rax], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov qword [rax + 8], rdi
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], rsi
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call fcn.1400917c8
xor eax, eax
jmp 0x1400911ba
mov eax, 0xfffffffc
jmp 0x1400911ba
mov eax, 1
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 0x14009120c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, qword [rsp + 0x88]
mov rdi, r9
and dword [rax - 0x28], 0
lea r9, [rax - 0x28]
mov rsi, rdx
mov qword [rax - 0x38], r8
mov r15, r8
mov rbp, rcx
mov r8d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400913de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14009139d
mov ecx, 0x40
call fcn.1401cd1cc
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x28]
call fcn.14008e668
mov rcx, qword [rsp + 0x90]
mov r14, rax
mov qword [rax], rdi
mov rdi, qword [rsp + 0x98]
mov qword [rax + 0x10], rsi
mov esi, 0x400
mov qword [rax + 0x18], r15
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rcx
test rdi, rdi
je 0x140091382
mov edx, esi
mov rcx, rdi
call fcn.1401ccb7c
add rax, 0xa
mov ecx, 0xffffffff
cmp rax, rcx
jae 0x140091311
mov edx, esi
mov rcx, rdi
call fcn.1401ccb7c
mov ecx, 0xfffffff5
cmp rcx, rax
je 0x140091311
mov edx, esi
mov rcx, rdi
call fcn.1401ccb7c
add rax, 0xa
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x140091311
mov edx, esi
mov rcx, rdi
call fcn.1401ccb7c
jmp 0x140091384
xor ebx, ebx
mov rdx, rsi
mov rcx, rdi
call fcn.1401ccb7c
lea rdx, [rax + 0xa]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.14008e668
mov rbx, rax
lea r8, str._s__READ_
lea rax, [0x1402535d8]
test rdi, rdi
mov rcx, rbx
cmove rdi, rax
mov rdx, qword [rbx - 0x18]
mov r9, rdi
call fcn.140001148
mov rdx, qword [r15 + 0x18]
lea r9, [0x140091040]
or r8d, 0xffffffff
mov qword [rsp + 0x28], rbx
mov rcx, rbp
mov qword [rsp + 0x20], r14
call fcn.1400917c8
mov rcx, rbx
call fcn.14008e748
jmp 0x1400913c5
xor eax, eax
lea rcx, [rax + 0x22]
call fcn.1401cd1cc
mov rbx, rax
test rdi, rdi
jne 0x140091313
xor eax, eax
jmp 0x14009131e
test rbx, rbx
je 0x1400913c5
mov rax, qword [rsp + 0x90]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8d, 5
and dword [rsp + 0x20], 0
mov rdx, rsi
mov rcx, rbp
call rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
test rbx, rbx
je 0x1400913c5
cmp dword [rsp + 0x30], 0
jbe 0x1400913a2
mov ecx, 0x28
call fcn.1401cd1cc
mov r9, rax
test rax, rax
je 0x140091432
mov qword [rax], rdi
lea rdx, [0x1400911d8]
mov qword [rax + 8], rbx
mov r8d, 1
mov qword [rax + 0x10], rsi
mov rcx, rbp
mov rax, qword [rsp + 0x90]
mov qword [r9 + 0x20], rax
mov eax, dword [rsp + 0x30]
mov qword [r9 + 0x18], rax
call fcn.14008eb84
jmp 0x1400913c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibParsers.c
mov ebx, 0xdce
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.14009718c
mov r8d, ebx
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.1401c761c
int3
Function at 0x140091554
Capabilities:
Read file on windows

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 r12
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0x88]
mov r15, r9
mov r14, r8
mov r12, rdx
test rbp, rbp
jne 0x14009158b
xor eax, eax
jmp 0x140091598
mov edx, 0x400
mov rcx, rbp
call fcn.1401ccb7c
movsxd rsi, eax
mov eax, 0xffffffff
add rsi, 8
lea rbx, [rsi + 0x20]
cmp rbx, rax
jae 0x1400915cc
mov eax, 0xffffffdf
cmp rax, rsi
je 0x1400915cc
mov eax, 0xffffffe7
cmp rbx, rax
jae 0x1400915cc
lea rcx, [rsi + 0x38]
call fcn.1401cd1cc
jmp 0x1400915ce
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.14008e668
mov ecx, 0x40
mov rdi, rax
call fcn.1401cd1cc
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x28]
call fcn.14008e668
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov rdx, r15
mov qword [rsp + 0x20], r14
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x80]
lea rax, [fcn.14006f708]
mov qword [rbx + 8], rax
lea r8, str._s__READ_
mov qword [rbx + 0x20], rcx
test rbp, rbp
mov qword [rbx], r15
lea rcx, [rdi + 0x20]
mov qword [rbx + 0x18], r14
mov rdx, rsi
mov qword [rbx + 0x10], r12
mov rax, qword [r14 + 0x18]
mov qword [rdi], rax
lea rax, [0x140091040]
mov qword [rdi + 8], rax
lea rax, [0x1402535d8]
cmove rbp, rax
mov qword [rdi + 0x10], rbx
mov r9, rbp
call fcn.140001148
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140093b9c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rdi, rcx
cmp word [rcx], 0x17
jne 0x140093be8
cmp dword [0x1402c0cf0], 0
jne 0x140093be8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov r8d, 0x19a2
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibParsers.c
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.14009718c
xor eax, eax
jmp 0x140093c8b
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140093c0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9d, [rbx + 3]
mov r8d, 0x19a3
jmp 0x140093bcf
cmp word [rdi], 0x17
jne 0x140093c35
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140093c96
cmp word [rdi], 0x17
mov eax, 0x1c
mov rdx, rdi
mov rcx, rbx
lea r8d, [rax - 0xc]
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140093c88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 3
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibParsers.c
mov r8d, 0x19b0
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.14009718c
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140093be1
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibParsers.c
mov r9d, eax
mov r8d, 0x19a7
xor ecx, ecx
call fcn.14009718c
mov ecx, 0xfd
call fcn.1401c761c
int3
Function at 0x140096858
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov dword [rax - 0x10], 0x1000
mov r8, rdx
lea rdi, [0x1402c4c20]
xor ebx, ebx
mov qword [rax - 0x18], rdi
and qword [rax + 0x18], rbx
xor edx, edx
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x14025406c]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1401c7ebc
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009693b
xor edx, edx
lea r8d, [rbx + 2]
call fcn.1401c82ec
mov rcx, qword [rsp + 0x50]
call fcn.1401c7b78
cmp eax, 0x7fffffff
jge 0x1400968e5
mov rcx, qword [rsp + 0x50]
call fcn.1401c7b78
mov ebx, eax
test eax, eax
js 0x14009693b
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.1401c82ec
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.1401cd1cc
mov rdi, rax
test rax, rax
je 0x140096951
test ebx, ebx
je 0x140096923
mov r9, qword [rsp + 0x50]
mov edx, 1
mov r8d, ebx
mov rcx, rax
call fcn.1401cd104
mov rbx, rax
movsxd rcx, ebx
mov byte [rcx + rdi], 0
mov rcx, qword [rsp + 0x50]
call fcn.1401c7fa4
mov eax, ebx
mov qword [rsi], rdi
jmp 0x140096941
and qword [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibParsers.c
mov ebx, 0x23ec
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.14009718c
mov r8d, ebx
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.1401c761c
int3

Function at 0x140096998
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x20], 0
lea rsi, [0x1402c4c20]
movsxd rbx, r8d
mov rdi, rdx
mov r8, rcx
mov dword [rax - 0x10], 0x1000
mov ecx, 0xfde9
mov qword [rax - 0x18], rsi
or r9d, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x14029d0e8]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1401c7ebc
mov r9, qword [rsp + 0x58]
test r9, r9
je 0x140096a11
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.1401d6310
mov rcx, qword [rsp + 0x58]
call fcn.1401c7fa4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14009718c
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x20
lea rcx, [rsp + 0x58]
mov ebp, r9d
mov esi, r8d
call fcn.140096ad8
lea r9, [rsp + 0x58]
mov edx, 0x1000
lea rcx, [0x1402c3c20]
test rdi, rdi
je 0x140097203
mov eax, dword [rsp + 0xd0]
lea r8, str._r_n__s___s:_d___d__d___s
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.140001148
jmp 0x140097214
lea r8, str._r_n__s___s
mov qword [rsp + 0x20], rbx
call fcn.140001148
mov ebx, eax
lea eax, [rax - 1]
cmp eax, 0xffe
ja 0x140097293
mov r8, qword [0x1402c3718]
test r8, r8
je 0x140097293
and qword [rsp + 0x50], 0
lea rdi, [0x1402c4c20]
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x14029d0f0]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1401c7ebc
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x140097293
movsxd r8, ebx
lea rcx, [0x1402c3c20]
mov edx, 1
call fcn.1401d6310
mov rcx, qword [rsp + 0x50]
call fcn.1401c7fa4
lea rax, [0x1402c3c20]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401c0ed0
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140098bd4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, edx
mov rbx, rcx
mov rcx, rdi
mov rsi, r9
mov rbp, r8
call fcn.1401cd1cc
mov qword [rbx], rax
mov r9, rax
test rax, rax
je 0x140098cbe
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x68], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 8], rdi
mov qword [rbx + 0x50], rbp
mov qword [rbx + 0x60], rsi
test rax, rax
je 0x140098c31
mov qword [rbx + 0xc0], rax
mov r8, qword [rbx + 0x90]
test r8, r8
je 0x140098c74
mov rax, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [fcn.14009873c]
mov qword [rsp + 0x30], rbx
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call fcn.14009120c
jmp 0x140098ca9
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and qword [rsp + 0x28], 0
lea r8, [0x140098560]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x78], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibProcessPipe.c
mov ebx, 0x529
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.14009718c
mov r8d, ebx
lea rdx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibProcessPipe.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.1401c761c
int3
Function at 0x140098f18
Capabilities:
Write file on windows

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 rbp, rdx
mov rbx, rcx
mov edi, 0xfffffffc
test rcx, rcx
je 0x14009907b
mov rcx, qword [rcx + 0x48]
test rcx, rcx
jne 0x140098f5d
call fcn.140095614
mov rcx, rax
mov qword [rbx + 0x48], rax
mov r14d, 1
jmp 0x140098f67
pause
xor eax, eax
lock cmpxchg dword [rcx], r14d
je 0x140098f65
mov rcx, qword [rbx + 0x48]
call fcn.14009575c
test rax, rax
je 0x140098f9c
mov edx, esi
mov rcx, rbp
call fcn.14009738c
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
mov rdx, rax
call fcn.140095944
jmp 0x14009902e
mov rax, qword [rbx + 0x90]
xor r9d, r9d
mov rcx, qword [rbx + 0x88]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r14d
jne 0x140098fc8
mov edi, r14d
jmp 0x14009902e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14009903a
mov edx, esi
mov rcx, rbp
xor edi, edi
call fcn.14009738c
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
mov rdx, rax
call fcn.140095944
mov edx, 0x5e4
lea rcx, str.X:XYO_SecurityDevelopmentMeshAgent.CustommicrostackILibProcessPipe.c
call fcn.140090e14
mov rdx, qword [rbx + 0x90]
lea r9, [0x14009831c]
mov rcx, qword [rbx + 0x38]
or r8d, 0xffffffff
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rcx + 0x20]
call fcn.1400917c8
mov rcx, qword [rbx + 0x48]
mov dword [rcx], 0
jmp 0x14009907b
mov rax, qword [rbx + 0x48]
mov dword [rax], 0
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x140099073
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14009906e
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rdx + 0x18]
call fcn.140091994
mov rax, qword [rbx + 0x58]
mov rcx, rbx
call rax
mov rcx, rbx
call fcn.140097624
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140099540
Capabilities:
Clear file content
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xe8]
mov r15, rdx
xor edx, edx
movsxd r14, r8d
mov rsi, r9
mov rbx, rcx
lea r8d, [rdx + 2]
call fcn.1401c82ec
mov rcx, rbx
call fcn.1401c7b68
movsxd rbp, dword [rsp + 0xe0]
mov r12, rax
lea ecx, [rbp + 0x3c]
add ecx, r14d
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebp
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x28], eax
test rdi, rdi
je 0x1400995dc
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x2c], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rsp + 0x3c], xmm1
movups xmmword [rsp + 0x4c], xmm0
jmp 0x1400995ee
xorps xmm0, xmm0
movups xmmword [rsp + 0x2c], xmm0
movups xmmword [rsp + 0x3c], xmm0
movups xmmword [rsp + 0x4c], xmm0
mov r8d, 0x3c
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r13d, [r8 - 0x3b]
mov edx, r13d
call fcn.1401d6310
mov r9, rbx
mov r8, r14
mov edx, r13d
mov rcx, r15
mov rdi, rax
call fcn.1401d6310
mov rcx, rbx
add rdi, rax
call fcn.1401c7b68
mov r15, rax
test rsi, rsi
je 0x140099643
mov r8, rbp
mov r9, rbx
mov edx, r13d
mov rcx, rsi
call fcn.1401d6310
add rdi, rax
mov rcx, rbx
call fcn.1401d4268
neg rsi
lea rdx, [r14 + 0x3c]
sbb eax, eax
and eax, ebp
cdqe
add rdx, rax
cmp rdi, rdx
jae 0x14009969d
mov rcx, rbx
call fcn.1401d90c0
mov ecx, eax
call fcn.1401d8888
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, rbx
call fcn.1401d90c0
mov ecx, eax
call fcn.1401d8888
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
jmp 0x1400996a0
mov rax, r15
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401c0ed0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret