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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14001d9d0], rbx
je 0x1400080ec
cmp rax, rbx
jne 0x1400080df
mov ebx, 1
mov esi, ebx
jmp 0x1400080f1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400080c4
mov ebx, 1
mov eax, dword [0x14001d9d8]
cmp eax, ebx
jne 0x140008107
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000816c
mov eax, dword [0x14001d9d8]
test eax, eax
jne 0x140008166
mov dword [0x14001d9d8], ebx
lea r15, [0x1400106b0]
lea rdi, [0x140010698]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140008158
test eax, eax
jne 0x14000815c
cmp qword [rdi], 0
je 0x14000814d
mov rax, qword [rdi]
mov rcx, qword [0x140010670]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000812e
test eax, eax
je 0x14000816c
mov eax, 0xff
jmp 0x140008248
mov dword [0x14001d404], ebx
mov eax, dword [0x14001d9d8]
cmp eax, ebx
jne 0x140008193
lea rdx, [0x140010690]
lea rcx, [0x140010678]
call sub.msvcrt.dll__initterm
mov dword [0x14001d9d8], 2
test esi, esi
jne 0x1400081a0
xor eax, eax
xchg qword [0x14001d9d0], rax
cmp qword [0x14001d9e0], 0
je 0x1400081d4
lea rcx, [0x14001d9e0]
call fcn.140008ac0
test eax, eax
je 0x1400081d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001d9e0]
mov r9, qword [0x140010670]
call r9
mov r8, qword [0x14001d418]
mov rdx, qword [0x14001d410]
mov ecx, dword [0x14001d408]
call fcn.140004a48
mov dword [0x14001d400], eax
cmp dword [0x14001d420], 0
jne 0x140008204
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001d404], 0
jne 0x140008219
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001d400]
jmp 0x140008248
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14018e000
add rsp, 0x28
jmp 0x1400080a0

Function at 0x140008590
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000859c
push rbx
sub rsp, 0x540
mov rax, qword [0x14001d0a0]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140008619
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140008639
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400082a0
add rsp, 0x540
pop rbx
ret
Function at 0x140015e50
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push rbp
push rsi
push r12
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r12, rcx
mov esi, 0x100
mov r8d, esi
lea rcx, [rbp - 0x20]
xor edx, edx
call fcn.14001e930
mov rcx, qword [0x140034f90]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
test rcx, rcx
jne 0x140015efb
lea r9d, [rcx + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [0x140034f90]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140015ef4
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [0x140034f90]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140015ef4
xor eax, eax
mov qword [0x140034f90], rax
jmp 0x140016089
mov rcx, qword [0x140034f90]
lea r8, [rbp - 0x20]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140016087
mov rcx, qword [0x140034f90]
lea r8, [rbp - 0x40]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140016087
mov qword [rsp + 0x230], rdi
lea r8, [rbp - 0x40]
mov qword [rsp + 0x1f8], r14
lea rcx, [rsp + 0x40]
mov r9d, 0x20
mov qword [rsp + 0x1f0], r15
call fcn.140016100
mov ecx, dword [rbp - 0x50]
lea r14, [rbp - 0x20]
mov r15d, 0x40
mov edi, r15d
sub edi, ecx
cmp rdi, rsi
jae 0x140015fb0
mov eax, ecx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x70]
mov r8d, edi
add rcx, rax
call fcn.14001f040
mov r9d, r15d
lea r8d, [r15 - 0x3f]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140016280
xor eax, eax
lea r14, [rbp - 0x20]
add r14, rdi
mov dword [rbp - 0x50], eax
sub rsi, rdi
cmp rsi, r15
jbe 0x140015ff4
lea rdi, [rsi + 0x3f]
mov qword [rsp + 0x228], rbx
shr rdi, 6
lea rcx, [rsp + 0x40]
mov r9d, r15d
mov rdx, r14
lea rbx, [rdi - 1]
mov r8, rbx
call fcn.140016280
mov eax, dword [rbp - 0x50]
add r14, 0xffffffffffffffc0
shl rdi, 6
shl rbx, 6
add r14, rdi
sub rsi, rbx
mov rbx, qword [rsp + 0x228]
mov eax, eax
lea rcx, [rsp + 0x70]
add rcx, rax
mov r8, rsi
mov rdx, r14
call fcn.14001f040
mov ecx, dword [rbp - 0x50]
xor edx, edx
add ecx, esi
mov dword [rsp + 0x68], 0xffffffff
sub r15d, ecx
mov eax, ecx
mov dword [rbp - 0x50], ecx
lea rcx, [rsp + 0x70]
add rcx, rax
mov r8d, r15d
call fcn.14001e930
mov r9d, dword [rbp - 0x50]
lea rdx, [rsp + 0x70]
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.140016280
mov r8d, dword [rbp - 0x4c]
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14001f040
mov r15, qword [rsp + 0x1f0]
lea rdi, [rsp + 0x40]
mov r14, qword [rsp + 0x1f8]
xor eax, eax
mov ecx, 0x78
rep stosb byte [rdi], al
mov rdi, qword [rsp + 0x230]
mov eax, 1
jmp 0x140016089
xor eax, eax
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.14001d940
add rsp, 0x200
pop r12
pop rsi
pop rbp
ret
Function at 0x140016100
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rcx + 0x20], xmm1
mov rdx, r8
mov rsi, rcx
movups xmmword [rcx + 0x30], xmm1
mov r8, r9
movups xmmword [rcx + 0x40], xmm1
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm1
mov dword [rcx + 0x70], eax
mov rax, r9
xorps xmm0, xmm0
shl rax, 8
mov dword [rcx + 4], 0xbb67ae85
or eax, 0x1010020
mov dword [rcx + 8], 0x3c6ef372
xor eax, 0x6a09e667
mov dword [rcx], eax
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov dword [rcx + 0x74], 0x20
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.14001f040
mov ecx, dword [rsi + 0x70]
lea r14, [rsp + 0x20]
mov ebp, 0x40
mov edi, ebp
sub edi, ecx
cmp rdi, rbp
jae 0x14001623d
mov eax, ecx
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x30]
mov r8d, edi
add rcx, rax
call fcn.14001f040
lea rdx, [rsi + 0x30]
mov r9d, ebp
lea r8d, [rbp - 0x3f]
mov rcx, rsi
call fcn.140016280
lea r14, [rsp + 0x20]
mov dword [rsi + 0x70], 0
add r14, rdi
sub rbp, rdi
cmp rbp, 0x40
jbe 0x14001623d
lea rdi, [rbp + 0x3f]
mov qword [rsp + 0x70], rbx
shr rdi, 6
mov r9d, 0x40
mov rdx, r14
mov rcx, rsi
lea rbx, [rdi - 1]
mov r8, rbx
call fcn.140016280
shl rdi, 6
add r14, 0xffffffffffffffc0
shl rbx, 6
add r14, rdi
sub rbp, rbx
mov rbx, qword [rsp + 0x70]
mov eax, dword [rsi + 0x70]
lea rcx, [rsi + 0x30]
add rcx, rax
mov r8, rbp
mov rdx, r14
call fcn.14001f040
add dword [rsi + 0x70], ebp
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001d940
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2058
call fcn.140030730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rax, r8
mov edi, edx
mov ebx, ecx
lea r8, [rsp + 0x2088]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wvsprintfW]
test ebx, ebx
je 0x14001a296
lea rcx, [rsp + 0x40]
call fcn.14001a180
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14001a2f1
cmp qword [0x140033a50], 0xffffffffffffffff
je 0x14001a2e4
test edi, edi
je 0x14001a2e4
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x140033a50]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14001d940
add rsp, 0x2058
pop rdi
pop rbx
ret

Function at 0x14001a310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2050
call fcn.140030730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov ebp, dword [0x140034f2c]
mov esi, edx
mov edi, dword [0x140034f30]
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x2000
call fcn.14001e930
lea rcx, [rsp + 0x40]
mov r8, rbx
cmp esi, 0x3105
jne 0x14001a379
lea rdx, [0x14000c4b8]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14001a389
mov r9d, esi
lea rdx, [0x14000c4e8]
call qword [sym.imp.USER32.dll_wsprintfW]
test edi, edi
je 0x14001a397
lea rcx, [rsp + 0x40]
call fcn.14001a180
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14001a3f2
test ebp, ebp
je 0x14001a3e5
cmp qword [0x140033a50], 0xffffffffffffffff
je 0x14001a3e5
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x140033a50]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140034f98]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14001d940
mov rbx, qword [rsp + 0x2080]
add rsp, 0x2050
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001aa80
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov qword [rsp + 0x40], rbx
call fcn.14001aa00
test eax, eax
je 0x14001aabf
lea rcx, [0x14000e118]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x14000e138]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001aabf
lea rcx, [rsp + 0x40]
call rax
mov dword [rsp + 0x28], ebx
lea r9, [0x14000e160]
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [0x14000e1d8]
mov dword [rsp + 0x28], ebx
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [0x14000e210]
mov dword [rsp + 0x28], ebx
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [0x14000e270]
mov dword [rsp + 0x28], ebx
lea r8, [0x14000e1b8]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14000e1c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.14001aa00
test eax, eax
je 0x14001ab89
lea rcx, [0x14000e118]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x14000e2f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ab89
mov rcx, qword [rsp + 0x40]
call rax
add rsp, 0x30
pop rbx
ret
Function at 0x14001ae60
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rsi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001af83
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x288], rbp
lea rbp, [0x140009e90]
mov qword [rsp + 0x290], rdi
nop word [rax + rax]
xor ebx, ebx
mov rdi, rbp
nop word [rax + rax]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001af02
inc ebx
add rdi, 8
cmp ebx, 0x9f
jb 0x14001aee0
jmp 0x14001af55
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14001af46
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14001af3b
mov edx, 0x5001
lea rcx, [rsp + 0x4c]
call fcn.14001a310
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001af55
mov edx, 0x5000
lea rcx, [rsp + 0x4c]
call fcn.14001a310
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001aed0
mov rdi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001d940
add rsp, 0x270
pop rsi
ret
Function at 0x14001b3f0
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x19e0]
mov eax, 0x1ae0
call fcn.140030730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x19d0], rax
xor ebx, ebx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x44], ebx
movsxd rax, dword [rsp + 0x44]
cmp rax, 0x42
jae 0x14001b461
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x44]
mov byte [rbp + rax + 0x1980], bl
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
cmp rax, 0x42
jb 0x14001b440
lea r8, [rbp + 0x1980]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14001b4aa
mov ecx, dword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
lea edx, [rax + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
je 0x14001b4b1
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x14001b5fc
xor edx, edx
mov dword [rsp + 0x48], 0xa
mov r8d, 0x1a18
lea rcx, [rsp + 0x60]
call fcn.14001e930
mov ecx, dword [rsp + 0x40]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x14001b4a0
mov qword [rsp + 0x1af8], rsi
mov qword [rsp + 0x1b00], rdi
cmp dword [rsp + 0x48], ebx
jbe 0x14001b5dd
nop dword [rax]
mov eax, ebx
imul rdi, rax, 0x29c
mov eax, dword [rbp + rdi + 0x1ec]
cmp eax, 4
je 0x14001b5d1
cmp eax, 0x3e8
je 0x14001b5d1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [rsp + rdi + 0x60]
je 0x14001b5d1
mov rax, qword [rsp + 0x50]
lea rsi, [rsp + 0x6c]
mov edx, dword [0x140034f2c]
lea r8, [0x14000edb0]
mov ecx, dword [0x140034f30]
add rsi, rdi
mov r9, rsi
mov qword [rsp + 0x20], rax
call fcn.14001a240
mov r8d, dword [rsp + rdi + 0x60]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001b61c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14001b5ba
mov edx, dword [0x140034f2c]
lea r8, [0x14000ee00]
mov ecx, dword [0x140034f30]
mov r9, rsi
call fcn.14001a240
mov edx, 0xbb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rsp + 0x48]
jb 0x14001b510
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, 1
mov rsi, qword [rsp + 0x1af8]
mov rdi, qword [rsp + 0x1b00]
mov rcx, qword [rbp + 0x19d0]
xor rcx, rsp
call fcn.14001d940
mov rbx, qword [rsp + 0x1b08]
add rsp, 0x1ae0
pop rbp
ret
mov edx, dword [0x140034f2c]
lea r8, [0x14000ee00]
mov ecx, dword [0x140034f30]
mov r9, rsi
call fcn.14001a240
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x14001b5ec
Function at 0x14001c9d0
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x48
xor edx, edx
mov dword [rsp + 0x58], 0xffffffff
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 0x4000
mov r9, rcx
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 2]
lea r8d, [rdx + 0x13]
call qword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x14001cb73
mov r8d, dword [rsp + 0x60]
lea edx, [rax + 8]
mov rcx, qword [0x140034fc0]
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14001cb63
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov r8, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x14001cb51
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
xor esi, esi
cmp dword [rsp + 0x58], esi
jbe 0x14001cb22
nop
lea rdi, [rsi + rsi*2]
shl rdi, 4
add rdi, rbp
test byte [rdi + 0xc], 2
je 0x14001ca95
lea rdx, [0x140034f38]
mov rcx, rdi
call fcn.14001c9d0
jmp 0x14001cb16
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14001cb16
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14001cb16
lea ecx, [rax - 1]
movsxd rdx, ecx
movzx r8d, word [rbx + rdx*2]
movsxd rdx, eax
add rdx, rdx
cmp r8w, 0x2e
jne 0x14001caca
cmp word [rdx + rbx], 0
je 0x14001cb16
cmp eax, 1
jle 0x14001caea
add eax, 0xfffffffe
movsxd rcx, eax
cmp word [rbx + rcx*2], 0x2e
jne 0x14001caea
cmp r8w, 0x2e
jne 0x14001caea
cmp word [rdx + rbx], 0
je 0x14001cb16
mov r9, qword [rdi + 0x18]
lea r8, [0x14000ee68]
mov edx, dword [0x140034f2c]
mov ecx, dword [0x140034f30]
call fcn.14001a240
mov rcx, qword [rdi + 0x18]
lea rdx, [0x140034f38]
call fcn.14001c4f0
inc esi
cmp esi, dword [rsp + 0x58]
jb 0x14001ca70
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov r8, rbp
lea rdx, [rsp + 0x58]
call qword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x14001ca62
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [0x140034fc0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MPR.dll_WNetCloseEnum]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x14001cb80
Capabilities:
Enumerate network shares

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor eax, eax
mov rbp, rcx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
nop word [rax + rax]
lea rax, [rsp + 0x44]
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov edx, 1
mov qword [rsp + 0x28], rax
mov rcx, rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.NETAPI32.dll_NetShareEnum]
mov esi, eax
test eax, eax
je 0x14001cc08
cmp eax, 0xea
jne 0x14001cceb
mov rbx, qword [rsp + 0x50]
mov edi, 1
cmp dword [rsp + 0x40], edi
jb 0x14001ccd6
nop dword [rax]
test dword [rbx + 8], 0x7fffffff
jne 0x14001ccc1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x14001ccc1
mov rcx, qword [rbx]
lea rdx, [0x14000ee90]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001ccc1
lea rdx, [0x14000eea0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14000ee64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [0x140034f2c]
lea r9, [rsp + 0x60]
mov ecx, dword [0x140034f30]
lea r8, [0x14000eea8]
call fcn.14001a240
lea rdx, [0x140034f38]
lea rcx, [rsp + 0x60]
call fcn.14001c4f0
add rbx, 0x18
inc edi
cmp edi, dword [rsp + 0x40]
jbe 0x14001cc20
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp esi, 0xea
je 0x14001cbc0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001d940
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001cd20
Capabilities:
Get disk information
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov edx, 8
movzx edi, cx
mov rcx, qword [0x140034fc0]
lea r8d, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14001cd6b
mov edx, 0x1002
lea rcx, [0x14000eec8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14001a310
lea rdx, [0x14000eed8]
mov qword [rsp + 0x30], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbx + 0xa]
lea rdx, [0x14000eee4]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
mov word [rbx + 8], di
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14001ce33
lea ecx, [rax - 5]
cmp ecx, 1
jbe 0x14001ce88
cmp eax, 4
jne 0x14001ce55
mov rcx, qword [0x140034fc0]
lea edx, [rax + 4]
mov r8d, 0x208
mov dword [rsp + 0x38], 0x104
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14001ce33
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rbx + 8]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x14001ce21
mov edx, dword [0x140034f2c]
lea r8, [0x14000ef08]
mov ecx, dword [0x140034f30]
mov r9, rdi
call fcn.14001a240
lea rdx, [0x140034f70]
mov rcx, rdi
call fcn.14001c4f0
mov rcx, qword [0x140034fc0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x140034fc0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
dec eax
cmp eax, 2
ja 0x14001ce33
mov edx, dword [0x140034f2c]
lea r8, [0x14000ef40]
mov ecx, dword [0x140034f30]
mov r9, rbx
call fcn.14001a240
lea rdx, [0x140034f70]
mov rcx, rbx
call fcn.14001c4f0
jmp 0x14001ce33
mov rcx, qword [0x140034fc0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [0x140034f2c]
lea r8, [0x14000eee8]
mov ecx, dword [0x140034f30]
mov r9, rbx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14001a240
Function at 0x14001e334
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e37e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e37e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e37e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e37e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e37e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001e380
xor al, al
add rsp, 0x28
ret

Function at 0x1400231b4
Capabilities:
Parse pe header

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

Function at 0x140030670
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140030698
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140030698
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret