joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140004bb4
call fcn.140002934
mov ebx, eax
jmp 0x140004cc3
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140004bd5
call fcn.140002934
jmp 0x140004cb7
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140004bcb
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140004c10
mov ebx, 0x8007000e
jmp 0x140004cb9
mov ecx, eax
test eax, eax
je 0x140004c4d
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140004c43
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140004c4d
lea rcx, [rsp + 0x70]
call fcn.1400032a4
mov rax, qword [rsp + 0x70]
jmp 0x140004c57
mov ecx, 0x80070216
call fcn.140002918
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140004c6e
test rax, rax
je 0x140004c06
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140004bcb
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400049e0
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140004cda
lea rcx, [rsp + 0x70]
call fcn.140003298
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400082a0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret

Function at 0x14000579c
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
cmp dword [0x14000f35c], ebx
je 0x1400057c9
mov eax, dword [0x14000f358]
jmp 0x14000582e
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
mov r11d, 1
jne 0x14000581f
cmp dword [rsp + 0x24], 6
jne 0x14000581f
cmp dword [rsp + 0x28], ebx
jne 0x14000581f
cmp byte [rsp + 0x13a], r11b
jne 0x14000581f
cmp word [rsp + 0x134], bx
jne 0x14000581f
mov ebx, r11d
mov dword [0x14000f358], ebx
mov dword [0x14000f35c], r11d
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400082a0
add rsp, 0x150
pop rbx
ret
Function at 0x140005a8c
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x68
test rdx, rdx
jne 0x140005a99
xor eax, eax
jmp 0x140005af6
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
add rsp, 0x68
ret

Function at 0x140005f1c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0xf50]
mov eax, 0x1050
call fcn.1400082d0
sub rsp, rax
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rbp + 0xf40], rax
mov rbx, rcx
mov edi, r8d
mov r12, rdx
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], si
call sub.MSVCR100.dll_memset
lea r8, str.SOFTWAREClassesCLSID_sInprocServer32
lea rcx, [rsp + 0x40]
mov r9, rbx
mov edx, 0x400
call qword [sym.imp.MSVCR100.dll_swprintf_s]
lea rax, [rsp + 0x30]
neg edi
sbb rcx, rcx
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
add rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140005fc3
cmp eax, 2
sete sil
jmp 0x140006028
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x740]
lea rdx, [0x14000b1e4]
mov dword [rsp + 0x38], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140005ffc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000602a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x740]
sub rdx, r12
movzx eax, word [r12]
movzx ecx, word [r12 + rdx]
sub eax, ecx
jne 0x140006022
add r12, 2
test ecx, ecx
jne 0x14000600c
test eax, eax
setne sil
mov eax, esi
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.1400082a0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400062ec
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor edi, edi
mov word [rcx], di
mov dword [rax - 0x38], 0x104
mov r9, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000ab80]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov ebx, eax
test eax, eax
jns 0x14000634b
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.140007ef4
xor edx, edx
mov ecx, ebx
call fcn.140008d60
nop
jmp 0x140006356
test ebx, ebx
jns 0x1400063d7
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
jns 0x14000638f
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
call fcn.140007ef4
xor edx, edx
mov ecx, ebx
call fcn.140008d60
nop
jmp 0x14000639a
test ebx, ebx
jns 0x1400063d7
mov r9d, 1
lea r8d, [r9 + 0x19]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
test eax, eax
jns 0x1400063d1
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
call fcn.140007ef4
xor edx, edx
mov ecx, ebx
call fcn.140008d60
nop
jmp 0x1400063d7
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400073cc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd r12, edx
mov rdi, rcx
xor ebx, ebx
mov word [rcx], bx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test eax, eax
jns 0x14000743c
mov edx, eax
lea rcx, str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.140007ef4
xor edx, edx
mov ecx, esi
call fcn.140008d60
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14000276c
mov rax, qword [rax]
test rax, rax
je 0x140007458
mov r8, qword [rax]
jmp 0x14000745b
mov r8, rbx
mov rdx, r12
mov r9d, 0x104
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400074ad
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x1400074ad
test rdi, rdi
je 0x1400074ad
cmp qword [rdi], rbx
je 0x140007496
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400074a4
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, rdi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
nop
jmp 0x1400074b5
test esi, esi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400082a0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r12
pop rdi
pop rsi
ret
Function at 0x140007cf4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1400082d0
sub rsp, rax
mov rax, qword [0x14000f198]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, 0x7fe
lea rcx, [rbp + 0x782]
xor r13d, r13d
xor edx, edx
mov r8d, ebx
mov word [rbp + 0x780], r13w
call sub.MSVCR100.dll_memset
or r14, 0xffffffffffffffff
lea rcx, [rbp + 0x780]
mov r8, r14
mov r9, rsi
mov edx, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCR100.dll__vsnwprintf_s]
test eax, eax
jns 0x140007d80
mov word [rbp + 0xf7e], r13w
xor edx, edx
lea rcx, [rsp + 0x42]
mov word [rsp + 0x40], r13w
lea r8d, [rdx + 0x3e]
call sub.MSVCR100.dll_memset
mov edi, 0x20
lea rcx, [rsp + 0x40]
mov edx, edi
call fcn.140007c34
lea r8, [0x14000c024]
lea rcx, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.MSVCR100.dll_wcscat_s]
lea rcx, [rbp - 0x7e]
mov r8, rbx
xor edx, edx
mov word [rbp - 0x80], r13w
call sub.MSVCR100.dll_memset
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 6
jbe 0x140007dfc
lea rsi, [rsi + rcx*2 - 0xc]
lea rdi, str.__08x_
lea ecx, [rax + 7]
repe cmpsw word [rsi], word [rdi]
lea edx, [rax + 1]
je 0x140007dff
mov edx, r13d
lea rdi, [rsp + 0x40]
mov rcx, r14
lea rbx, [0x14000c034]
repne scasw ax, word [rdi]
lea rax, str.Error:
test edx, edx
not rcx
cmovne rbx, rax
lea rsi, [rcx - 1]
lea r12, [rcx + rcx - 2]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 0x3ff
sub rdx, rsi
lea rsi, [rbp + 0x780]
lea rcx, [rbp + r12 - 0x80]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbx
lea r9, str.P:_04d_T:_04d__s_s
mov r8, r14
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.MSVCR100.dll__snwprintf_s]
test eax, eax
jns 0x140007e91
mov rdx, r13
lea rax, [0x14000c190]
movzx eax, word [rdx + rax]
add rdx, 2
mov word [rbp + rdx + 0x774], ax
test ax, ax
jne 0x140007e75
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov r8, r12
call sub.MSVCR100.dll_memcpy
xor eax, eax
lea rdi, [rbp - 0x80]
mov rcx, r14
repne scasw ax, word [rdi]
mov eax, dword [0x14000c064]
lea rcx, [rbp - 0x80]
mov dword [rdi - 2], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.1400082a0
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14000888b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f198]
jne 0x1400082ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400082b6
repz ret
ror rcx, 0x10
jmp 0x1400087e4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000f440]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000f538]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008869
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000f440]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000888b
mov rax, qword [rsp + 0x88]
mov qword [0x14000f538], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000f4d8], rax
mov rax, qword [0x14000f538]
mov qword [0x14000f3b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000f4c0], rax
mov dword [0x14000f3a0], 0xc0000409
mov dword [0x14000f3a4], 1
mov rax, qword [0x14000f198]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f1a0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000f438], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000c1e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000f438], 0
jne 0x140008912
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x100005760
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x10000e110]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rsi, rdx
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x1000057b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
jmp 0x100005836
inc eax
cmp eax, 0x69
jbe 0x1000057c5
mov ebx, 0x80070057
jmp 0x100005836
xor edx, edx
mov r8d, 0xd2
mov rcx, rsi
call sub.msvcrt.dll_memset
lea rdi, [rsp + 0x20]
cmp word [rsp + 0x20], bx
je 0x100005836
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x10000582d
mov r8, rdi
mov edx, 0x69
mov rcx, rsi
sub r8, rsi
lea rax, [rdx - 0x65]
cmp rax, rbx
je 0x10000581d
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x10000581d
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1000057fd
cmp rdx, rbx
jne 0x100005826
sub rcx, 2
mov word [rcx], bx
add rsi, 8
add rdi, 8
cmp word [rdi], bx
jne 0x1000057e1
mov eax, ebx
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1000098a0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x100005af4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor r13d, r13d
mov r12d, r8d
mov rsi, rdx
mov rbp, rcx
cmp rcx, r13
jne 0x100005b26
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbp, rax
mov rcx, rsi
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100005bbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
cmp eax, 3
je 0x100005bb6
cmp eax, 2
je 0x100005bb6
cmp eax, 5
je 0x100005be7
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r13d
cmovle ebx, eax
cmp eax, 0x15
jne 0x100005b97
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 3
jle 0x100005b97
movsxd rax, ecx
cmp word [rsi + rax*2 - 2], 0x5c
jne 0x100005b97
cmp word [rsi + rax*2 - 4], 0x3a
cmove ebx, r13d
cmp ebx, r13d
jge 0x100005be7
cmp r12d, r13d
je 0x100005be7
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rsi
lea r9d, [rdx + 0x23]
call fcn.100008a3c
jmp 0x100005be7
mov ebx, 1
jmp 0x100005be7
mov edx, 0x10
and eax, edx
cmp al, r13b
jne 0x100005be7
cmp r12d, r13d
je 0x100005be2
lea r9d, [rdx + 4]
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call fcn.100008a3c
mov ebx, 0x80004005
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x100005c08
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rdi, rdx
mov rsi, rcx
xor r13d, r13d
mov ebx, r13d
mov dword [rax + 0x18], ebx
call fcn.100008ae4
mov ebp, eax
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov rcx, rsi
call fcn.100008ae4
cmp eax, r13d
je 0x100005c65
mov rdx, rdi
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_AfxDeleteObject
jmp 0x100005c75
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
call fcn.100008bf4
lea rax, [0x100002258]
lea rdx, [0x100002268]
cmp ebp, r13d
cmovne rdx, rax
lea rcx, [rsp + 0x88]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
mov edi, 1
cmp ebp, r13d
je 0x100005ca9
lea rax, [rsp + 0x20]
jmp 0x100005cce
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax - 8]
dec r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CFormView::SetOccDialogInfo
nop
mov ebx, edi
mov dword [rsp + 0x80], ebx
mov rdx, rax
lea rcx, [rsp + 0x88]
call sub.MFC42u.dll_Ordinal_1284
nop
test dil, bl
je 0x100005cee
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
xor ecx, ecx
call fcn.100005af4
neg ebp
sbb dx, dx
and dx, 0x16
add dx, 0x24
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbp, qword [rsp + 0x88]
lea r12, [rax + 4]
mov rbx, r13
mov r14d, 0x5c
mov edx, r14d
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rsi, rax
cmp rax, r13
je 0x100005d9c
mov word [rsi], r13w
mov r8d, edi
mov rdx, rbp
xor ecx, ecx
call fcn.100005af4
cmp eax, r13d
jl 0x100005d89
cmp eax, r13d
je 0x100005d83
cmp rbx, r13
je 0x100005d69
mov word [rbx - 2], r14w
lea rbx, [rsi + 2]
mov edx, r14d
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rsi, rax
cmp rax, r13
jne 0x100005d44
jmp 0x100005d9c
mov word [rsi], r14w
jmp 0x100005d9c
lea rcx, [rsp + 0x88]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
jmp 0x100005e22
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r13d
je 0x100005dff
cmp rbx, r13
je 0x100005dec
cmp word [rbx], r13w
je 0x100005dec
mov word [rbx - 2], r14w
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, r13
je 0x100005dd7
mov word [rax], r13w
lea rbx, [rax + 2]
jmp 0x100005dda
mov rbx, r13
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r13d
jne 0x100005dac
jmp 0x100005dff
lea rcx, [rsp + 0x88]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov edi, r13d
jmp 0x100005e22
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r13d
cmovle edi, eax
lea rcx, [rsp + 0x88]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100008ae4
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x10000e110]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rbx, rcx
cmp rcx, rsi
je 0x100008bc3
cmp word [rcx], si
je 0x100008bc3
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 2
jbe 0x100008b48
cmp word [rbx], 0x5c
jne 0x100008b48
cmp word [rbx + 2], 0x5c
jne 0x100008b48
add rbx, 4
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov edi, esi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, esi
je 0x100008bb9
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
sete dil
cmp edi, esi
jne 0x100008bbf
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov ecx, 3
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, esi
je 0x100008bb9
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, esi
cmp eax, esi
sete dil
jmp 0x100008bbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
jmp 0x100008bc8
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1000098a0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x100008c8c
Capabilities:
Enumerate network shares

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
and qword [r11 - 0x48], 0
and qword [r11 - 0x38], 0
and dword [r11 + 0x18], 0
and dword [r11 + 0x20], 0
lea rax, [r11 + 0x20]
mov r13, rdx
mov qword [r11 - 0x50], rax
lea rax, [r11 + 0x18]
mov ebx, 1
lea r8, [r11 - 0x38]
or r9d, 0xffffffff
mov edx, ebx
mov qword [r11 - 0x58], rax
call sub.srvcli.dll_NetShareEnum
test eax, eax
jne 0x100008d59
mov edx, dword [rsp + 0x90]
mov rsi, qword [rsp + 0x40]
xor ebp, ebp
test edx, edx
je 0x100008d4d
bt dword [rsi + 8], 0x1f
jae 0x100008d3f
mov r12, qword [rsi]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
sub rcx, rbx
cmp rcx, 2
jne 0x100008d3f
cmp word [r12 + 2], 0x24
jne 0x100008d3f
movzx ecx, word [r13]
call qword [sym.imp.msvcrt.dll_towupper]
movzx ecx, word [r12]
movzx edi, ax
call qword [sym.imp.msvcrt.dll_towupper]
cmp ax, di
je 0x100008d4b
mov edx, dword [rsp + 0x90]
add ebp, ebx
add rsi, 0x18
cmp ebp, edx
jae 0x100008d4d
jmp 0x100008cef
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
call sub.netutils.dll_NetApiBufferFree
jmp 0x100008d67
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100008d84
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x10000e110]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea rcx, [rsp + 0xc2]
xor ebx, ebx
xor edx, edx
mov r8d, 0x196
mov word [rsp + 0xc0], bx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0xc0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x100008e25
lea r8d, [rbx + 0x7e]
lea rcx, [rsp + 0x42]
xor edx, edx
mov word [rsp + 0x40], bx
call sub.msvcrt.dll_memset
mov rcx, qword [rdi]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
lea edx, [rbx + 0x17]
xor r8d, r8d
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
lea ecx, [rbx + 1]
cmp eax, ebx
cmove ebx, ecx
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000098a0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x100008e50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x10000e110]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rdx]
lea rax, [rsp + 0x34]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x100008f17
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
lea rcx, [rsp + 0x40]
jne 0x100008ee0
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x100008f17
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x100008f03
mov al, byte [rcx + rdi]
cmp al, bl
je 0x100008f03
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x100008ee5
cmp rsi, rbx
jne 0x100008f10
dec rdi
mov edx, 0x8007007a
cmp edx, ebx
mov byte [rdi], bl
setge bl
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000098a0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret