joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800045e0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12d, 2
movzx r14d, r8w
mov r15, rdx
mov rbp, rcx
xor esi, esi
mov edx, r12d
mov ecx, r12d
lea r8d, [rsi + 0x11]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0xb0], rax
cmp rax, 0xffffffffffffffff
je 0x1800047bf
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
lea r9d, [rsi + 4]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov rcx, rax
mov edx, 0x9800000c
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, r15
mov qword [rbp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.18001de28
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], sil
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.18001ddb8
mov rdi, qword [rsp + 0x70]
test rbx, rbx
je 0x1800047bf
movzx ecx, r14w
mov word [rsp + 0x58], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbp + 0xb8]
lea r8d, [rsi + 0x30]
mov word [rsp + 0x5a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rbp + 0xb0]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1800047bb
mov rcx, qword [rbp + 0xb0]
lea r8d, [rsi + 0x10]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1800047b6
cmp eax, 0xffffffff
jne 0x1800047bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800047bb
mov esi, 1
mov eax, esi
jmp 0x1800047c1
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x78
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004d00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
nop dword [rax]
mov rdx, qword [rbx + 0xf8]
xor r9d, r9d
mov rcx, qword [rbx + 0xb0]
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x180004d86
cmp eax, 0x10
je 0x180004db4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbx + 0x29c]
lea rcx, [rbx + 0x2c0]
mov rdx, qword [rbx + 0xf8]
cmp edi, 0x18
jl 0x180004d6e
mov r9, qword [rbx + 0x2a8]
mov r8d, edi
mov dword [rsp + 0x20], eax
call fcn.1800061c0
jmp 0x180004d7c
cmp edi, 0xc
jne 0x180004e04
call fcn.180006450
cmp eax, 2
jne 0x180004d10
jmp 0x180004e0f
cmp edi, 0xffffffff
jne 0x180004d10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180004e50
cmp eax, 0x2744
je 0x180004d10
cmp eax, 0x2746
je 0x180004d10
jmp 0x180004e1f
mov rcx, qword [rbx + 0xf8]
mov rax, qword [rcx]
cmp rax, qword [0x1800531f0]
jne 0x180004dfc
mov rax, qword [rcx + 8]
cmp rax, qword [0x1800531f8]
jne 0x180004dfc
xor eax, eax
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xac], eax
mov qword [rbx + 0xa4], 5
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], 4
mov dword [rbx + 0xa8], eax
xor eax, eax
mov dword [rbx + 0xac], 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180004e60
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x40], rbp
lea rbx, [rcx + 0x210]
mov qword [rsp + 0x48], rsi
mov rdi, rcx
xor r15d, r15d
nop word [rax + rax]
mov eax, dword [rdi + 0x270]
test eax, eax
jle 0x180004fc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rdi + 0x240]
cmp rsi, qword [rdi + 0x248]
je 0x180004ecd
mov rax, qword [rsi + 8]
mov qword [rdi + 0x240], rax
mov qword [rax + 0x10], r15
test rsi, rsi
je 0x180004eee
jmp 0x180004ee0
test rsi, rsi
je 0x180004eee
mov qword [rdi + 0x240], r15
mov qword [rdi + 0x248], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
dec dword [rdi + 0x238]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x180004fc7
mov r8d, dword [rsi + 0x30]
xor r9d, r9d
sub r8d, dword [rsi + 0x28]
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x180004f56
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [rdi + 0x270]
sub ecx, ebp
mov dword [rdi + 0x270], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, rsi
lea rcx, [rdi + 0x110]
call fcn.180001d80
jmp 0x180004e90
cmp ebp, 0xffffffff
je 0x180004f6f
mov rdx, rsi
lea rcx, [rdi + 0x110]
call fcn.180001d80
jmp 0x180004e90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180004fe5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x240]
test rax, rax
je 0x180004fa2
mov qword [rax + 0x10], rsi
mov rax, qword [rdi + 0x240]
mov qword [rsi + 8], rax
jmp 0x180004fb1
mov qword [rsi + 0x10], r15
mov qword [rsi + 8], r15
mov qword [rdi + 0x248], rsi
inc dword [rdi + 0x238]
mov rcx, rbx
mov qword [rdi + 0x240], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rdx, rsi
mov dword [rdi + 0xa0], 1
lea rcx, [rdi + 0x110]
mov dword [rdi + 0xa4], 3
mov dword [rdi + 0xa8], eax
mov dword [rdi + 0xac], 1
call fcn.180001d80
xor eax, eax
jmp 0x180004fcc
Function at 0x180009fb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.1800242a8
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x18000a12d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rbx, rdi
mov qword [rsp + 0x20], rbx
cmp word [rdi], 0x5c
jne 0x18000a079
cmp word [rdi + 2], 0x5c
jne 0x18000a079
lea rbx, [rdi + 2]
mov qword [rsp + 0x20], rbx
add rbx, 2
mov qword [rsp + 0x20], rbx
movzx eax, word [rbx]
test ax, ax
je 0x18000a051
cmp ax, 0x5c
je 0x18000a043
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
mov qword [rsp + 0x20], rax
jmp 0x18000a022
test ax, ax
je 0x18000a051
add rbx, 2
mov qword [rsp + 0x20], rbx
movzx eax, word [rbx]
test ax, ax
je 0x18000a0a1
cmp ax, 0x5c
je 0x18000a072
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
mov qword [rsp + 0x20], rax
jmp 0x18000a051
test ax, ax
je 0x18000a0a1
jmp 0x18000a098
cmp word [rdi + 2], 0x3a
jne 0x18000a0a1
lea rbx, [rdi + 2]
mov qword [rsp + 0x20], rbx
add rbx, 2
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0x5c
jne 0x18000a0a1
add rbx, 2
mov qword [rsp + 0x20], rbx
xor r14d, r14d
lea esi, [r14 + 0x5c]
movzx eax, word [rbx]
test ax, ax
je 0x18000a115
cmp ax, si
jne 0x18000a102
mov word [rbx], r14w
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000a0ef
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000a0ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18000a0ff
mov rcx, rdi
call fcn.180023fe8
xor al, al
jmp 0x18000a12d
test al, 0x10
jne 0x18000a0ff
mov rcx, rdi
call fcn.180023fe8
xor al, al
jmp 0x18000a12d
mov word [rbx], si
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
mov qword [rsp + 0x20], rax
jmp 0x18000a0a8
mov rcx, rdi
call fcn.180023fe8
mov al, 1
jmp 0x18000a12d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x18000a150
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movdqa xmm0, xmmword [0x1800541a0]
lea rcx, [rbp - 0x31]
movdqu xmmword [rbp - 1], xmm0
mov dword [rbp - 0x31], 0x4e52454b
mov dword [rbp - 0x2d], 0x32334c45
mov dword [rbp - 0x29], 0x6c6c642e
mov byte [rbp - 0x25], 0
mov dword [rbp + 0xf], 0x53656c6f
mov dword [rbp + 0x13], 0x69737365
mov dword [rbp + 0x17], 0x64496e6f
mov byte [rbp + 0x1b], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a1d1
lea rcx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x18000a1d1
xor edi, edi
jmp 0x18000a1e1
lea rdx, [rbp - 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
movdqa xmm0, xmmword [0x180054190]
lea rcx, [rbp - 0x21]
movdqu xmmword [rbp + 0x37], xmm0
mov qword [rsp + 0xc0], rbx
mov dword [rbp - 0x21], 0x41535457
mov dword [rbp - 0x1d], 0x32334950
mov dword [rbp - 0x19], 0x6c6c642e
mov byte [rbp - 0x15], 0
mov word [rbp + 0x47], WSASetLastError
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a237
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x18000a237
xor ebx, ebx
jmp 0x18000a247
lea rdx, [rbp + 0x37]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
movdqa xmm0, xmmword [0x180054180]
lea rcx, [rbp - 0x11]
movdqu xmmword [rbp + 0x1f], xmm0
mov dword [rbp - 0x11], 0x41564441
mov dword [rbp - 0xd], 0x32334950
mov dword [rbp - 9], 0x6c6c642e
mov byte [rbp - 5], 0
mov dword [rbp + 0x2f], 0x556e4f64
mov dword [rbp + 0x33], 0x726573
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18000a299
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x18000a2a6
lea rdx, [rbp + 0x1f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x39], 0
test rdi, rdi
je 0x18000a2d1
test rbx, rbx
je 0x18000a2d1
test rax, rax
je 0x18000a2d1
call rdi
lea rdx, [rbp - 0x39]
mov ecx, eax
call rbx
test eax, eax
je 0x18000a2d1
mov rax, qword [rbp - 0x39]
jmp 0x18000a2d3
xor eax, eax
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.18001d7b0
mov rdi, qword [rsp + 0xc8]
add rsp, 0xb0
pop rbp
ret
Function at 0x18000a630
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b8]
sub rsp, 0x4b8
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r13, rcx
mov dword [rcx + 0x54], 0x22
mov rcx, rdx
mov rbx, rdx
mov r14d, 0x2800
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
lea rcx, [0x180053be8]
xor r12d, r12d
lea r9, [0x180053bd0]
mov r8, rbx
movzx eax, word [rbx + rdx*2 - 2]
lea rdx, [rbp + 0x180]
cmp ax, 0x5c
mov dword [rbp + 0x180], 0x730025
mov dword [rbp + 0x184], 0x730025
cmove r9, rcx
mov dword [rbp + 0x188], 0x2e002a
lea rcx, [rbp + 0x190]
mov dword [rbp + 0x18c], 0x2a
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18000a71d
mov byte [rsp + 0x20], 0x21
cmp dword [r13 + 0x18], r12d
jne 0x18000a842
mov rcx, qword [r13 + 8]
lea r8d, [r12 + 1]
lea rdx, [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r12d, eax
jmp 0x18000a842
mov rdx, r14
mov qword [rsp + 0x500], rsi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, 1
mov qword [rsp + 0x4b0], rdi
mov rsi, rax
mov byte [rax], 0x21
nop word [rax + rax]
lea ecx, [r14 - 0x208]
cmp ebx, ecx
jbe 0x18000a777
add r14d, 0x208
mov r8d, 0x42
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rsi, rax
movzx ecx, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5e]
cmp cx, 0x2e
jne 0x18000a79e
test ax, ax
je 0x18000a7f1
cmp cx, cx
jne 0x18000a79e
cmp ax, cx
jne 0x18000a79e
cmp word [rsp + 0x60], r12w
je 0x18000a7f1
movzx ecx, byte [rsp + 0x30]
mov eax, ebx
and cl, 0x10
inc ebx
mov byte [rax + rsi], cl
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
lea rdx, [rsp + 0x5c]
add rcx, rsi
lea edi, [rax*2 + 2]
movsxd r8, edi
call fcn.18001fe80
mov eax, dword [rsp + 0x4c]
add ebx, edi
mov dword [rbx + rsi], eax
mov eax, dword [rsp + 0x50]
mov dword [rbx + rsi + 4], eax
add ebx, 8
mov rax, qword [rsp + 0x44]
mov qword [rbx + rsi], rax
add ebx, 8
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000a750
mov rdi, qword [rsp + 0x4b0]
cmp dword [r13 + 0x18], r12d
jne 0x18000a828
mov rcx, qword [r13 + 8]
mov r8d, ebx
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r12d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x500]
mov eax, r12d
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.18001d7b0
add rsp, 0x4b8
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret
Function at 0x18000a870
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.180020550
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
lea rsi, [0x180053bd0]
lea rax, [0x180053be8]
mov r8, rbx
lea rcx, [rbp + 0x3b0]
cmp word [rbx + rdx*2 - 2], 0x5c
lea rdx, [rbp + 0x190]
mov dword [rbp + 0x190], 0x730025
cmove rsi, rax
mov dword [rbp + 0x194], 0x730025
mov r9, rsi
mov dword [rbp + 0x198], 0x2e002a
mov dword [rbp + 0x19c], 0x2a
xor r13d, r13d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18000aa1f
mov dword [rbp + 0x180], 0x730025
mov dword [rbp + 0x184], 0x730025
mov dword [rbp + 0x188], 0x730025
mov word [rbp + 0x18c], r13w
cmp word [rsp + 0x5c], 0x2e
je 0x18000a9ef
test byte [rsp + 0x30], 0x10
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x180]
mov r9, rsi
lea rcx, [rbp + 0x1a0]
mov r8, rbx
je 0x18000a9ac
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x1a0]
mov rcx, rdi
call fcn.18000a870
jmp 0x18000a9ef
call qword [sym.imp.USER32.dll_wsprintfW]
test byte [rsp + 0x30], 1
je 0x18000a9cb
mov edx, 0x80
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [rdi + 0x278], r13b
je 0x18000a9e2
lea rdx, [rbp + 0x1a0]
call fcn.18000bd00
jmp 0x18000a9ef
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000a968
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x18000aa1f
mov al, 1
jmp 0x18000aa21
xor al, al
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.18001d7b0
mov rbx, qword [rsp + 0x720]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000aa50
Capabilities:
Get file size

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
mov r12, rdx
mov rbp, rcx
xor edx, edx
add rcx, 0x68
mov r8d, 0x208
call fcn.180020550
mov r8, r12
lea rcx, [rbp + 0x68]
mov edx, 0x104
call fcn.180027000
mov rcx, qword [rbp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x18000aaa4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, r12
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbp + 0x58], rax
lea rdx, [rsp + 0x70]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, r12
mov edi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [r15 + 0x40]
lea r13d, [rax*2 + 0xb]
movsxd rbx, r13d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r14, rax
call fcn.180020550
mov byte [r14], 0x23
cmp rsi, 0xffffffffffffffff
mov eax, dword [rsp + 0x70]
mov rcx, r12
mov dword [r14 + 1], eax
mov eax, r15d
setne al
mov dword [r14 + 5], edi
mov dword [r14 + 9], eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [r14 + 9]
mov rdx, r12
inc eax
movsxd r8, eax
add r8, r8
call fcn.18001fe80
cmp dword [rbp + 0x18], r15d
jne 0x18000ab6d
mov rcx, qword [rbp + 8]
mov r8d, r13d
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r15d, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x40]
mov eax, r15d
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 0x18000aca0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rsi, rdx
mov r15, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.180020550
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rax, [0x180053be8]
lea r14, [0x180053bd0]
cmp word [rsi + r8*2 - 2], 0x5c
cmove r14, rax
mov dword [rbp + 0x1c0], 0x730025
mov dword [rbp + 0x1c4], 0x730025
mov dword [rbp + 0x1c8], 0x2e002a
mov dword [rbp + 0x1cc], 0x2a
xor r13d, r13d
mov r9, r14
mov r8, rsi
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x18000ad76
xor al, al
jmp 0x18000aeba
mov dword [rbp + 0x1b0], 0x730025
mov dword [rbp + 0x1b4], 0x730025
mov dword [rbp + 0x1b8], 0x730025
mov word [rbp + 0x1bc], r13w
nop dword [rax]
cmp word [rbp - 0x74], 0x2e
je 0x18000ae99
lea rax, [rbp - 0x74]
mov r9, r14
mov r8, rsi
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
test byte [rsp + 0x60], 0x10
je 0x18000ade9
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x1d0]
mov rcx, r15
call fcn.18000aca0
jmp 0x18000ae99
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
lea rax, [rbp + 0x1d0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18000ae20
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x40]
call fcn.18000f260
nop
lea rbx, [r15 + 0x40]
mov rdi, qword [rbx]
movabs rax, 0x555555555555555
cmp qword [rbx + 8], rax
je 0x18000aee4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r13
mov ecx, gethostbyname
call fcn.18001ddec
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm1
inc qword [rbx + 8]
mov rcx, qword [rdi + 8]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov qword [rsp + 0x38], r13
mov qword [rdi + 8], rax
mov qword [rcx], rax
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000ada0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.18001d7b0
mov rbx, qword [rsp + 0x750]
add rsp, 0x700
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_too_long
call fcn.18001c2c0
int3
Function at 0x18000b890
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x18005d060]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rdx
mov r8, rdx
mov edx, 0x208
lea rcx, [rsp + 0x70]
call fcn.180027a94
lea r8, [0x180053ccc]
mov edx, 0x208
lea rcx, [rsp + 0x70]
call fcn.180027e4c
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], setsockopt
mov byte [rsp + 0x48], sil
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x18000b914
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000f400
nop
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], setsockopt
mov byte [rsp + 0x28], 0
inc rbx
cmp byte [rdi + rbx], 0
jne 0x18000b945
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.18000f400
nop
mov rax, qword [0x180060400]
test rax, rax
jne 0x18000b989
lea ecx, [rax + 0x18]
call fcn.18001ddec
mov qword [rsp + 0x20], rax
mov byte [rax], 0x64
mov qword [rax + 8], rsi
mov dword [rax + 0x10], esi
mov qword [0x180060400], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.180017040
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x18000b9d9
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000b9d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000ba69
call fcn.18001ddb8
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], setsockopt
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18000ba25
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ba20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000ba63
call fcn.18001ddb8
mov rcx, rdi
call fcn.180027934
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.18001d7b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.180024230
nop
call fcn.180024230
nop
int3