joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056d94
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x760]
sub rsp, 0x860
xor r13d, r13d
mov rsi, rcx
lea edi, [r13 + 1]
mov r14d, r13d
cmp word [rcx + 0x24], di
jne 0x140056e14
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WSOCK32.DLL_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140056f90
lea rcx, [rsi + 0x30]
lea edx, [rdi + 0x27]
call fcn.140060940
mov r14d, edi
mov dword [rax], edi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rcx, rax
mov rax, qword [rsi + 0x28]
mov qword [0x1400f4260], rax
mov qword [0x1400f4250], rcx
jmp 0x140056f90
xor r9d, r9d
cmp word [rcx + 0x26], r13w
mov rcx, qword [rcx]
mov r8d, 0x800
lea rdx, [rsp + 0x60]
je 0x140056e49
lea rax, [rbp + 0x7a0]
mov dword [rbp + 0x7a0], 0x1c
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
jmp 0x140056e64
lea rax, [rbp + 0x7a8]
mov dword [rbp + 0x7a8], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_recvfrom]
mov r15d, eax
test eax, eax
jle 0x140056f90
mov rbx, qword [rsi + 0x30]
mov r14d, 2
test rbx, rbx
je 0x140056ec5
lea rcx, [rbx + 0x14]
cmp word [rsi + 0x26], r13w
je 0x140056ea2
movsxd r8, dword [rbp + 0x7a0]
lea rdx, [rsp + 0x40]
jmp 0x140056eae
movsxd r8, dword [rbp + 0x7a8]
lea rdx, [rsp + 0x30]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140056ebc
mov rbx, qword [rbx]
jmp 0x140056e84
lea rdi, [rbx + 0x10]
test rbx, rbx
jne 0x140056f0b
lea rcx, [rsi + 0x30]
mov edx, 0x60
call fcn.140060940
mov rdi, rax
mov dword [rax], r14d
mov qword [rax + 0x28], rsi
cmp word [rsi + 0x26], r13w
je 0x140056f01
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 4], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rax + 0x14], xmm1
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x1c], eax
jmp 0x140056f0b
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rax + 4], xmm0
mov r8, qword [rdi + 0x38]
test r8, r8
jne 0x140056f47
mov rcx, qword [0x1400ee4b8]
movsxd rbx, r15d
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x60]
mov r8, rbx
mov rcx, rax
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x40], r15d
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
jmp 0x140056f7e
mov ecx, dword [rdi + 0x40]
mov edx, 8
add ecx, r15d
movsxd r9, ecx
mov rcx, qword [0x1400ee4b8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movsxd rcx, dword [rdi + 0x40]
lea rdx, [rsp + 0x60]
add rcx, rax
movsxd r8, r15d
mov qword [rdi + 0x38], rax
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x40], r15d
mov qword [0x1400f4250], rdi
mov rcx, qword [rsi + 0x28]
mov qword [0x1400f4260], rcx
mov eax, r14d
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140057204
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
xor ebx, ebx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x1400572ae
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x980]
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r9d, r9d
xor r8d, r8d
inc ecx
mov dword [rsp + 0x40], 1
mov qword [rbp + 0x980], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_select]
test eax, eax
js 0x1400572a7
je 0x14005732d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x14005732d
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x1400572a7
cmp dword [rbp + 0x970], ebx
je 0x1400572a7
lea ebx, [rax + 2]
jmp 0x14005732d
mov ebx, 4
jmp 0x14005732d
mov rcx, qword [rcx + 0x30]
lea rax, [rbp + 0x978]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x800
mov dword [rbp + 0x978], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [rbp + 0x970], eax
test eax, eax
jle 0x14005732d
mov rcx, qword [0x1400ee4b8]
movsxd r8, eax
xor edx, edx
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x970]
mov dword [rdi + 0x40], ecx
mov r8, rcx
lea rdx, [rbp + 0x150]
mov rcx, rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
movsxd rax, ebx
add rsp, 0xa50
pop rdi
pop rbx
pop rbp
ret
Function at 0x14005790c
Capabilities:
Set socket configuration

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, 0x30
mov r15d, edx
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x1400eec18]
xor r13d, r13d
mov r12, r9
mov ebp, r8d
mov qword [rsp + 0x28], r13
call fcn.14005fe78
mov rbx, rax
test rax, rax
je 0x140057ade
cmp r15d, 0xffff
ja 0x140057ac7
lea ecx, [r13 + 2]
lea eax, [rcx + 0x15]
bt ebp, 0x1c
jae 0x140057979
mov esi, eax
btr ebp, 0x1c
jmp 0x14005797b
mov esi, ecx
mov eax, 1
test ebp, ebp
mov ecx, esi
cmove ebp, eax
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.WSOCK32.DLL_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140057ac7
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x20], 1
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp eax, 0xffffffff
jle 0x140057ab9
mov eax, 0x17
lea r13, [rbx + 8]
movzx ecx, r15w
cmp esi, eax
je 0x1400579d9
mov eax, 2
mov word [r13], ax
call qword [sym.imp.WSOCK32.DLL_htons]
xor r15d, r15d
mov word [rbx + 0xa], ax
test r12, r12
je 0x140057a37
cmp word [r12], r15w
je 0x140057a37
mov rcx, r12
call fcn.1400ae530
mov r12d, 0x17
mov r15, rax
cmp esi, r12d
jne 0x140057a1e
lea r8, [rbx + 0x10]
mov rdx, rax
mov ecx, r12d
call fcn.14005677c
jmp 0x140057a2a
mov rcx, rax
call qword [sym.imp.WSOCK32.DLL_inet_addr]
mov dword [rbx + 0xc], eax
mov rcx, r15
call fcn.1400ae520
xor r15d, r15d
jmp 0x140057a54
mov r12d, 0x17
cmp esi, r12d
jne 0x140057a50
movups xmm0, xmmword [0x1400bb3e8]
movdqu xmmword [rbx + 0x10], xmm0
jmp 0x140057a59
mov dword [rbx + 0xc], r15d
cmp esi, r12d
jne 0x140057a61
mov r8d, 0x1c
jmp 0x140057a67
mov r8d, 0x10
mov rdx, r13
mov rcx, r14
call qword [sym.imp.WSOCK32.DLL_bind]
test eax, eax
jne 0x140057ab4
cmp ebp, 1
jne 0x140057a8c
lea edx, [rax + 0x64]
mov rcx, r14
call qword [sym.imp.WSOCK32.DLL_listen]
test eax, eax
jne 0x140057ab4
mov eax, r15d
cmp esi, r12d
mov qword [rbx], r14
sete al
cmp rdi, 0xffffffffffffffff
mov word [rbx + 0x24], bp
mov word [rbx + 0x26], ax
mov rax, rdi
mov r13, rbx
cmove rax, rbx
mov qword [rbx + 0x28], rax
jmp 0x140057ac2
mov r13, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.WSOCK32.DLL_closesocket]
test r13, r13
jne 0x140057ade
mov rcx, qword [0x1400eec18]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14005fdac
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140057b28
Capabilities:
Get hostname
Resolve dns

Disassembly:
xor ecx, ecx
jmp 0x140057b28
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
xor ebx, ebx
mov edi, ecx
mov dword [0x1400f4270], ecx
lea rcx, [rsp + 0x20]
mov edx, 0xff
mov dword [0x1400f4280], ebx
mov qword [0x1400f42a8], rbx
mov qword [0x1400f42b0], rbx
call qword [sym.imp.WSOCK32.DLL_gethostname]
test eax, eax
jne 0x140057be6
cmp edi, 0x10000000
jne 0x140057bbc
cmp dword [0x1400eec14], ebx
je 0x140057be6
mov rcx, qword [0x1400eec58]
test rcx, rcx
je 0x140057b90
call qword [0x1400eec28]
mov qword [0x1400eec58], rbx
lea r9, [0x1400eec58]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [0x1400eec20]
test rax, rax
jne 0x140057be6
mov rax, qword [0x1400eec58]
mov qword [0x1400f42b0], rax
jmp 0x140057be1
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.DLL_gethostbyname]
test rax, rax
je 0x140057be6
lea rcx, [0x1400f4290]
mov r8d, 0x20
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov ebx, 1
movsxd rax, ebx
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret

Function at 0x140057ca8
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10d, r8d
mov r11, rdx
jne 0x140057cc6
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_send]
jmp 0x140057d04
cmp byte [rcx + 0x20], 0
lea r8, [rcx + 4]
mov edx, 0x1c
jne 0x140057cda
mov edx, 0x10
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140057ce8
mov rcx, qword [rax]
jmp 0x140057cec
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WSOCK32.DLL_sendto]
cdqe
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x140057d6d
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
jmp 0x140057db5
cmp qword [rcx + 0x38], rsi
je 0x140057db5
cmp r8d, dword [rcx + 0x40]
mov rdx, qword [rcx + 0x48]
mov esi, r8d
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x140057db5
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x1400ee4b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140057f04
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, r8
movsxd rdi, ecx
cmp edx, 0xffffffff
jne 0x140057f3a
lea r8, [rax + 0x10]
mov rcx, rdi
mov edx, 0x4004667f
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x140057f7d
mov r8d, edx
mov rcx, rdi
mov r9d, 2
mov rdx, rsi
call qword [sym.imp.WSOCK32.DLL_recv]
cmp eax, 0xffffffff
jne 0x140057f71
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
add eax, 0xffffd8bb
and eax, 0xfffffffa
neg eax
sbb ebx, ebx
not ebx
and ebx, 0xfffffffe
jmp 0x140057f7d
mov ecx, 0xfffffffe
test eax, eax
cmove eax, ecx
mov ebx, eax
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140057fd4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1400eec60], 0
jne 0x14005803a
lea rcx, [0x1400eec60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140058026
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1400eec68]
imul qword [0x1400eec60]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1400eec60], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1400eec60], 0
jne 0x14005803a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140058060
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1400eec68]
cqo
idiv qword [0x1400eec60]
add rsp, 0x28
ret

Function at 0x14005810c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov edx, ecx
mov ebx, 0x10
mov ecx, ebx
call fcn.140061470
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140058149
sub ebx, dword [rsp + 0x38]
mov ecx, ebx
call fcn.1400616d0
jmp 0x140058150
mov ecx, edi
call fcn.140061690
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400581ac
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 0x400
call fcn.140061470
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x400
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_GetUserNameW]
test eax, eax
je 0x1400581ea
mov ecx, 0x401
sub ecx, dword [rsp + 0x38]
call fcn.1400616d0
jmp 0x1400581f1
mov ecx, ebx
call fcn.140061690
add rsp, 0x20
pop rbx
ret
Function at 0x14005825c
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x288]
sub rsp, 0x380
lea rcx, [rbp + 0x40]
mov ebx, 0xc8
xor r14d, r14d
xor edi, edi
mov dword [rbp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140058423
mov eax, dword [rbp + 0x50]
dec eax
je 0x140058401
dec eax
jne 0x140058423
lea r8d, [rbx + 0x54]
lea rcx, [rsp + 0x20]
xor edx, edx
xor esi, esi
call sub.msvcrt.dll_memset
lea rcx, [0x1400bb758]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140058305
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140058305
lea rcx, [rsp + 0x20]
call rax
xor ecx, ecx
test eax, eax
sete cl
jmp 0x140058307
xor ecx, ecx
test ecx, ecx
je 0x140058322
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov eax, 1
cmp byte [rbp + 0x3a], al
jne 0x140058352
mov esi, eax
jmp 0x140058352
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140058352
mov r14d, dword [rbp + 0x44]
mov edi, dword [rbp + 0x48]
mov eax, 1
cmp byte [rbp + 0x27a], al
cmove esi, eax
sub r14d, 3
je 0x1400583fa
dec r14d
je 0x1400583f3
dec r14d
je 0x1400583cd
dec r14d
je 0x140058389
cmp r14d, 4
jne 0x140058423
test edi, edi
jne 0x140058423
lea ebx, [rdi + 0x6e]
jmp 0x140058423
test edi, edi
je 0x1400583c1
dec edi
je 0x1400583b5
dec edi
je 0x1400583a9
dec edi
jne 0x140058423
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x69
jmp 0x140058423
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x140058423
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x140058423
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x140058423
test edi, edi
je 0x1400583ec
dec edi
je 0x1400583e5
dec edi
jne 0x140058423
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x140058423
mov ebx, 0x3c
jmp 0x140058423
mov ebx, 0x32
jmp 0x140058423
mov ebx, 0x14
jmp 0x140058423
mov ebx, 5
jmp 0x140058423
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x14005841e
cmp eax, 0xa
je 0x140058417
cmp eax, 0x5a
jne 0x140058423
lea ebx, [rax - 0x32]
jmp 0x140058423
mov ebx, 0x1e
jmp 0x140058423
mov ebx, 0xa
lea r11, [rsp + 0x380]
movsxd rax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400584ac
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x90
xor edx, edx
mov ebx, ecx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
cmp ebx, 6
jne 0x1400584dd
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
jmp 0x14005853b
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140058539
test ebx, ebx
je 0x140058532
dec ebx
je 0x14005852b
dec ebx
je 0x140058524
dec ebx
je 0x14005851a
dec ebx
je 0x140058513
dec ebx
jne 0x140058539
mov rax, qword [rsp + 0x70]
jmp 0x14005853b
mov rax, qword [rsp + 0x68]
jmp 0x14005853b
mov rax, qword [rsp + 0x80]
jmp 0x14005853b
mov rax, qword [rsp + 0x78]
jmp 0x14005853b
mov rax, qword [rsp + 0x60]
jmp 0x14005853b
mov rax, qword [rsp + 0x58]
jmp 0x14005853b
xor eax, eax
add rsp, 0x90
pop rbx
ret

Function at 0x140058b2c
Capabilities:
Check if file exists

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 rax, qword [0x1400eec78]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
test rax, rax
jne 0x140058b7e
lea r8, [fcn.140058ca0]
lea edx, [rax + 0x10]
mov ecx, 0x260
call fcn.14005ff40
mov qword [0x1400eec78], rax
mov rdx, rdi
mov rcx, rax
call fcn.14005fe78
mov rbx, rax
test rax, rax
je 0x140058c7f
test r15, r15
lea rbp, [0x1400baae8]
cmovne rbp, r15
test rsi, rsi
je 0x140058bae
cmp word [rsi], r13w
jne 0x140058bb5
lea rsi, [0x1400bb9a0]
mov rcx, rbp
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x1400ee4b8]
add eax, 2
xor edx, edx
add eax, r12d
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140058c68
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_wcscpy
test r12d, r12d
je 0x140058c15
movsxd rax, r12d
cmp word [rbp + rax*2 - 2], 0x5c
je 0x140058c15
lea rdx, [0x1400bb9a8]
mov rcx, r15
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0xc]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140058c3c
mov dword [rbx + 8], r13d
jmp 0x140058c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140058c51
mov dword [rbx + 8], 1
mov r14, rbx
mov rcx, qword [0x1400ee4b8]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
jne 0x140058c7f
mov rcx, qword [0x1400eec78]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14005fdac
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140058d40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140061470
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x140058d89
lea ecx, [rbp + 0x5c]
cmp word [rdi + rbx*2 - 2], cx
je 0x140058d89
mov word [rdi + rbx*2], cx
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.1400616d0
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rdi + rax*2], bp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140058e70
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140058fd2
cmp word [rcx], di
je 0x140058fd2
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140058f0f
cmp word [rsp + 0x22], 0x3a
jne 0x140058f0f
cmp edx, 2
jne 0x140058ef6
lea rdx, [0x1400bb9a8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140058fd2
jmp 0x140058faa
cmp word [rcx], 0x5c
je 0x140058f1b
cmp word [rcx], 0x2f
jne 0x140058f24
mov word [rcx], di
sub rcx, 2
jmp 0x140058f0f
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140058f6b
test byte [rbp + 0x130], 0x10
je 0x140058f50
mov rbx, 0xfffffffffffffffe
jmp 0x140058f63
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140058fd2
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140058f80
cmp ax, cx
je 0x140058f96
cmp cx, 0x2f
jne 0x140058f8b
cmp ax, cx
je 0x140058f96
cmp cx, 0x2e
jne 0x140058fd2
cmp ax, cx
jne 0x140058fd2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140058fb3
test al, 0x10
je 0x140058fd2
mov rbx, 0xfffffffffffffffe
jmp 0x140058fd2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140058fec
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140059076
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140059062
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140059062
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140059062
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140059034
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140059078
xor eax, eax
add rsp, 0x230
pop rbx
ret
Function at 0x1400594cc
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400594e7
test rdx, rdx
je 0x1400594e7
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400594e9
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400595cc
Capabilities:
Timestomp file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
movsxd rbx, r8d
mov r14d, edx
test rcx, rcx
je 0x1400596ce
mov qword [rax - 0x38], rdi
lea r8d, [rdi + 3]
mov dword [rax - 0x40], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400596ce
mov rcx, rbx
call fcn.14005c47c
mov rcx, rbx
mov word [rbp - 0x10], ax
call fcn.14005c4b8
mov rcx, rbx
mov word [rbp - 0xe], ax
call fcn.14005c4f0
mov rcx, rbx
mov word [rbp - 0xc], ax
call fcn.14005c528
mov rcx, rbx
mov word [rbp - 0xa], ax
call fcn.14005c560
mov rcx, rbx
mov word [rbp - 8], ax
call fcn.14005c598
mov rcx, rbx
mov word [rbp - 6], ax
call fcn.14005c5d0
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x10]
mov word [rbp - 2], di
mov word [rbp - 4], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov r8d, edi
mov r9d, edi
cmp r14d, 1
jne 0x1400596a7
lea r8, [rbp + 0x20]
jmp 0x1400596b7
cmp r14d, 2
jne 0x1400596b3
lea r9, [rbp + 0x20]
jmp 0x1400596b7
lea rdi, [rbp + 0x20]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x50]
movsxd rax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400596e8
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140059700
test rdx, rdx
je 0x140059700
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cdqe
jmp 0x140059702
xor eax, eax
add rsp, 0x28
ret

Function at 0x140059710
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14005973b
test dl, 2
je 0x14005972e
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14005973d
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14005a6e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14005a724
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret