joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001af00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1001af1f
push eax
call edi
lea esi, [eax*2 + 2]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001af2f
push eax
call edi
lea esi, [esi + eax*2]
add esi, 2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001af3f
push eax
call edi
lea esi, [esi + eax*2]
add esi, 2
lea eax, [esi + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1001b054
mov eax, dword [ebp + 8]
lea esi, [ebx + 0x10]
test eax, eax
je 0x1001af95
mov dword [ebx], esi
test esi, esi
je 0x1001af8c
push eax
call edi
add eax, 1
je 0x1001af89
cmp eax, 0x7fffffff
ja 0x1001af84
push ecx
push dword [ebp + 8]
mov edx, eax
push ecx
mov ecx, esi
call fcn.1000aea0
jmp 0x1001af89
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp + 8]
push eax
call edi
lea esi, [esi + eax*2]
add esi, 2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001afd3
mov dword [ebx + 4], esi
test esi, esi
je 0x1001afca
push eax
call edi
add eax, 1
je 0x1001afc7
cmp eax, 0x7fffffff
ja 0x1001afc2
push ecx
push dword [ebp + 0xc]
mov edx, eax
push ecx
mov ecx, esi
call fcn.1000aea0
jmp 0x1001afc7
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp + 0xc]
push eax
call edi
lea esi, [esi + eax*2]
add esi, 2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001b00a
mov dword [ebx + 8], esi
test esi, esi
je 0x1001b005
push eax
call edi
add eax, 1
je 0x1001b005
cmp eax, 0x7fffffff
ja 0x1001b000
push ecx
push dword [ebp + 0x10]
mov edx, eax
push ecx
mov ecx, esi
call fcn.1000aea0
jmp 0x1001b005
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x10]
call edi
mov eax, dword [ebp + 0x14]
push str.dopus.sendddethread
mov dword [ebx + 0xc], eax
call edi
add eax, 0xd
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1001b05b
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push esi
push ebx
push 0x1001b0d0
push esi
push esi
call fcn.10087214
add esp, 0x18
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1001b0ba
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
lea eax, [esi + 0xc]
push str.dopus.sendddethread
mov dword [esi], eax
call edi
push 0
push 0
inc eax
push eax
push dword [esi]
push 0xffffffffffffffff
push str.dopus.sendddethread
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp + 0xc]
mov dword [esi + 4], 0x1001b0d0
push eax
push 0
push esi
push 0x10032f10
push 0
mov dword [esi + 8], ebx
push 0
mov dword [ebp + 0xc], 0
call fcn.10087214
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1001b043
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x1001b049
push ebx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x1001bad0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.1009d950
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__4ld__dopus:
lea eax, [ebp - 0x4000]
push 0x2000
push eax
call fcn.1000b000
add esp, 0x10
lea eax, [ebp - 0x4000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x4000]
mov edx, 0x2000
sub edx, eax
lea ecx, [ecx + eax*2]
test ecx, ecx
je 0x1001bb46
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001bb3d
test edx, edx
je 0x1001bb46
mov word [ecx], ax
lea eax, [ebp - 0x4000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push eax
call fcn.1000af80
lea eax, [ebp - 0x4000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret

Function at 0x1001bd40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100c5cd4]
cmp eax, 0xffffffff
je 0x1001bd8c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1001bd85
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001bd74
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
push esi
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1001bd8b
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
pop esi
pop ebp
ret

Function at 0x1001bd90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001bdb2
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, 1
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
xor eax, eax
pop ebp
ret

Function at 0x1001be10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100c5cd4]
cmp eax, 0xffffffff
je 0x1001be73
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1001be55
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001be44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
push esi
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1001be72
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1001be62
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], ecx
test ecx, ecx
je 0x1001be72
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
pop esi
pop ebp
ret
Function at 0x1001c000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100c5cd4]
push esi
push edi
cmp eax, 0xffffffff
je 0x1001c068
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1001c046
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1001c035
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xc], eax
push edi
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0x1001c068
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
not esi
mov eax, dword [edi]
not ecx
mov edx, dword [edi + 4]
and esi, eax
or esi, dword [ebp + 8]
and ecx, edx
or ecx, dword [ebp + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
xor edx, edx
pop esi
pop ebp
ret

Function at 0x1001c070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100c5cd4]
push esi
cmp eax, 0xffffffff
je 0x1001c0b9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1001c0b2
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001c0a1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
push esi
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1001c0b9
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
ret
xor eax, eax
xor edx, edx
pop esi
ret

Function at 0x1001c0c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100c5cd4]
push ebx
cmp eax, 0xffffffff
je 0x1001c13a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x1001c10c
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x1001c0fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xc], eax
push ebx
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x1001c13a
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov ebx, dword [ebx + 4]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
not ecx
not esi
and ecx, ebx
and esi, edx
mov dword [eax], esi
mov esi, eax
mov eax, dword [ebp + 8]
and eax, edx
and ebx, dword [ebp + 0xc]
mov edx, ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100c5cd4]
sub esp, 8
push esi
cmp eax, 0xffffffff
je 0x1001c205
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1001c1d8
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001c1c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
push esi
push dword [0x100c5cd4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x1001c205
mov ecx, dword [esi]
mov eax, ecx
and eax, 0x400000
or eax, 0
je 0x1001c1f0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
and ecx, 0x800000
or ecx, 0
je 0x1001c205
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001c210
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 8]
not eax
push esi
mov esi, dword [0x100c5cc4]
and eax, esi
or edx, eax
mov eax, esi
mov dword [0x100c5cc4], edx
test cl, 4
je 0x1001c39b
and eax, 4
push edi
and edx, 4
je 0x1001c325
test eax, eax
jne 0x1001c329
cmp dword [0x100c5cd8], eax
jne 0x1001c398
cmp dword [0x100c72b0], eax
jne 0x1001c272
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100c72b0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.dopus.tst2
call ebx
add eax, 0xd
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x1001c2b9
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push 0x1001ccf0
push edi
push edi
call fcn.10087214
add esp, 0x18
mov ebx, eax
mov dword [0x100c5cd8], ebx
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret
lea eax, [edi + 0xc]
push str.dopus.tst2
mov dword [edi], eax
call ebx
push 0
push 0
inc eax
push eax
push dword [edi]
push 0xffffffffffffffff
push str.dopus.tst2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp + 8]
mov dword [edi + 4], 0x1001ccf0
push eax
push 0
push edi
push 0x10032f10
push 0
mov dword [edi + 8], 0
push 0
mov dword [ebp + 8], 0
call fcn.10087214
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1001c318
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x100c5cd8], ebx
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret
test eax, eax
je 0x1001c398
test edx, edx
jne 0x1001c398
mov eax, dword [0x100c5cd8]
test eax, eax
je 0x1001c398
mov ecx, dword [0x100c72b0]
test ecx, ecx
je 0x1001c361
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [0x100c5cd8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001c36a
mov eax, dword [0x100c5cd8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x100c72b0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001c386
push eax
call edi
mov dword [0x100c72b0], 0
push dword [0x100c5cd8]
call edi
mov dword [0x100c5cd8], 0
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x1001c4f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x1001c509
mov dword [esi], 0
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1001c516
mov dword [edi], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001c5b0
push str.DllGetVersion
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001c599
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], 0
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x14
call eax
test eax, eax
jne 0x1001c599
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x1001c57a
mov dword [esi], ecx
mov eax, dword [esp + 0x2c]
test edi, edi
je 0x1001c584
mov dword [edi], eax
imul esi, ecx, 0x64
push ebx
add esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 0
je 0x1001c5b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1001c63b
push eax
call fcn.1008680d
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001c63b
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1001c62f
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0x100b0dec
push dword [esp + 0x1c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1001c62f
mov ecx, dword [esp + 0x1c]
test esi, esi
je 0x1001c619
mov eax, dword [ecx + 8]
mov dword [esi], eax
test edi, edi
je 0x1001c622
mov eax, dword [ecx + 0xc]
mov dword [edi], eax
movzx eax, word [ecx + 0xa]
imul ebx, eax, 0x64
movzx eax, word [ecx + 8]
add ebx, eax
push dword [esp + 0x10]
call fcn.10086818
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d750
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
add eax, 2
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [ebp + 8]
push ecx
shr eax, 0xf
push 0xf
push dword [ebp + 0xc]
and eax, 1
mov dword [ecx + 0x10], eax
call fcn.1001da50
test eax, eax
jne 0x1001d7ac
push ecx
push str.dopus_cf_hdrop
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
push dword [ebp + 0xc]
call fcn.1001da50
test eax, eax
jne 0x1001d7ac
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18
test byte [ebp + 0x10], 4
mov ecx, 0
mov eax, dword [ebp + 0x1c]
setne cl
inc ecx
mov dword [eax], ecx
xor eax, eax
pop ebp
ret 0x18
Function at 0x1001e4d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
test edi, edi
je 0x1001e5d0
xor eax, eax
mov word [edi], ax
test esi, esi
je 0x1001e5d0
cmp word [esi], ax
je 0x1001e5d0
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e500
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x1001e5d0
push 0x3a
push esi
call fcn.1007c926
add esp, 8
test eax, eax
jne 0x1001e5d0
cmp word [esi], 0x5c
jne 0x1001e53f
cmp word [esi + 2], 0x5c
je 0x1001e5d0
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x1001e5d0
test ebx, ebx
je 0x1001e588
cmp word [ebx], 0
je 0x1001e588
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e560
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x1001e59f
push ebx
push 0x105
push edi
call fcn.10086dbb
add esp, 0xc
jmp 0x1001e59f
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1001e5cb
cmp eax, 0x104
jae 0x1001e5cb
cmp word [edi], 0
je 0x1001e5cb
push esi
push 0x104
push edi
call sym.dopuslib32.dll_SafePathAppend
add esp, 0xc
test eax, eax
je 0x1001e5cb
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001e5cb
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
mov word [edi], ax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001e920
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1009e2b0
push eax
mov dword fs:[0], esp
sub esp, 0x2b0
push str.GetCurrentPackageFullName
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001e98d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push ecx
call eax
cmp eax, 0x3d54
je 0x1001e98d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.1001eb30
mov dword [ebp - 0x10], eax
cmp eax, 1
jne 0x1001eada
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1001eada
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1001eada
push ebx
lea eax, [ebp + 8]
xor bl, bl
push eax
push 0x20019
push 0
push str.SoftwareGPSoftwareDirectory_Opus
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001ead9
push eax
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.EnableUACForWINR
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001ea12
cmp dword [ebp + 0xc], eax
je 0x1001ea12
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1001ead9
push 0x104
lea eax, [ebp - 0x2bc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1001ead9
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x1001ead9
push 0x100ade1c
push eax
call fcn.100808fe
add esp, 8
test eax, eax
jne 0x1001ead9
cmp word [esi + 4], 0x30c
jne 0x1001ead9
cmp dword [esi + 0xc], eax
jne 0x1001ead9
cmp dword [esi + 0x28], eax
jne 0x1001ead9
cmp dword [esi + 0x2c], eax
jne 0x1001ead9
mov eax, dword [esi + 8]
test eax, eax
je 0x1001ead9
push 0x50
lea ecx, [ebp - 0xb4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x1001ead9
mov ecx, str.Static
lea eax, [ebp - 0xb4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001eac9
test dx, dx
je 0x1001eac5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001eac9
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001eaa3
xor eax, eax
jmp 0x1001eace
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1001ead9
mov dword [esi + 0xc], str.runas
pop ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10021030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
push dword [ebp - 4]
lea eax, [ebp - 0x214]
push str.CLSID_sInprocServer32
push 0x104
push eax
call fcn.1000b000
add esp, 0x10
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100210b8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x50
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push esi
push str.Data
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x100210d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [eax - 1]
cmp ecx, 0x101
ja 0x100211da
cmp word [ebp + eax*2 - 0x20a], 0x5c
je 0x1002111e
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x208], cx
inc eax
xor ecx, ecx
mov word [ebp + eax*2 - 0x208], cx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov word [ebp + eax*2 - 0x208], cx
test edi, edi
je 0x100211da
mov ecx, 0x104
lea eax, [ebp - 0x208]
mov edi, edi
cmp word [eax], 0
je 0x1002114e
add eax, 2
sub ecx, 1
jne 0x10021140
mov eax, 0x104
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x7ff8ffa9
add eax, 0x80070057
test ecx, ecx
je 0x100211c4
mov eax, 0x104
lea ecx, [ebp - 0x208]
lea ecx, [ecx + edx*2]
push esi
sub eax, edx
je 0x100211a9
mov edx, SysReAllocString
sub edi, ecx
jmp 0x10021190
test edx, edx
je 0x100211b0
movzx esi, word [edi + ecx]
test si, si
je 0x100211a9
mov word [ecx], si
dec edx
add ecx, 2
sub eax, 1
jne 0x10021190
test eax, eax
jne 0x100211b0
sub ecx, 2
xor edx, edx
neg eax
mov word [ecx], dx
sbb eax, eax
and eax, 0x7ff8ff86
add eax, 0x8007007a
pop esi
test eax, eax
jne 0x100211da
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100217d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
push edi
test eax, eax
je 0x100217e1
mov dword [eax], esi
mov ebx, dword [ebp + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test ebx, ebx
je 0x100217fe
push ebx
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax*2 + 2]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1002180e
push eax
call ecx
lea esi, [esi + eax*2]
add esi, 2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1002181e
push eax
call dword [sym.imp.SHELL32.dll_ILGetSize]
add esi, eax
lea eax, [esi + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1002198f
mov ecx, dword [ebp + 0x18]
lea esi, [edi + 0x10]
mov dword [edi + 0xc], ecx
test ebx, ebx
je 0x10021876
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [edi], esi
mov dword [ebp + 8], eax
test esi, esi
je 0x10021873
test eax, eax
je 0x10021873
cmp eax, 0x7fffffff
ja 0x1002186e
push ecx
push ebx
push ecx
mov edx, eax
mov ecx, esi
call fcn.1000aea0
mov eax, dword [ebp + 8]
jmp 0x10021873
xor ecx, ecx
mov word [esi], cx
lea esi, [esi + eax*2]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100218b2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [edi + 4], esi
lea ebx, [eax + 1]
test esi, esi
je 0x100218af
test ebx, ebx
je 0x100218af
cmp ebx, 0x7fffffff
ja 0x100218aa
push ecx
push dword [ebp + 0xc]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.1000aea0
jmp 0x100218af
xor eax, eax
mov word [esi], ax
lea esi, [esi + ebx*2]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100218d0
push ebx
mov dword [edi + 8], esi
call dword [sym.imp.SHELL32.dll_ILGetSize]
push eax
push ebx
push dword [edi + 8]
call fcn.1007d410
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.dopus.invokeexplorer
call esi
add eax, 0xd
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10021921
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push 0x100219a0
push ebx
push ebx
call fcn.10087214
add esp, 0x18
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x1002198c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10021980
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret
lea eax, [ebx + 0xc]
push str.dopus.invokeexplorer
mov dword [ebx], eax
call esi
push 0
push 0
inc eax
push eax
push dword [ebx]
push 0xffffffffffffffff
push str.dopus.invokeexplorer
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp + 0x10]
mov dword [ebx + 4], 0x100219a0
push eax
push 0
push ebx
push 0x10032f10
push 0
mov dword [ebx + 8], edi
push 0
mov dword [ebp + 0x10], 0
call fcn.10087214
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10021909
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebx
jmp 0x1002190f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret