joyce8/EMBER2024-capa huggingface dataset:
Function at 0x17b6b40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x17b6b4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x17b6b5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x17b6b45
lea eax, [rcx + 1]
jmp 0x17b6b6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x17b6b7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x17b6b64
sub eax, 3
jb 0x17b6b9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x17b6bed
sar eax, 1
movsxd rbp, eax
jb 0x17b6bd4
jmp 0x17b6bac
add ebx, ebx
jne 0x17b6baa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x17b6bd4
inc ecx
add ebx, ebx
jne 0x17b6bba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x17b6bd4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x17b6bcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x17b6bbc
add ecx, 2
jmp 0x17b6bd9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.017b6b02
jmp 0x17b6b4d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x13a7000]
mov eax, dword [rdi]
or eax, eax
je 0x17b6c49
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x13b6000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x17b6bf9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x17b6c43
mov qword [rbx], rax
add rbx, 8
jmp 0x17b6c19
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x17b6c8d
cmp al, 0xef
ja 0x17b6c75
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x17b6c55
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x17b6c64
mov eax, dword [rdi]
add rdi, 4
jmp 0x17b6c64
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x17b6ce1
sub rsp, 0xffffffffffffff80
jmp 0x474ce0
Function at 0x140007c10
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 0x140007c6d
lea rbx, [0x14004ca20]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140007c54
cmp r10, 2
jb 0x140007c54
cmp byte [r9], r8b
jne 0x140007c54
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 0x140007c30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140007caf
lea rbx, [0x14004ca20]
cmp r8b, 0x23
jne 0x140007c93
cmp byte [r9], r8b
jne 0x140007c93
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 0x140007c80
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140007df0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140007e0a
mov qword [r8], 0
lea rdx, [0x14004c5ac]
call fcn.140007cc0
mov rbx, rax
test rax, rax
jne 0x140007e2a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140007f03
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007f03
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140007f03
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007f03
cmp rdi, 0xffffffffffffffff
je 0x140007f03
mov rax, qword [0x14005a7a8]
test rax, rax
je 0x140007ea0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140007f03
mov r9, rbx
mov r8, rdi
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, rdi
je 0x140007ef0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14005a7a8]
test rax, rax
je 0x140007ee5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140007f0c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140007efe
mov qword [r14], rdi
mov rax, rsi
jmp 0x140007f0e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000bc10
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xf0]
lea r8, [0x14004ca20]
movsxd rcx, dword [rcx + 0xe8]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x14005a7a8]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x14000bca5
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.14001f500
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000bcb0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x108]
lea r10, [0x14004ca20]
mov rax, qword [rcx + 0xf0]
movss xmm1, dword [rcx + 0x10c]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0xe8]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret
Function at 0x140018770
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14005a7a8]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x1400187d1
cmp byte [rbx + 0x4a2e], 0
jne 0x1400187d1
movsx r9d, word [rbx + 0x5b32]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140007ad0
test dil, 1
je 0x1400188f8
jmp 0x14001885c
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b32]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140051d70]
mov edx, 0x10
mulss xmm1, dword [0x140051d60]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x140051cc4]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.140007ad0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400188b0
lea r11, [0x14004ca20]
nop dword [rax]
cmp r9b, 0x23
jne 0x140018893
cmp byte [r8], r9b
jne 0x140018893
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140018880
not ecx
call fcn.14000faf0
test rax, rax
je 0x1400188f8
cmp byte [rax + 0xae], 0
je 0x1400188f8
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b32]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b32]
call fcn.140007ad0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140012240
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140048ea0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001dda0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001de47
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001ddfa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140020250
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140008650
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14005a7a0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001de4f
mov rcx, rbx
call fcn.140008650
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e3c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14005a7a8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001e423
mov qword [rsp], rbx
lea rbx, [0x14004ca20]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001e403
cmp byte [r8], r9b
jne 0x14001e403
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001e3f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b90]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001e457
mov r10, qword [r10 + 0x5b98]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001e45e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001e444
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140045210
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x14004529c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140045270
lea r11, [0x14004ca20]
nop
cmp r9b, 0x23
jne 0x140045253
cmp byte [r8], r9b
jne 0x140045253
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140045240
mov rcx, qword [0x14005a7a8]
not eax
cmp dword [rcx + 0x3f00], eax
jne 0x140045287
mov dword [rcx + 0x3f04], eax
cmp dword [rcx + 0x3f30], eax
jne 0x1400452f6
mov byte [rcx + 0x3f34], 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rbx, qword [0x14005a7a8]
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov r8, qword [rbx + 0x3ea0]
movsxd rax, dword [r8 + 0xe8]
mov r8, qword [r8 + 0xf0]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140007c10
cmp dword [rbx + 0x3ee8], eax
mov esi, eax
mov rbx, qword [rsp + 0x30]
jne 0x1400452ef
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.14001f500
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140048dc0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edx, ecx
xor edi, edi
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140048e2d
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
cmp eax, 1
je 0x140048e31
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140048e6e
lea rdx, [rsp + 0x50]
lea rcx, str.client.dll
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140048e5d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
cmp eax, 1
je 0x140048e31
jmp 0x140048e62
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140048ea0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret

Function at 0x140049b24
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049b6e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049b6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049b6e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049b6e
cmp dword [rcx + 0x84], 0xe
jbe 0x140049b6e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140049b70
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov rsi, rdx
mov r8d, dword [rcx]
mov rdi, rcx
mov r9, rdx
mov dword [rsp + 0x20], ebx
mov ecx, 6
lea rdx, str.client_write_fd__d_buf__p_len__d
call fcn.140005ad0
cmp dword [rdi + 0x34], 4
movsxd rax, dword [rdi]
je 0x1400010d5
mov r8d, eax
lea rdx, str.Attempted_to_write_to_client__d_not_in_CONNECTED_state
mov ecx, 1
call fcn.140005ad0
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rax
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test eax, eax
jns 0x140001153
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0xb
je 0x14000113d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x2733
je 0x14000113d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8d, dword [rdi]
lea rdx, str.ERROR:_client_write:_sending_to_fd__d_failed:__s
mov r9, rax
mov ecx, 1
call fcn.140005ad0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rdi]
lea rdx, str.client_write:_fd__d_not_ready_for_writing
mov ecx, 5
call fcn.140005ad0
xor ebx, ebx
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140003450
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140012008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [0x140012840]
xor ebx, ebx
test rax, rax
jne 0x14000363a
lea r8, [rsp + 0x20]
mov qword [rsp + 0x268], rsi
lea edx, [rbx + 0x23]
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea rsi, [rbx - 1]
test eax, eax
jne 0x1400035be
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400035be
mov qword [rsp + 0x270], rdi
lea rax, [rsp + 0x30]
mov rdi, rsi
nop
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400034d0
test edi, edi
jle 0x1400035ab
lea eax, [rdi + rdi*2]
movsxd rcx, eax
add rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd r11, edi
mov r9, rax
test edi, edi
jle 0x1400035a0
mov qword [rsp + 0x260], rbp
mov r8, rbx
mov ebp, 0x80
mov rdx, rbx
mov edi, 0x800
nop word [rax + rax]
movzx ecx, word [rsp + r8*2 + 0x30]
lea r10, [rdx + r9]
inc r8
inc rdx
cmp cx, di
jb 0x140003564
movzx eax, cx
shr ax, 0xc
sub al, 0x20
mov byte [r10], al
movzx eax, cx
shr ax, 6
and cl, 0x3f
and al, 0x3f
add cl, 0x80
add al, 0x80
mov byte [rdx + r9], al
mov byte [rdx + r9 + 1], cl
add rdx, 2
add ebx, 2
jmp 0x14000358e
cmp cx, bp
jb 0x140003588
movzx eax, cx
and cl, 0x3f
shr ax, 6
add cl, 0x80
and al, 0x1f
sub al, 0x40
mov byte [r10], al
mov byte [rdx + r9], cl
inc rdx
inc ebx
jmp 0x14000358e
and cl, 0x7f
mov byte [r10], cl
lea eax, [rbx + 1]
mov ebx, eax
cmp r8, r11
jl 0x140003520
mov rbp, qword [rsp + 0x260]
movsxd rax, ebx
mov rbx, r9
mov byte [rax + r9], 0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x270]
xor r9d, r9d
lea r8, str.AppleLockdown
lea rdx, [0x14000c190]
mov rcx, rbx
call fcn.1400092b0
mov qword [0x140012840], rax
mov rcx, rax
test rax, rax
je 0x14000360a
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400035e6
dec esi
movsxd rax, esi
test esi, esi
jle 0x14000360a
cmp byte [rax + rcx], 0x5c
jne 0x14000360a
mov byte [rax + rcx], 0
dec rax
test rax, rax
jg 0x1400035f8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x140012840]
lea rdx, str.Initialized_config_dir_to__s
mov ecx, 5
call fcn.140005ad0
mov rax, qword [0x140012840]
mov rsi, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140009690
add rsp, 0x250
pop rbx
ret
Function at 0x140003660
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x840
mov rax, qword [0x140012008]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
test rcx, rcx
jne 0x140003688
lea eax, [rcx - 1]
jmp 0x1400036f5
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
je 0x1400036f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x11
je 0x1400036f3
mov rcx, rbx
mov qword [rsp + 0x858], rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
lea r8, [rsp + 0x30]
xor edx, edx
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
mov edx, 0x1ed
lea rcx, [rsp + 0x30]
call fcn.140003660
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x858]
mov eax, ebx
jmp 0x1400036f5
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140009690
add rsp, 0x840
pop rbx
ret
Function at 0x140003710
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140012008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbp, rdx
call fcn.140003450
lea rdx, [rsp + 0x50]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x14000375e
mov rcx, rbx
call fcn.140003660
call fcn.140003450
xor r9d, r9d
lea r8, str.SystemConfiguration.plist
lea rdx, [0x14000c190]
mov rcx, rax
call fcn.1400092b0
xor esi, esi
mov rdi, rax
test rax, rax
je 0x1400038f0
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov rcx, rax
call fcn.140009400
test eax, eax
je 0x1400037f4
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
cmp rax, 8
jbe 0x1400037db
movabs rcx, 0x30307473696c7062
cmp qword [rbx], rcx
jne 0x1400037db
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_from_bin]
jmp 0x1400037eb
lea r8, [rsp + 0x30]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_from_xml]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x14000381e
call qword [sym.imp.plist.dll_plist_new_dict]
mov r8, rbp
lea rdx, str.SystemBUID
mov rcx, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
jmp 0x140003860
lea rdx, str.SystemBUID
call qword [sym.imp.plist.dll_plist_dict_get_item]
test rax, rax
je 0x140003842
mov rcx, qword [rsp + 0x30]
lea rdx, str.SystemBUID
call qword [sym.imp.plist.dll_plist_dict_remove_item]
mov rcx, qword [rsp + 0x30]
lea rdx, str.SystemBUID
mov r8, rbp
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rcx, rbp
mov qword [rsp + 0x38], rsi
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x1400038b5
lea rdx, [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.plist.dll_plist_get_string_val]
mov r9, qword [rsp + 0x38]
lea r8, str.SystemBUID
lea rdx, str.Setting_key__s_to__s_in_config_file__s
mov qword [rsp + 0x20], rdi
mov ecx, 5
call fcn.140005ad0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400038d0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400038d0
mov r9, rdi
lea r8, str.SystemBUID
lea rdx, str.Setting_key__s_in_config_file__s
mov ecx, 5
call fcn.140005ad0
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call fcn.140009510
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.plist.dll_plist_free]
mov esi, ebx
test ebx, ebx
jne 0x140003915
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rdi
lea rdx, str.ERROR:_Failed_to_write_to__s:__s
mov r9, rax
mov ecx, 1
call fcn.140005ad0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140009690
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret