joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026134
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400261bb
mov rsi, rbx
cmp word [rax], bp
je 0x14002617a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026164
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026160
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e2ac
mov rdi, rax
test rax, rax
je 0x1400261a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000cc90
mov rbp, rdi
xor ecx, ecx
call fcn.14001e270
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002d1e0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140022220
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140022220
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002d330
cmp rax, 0xffffffffffffffff
je 0x14002d330
xor edi, edi
test rbp, rbp
jle 0x14002d2db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e1f8
mov rbx, rax
test rax, rax
jne 0x14002d268
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002d2d1
mov edx, 0x8000
mov ecx, r14d
call fcn.14001afcc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400204d8
cmp eax, 0xffffffff
je 0x14002d2b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002d278
mov edx, r15d
mov ecx, r14d
call fcn.14001afcc
jmp 0x14002d2d1
cmp byte [rsi + 0x38], dil
je 0x14002d2c8
cmp dword [rsi + 0x34], 5
jne 0x14002d2c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002d2d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001e270
jmp 0x14002d344
jns 0x14002d344
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140022220
cmp rax, 0xffffffffffffffff
jne 0x14002d2fc
cmp byte [rsi + 0x30], dil
je 0x14002d344
mov edi, dword [rsi + 0x2c]
jmp 0x14002d344
mov ecx, r14d
call fcn.1400266b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002d344
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002d344
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002d33d
mov eax, dword [rsi + 0x2c]
jmp 0x14002d342
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140022220
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140031720
Capabilities:
Resolve function by parsing pe exports

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
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rbp, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140031797
nop dword [rax]
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rbp
mov esi, dword [r14 + rax*4]
add rsi, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400317b6
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140031770
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140031799
Function at 0x140001000
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 0x1400010ce
test byte [rsp + 0x20], 0x10
je 0x1400010b3
lea rdx, [0x1400166cc]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400010b3
lea rdx, [0x1400166d0]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400010b3
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 section..text
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 0x140001048
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret
Function at 0x14000330c
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, 0x160
mov rax, qword [0x140022130]
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test rax, rax
jne 0x1400033a9
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, str.cabinet.dll
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140022130], rax
test rax, rax
jne 0x1400033a9
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.ArcDec
lea rdx, str.CABINET.DLL_not_found.
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.FDICreate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022130]
lea rdx, str.FDICopy
mov qword [0x140022138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022130]
lea rdx, str.FDIIsCabinet
mov qword [0x140022148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140022130]
lea rdx, str.FDIDestroy
mov qword [0x140022140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, qword [0x140022138]
mov qword [0x140022150], rax
test r10, r10
je 0x14000338e
cmp qword [0x140022148], 0
je 0x14000338e
cmp qword [0x140022140], 0
je 0x14000338e
test rax, rax
je 0x14000338e
mov rax, qword [rsp + 0x1b0]
mov r9, rbx
mov qword [rsp + 0x40], rax
mov r8, rdi
mov eax, dword [rsp + 0x1a8]
mov rdx, rsi
mov dword [rsp + 0x38], eax
mov rcx, rbp
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x20], rax
call r10
jmp 0x140003390
Function at 0x140003694
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
call fcn.140009e20
mov rbx, rax
mov esi, 0x5c
cmp word [rax + 2], 0x3a
jne 0x1400036c5
cmp word [rax + 4], si
je 0x1400036f9
cmp word [rax], si
jne 0x1400037b5
cmp word [rax + 2], si
jne 0x1400037b5
mov rcx, rbx
call fcn.140009ee4
cmp rax, 7
jbe 0x1400037b5
mov edx, esi
lea rcx, [rbx + 4]
call fcn.140006f28
add rax, 2
mov edx, esi
mov rcx, rax
call fcn.140006f28
xor ebp, ebp
mov rdi, rax
test rax, rax
je 0x1400037b5
mov rcx, rbx
call fcn.140009ee4
movsxd rcx, eax
cmp word [rbx + rcx*2 - 2], si
je 0x140003733
lea rdx, [0x140016944]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140006ad0
mov rdx, rbx
mov word [rdi], bp
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x140016944]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140003789
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400037b5
lea rdx, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, esi
mov rcx, rbx
call fcn.140006f28
mov rdi, rax
test rax, rax
jne 0x140003745
mov rcx, rbx
call fcn.14000a1e8
lea eax, [rdi + 1]
jmp 0x1400037bf
mov rcx, rbx
call fcn.14000a1e8
xor eax, eax
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140003b94
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbx
mov eax, 0x1020
call fcn.140005fd0
sub rsp, rax
lea r8d, [rax - 0x20]
xor ebx, ebx
lea rdx, [rsp + 0x20]
call fcn.140004600
mov edx, eax
cmp eax, 0x200
jl 0x140003c49
mov eax, 0x5a4d
cmp word [rsp + 0x20], ax
jne 0x140003c49
mov rcx, qword [rsp + 0x5c]
test ecx, ecx
jle 0x140003c49
lea eax, [rdx - 0x148]
cmp ecx, eax
jge 0x140003c49
movsxd rax, ecx
lea rcx, [rsp + 0x20]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c49
movzx eax, word [rcx + 0x14]
lea r8, [rcx + 0x18]
movzx r10d, word [rcx + 6]
lea r11d, [rbx + 1]
add r8, rax
movzx r9d, r11w
lea rax, [rsp + 0x20]
sub eax, r8d
add edx, eax
sub edx, 0x28
test edx, edx
jle 0x140003c3b
mov eax, dword [r8 + 0x24]
lea ecx, [r11 + r9]
and eax, 0x40000040
cmove cx, r9w
add r8, 0x28
movzx r9d, cx
cmp cx, r10w
jb 0x140003c14
cmp r9w, r10w
jne 0x140003c49
mov ebx, dword [r8 + 0x14]
add ebx, dword [r8 + 0x10]
mov eax, ebx
add rsp, 0x1020
pop rbx
ret
Function at 0x140003fc8
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x660
mov r14, rcx
mov edi, r9d
mov ecx, 0x10000
mov ebp, r8d
mov rbx, rdx
call fcn.14000a1fc
mov rsi, rax
call fcn.140004c5c
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, 0x3ec
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
sub edi, dword [rsp + 0x6a0]
xor r8d, r8d
mov r15, rax
mov r9d, edi
movabs rax, 0x47ae147ae147ae15
mov rcx, r15
mul r9
sub r9, rdx
shr r9, 1
add r9, rdx
mov edx, 0x406
shr r9, 0x10
call qword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
jmp 0x140004105
test r10d, r10d
je 0x140004122
mov edx, r10d
mov rcx, rsi
call fcn.140004cac
xor ecx, ecx
add edi, r10d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x51eb851f
xor r9d, r9d
mul edi
mov rcx, r15
shr edx, 0xf
mov r8d, edx
mov edx, 0x402
call qword [sym.imp.USER32.dll_PostMessageW]
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 0x140004105
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140004105
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov r8d, 0x10000
mov rdx, rsi
mov rcx, r14
call fcn.140004600
mov r10d, eax
cmp eax, 0xffffffff
jne 0x140004081
mov rcx, rsi
call fcn.14000a1e8
test rbx, rbx
je 0x140004138
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x140022168]
not eax
mov dword [0x140022168], eax
test ebp, ebp
je 0x1400041a5
cmp ebp, eax
je 0x1400041a5
mov rcx, qword [0x140021d20]
lea r8, [rsp + 0x60]
mov r9d, 0x100
mov edx, 0x12
call qword [sym.imp.USER32.dll_LoadStringW]
mov r8, qword [rsp + 0x6a8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, InitCommonControls
lea r8, str.Warning
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 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1400045c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400045e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400045e8
or rax, 0xffffffffffffffff
jmp 0x1400045f3
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140004600
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [rsp + 0x58]
mov eax, ecx
add rsp, 0x38
ret
Function at 0x140004c5c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor r8d, r8d
lea r9, [0x140022170]
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 0x140004c6f
mov dword [r9], r10d
inc r8d
add r9, 4
cmp r8d, 0x100
jb 0x140004c66
or dword [0x140022168], 0xffffffff
ret

Function at 0x140004cac
Capabilities:
Encode data using xor

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

Function at 0x140005054
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
cmp qword [0x140023c50], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14000519e
call qword [sym.imp.USER32.dll_GetDesktopWindow]
and qword [rsp + 0x58], 0
lea rdx, str.LISTBOX
mov rcx, qword [0x140021d20]
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, 0x56340440
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 [0x140023c50], rax
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp qword [0x140023c68], 0
mov ebx, 0xfffffffc
jne 0x14000511e
mov rcx, qword [0x140023c50]
mov edx, ebx
call qword [sym.imp.USER32.dll_GetWindowLongW]
movsxd rcx, eax
mov qword [0x140023c68], rcx
mov rcx, qword [0x140023c50]
lea r8, [0x1400055cc]
mov edx, ebx
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
cmp qword [0x140023c70], 0
jne 0x14000519e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea rdx, [0x140005758]
mov r9d, eax
lea ecx, [r8 + 2]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rcx, qword [0x140023c58]
mov qword [0x140023c70], rax
call qword [sym.imp.USER32.dll_GetParent]
mov ebx, 0x3f4
mov rcx, rax
mov edx, ebx
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x14000519e
mov rcx, qword [0x140023c58]
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 0x1400059b8
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.140006ad0
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 0x140005a8e
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 0x140005a85
jmp 0x140005a6a
mov rcx, qword [rdi + 0x18]
call fcn.1400046b0
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 0x140005a5a
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 0x140005bac
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.140006ad0
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 0x140005d30
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 0x140005d21
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 0x140005d21
jmp 0x140005cf1
test rdi, rdi
je 0x140005ce8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
movsxd r8, eax
call fcn.14000d4a0
test eax, eax
jne 0x140005cf1
mov rcx, qword [rbx + 0x18]
call fcn.1400046b0
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 0x140005cc7
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140005d30
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 0x14000ab34
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140024300]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14000ab92
cmp word [rdx], r12w
jne 0x14000ab92
or byte [rax + r8*8 + 0x38], cl
jmp 0x14000ab98
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14000acf3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14000acce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14000abd1
mov rcx, r9
jmp 0x14000abf4
cmp r9, rdx
jae 0x14000ac0b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14000abb5
jmp 0x14000acf3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000acc8
cmp dword [rsp + 0x80], edi
je 0x14000acc8
mov rdx, r14
lea r11, [0x140024300]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14000aca1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14000ac74
mov word [rbx], r12w
jmp 0x14000acef
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14000ac7d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14000acef
cmp word [rsp + 0x70], r12w
jne 0x14000acae
cmp rbx, rsi
je 0x14000ac6e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14000aa90
cmp word [rsp + 0x70], r12w
je 0x14000acf3
mov word [rbx], r13w
jmp 0x14000acef
lea r11, [0x140024300]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14000aceb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14000acf3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e224
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e014
Function at 0x140011c10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140011c97
mov rsi, rbx
cmp word [rax], bp
je 0x140011c56
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140011c40
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140011c3c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ef90
mov rdi, rax
test rax, rax
je 0x140011c84
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140007f20
mov rbp, rdi
xor ecx, ecx
call fcn.14000ef54
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret