joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140136b70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140136be5
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140136be5
lea rcx, [rsp + 0x68]
call fcn.140137280
nop
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402be068]
cmp rcx, rax
je 0x140136be5
mov eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x140136be5
call fcn.14010a370
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret

Function at 0x1401370e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
cmp byte [rax], 0
je 0x14013717b
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14013717b
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x140137155
cmp eax, 0xffffffff
je 0x140137155
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ecx, ecx
test eax, eax
setne cl
movzx eax, cl
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
test eax, eax
setne cl
movzx eax, cl
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140137450
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x470
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, edx
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1401374f4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14001ba80
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14015ee70
nop
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402be068]
cmp rcx, rax
je 0x140137506
mov edx, 0xffffffff
lock xadd dword [rcx], edx
test edx, edx
jne 0x140137506
call fcn.14010a370
jmp 0x140137506
lea rax, [0x1402be078]
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14010a310
add rsp, 0x470
pop rbx
ret
Function at 0x140137530
Capabilities:
Get disk information

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
mov qword [rsp + 0x50], rax
lea rcx, [rax - 0x10]
lea rdi, [0x1402be068]
cmp rcx, rdi
je 0x14013756b
mov eax, 1
lock xadd dword [rcx], eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1401375d0
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x1401375b5
mov edx, 0xffffffff
lock xadd dword [rcx], edx
test edx, edx
jne 0x1401375b5
call fcn.14010a370
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x14013d570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rsi, rcx
mov r9d, dword [rcx + 0x9c]
xor r12d, r12d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
nop dword [rax]
mov edx, dword [rsi + 0x94]
mov ebp, dword [rsi + 0x58]
mov ecx, dword [rsi + 0x44]
sub ebp, edx
add ecx, 0xfffffefa
sub ebp, r9d
add ecx, ebx
cmp edx, ecx
jb 0x14013d640
mov rcx, qword [rsi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsi + 0x74]
mov rax, qword [rsi + 0x68]
sub dword [rsi + 0x98], ebx
sub dword [rsi + 0x94], ebx
sub dword [rsi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, bx
cmp ecx, ebx
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x14013d5f0
mov rax, qword [rsi + 0x60]
mov r8d, ebx
lea rdx, [rax + rbx*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, bx
cmp ecx, ebx
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x14013d620
add ebp, ebx
mov r14, qword [rsi]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x14013d727
mov edx, dword [rsi + 0x9c]
mov r15d, dword [rsi + 0x94]
add r15, rdx
add r15, qword [rsi + 0x50]
cmp ecx, ebp
cmovbe ebp, ecx
test ebp, ebp
jne 0x14013d671
mov ebp, r12d
jmp 0x14013d6d3
mov rax, qword [r14 + 0x28]
sub ecx, ebp
mov dword [r14 + 8], ecx
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x14013d694
mov rdx, qword [r14]
mov r8d, ebp
mov ecx, dword [r14 + 0x4c]
call fcn.14013f290
jmp 0x14013d6b2
cmp ecx, 2
jne 0x14013d6b6
mov rdx, qword [r14]
test rdx, rdx
jne 0x14013d6a6
mov eax, r12d
jmp 0x14013d6b2
mov ecx, dword [r14 + 0x4c]
mov r8d, ebp
call fcn.14013ef00
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, ebp
mov edi, ebp
call sub.VCRUNTIME140.dll_memcpy
add qword [r14], rdi
add dword [r14 + 0xc], ebp
mov edx, dword [rsi + 0x9c]
lea r9d, [rdx + rbp]
mov dword [rsi + 0x9c], r9d
cmp r9d, 3
jb 0x14013d711
mov eax, dword [rsi + 0x94]
mov rdx, qword [rsi + 0x50]
mov ecx, dword [rsi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rsi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rsi + 0x7c]
mov dword [rsi + 0x70], r8d
cmp r9d, 0x106
jae 0x14013d727
mov rax, qword [rsi]
cmp dword [rax + 8], r12d
jne 0x14013d5a0
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
Function at 0x14013f270
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
jne 0x14013f278
xor eax, eax
ret
jmp fcn.14013ef00
Function at 0x140147ec0
Capabilities:
Terminate thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov edi, edx
mov rbx, rcx
lea rsi, [rcx + 0x20]
mov qword [rsp + 0x68], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140147faf
mov rcx, rbx
call fcn.1401480d0
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test edi, edi
je 0x140147f16
mov edx, edi
mov rcx, rbx
call fcn.140147fd0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140147faf
lea rax, str.___killing_thread_by_force___
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14001b960
nop
mov rcx, qword [0x14047d0b0]
test rcx, rcx
je 0x140147f58
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140147f63
lea rcx, [rsp + 0x50]
call fcn.140135030
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402be068]
cmp rcx, rax
je 0x140147f8a
mov eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x140147f8a
call fcn.14010a370
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140147f9f
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
mov eax, ecx
xchg qword [rbx + 0x10], rax
xchg qword [rbx + 0x18], rcx
xor bl, bl
jmp 0x140147fb1
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140148c90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, qword [rdx]
mov r14, rcx
cmp byte [rbx], 0
je 0x140148df3
nop dword [rax]
nop dword [rax + rax]
xor r9d, r9d
movzx ecx, byte [rbx]
inc rbx
mov eax, ecx
test cl, cl
jns 0x140148d22
mov ecx, 0x40
xor r8d, r8d
mov edx, 0x7f
test cl, al
je 0x140148cf0
cmp ecx, 8
jbe 0x140148cf0
shr edx, 1
inc r8d
shr ecx, 1
test eax, ecx
jne 0x140148ce0
and eax, edx
sub r8d, 1
js 0x140148d22
nop dword [rax + rax]
movzx edx, byte [rbx]
mov ecx, edx
and cl, 0xc0
cmp cl, 0x80
jne 0x140148d22
mov ecx, eax
and edx, 0x3f
shl ecx, 6
mov eax, edx
or eax, ecx
inc rbx
sub r8d, 1
jns 0x140148d00
lea ecx, [rax - 0x41]
cmp ecx, 0x19
ja 0x140148d2e
mov eax, ecx
jmp 0x140148d78
lea ecx, [rax - 0x61]
cmp ecx, 0x19
ja 0x140148d3b
add eax, 0xffffffb9
jmp 0x140148d78
lea ecx, [rax - 0x30]
cmp ecx, 9
ja 0x140148d48
add eax, 4
jmp 0x140148d78
cmp eax, 0x2b
jne 0x140148d54
mov eax, 0x3e
jmp 0x140148d78
cmp eax, 0x2f
jne 0x140148d60
mov eax, 0x3f
jmp 0x140148d78
cmp eax, 0x3d
jne 0x140148e0b
mov eax, 0x40
cmp r9, 1
jle 0x140148e0b
mov byte [rsp + r9 + 0x38], al
inc r9
cmp r9, 4
jl 0x140148cc3
movzx eax, byte [rsp + 0x38]
mov rcx, r14
movzx esi, byte [rsp + 0x39]
mov r8, qword [r14]
movzx edx, sil
shr dl, 4
shl al, 2
or dl, al
call qword [r8 + 0x28]
movzx edi, byte [rsp + 0x3a]
cmp dil, 0x40
jae 0x140148dea
mov rax, qword [r14]
movzx edx, dil
shr dl, 2
mov rcx, r14
shl sil, 4
or dl, sil
call qword [rax + 0x28]
movzx ecx, byte [rsp + 0x3b]
cmp cl, 0x40
jae 0x140148dea
mov rax, qword [r14]
shl dil, 6
or dil, cl
mov rcx, r14
movzx edx, dil
call qword [rax + 0x28]
cmp byte [rbx], 0
jne 0x140148cc0
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x140148df5
Function at 0x1401564b0
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
movzx eax, byte [rcx + 0x10]
test al, al
je 0x1401565f9
cmp byte [rcx + 0x11], 0
je 0x1401565f9
mov dword [rsp + 0x24], 0x80
movsxd rcx, dword [rcx + 0xc]
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_accept]
mov rbp, rax
test eax, eax
js 0x1401565f9
movzx ecx, byte [rbx + 0x10]
test cl, cl
je 0x1401565f9
mov ecx, 0x40
call fcn.14010a334
mov rdi, rax
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14001b960
nop
mov esi, 1
mov dword [rsp + 0x20], esi
mov ecx, dword [rbx + 8]
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
lea rbx, [rax - 0x10]
lea r14, [0x1402be068]
cmp rbx, r14
je 0x140156590
mov eax, esi
lock xadd dword [rbx], eax
mov dword [rdi + 8], ecx
mov dword [rdi + 0xc], ebp
mov word [rdi + 0x10], 1
lea rcx, [rdi + 0x12]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
cmp byte [0x14047daec], 0
jne 0x1401565ca
mov byte [0x14047daec], 1
mov ecx, 0x101
lea rdx, [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
movsxd rcx, ebp
call fcn.140156d70
nop
and esi, 0xfffffffe
mov dword [rsp + 0x20], esi
cmp rbx, r14
je 0x1401565f4
mov eax, 0xffffffff
lock xadd dword [rbx], eax
test eax, eax
jne 0x1401565f4
mov rcx, rbx
call fcn.14010a370
mov rax, rdi
jmp 0x1401565fb
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010a310
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401568c0
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x3c], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x4c], xmm1
xor esi, esi
mov dword [rsp + 0x5c], esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], 8
mov qword [r11 - 0x78], rsi
mov edx, r8d
lea rcx, [r11 - 0x10]
call fcn.1401515f0
lea r8, [rsp + 0x87]
sub r8, rax
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400163c0
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
sete dil
lea rcx, [rbx - 0x10]
lea rax, [0x1402be068]
cmp rcx, rax
je 0x140156988
mov edx, 0xffffffff
lock xadd dword [rcx], edx
test edx, edx
jne 0x140156988
call fcn.14010a370
test dil, dil
cmovne rsi, qword [rsp + 0x20]
mov rax, rsi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14010a310
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140156a00
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x490
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
nop
test eax, eax
setne al
mov byte [rsp + 0x48], al
test al, al
je 0x140156b13
movsxd rcx, dword [rsi]
mov eax, 0x10624dd3
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x38], edx
imul eax, edx, 0x3e8
sub ebx, eax
imul eax, ebx, 0x3e8
mov dword [rsp + 0x3c], eax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x278], rcx
mov dword [rsp + 0x270], 1
inc ecx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_select]
nop
test eax, eax
js 0x140156b13
mov eax, dword [rsi]
test eax, eax
js 0x140156b13
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
nop
test eax, eax
js 0x140156b13
cmp dword [rsp + 0x34], 0
jne 0x140156b13
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
nop
xor ebx, ebx
test eax, eax
setne bl
jmp 0x140156b18
mov ebx, 0xffffffff
cmp byte [rsp + 0x48], 0
je 0x140156b29
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14010a310
nop
add rsp, 0x490
pop rdi
pop rsi
pop rbx
ret

Function at 0x140156b50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x30], r9
mov r12d, r8d
mov rax, rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x28], rcx
mov r15, qword [rsp + 0xc8]
xor ebx, ebx
test r8d, r8d
jle 0x140156c3a
mov ecx, 0xffffffff
movzx r13d, byte [rsp + 0xc0]
nop word [rax + rax]
mov edi, ecx
movsxd rbp, ebx
add rbp, rax
mov r14d, r12d
sub r14d, ebx
mov qword [rsp + 0x48], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
nop
test eax, eax
setne sil
mov byte [rsp + 0x50], sil
test sil, sil
je 0x140156bf4
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
nop
mov edi, eax
test sil, sil
je 0x140156c03
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test edi, edi
jle 0x140156c2b
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rax]
test cl, cl
je 0x140156c2b
add ebx, edi
test r13b, r13b
je 0x140156c3a
cmp ebx, r12d
mov rax, qword [rsp + 0x38]
mov ecx, 0xffffffff
jl 0x140156bb0
jmp 0x140156c3a
test ebx, ebx
jne 0x140156c3a
test r13b, r13b
mov eax, 0xffffffff
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140156d70
Capabilities:
Set socket configuration

Disassembly:
mov byte [rsp + 0x18], r8b
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
test rcx, rcx
je 0x140156e1a
mov dword [rsp + 0x60], 0x10000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
test eax, eax
jne 0x140156e1a
mov dword [rsp + 0x60], 0x10000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
test eax, eax
jne 0x140156e1a
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
lea edx, [rax + 6]
lea r8d, [rax + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
test eax, eax
jne 0x140156e1a
mov al, 1
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x14015b580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, rcx
cmp byte [rax], 0
je 0x14015b5e0
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015b5e0
mov ebx, 4
nop word [rax + rax]
lea rdx, [rdi + 8]
mov rcx, rdi
call fcn.14015e980
test al, al
jne 0x14015b5f2
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x14015b5c0
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov al, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14015c070
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
xor eax, eax
test rcx, rcx
je 0x14015c0e9
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14015c0e5
lea rcx, [rsp + 0x68]
call fcn.140137280
nop
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402be068]
cmp rcx, rax
je 0x14015c0e5
mov eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015c0e5
call fcn.14010a370
mov eax, dword [rsp + 0x50]
add qword [rbx + 0x18], rax
add rsp, 0x40
pop rbx
ret
Function at 0x14015d020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rsi, rdx
mov r14, rcx
mov dword [rax - 0x38], 0
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x14015d12a
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015d12a
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.14015e860
mov rdi, rax
lea rdx, [rsp + 0x88]
mov rcx, r14
call fcn.14015cf90
mov rbx, rax
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14015e770
nop
mov byte [rsp + 0x20], 1
mov r9, rbx
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.14015d170
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff0
lea rdi, [0x1402be068]
mov ebx, 0xffffffff
cmp rcx, rdi
je 0x14015d0ec
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015d0ec
call fcn.14010a370
nop
mov rcx, qword [rsp + 0x88]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14015d10d
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x14015d10d
call fcn.14010a370
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x14015d151
lock xadd dword [rcx], ebx
test ebx, ebx
jne 0x14015d151
call fcn.14010a370
jmp 0x14015d151
mov rax, qword [r14]
mov qword [rsi], rax
lea rcx, [rax - 0x10]
lea rdi, [0x1402be068]
cmp rcx, rdi
je 0x14015d149
mov eax, 1
lock xadd dword [rcx], eax
mov dword [rsp + 0x30], 1
mov rax, rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14015e980
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rsi, rdx
mov rbx, qword [rdx]
mov rdi, rcx
cmp rbx, rax
je 0x14015ea2c
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rbx
call fcn.14001c7b0
test eax, eax
je 0x14015ea2c
cmp byte [rbx], 0
je 0x14015ea36
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015ea36
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140018b20
mov rdx, rsi
lea rcx, [rsp + 0x58]
mov rbx, qword [rax]
call fcn.140018b20
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rdx, rbx
mov qword [rsp + 0x20], rcx
lea r9d, [rcx + 6]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x14015ea24
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
call fcn.1401370e0
mov al, 1
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rbx, qword [rdi]
mov rax, qword [rsi]
cmp rax, rbx
je 0x14015ea2c
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.14001c7b0
test eax, eax
je 0x14015ea2c
cmp byte [rbx], 0
je 0x14015ea1a
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015ea1a
mov rax, qword [rsi]
mov rcx, qword [rdi]
cmp rcx, rax
je 0x14015eab6
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rax
call fcn.14001abc0
test eax, eax
je 0x14015eab6
mov rcx, rsi
call fcn.1401370e0
test al, al
je 0x14015ea1a
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140018b20
mov rdx, rdi
lea rcx, [rsp + 0x58]
mov rbx, qword [rax]
call fcn.140018b20
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret