joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002cda0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1340]
mov eax, 0x1440
call fcn.140072e70
sub rsp, rax
mov rdi, r8
mov rsi, rdx
mov rcx, qword [rcx]
call fcn.14002b730
test al, al
jne 0x14002cf66
movdqa xmm0, xmmword [0x1400a4570]
movdqu xmmword [rsp + 0x38], xmm0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x14002ce08
mov rdi, qword [rdi]
lea r9, [rbp + 0x1350]
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14002cf26
mov rax, qword [rbp + 0x1350]
test rax, rax
je 0x14002ce3f
inc rbx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14002ce33
call fcn.14004fef8
mov r8d, 0xffffffff
mov dword [rbp + 0x1334], r8d
mov dword [rbp - 0x4c], eax
mov edx, 1
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x4c], eax
inc rdx
cmp rdx, 0x270
jb 0x14002ce60
mov dword [rbp - 0x50], 0x270
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
dec rcx
shr rax, 1
cmp rax, r8
ja 0x14002cea0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x20]
test rbx, rbx
jne 0x14002cec6
call fcn.14002cb90
jmp 0x14002cece
mov rdx, rbx
call fcn.14002c930
mov rbx, qword [rbp + 0x1350]
test rax, rax
je 0x14002ceea
nop word [rax + rax]
mov rbx, qword [rbx + 0x28]
sub rax, 1
jne 0x14002cee0
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edx, eax
mov rcx, rsi
call fcn.14002dd10
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rsi
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14002d900
nop
mov r8, rax
lea rdx, str.Ipv4Resolver::resolve__getaddrinfo_failed_
lea rcx, [rbp - 0x78]
call fcn.140016940
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140016e50
lea rdx, [0x1400ce4d0]
lea rcx, [rsp + 0x20]
call fcn.140073a4c
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.14002bcc0
lea rdx, [0x1400cefc8]
lea rcx, [rsp + 0x20]
call fcn.140073a4c
int3
Function at 0x140068e80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140052dca
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140052dad
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140052d98

Function at 0x140086d10
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140086b3c
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x141088160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410882e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141088191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141088177
add dl, dl
jne 0x14108819e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410881fe
xor eax, eax
add dl, dl
jne 0x1410881ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410882b5
add dl, dl
jne 0x1410881be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410881cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410881d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410881e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410881f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141088186
mov eax, 1
add dl, dl
jne 0x14108820e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108821b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141088203
sub eax, ebx
mov ebx, 1
jne 0x141088254
mov ecx, 1
add dl, dl
jne 0x141088236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141088243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108822b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141088186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141088270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108827d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141088265
cmp eax, 0x7d00
jae 0x1410882a3
cmp eax, 0x500
jb 0x14108829e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141088186
cmp eax, 0x7f
ja 0x1410882a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141088186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410882da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141088186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400023cc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rdi, rcx
test rcx, rcx
je 0x1400025d3
cmp word [rcx], r15w
je 0x1400025d3
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002410
test al, 0x10
jne 0x1400024e9
cmp word [rdi + 2], 0x3a
mov rsi, r15
mov r14, r15
mov ebp, r15d
mov edx, 0x5c
jne 0x14000242f
cmp word [rdi + 4], dx
je 0x1400024d2
cmp word [rdi], dx
jne 0x1400024d2
cmp word [rdi + 2], dx
jne 0x1400024d2
lea rcx, [rdi + 4]
cmp word [rcx], 0x3f
jne 0x1400024a4
cmp word [rdi + 6], r15w
je 0x1400024a4
lea rax, [rdi + 8]
cmp word [rax], r15w
je 0x1400024a4
cmp word [rdi + 0xa], 0x3a
jne 0x140002469
mov rsi, rax
jmp 0x1400024d5
cmp word [rax], 0x55
jne 0x1400024d5
cmp word [rdi + 0xa], 0x4e
jne 0x1400024d5
cmp word [rdi + 0xc], 0x43
jne 0x1400024d5
cmp word [rdi + 0xe], dx
jne 0x1400024d5
cmp word [rdi + 0x10], dx
jne 0x1400024d5
lea rcx, [rdi + 0x12]
call fcn.140015b90
mov rsi, rax
test rax, rax
je 0x1400025d3
add rsi, 2
jmp 0x1400024d5
call fcn.140015b90
mov rsi, rax
test rax, rax
je 0x1400025d3
add rsi, 2
mov rbp, rsi
sub rbp, rdi
sar rbp, 1
lea eax, [rbp + 4]
movsxd rcx, eax
call fcn.1400196ac
mov r14, rax
jmp 0x1400024d5
mov rsi, rdi
cmp word [rsi + 2], r15w
jne 0x1400024f3
test r14, r14
je 0x1400024e9
mov rcx, r14
call fcn.140019698
mov eax, 1
jmp 0x1400025d5
mov rcx, rdi
mov qword [rsp + 0x40], r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
lea ebx, [rax + rax]
call fcn.140019100
lea ecx, [rbx + 4]
mov rsi, rax
movsxd rcx, ecx
call fcn.1400196ac
lea rdx, [0x140031800]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call fcn.14000269c
test ebp, ebp
je 0x14000255a
test r14, r14
je 0x14000255a
lea ecx, [rbp + 1]
movsxd r9, ebp
movsxd rdx, ecx
mov r8, rdi
mov rcx, rbx
call fcn.140018f28
mov rcx, r14
call fcn.140019698
lea rdi, [0x140031804]
mov rcx, rsi
jmp 0x1400025a1
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002590
test al, 0x10
jne 0x14000259f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400025c3
xor ecx, ecx
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.1400190c8
test rax, rax
jne 0x140002566
mov rcx, rsi
call fcn.140019698
mov rcx, rbx
jmp 0x1400024e4
mov rcx, rsi
call fcn.140019698
mov rcx, rbx
call fcn.140019698
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400027b8
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140014cc0
sub rsp, rax
mov r9, rcx
lea r8d, [rax - 0x20]
xor ebx, ebx
lea rcx, [rsp + 0x20]
lea edi, [rbx + 1]
mov edx, edi
call fcn.14001a2f0
mov rdx, rax
cmp eax, 0x200
jl 0x140002876
mov eax, 0x5a4d
cmp word [rsp + 0x20], ax
jne 0x140002876
mov rcx, qword [rsp + 0x5c]
test ecx, ecx
jle 0x140002876
lea eax, [rdx - 0x148]
cmp ecx, eax
jge 0x140002876
movsxd rax, ecx
lea rcx, [rsp + 0x20]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002876
movzx eax, word [rcx + 0x14]
lea r8, [rcx + 0x18]
movzx r10d, word [rcx + 6]
add r8, rax
lea rax, [rsp + 0x20]
movzx r9d, di
sub eax, r8d
add edx, eax
sub edx, 0x28
test edx, edx
jle 0x140002868
mov eax, dword [r8 + 0x24]
lea ecx, [rdi + r9]
and eax, 0x40000040
cmove cx, r9w
add r8, 0x28
movzx r9d, cx
cmp cx, r10w
jb 0x140002841
cmp r9w, r10w
jne 0x140002876
mov ebx, dword [r8 + 0x14]
add ebx, dword [r8 + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret
Function at 0x140002c6c
Capabilities:
Hide graphical window
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x660
mov r14, rcx
mov r13d, 0x10000
mov ecx, r13d
mov rdi, r9
mov ebp, r8d
mov rbx, rdx
call fcn.1400196ac
mov rsi, rax
call fcn.1400036c8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x67]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, rax
mov edx, 5
mov rbx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [rsp + 0x6b0]
xor r8d, r8d
mov rcx, r14
call fcn.14001a708
mov edx, 0x3ec
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
mov r15, rax
sub rdi, rcx
movabs rax, 0xa3d70a3d70a3d70b
mov rcx, r15
imul rdi
add rdx, rdi
sar rdx, 0x10
mov r9, rdx
shr r9, 0x3f
add r9, rdx
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
mov r9, r14
mov r8d, r13d
mov rcx, rsi
lea edx, [rdi + 1]
call fcn.14001a2f0
mov r10, rax
cmp eax, 0xffffffff
je 0x140002e1b
movabs rbp, 0xa3d70a3d70a3d70b
test r10d, r10d
je 0x140002e14
mov edx, r10d
mov rcx, rsi
call fcn.140003718
mov r10d, r10d
xor ecx, ecx
add rdi, r10
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, rbp
xor r9d, r9d
imul rdi
mov rcx, r15
add rdx, rdi
sar rdx, 0x10
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140002df5
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140002df5
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov r9, r14
mov r8, r13
mov edx, 1
mov rcx, rsi
call fcn.14001a2f0
mov r10d, eax
cmp eax, 0xffffffff
jne 0x140002d64
mov ebp, dword [rsp + 0x6a0]
mov rcx, rsi
call fcn.140019698
test rbx, rbx
je 0x140002e31
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x140046100]
not eax
mov dword [0x140046100], eax
test ebp, ebp
je 0x140002e9e
cmp ebp, eax
je 0x140002e9e
mov rcx, qword [0x140045cc0]
lea r8, [rsp + 0x60]
mov r9d, 0x100
mov edx, 0x12
call qword [sym.imp.USER32.dll_LoadStringW]
mov r8, qword [rsp + 0x6b8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, InitCommonControls
lea r8, [0x1400318b0]
lea rdx, [rsp + 0x260]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x1400036c8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor r8d, r8d
lea r9, [0x140046110]
mov r10d, r8d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x1400036db
mov dword [r9], r10d
inc r8d
add r9, 4
cmp r8d, 0x100
jb 0x1400036d2
or dword [0x140046100], 0xffffffff
ret

Function at 0x140003718
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x14000374f
mov r8d, dword [0x140046100]
mov r9d, edx
movzx edx, byte [rcx]
inc rcx
movzx eax, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x140046110]
xor r8d, dword [rax + rdx*4]
sub r9, 1
jne 0x140003726
mov dword [0x140046100], r8d
ret

Function at 0x140003b88
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
cmp qword [0x1400477e8], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140003ccf
call qword [sym.imp.USER32.dll_GetDesktopWindow]
and qword [rsp + 0x58], 0
lea rdx, str.LISTBOX
mov rcx, qword [0x140045cc0]
mov r10d, dword [rbx + 4]
mov r8d, dword [rbx + 8]
mov r11d, dword [rbx]
sub r8d, r11d
mov r9d, dword [rbx + 0xc]
mov qword [rsp + 0x50], rcx
sub r9d, r10d
mov qword [rsp + 0x48], 0x3e8
mov ecx, 0x40080
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r9d
mov r9d, 0x56b40440
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor r9d, r9d
mov r8, rdi
mov rcx, rax
mov qword [0x1400477e8], rax
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp qword [0x140047800], 0
mov ebx, 0xfffffffc
jne 0x140003c4f
mov rcx, qword [0x1400477e8]
mov edx, ebx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov qword [0x140047800], rax
mov rcx, qword [0x1400477e8]
lea r8, [0x140004100]
mov edx, ebx
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
cmp qword [0x140047808], 0
jne 0x140003ccf
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea rdx, [0x14000428c]
mov r9d, eax
lea ecx, [r8 + 2]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rcx, qword [0x1400477f0]
mov qword [0x140047808], rax
call qword [sym.imp.USER32.dll_GetParent]
mov ebx, 0xcb
mov rcx, rax
mov edx, ebx
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x140003ccf
mov rcx, qword [0x1400477f0]
call qword [sym.imp.USER32.dll_GetParent]
xor r8d, r8d
mov edx, ebx
mov rcx, rax
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400044ec
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x30], 0
xor edx, edx
mov rbx, rcx
mov dword [rbp + 0x20], 0x800
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x30]
call fcn.140015a00
mov edx, dword [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [str.Microsoft_Windows_Network]
lea r9, [rbp - 0x30]
and dword [rbp - 0x2c], 0
mov esi, 1
mov rdi, rax
mov qword [rbp - 8], rcx
lea rax, [rbp + 0x30]
mov dword [rbp - 0x30], 2
xor r8d, r8d
mov dword [rbp - 0x28], esi
lea ecx, [rsi + 1]
mov dword [rbp - 0x24], 2
mov edx, esi
mov qword [rbp - 0x18], rbx
mov qword [rsp + 0x20], rax
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x1400045c2
lea rax, [rbp + 0x30]
xor r8d, r8d
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov edx, esi
lea ecx, [rsi + 1]
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x1400045b9
jmp 0x14000459e
mov rcx, qword [rdi + 0x18]
call fcn.140003198
mov dword [rbp + 0x20], 0x800
mov rcx, qword [rbp + 0x30]
lea r9, [rbp + 0x20]
mov r8, rdi
mov dword [rbp + 0x28], esi
lea rdx, [rbp + 0x28]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x14000458e
mov rcx, qword [rbp + 0x30]
call sub.MPR.dll_WNetCloseEnum
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400046e0
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
and qword [rsp + 0x30], 0
xor edx, edx
mov rdi, rcx
mov dword [rbp + 0x1a0], 0x800
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x30]
call fcn.140015a00
mov edx, dword [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [str.Microsoft_Windows_Network]
lea r9, [rsp + 0x38]
and dword [rsp + 0x3c], 0
mov r14d, 1
and qword [rsp + 0x50], 0
mov rbx, rax
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x38], 2
lea ecx, [r14 + 1]
mov dword [rsp + 0x40], r14d
mov edx, r14d
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rax
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x140004864
mov rcx, qword [rsp + 0x30]
lea r9, [rbp + 0x1a0]
mov r8, rbx
mov dword [rbp + 0x1a8], r14d
lea rdx, [rbp + 0x1a8]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x140004855
mov rcx, qword [rsp + 0x30]
call sub.MPR.dll_WNetCloseEnum
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
mov rdx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov edx, r14d
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], rax
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x140004855
jmp 0x140004825
test rdi, rdi
je 0x14000481c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
movsxd r8, eax
call fcn.14001a8d0
test eax, eax
jne 0x140004825
mov rcx, qword [rbx + 0x18]
call fcn.140003198
mov rcx, qword [rsp + 0x30]
lea r9, [rbp + 0x1a0]
mov r8, rbx
mov dword [rbp + 0x1a0], 0x800
lea rdx, [rbp + 0x1a8]
mov dword [rbp + 0x1a8], r14d
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x1400047fb
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004864
call sub.MPR.dll_WNetCloseEnum
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop r14
pop rdi
pop rbp
ret
Function at 0x140004884
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x480
mov rdi, rcx
lea rdx, str._s.
mov r8, rcx
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004952
test byte [rsp + 0x20], 0x10
je 0x140004937
lea rdx, [0x140031948]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140004937
lea rdx, [0x14003194c]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140004937
lea r9, [rsp + 0x4c]
mov r8, rdi
lea rdx, str._s_s_
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x270]
call fcn.140004884
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400048cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret
Function at 0x140005b10
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x12b8]
mov eax, 0x13b0
call fcn.140014cc0
sub rsp, rax
mov rcx, qword [0x1400478b8]
lea rdi, [rbp + 0xf20]
and dword [0x1400478a0], 0
mov rdx, 0xfffffffffffff000
and word [rbp + 0xf21], 0
mov r8d, 2
mov byte [rbp + 0xf23], 0
call fcn.14001a670
mov r15d, 1
cmp eax, 0xffffffff
je 0x140005caf
mov rcx, qword [0x1400478b8]
call fcn.14001b5e4
mov esi, 0x1000
lea rbx, [rsi + rax]
xor eax, eax
cmp rbx, rsi
jl 0x140005c6b
cmp dword [0x140045ccc], eax
jne 0x140005c87
mov al, byte [rdi + 1]
lea rcx, [rsp + 0x20]
mov r9, qword [0x1400478b8]
mov r8, rsi
mov byte [rbp + 0xf20], al
mov rdx, r15
mov al, byte [rdi + 2]
sub rbx, rsi
mov byte [rbp + 0xf21], al
mov al, byte [rdi + 3]
mov byte [rbp + 0xf22], al
call fcn.14001a2f0
mov rcx, qword [0x1400478b8]
mov r8d, r15d
mov rdx, 0xffffffffffffe000
call fcn.14001a670
mov al, byte [rbp + 0xf21]
lea rdx, [rbp + 0xf21]
lea rdi, [rbp + 0xf1f]
movzx ecx, byte [rdx + 1]
movzx r8d, byte [rdx - 1]
shl ecx, 8
movzx eax, al
or ecx, eax
movzx eax, byte [rdi]
shl ecx, 8
or ecx, r8d
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
je 0x140005c47
sub rdi, r15
lea rcx, [rsp + 0x22]
sub rdx, r15
mov al, r8b
cmp rdx, rcx
jae 0x140005c08
jmp 0x140005b92
lea rcx, [rsp + 0x20]
mov rax, rdi
sub rax, rcx
xor r8d, r8d
mov rcx, qword [0x1400478b8]
add rbx, rax
lea rdx, [rbx + 4]
call fcn.14001a670
mov eax, r15d
test eax, eax
jne 0x140005ca4
test rbx, rbx
jg 0x140005cb4
mov rcx, qword [0x1400478b8]
xor r8d, r8d
xor edx, edx
call fcn.14001a670
xor eax, eax
lea r11, [rsp + 0x13b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp eax, r15d
je 0x140005d4b
jmp 0x140005c74
mov ebx, 0x1000
mov rcx, qword [0x1400478b8]
xor r8d, r8d
xor edx, edx
call fcn.14001a670
mov r9, qword [0x1400478b8]
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, r15
call fcn.14001a2f0
mov cl, byte [rdi + 1]
mov byte [rsp + rax + 0x20], cl
lea rdx, [rsp + rax + 0x1f]
mov cl, byte [rdi + 2]
mov byte [rsp + rax + 0x21], cl
mov cl, byte [rdi + 3]
mov byte [rsp + rax + 0x22], cl
jmp 0x140005d21
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
je 0x140005d30
sub rdx, r15
lea rax, [rsp + 0x20]
cmp rdx, rax
jae 0x140005cf8
jmp 0x140005c74
lea rcx, [rsp + 0x20]
xor r8d, r8d
sub rdx, rcx
mov rcx, qword [0x1400478b8]
add rdx, 4
call fcn.14001a670
mov eax, r15d
jmp 0x140005c87