joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100de170
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
je 0x100de1b5
ja 0x100de1b5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x100de1d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x114], 5
sete al
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x100de220
Capabilities:
Enumerate processes on remote desktop session host
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push eax
push 1
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x100de2d5
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
xor ebx, ebx
cmp dword [ebp - 8], ebx
jbe 0x100de2cc
push esi
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + esi]
cmp eax, dword [ebp - 0xc]
jne 0x100de2c2
push dword [ebp + 8]
push dword [ecx + esi + 8]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x100de2c2
mov eax, dword [ebp - 4]
push dword [esi + eax + 4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100de2bf
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov dword [ebp - 0x10], edi
jmp 0x100de2c2
mov edi, dword [ebp - 0x10]
inc ebx
add esi, 0x10
cmp ebx, dword [ebp - 8]
jb 0x100de270
pop esi
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100de2e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10258e64], 0
jne 0x100de403
mov eax, dword [0x1025b450]
push esi
cmp eax, 0xffffffff
je 0x100de351
cmp dword [0x1025b454], 0xffffffff
je 0x100de351
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100de353
cmp dword [0x1025b45c], 0
je 0x100de353
push dword [0x1025b454]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [0x1025b45c]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025b450]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x100de353
xor esi, esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x10257d10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...deepscanqutmload.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
add esp, 8
test eax, eax
jne 0x100de3a5
lea eax, [ebp - 0x20c]
push eax
call fcn.100a1350
add esp, 4
test eax, eax
je 0x100de3b2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov ecx, 0x1025b450
mov dword [0x10258e64], eax
call fcn.10008cd0
mov eax, dword [0x10258e64]
test eax, eax
je 0x100de402
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddProtectedFile2
push eax
call esi
push str.RemoveProtectedFile2
push dword [0x10258e64]
mov dword [0x10258e68], eax
call esi
push str.RemoveAllProtectedFile2
push dword [0x10258e64]
mov dword [0x10258e6c], eax
call esi
mov dword [0x10258e70], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x100de420
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fd030
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x102519c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
push edi
mov esi, dword [ebp + 8]
push esi
call fcn.1010aeb0
mov ecx, eax
call fcn.1010b200
push 1
push edi
call fcn.100d9c10
add esp, 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x100de48b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100de4c7
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x100de4c7
push esi
call fcn.100dc6a0
add esp, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
push esi
call fcn.100d96e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100de510
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100de52c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
call fcn.10003680
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
test eax, eax
je 0x100de553
call eax
jmp 0x100de559
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test esi, esi
je 0x100de566
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0xffffffff
jne 0x100de575
or eax, edi
or edx, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
xor eax, eax
add eax, esi
pop edi
adc edx, 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100de920
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.1010aeb0
mov ecx, eax
call fcn.1010b5e0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push edi
call esi
test eax, eax
je 0x100de952
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100de97d
call fcn.10003180
cmp dword [eax + 0x12c], 0
jne 0x100de97d
push edi
call fcn.100dc6a0
add esp, 4
push ebx
push edi
call esi
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100de993
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xc
call fcn.10003680
add esp, 4
push ebx
push edi
test eax, eax
je 0x100de9a7
call eax
jmp 0x100de9ad
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
test esi, esi
je 0x100de9ba
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100e4e80
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x410
lea eax, [ebp - 0x61c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x624], 1
lea eax, [ebp - 0x628]
mov dword [ebp - 0x628], 0x410
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x624]
push eax
push str.360DeepscanRunOnce
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
push 0x208
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x10257d10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...deepscandsmain.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x620]
push str.__s___dbootini
push eax
call fcn.10002cb0
add esp, 0xc
test esi, esi
mov esi, dword [ebp - 0x620]
jne 0x100e4f85
cmp dword [ebp - 0x624], 1
jne 0x100e4f85
push esi
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x100e4f85
lea edi, [eax + 1]
jmp 0x100e4faa
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.360DeepscanRunOnce
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100e4fc2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x100e55b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100e55cb
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
test eax, eax
je 0x100e55e9
call eax
jmp 0x100e55ef
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test esi, esi
je 0x100e55fc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x100f2f10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100f2f2b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x11
call fcn.10003680
add esp, 4
push dword [ebp + 0xc]
push dword [ebp + 8]
test eax, eax
je 0x100f2f43
call eax
jmp 0x100f2f49
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test esi, esi
je 0x100f2f56
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x100f2f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100f2f7b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 9
call fcn.10003680
add esp, 4
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
test eax, eax
je 0x100f2f9c
call eax
jmp 0x100f2fa2
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test esi, esi
je 0x100f2faf
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x100f2fc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x408], eax
mov ecx, esi
lea eax, [ebp - 0x408]
mov dword [ebp - 0x400], 0
push eax
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.100f6220
or edi, 0xffffffff
test eax, eax
je 0x100f302c
lea esi, [edi + 2]
jmp 0x100f3139
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x3fc]
mov dword [ebp - 0x400], eax
call fcn.100f2d80
lea eax, [ebp - 0x3fc]
mov ecx, esi
push eax
push dword [esi + 0xd0]
call fcn.100f3d90
test eax, eax
je 0x100f3117
cmp dword [ebp - 0x3fc], 0x55484951
jne 0x100f3117
mov eax, dword [ebp - 0x3f8]
mov ebx, dword [ebp - 0x3f4]
mov dword [ebp - 0x404], eax
test eax, eax
jne 0x100f3092
test ebx, ebx
je 0x100f30aa
push dword [ebp - 0x3f0]
lea eax, [ebp - 0x3ec]
push eax
lea ecx, [ebp - 0x400]
call fcn.10003740
cmp dword [esi + 0xfc], 0
je 0x100f3117
push dword [esi + 0xd0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100f3117
push ecx
lea eax, [ebp - 0x400]
mov ecx, esp
push eax
call fcn.1001b810
mov ecx, esi
call fcn.100f3170
test eax, eax
jne 0x100f30ef
push 0xb
push 0x1020e210
lea ecx, [ebp - 0x400]
call fcn.10003740
push 0xb
push str.sysr_atad_5
push ebx
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push ecx
mov ecx, esp
push eax
call fcn.1001b810
mov ecx, esi
call fcn.100f63e0
xor esi, esi
jmp 0x100f311c
mov esi, 1
mov edx, dword [ebp - 0x400]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100f3139
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x408]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x100f3154
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x100f5610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x408], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x400], 0
mov dword [ebp - 0x404], eax
mov ecx, ebx
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.100f6220
test eax, eax
je 0x100f56e5
mov ecx, dword [ebp - 0x408]
mov eax, dword [ebp - 0x400]
mov dword [esi], eax
mov eax, dword [ebp - 0x40c]
mov dword [ecx], eax
cmp dword [esi], 0
jne 0x100f56b0
test eax, eax
jne 0x100f56b0
push eax
push 0x10202940
lea ecx, [ebp - 0x404]
call fcn.10003740
mov esi, dword [ebp - 0x404]
add esi, 0xfffffff0
push esi
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [edi], eax
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100f581b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x100f581b
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x3fc]
mov dword [ebp - 0x400], eax
call fcn.100f2d80
lea eax, [ebp - 0x3fc]
mov ecx, ebx
push eax
push dword [ebx + 0xd0]
call fcn.100f3d90
test eax, eax
jne 0x100f573d
mov ecx, dword [ebp - 0x408]
mov dword [esi], eax
push eax
push 0x10202940
mov dword [ecx], eax
lea ecx, [ebp - 0x400]
call fcn.10003740
jmp 0x100f57d2
cmp dword [ebp - 0x3fc], 0x55484951
jne 0x100f57d2
mov ecx, dword [ebp - 0x408]
mov eax, dword [ebp - 0x3f8]
mov dword [esi], eax
mov eax, dword [ebp - 0x3f4]
mov dword [ecx], eax
cmp dword [esi], 0
jne 0x100f576c
test eax, eax
je 0x100f5784
push dword [ebp - 0x3f0]
lea eax, [ebp - 0x3ec]
push eax
lea ecx, [ebp - 0x400]
call fcn.10003740
cmp dword [ebx + 0xfc], 0
je 0x100f57d2
push dword [ebx + 0xd0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100f57d2
lea eax, [ebp - 0x400]
mov ecx, ebx
push eax
call fcn.100f3ce0
mov eax, dword [ebp - 0x408]
push 0xb
push str.sysr_atad_1
push dword [eax]
lea eax, [ebp - 0x400]
push dword [esi]
push ecx
mov ecx, esp
push eax
call fcn.1001b810
mov ecx, ebx
call fcn.100f63e0
mov ebx, dword [ebp - 0x400]
add ebx, 0xfffffff0
push ebx
call fcn.10002a60
add eax, 0x10
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x100f5800
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x404]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100f581b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10101730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push str.__ws___ws___ws_
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.101fa3aa
push 0x44
lea eax, [ebp - 0x85c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
or dword [ebp - 0x830], 1
xor eax, eax
mov dword [ebp - 0x85c], 0x44
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x85c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10101834
push edi
push 0x2710
push dword [ebp - 0x818]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10101819
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0xffffffff
push eax
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x808], edi
jne 0x10101819
mov edi, 1
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x101033f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jb 0x1010343e
jne 0x1010342e
cmp dword [ebp - 0x110], 0
je 0x1010343e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x10103460
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x10103649
test edi, edi
je 0x10103649
cmp word [edi], 0
je 0x10103649
cmp esi, 1
je 0x101034a3
cmp esi, 2
jne 0x10103649
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x224]
push 0x10214738
call fcn.10020470
call fcn.10009c50
test eax, eax
je 0x1010354f
mov eax, dword [0x10256a68]
test al, 1
jne 0x101034ef
or eax, 1
mov dword [0x10256a68], eax
call fcn.10009c50
mov dword [0x10256a64], eax
jmp 0x101034f4
mov eax, dword [0x10256a64]
test eax, eax
je 0x1010354f
mov eax, dword [0x1025b458]
test eax, eax
je 0x1010354f
cmp dword [0x1025b45c], 0
je 0x1010354f
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push ecx
call eax
push dword [ebp - 0x228]
call dword [0x1025b45c]
cmp dword [ebp - 0x228], 0
jne 0x1010354f
push 0
push 0x29
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1010363e
jmp 0x10103563
lea eax, [ebp - 0x20c]
push eax
push 0x102
call fcn.100dbd90
add esp, 8
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10103570
sub ecx, edx
sar ecx, 1
je 0x1010363e
push str.regsvr32.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.1000aa00
add esp, 4
test eax, eax
jne 0x101035cf
push str..._regsvr32.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.1000aa00
add esp, 4
test eax, eax
jne 0x1010363e
push 0x10209334
lea ecx, [ebp - 0x224]
call fcn.100ba0d0
push edi
lea ecx, [ebp - 0x224]
call fcn.100ba0d0
push 0x10209334
lea ecx, [ebp - 0x224]
call fcn.100ba0d0
cmp esi, 2
jne 0x10103610
push 0x102147d0
lea ecx, [ebp - 0x224]
call fcn.100ba0d0
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
jb 0x10103625
mov eax, dword [ebp - 0x224]
push 0
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x224]
call fcn.10005250
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10107420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
call fcn.100cd220
mov dword [ebx], vtable.CExtIeSettingScan.0
lea esi, [ebx + 0xc0]
lea eax, [ebp - 4]
mov dword [esi], 0
push str._SystemRoot_
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10008d60
mov edi, dword [esi + 4]
add esp, 8
cmp dword [esi + 8], edi
je 0x10107482
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [esi + 4], 4
jmp 0x1010748b
push eax
push edi
mov ecx, esi
call fcn.1001ddd0
mov edx, dword [ebp - 4]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101074a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 8]
push str._ProgramFiles_
push eax
call fcn.10008d60
mov ecx, eax
add esp, 8
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
cmp dword [esi + 8], eax
je 0x101074e2
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10002a60
mov ecx, dword [ebp - 4]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x101074eb
push ecx
push eax
mov ecx, esi
call fcn.1001ddd0
mov edx, dword [ebp - 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10107505
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 4]
push str._ProgramFiles_x86__
push eax
call fcn.10008d60
mov ecx, eax
add esp, 8
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
cmp dword [esi + 8], eax
je 0x1010753f
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.10002a60
mov ecx, dword [ebp - 8]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x10107548
push ecx
push eax
mov ecx, esi
call fcn.1001ddd0
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10107560
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebx + 0xcc]
push eax
push 1
push 0
push 0
push 0
call esi
lea eax, [ebx + 0x2d4]
push eax
push 1
push 0
push 6
push 0
call esi
lea eax, [ebx + 0x4dc]
push eax
push 1
push 0
push 0x20
push 0
call esi
lea edi, [ebx + 0x6e4]
call fcn.100ddff0
test eax, eax
mov ecx, 0x10
mov eax, ebx
mov esi, str._USERPROFILE_AppDataLocalTemp
jne 0x101075b9
mov esi, str._USERPROFILE_Local_SettingTemp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov dword [ebx + 0xbc], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101078a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x10202940
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.1001ce20
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x214], 0x105
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1010791c
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.1001ce20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret