joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40749f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00406994
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call fcn.00406994
mov eax, dword [0x40ad08]
push 0x40a1c8
push eax
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x405bc9
push 0x40aa34
lea ecx, [esp + 0xc]
call fcn.00406a12
jmp 0x405bf5
mov eax, dword [0x40ad08]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x405bf5
mov al, byte [eax + esi]
mov cl, 0xa3
sub cl, al
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [0x40ad08]
add esi, 2
cmp esi, dword [eax - 8]
jl 0x405bd7
push 1
lea edx, [esp + 0x1c]
push 2
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
mov esi, eax
mov edi, dword [esp + 0x34]
push 0x2e
mov ecx, edi
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 2
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Mid_1
mov edx, dword [esi]
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_sreg_s.exe
push eax
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x405ea0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x406034
lea eax, [esp]
push esi
push eax
push 0x408594
push 1
push 0
push 0x4085a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x405ff0
mov eax, dword [esp + 4]
push edi
mov edi, dword [esp + 0x21c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x228]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x4085b4
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x405fa8
push ebx
mov ebx, dword [esp + 0x224]
lea edx, [esp + 0x14]
push 0x104
push edx
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
push esi
push ebx
push edi
push str.Crt_lnk_4_:_s_s__X_
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x40ac70
push 0x40ab68
call fcn.00406740
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
pop ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x220]
push esi
push edx
push edi
push str.Crt_lnk_2_:_s_s__X_
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x40ac70
push 0x40ab68
call fcn.00406740
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x21c]
mov eax, dword [esp + 0x218]
push esi
push edx
push eax
push str.Crt_lnk_3_:_s_s__X_
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x40ac70
push 0x40ab68
call fcn.00406740
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10
mov eax, dword [esp + 4]
add esp, 0x210
ret 0x10
Function at 0x406050
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40750c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0x100
call fcn.00406994
lea ecx, [esp]
mov dword [esp + 0x21c], 0
call fcn.00406994
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x14]
mov byte [esp + 0x21c], 1
mov eax, dword [eax]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 4]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406205
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
lea edx, [esp + 0x20]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406205
push esi
lea ecx, [esp + 0x118]
push edi
push ecx
lea ecx, [esp + 0xc]
call fcn.00406a12
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
push 0x20
lea ecx, [esp + 0xc]
mov edi, eax
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
lea edx, [esi + 1]
push edx
push eax
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, 0x40acd8
mov byte [esp + 0x228], 2
call fcn.00406a18
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::CString
sub esi, edi
lea ecx, [esp + 0x10]
dec esi
inc edi
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
mov ecx, dword [esp + 0x22c]
push eax
mov byte [esp + 0x228], 3
call fcn.00406a18
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x234]
pop edi
test al, al
pop esi
je 0x4061bc
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp]
mov byte [esp + 0x21c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret 0xc
lea ecx, [esp]
mov byte [esp + 0x21c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x214]
xor al, al
mov dword fs:[0], ecx
add esp, 0x220
ret 0xc
Function at 0x10003180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc21b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push 0x84
push 0
push eax
call fcn.10034ae0
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x98]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push str.click
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.1004deb6
test al, al
je 0x1000324b
push str.know_btn
lea ecx, [ebp - 0x98]
call fcn.1004deb6
test al, al
je 0x1000324b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea esi, [ebx - 0x20]
push esi
push 0x10002fd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
mov ecx, esi
call fcn.1004ef46
mov ecx, esi
call fcn.1008095b
push reloc.KERNEL32.dll_GetUserDefaultLCID
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push edi
mov ecx, ebx
call fcn.1005b573
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0xffffffff
call fcn.1004ddfa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret 4
Function at 0x10004a60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc308
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x174], ecx
test ecx, ecx
je 0x10004b8a
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x170], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004b8a
lea ecx, [ebp - 0x170]
push ecx
call eax
test eax, eax
js 0x10004b8a
mov esi, dword [ebp - 0x160]
xor edx, edx
mov edi, dword [ebp - 0x168]
xor eax, eax
mov ebx, dword [ebp - 0x16c]
cmp dword [eax + 0x101036d0], 0xffffffff
jne 0x10004b05
mov dword [eax + 0x101036d0], ebx
cmp dword [eax + 0x101036d4], 0xffffffff
jne 0x10004b14
mov dword [eax + 0x101036d4], edi
cmp dword [eax + 0x101036d8], 0xffffffff
jne 0x10004b23
mov dword [eax + 0x101036d8], esi
cmp dword [eax + 0x101036dc], 0xffffffff
jne 0x10004b36
movzx ecx, byte [ebp - 0x56]
mov dword [eax + 0x101036dc], ecx
cmp dword [eax + 0x101036e0], 0xffffffff
jne 0x10004b49
movzx ecx, word [ebp - 0x4c]
mov dword [eax + 0x101036e0], ecx
cmp dword [eax + 0x101036d0], ebx
jne 0x10004b79
cmp dword [eax + 0x101036d4], edi
jne 0x10004b79
cmp dword [eax + 0x101036d8], esi
jne 0x10004b79
movzx ecx, byte [ebp - 0x56]
cmp dword [eax + 0x101036dc], ecx
jne 0x10004b79
movzx ecx, word [ebp - 0x4c]
cmp dword [eax + 0x101036e0], ecx
je 0x10004ba8
add eax, 0xb4
inc edx
cmp eax, 0x1680
jb 0x10004af6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ebx, dword [ebp - 0x174]
mov dword [ebp - 4], eax
imul eax, edx, 0xb4
add eax, str.NT_4.0
push eax
push 0x80
push ebx
call fcn.1003143b
add esp, 0xc
test eax, eax
je 0x10004bed
lea ecx, [ebp - 0x28]
call fcn.100016b0
jmp 0x10004b8a
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x170]
call fcn.10004880
push 0x100f1544
push 0x80
push ebx
call fcn.100312bd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x80
push ebx
call fcn.100312bd
push 0x80
push ebx
call fcn.100304a7
add esp, 0x20
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.100016b0
mov eax, esi
jmp 0x10004b8c
Function at 0x10005480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ebx, edx
cmp edi, 5
jge 0x100055b2
test ebx, ebx
je 0x100055b2
call fcn.10004810
cmp eax, 5
jbe 0x1000556e
mov dword [ebp - 0x18], esi
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], esi
cmp edi, 4
ja case.default.0x100054ce
jmp dword [edi*4 + 0x100055c8]
movdqu xmm0, xmmword [0x100d28a8]
jmp 0x10005505
movdqu xmm0, xmmword [0x100d28b8]
jmp 0x10005505
movdqu xmm0, xmmword [0x100d28c8]
jmp 0x10005505
movdqu xmm0, xmmword [0x100d2888]
jmp 0x10005505
movdqu xmm0, xmmword [0x100d2898]
movdqu xmmword [ebp - 0x14], xmm0
push str.SHGetKnownFolderPath
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100055b2
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call eax
test eax, eax
jne 0x100055b2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100055b2
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, 4
ja case.default.0x10005575
jmp dword [edi*4 + 0x100055dc]
mov eax, 0x1a
jmp case.default.0x10005575
mov eax, 0x1c
jmp case.default.0x10005575
mov eax, 0x2a
jmp case.default.0x10005575
xor eax, eax
jmp case.default.0x10005575
mov eax, 0x19
push ebx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret

Function at 0x10005670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push 0x38
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x40], 0x3c
call fcn.10034ae0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x100056b4
call fcn.100058d0
mov dword [ebp - 0x34], str.runas
test eax, eax
jne 0x100056bb
mov dword [ebp - 0x34], str.open
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0x40
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
jne 0x10005719
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x10005706
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10005722
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
Function at 0x10005740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x1c], eax
mov esi, 1
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], edi
test edx, edx
je 0x10005798
lea eax, [ebp - 0xc]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, dword [ebp - 8]
mov esi, eax
mov byte [ebp - 0xd], 1
jmp 0x1000579b
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000581f
lea ecx, [ebp - 8]
push ecx
push 0
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000581c
test esi, esi
jne 0x1000582b
mov edi, dword [ebp - 8]
test edi, edi
je 0x10005823
xor ecx, ecx
mov eax, edi
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.10030415
mov esi, dword [ebp - 0x14]
lea ecx, [edi + 2]
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.10034ae0
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
mov esi, eax
mov eax, dword [ebp - 0x14]
shr ecx, 1
xor edx, edx
mov eax, dword [eax]
mov word [eax + ecx*2], dx
mov edi, dword [ebp - 8]
test esi, esi
jne 0x1000582b
test ebx, ebx
je 0x10005835
mov dword [ebx], edi
jmp 0x10005835
test ebx, ebx
je 0x10005835
mov dword [ebx], 0
cmp byte [ebp - 0xd], 0
je 0x10005844
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret

Function at 0x10005860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 2
push 0
push edx
push reloc.gdiplus.dll_Ordinal_1
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100058b5
push dword [ebp + 0x14]
push edi
push 3
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
Function at 0x100058d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 4
push eax
xor ebx, ebx
mov dword [ebp - 0xc], 4
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005981
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005978
cmp dword [ebp - 0x14], 1
sete bl
test ebx, ebx
je 0x10005978
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ConsentPromptBehaviorAdmin
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005978
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
setne bl
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret
Function at 0x10006070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc530
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101025ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
cmp dword [ebp + 0x18], 0
je 0x100061d6
push 4
push 0
push str.http
lea ecx, [ebp + 8]
call fcn.100026d0
test eax, eax
jne 0x1000612e
cmp dword [ebp + 0x30], 0
lea eax, [ebp + 8]
jne 0x100060e5
cmp dword [ebp + 0x1c], 8
push 1
cmovae eax, dword [ebp + 8]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x100061d6
push eax
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0x24]
call fcn.100087f0
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 8
jb 0x100060fe
mov ecx, dword [ecx]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push 1
cmovae eax, dword [ebp + 0x20]
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x10], 8
jb 0x100061d6
push dword [ebp - 0x24]
jmp 0x100061ce
cmp dword [ebp + 0x30], 0
jne 0x10006153
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.10008640
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x1000614b
mov eax, dword [eax]
push 1
push 0
push 0
jmp 0x1000610e
push str.http:__
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0x3c]
call fcn.10008700
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.100088b0
mov ecx, eax
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x10006182
mov ecx, dword [ecx]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push 1
cmovae eax, dword [ebp + 0x20]
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x10], 8
jb 0x100061b1
push dword [ebp - 0x24]
call fcn.1002f7b8
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
jb 0x100061d6
push dword [ebp - 0x3c]
call fcn.1002f7b8
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x100061e7
push dword [ebp + 8]
call fcn.1002f7b8
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x1000620c
push dword [ebp + 0x20]
call fcn.1002f7b8
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x10006231
push dword [ebp + 0x38]
call fcn.1002f7b8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10006500
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101025ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10034ae0
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0x105
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x100065a1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x100065a1
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x100065a1
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 2
push 0
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006608
cmp edi, 0xffffffff
mov dword [ebp - 0x214], 0
push 0
cmove edi, dword [ebp + 0x30]
lea ecx, [ebp - 0x214]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x1000660a
xor esi, esi
cmp dword [ebp + 0x1c], 8
jb 0x1000661b
push dword [ebp + 8]
call fcn.1002f7b8
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x10006640
push dword [ebp + 0x20]
call fcn.1002f7b8
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret