joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475a10
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.00537290
mov eax, dword [0x5f5ea4]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov word [esp + 0x12], dx
lea eax, [esp + 0x870]
mov edi, ecx
mov esi, 0x800
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x475a44
mov ecx, 0x800
lea eax, [esp + 0x70]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x475a60
mov ecx, 0x44
lea eax, [esp + 0x28]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x475a74
mov ecx, 0x10
lea eax, [esp + 0x14]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x475a90
push edi
lea eax, [esp + 0x874]
mov word [esp + 0x5c], dx
push eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x24]
xor bl, bl
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x475b0a
push dword [esi]
lea eax, [esp + 0x74]
push 0x400
push eax
call fcn.0055a116
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [esp + 0x70], 0
mov eax, 1
movzx ebx, bl
push esi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
lea eax, [esp + 0x2c]
test bl, bl
push eax
lea eax, [esp + 0x78]
cmove eax, ecx
push eax
push ecx
xor eax, eax
mov ecx, 0x8000000
cmp word [esp + 0x22], ax
cmove eax, ecx
push eax
push 0
push 0
push 0
lea eax, [esp + 0x890]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x475ba1
push edi
lea eax, [esp + 0x874]
push eax
push str.___Success_run:__s__pid:_i_
call fcn.0046adc0
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x475b78
push dword [ebp + 0xc]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x874]
push eax
push str.___Failed_to_run:__s__Code__lu.
call fcn.0046adc0
mov ecx, dword [esp + 0x1080]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
Function at 0x4774e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5f5ea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x477604
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x268], esi
test esi, esi
je 0x477603
push ebx
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4775ff
push edi
push dword [ebp - 0x25c]
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4775e8
push 0x2c
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
test eax, eax
je 0x4775e5
xor eax, eax
cmp eax, dword [ebp + 0xc]
jb 0x4775e5
ja 0x477581
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x2c], eax
jbe 0x4775e5
push dword [ebp - 0x25c]
mov dword [ebp - 8], 1
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4775bc
mov eax, dword [0x5fcba8]
test eax, eax
je 0x4775b9
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1d
push esi
call eax
push esi
call ebx
cmp dword [ebp - 8], 0
jne 0x4775df
lea eax, [ebp - 0x240]
push eax
push str.___Process__high_RAM_:__s
call fcn.0046adc0
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0x268]
push edi
call ebx
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x477542
pop edi
push esi
call ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
Function at 0x4779c0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cd08
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f5ea4]
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 - 0x2c], ecx
push 0xf003f
push 0
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x477bc6
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 3
push 0x30
push ebx
call edi
test eax, eax
jne 0x477bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x477bbf
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push 3
push 0x30
push ebx
call edi
test eax, eax
mov eax, dword [ebp - 0x20]
je 0x477baf
mov esi, eax
test eax, eax
je 0x477baf
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x477bac
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
nop dword [eax + eax]
push 0x5e730c
push dword [esi]
call edi
test eax, eax
jne 0x477b05
push str.backup
push dword [esi]
call edi
test eax, eax
jne 0x477b05
push str.database
push dword [esi]
call edi
test eax, eax
jne 0x477b05
push 0x5e730c
push dword [esi + 4]
call edi
test eax, eax
jne 0x477b05
push str.backup
push dword [esi + 4]
call edi
test eax, eax
jne 0x477b05
push str.database
push dword [esi + 4]
call edi
test eax, eax
je 0x477b9c
mov edx, dword [esi]
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x28], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477b23
sub eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push edx
call fcn.0044b730
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0
call fcn.0045aa40
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x477b8d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477b83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477be2
push edx
push ecx
call fcn.00536ae6
add esp, 8
push dword [esi]
push str.___Added_service:__s
call fcn.0046adc0
add esp, 8
inc ebx
add esi, 0x24
cmp ebx, dword [ebp - 0x18]
jb 0x477ab0
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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.005368a5
mov esp, ebp
pop ebp
ret
call fcn.00552581
int3
Function at 0x477bf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x5f5ea4]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
or eax, 0xffffffff
mov dword [esp + 0x10], 0xffffffff
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x477c3d
call ebx
push eax
push str.____Failed_to_get_activesession_Id._Code__lu
call fcn.0046adc0
add esp, 8
push 0
push 2
mov dword [esp + 0x28], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x477c7d
call ebx
push eax
push str.____CreateToolhelp32Snapshot_failed._Code__lu
call fcn.0046adc0
add esp, 8
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x477cd2
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x44]
push eax
push 0x5e745c
call fcn.0055e6a7
add esp, 8
test eax, eax
jne 0x477cbc
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x477cca
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x477c93
jmp 0x477cd2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x477d09
push str.____Couldnt_find_explorer
call fcn.0046adc0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x477d5c
mov eax, dword [esp + 0x10]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x477d5c
call ebx
push eax
push str.____Failed_to_open_explorer._Code__lu
call fcn.0046adc0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x477da7
lea eax, [esp + 0x14]
push eax
push 2
push 2
push 0
push 0xc
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x477da1
call ebx
push eax
push str.____Failed_to_duplicate_token._Code__lu
call fcn.0046adc0
add esp, 8
mov dword [esp + 0x14], 0xffffffff
push dword [esp + 0x18]
call edi
push esi
call edi
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
Function at 0x47abd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5f5ea4]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [0x5fc950]
mov edx, dword [0x5fc92c]
push ebx
shl ecx, 0xa
push esi
xor esi, esi
shl edx, 0xa
mov eax, ecx
mov ebx, esi
or eax, esi
push edi
mov edi, edx
je 0x47ac0b
cmp edx, ecx
jae 0x47ac0b
mov edi, ecx
cmp byte [0x5fc966], 0
jne 0x47ac18
or edx, esi
jne 0x47ac1c
or ecx, esi
je 0x47ac75
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x2000000
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47ac75
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push esi
movq qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebx
jg 0x47ac75
jl 0x47ac71
cmp dword [esp + 0x10], edi
jae 0x47ac75
xor bl, bl
jmp 0x47ac77
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x47acad
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47aca3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47acc1
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov ecx, dword [esp + 0x1c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
call fcn.00552581
int3
Function at 0x47bbf0
Capabilities:
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d130
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5f5ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5fcba2], 0
je 0x47bc70
call dword [sym.imp.Everything32.dll_Everything_DeleteRunHistory]
call dword [sym.imp.Everything32.dll_Everything_Exit]
call dword [sym.imp.Everything32.dll_Everything_CleanUp]
push 0x2710
push 0
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov ecx, str.wevtutil.exe_cl_security
call fcn.00475a10
push 0x2710
push 0
xor edx, edx
mov ecx, str.wevtutil.exe_cl_system
call fcn.00475a10
push 0x2710
push 0
xor edx, edx
mov ecx, str.wevtutil.exe_cl_application
call fcn.00475a10
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x47c4a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d1d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5f5ea4]
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 esi, edx
mov edi, ecx
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0044d0f0
push esi
mov edx, 0x5f6e58
mov ecx, edi
call fcn.0047bc80
add esp, 0x1c
test al, al
je 0x47c5a7
cmp dword [0x5f6e6c], 8
mov eax, 0x5f6e58
cmovae eax, dword [0x5f6e58]
push eax
push str.___Search_mask:__s
call fcn.0046adc0
add esp, 8
push 0
push 0
push 0
push 0x47c3d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x47c593
push 0x1d4c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47c568
call dword [sym.imp.Everything32.dll_Everything_GetLastError]
push eax
push str.____Timeout_waiting_Everything_SetSearch._LastError___lu.
call fcn.0046adc0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c5a7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x14], 1
push esi
jne 0x47c589
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c5a7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x47c5a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Failed_to_create_thread__Everything_SetSearch_._LastError___lu.
call fcn.0046adc0
add esp, 8
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x47c5df
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c5d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c5fd
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov al, bl
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.005368a5
mov esp, ebp
pop ebp
ret
call fcn.00552581
int3
Function at 0x47d670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d298
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5f5ea4]
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
cmp byte [0x5fcba2], 0
je 0x47d7eb
call fcn.004570d0
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x47d6b7
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
add edi, ecx
call fcn.004570d0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x47d6cb
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov eax, edi
mov dword [ebp - 0x14], 7
sub eax, esi
push eax
call fcn.0044ccd0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push edi
push esi
call fcn.0044cdc0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push 0
lea ebx, [eax + eax]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SOFTWAREMICROSOFTWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x47d759
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
push str.legalnoticetext
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x2c]
call edi
push 1
push 0x5e1274
lea ecx, [ebp - 0x28]
call fcn.0044b730
mov eax, dword [ebp - 0x18]
push 0
lea ebx, [eax + eax]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SOFTWAREMICROSOFTWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47d7b5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
push str.legalnoticecaption
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x2c]
call edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47d7eb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d7e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d807
push edx
push ecx
call fcn.00536ae6
add esp, 8
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.005368a5
mov esp, ebp
pop ebp
ret
call fcn.00552581
int3
Function at 0x47f8a0
Capabilities:
Bypass uac via icmluautil
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x85c
mov eax, dword [0x5f5ea4]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x1c]
mov edi, edx
push eax
push 0
push 0x10010
push str.ConsentPromptBehaviorAdmin
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [esp + 0x18], 2
jne 0x47f91a
push str.____Abort_elevation__Max_UAC_level_
call fcn.0046adc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
push esi
lea eax, [esp + 0x24c]
push 0x104
push eax
call fcn.0055a116
add esp, 0xc
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [esp + 0x65c]
push 0x104
push eax
call fcn.0055a116
add esp, 0xc
lea eax, [esp + 0x450]
push edi
push 0x104
push eax
call fcn.0055a116
add esp, 0xc
xor esi, esi
call fcn.0047f600
test eax, eax
je 0x47fa52
push 2
push esi
mov edi, 0xc0000022
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
mov dword [esp + 0x10], esi
mov ecx, 0x24
lea eax, [esp + 0x1c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x47f996
push str.Elevation:Administrator_new:
lea eax, [esp + 0x44]
mov dword [esp + 0x20], 0x24
push 0x104
push eax
mov dword [esp + 0x3c], 4
call fcn.0055a116
add esp, 0xc
lea eax, [esp + 0x40]
push str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
push 0x104
push eax
call fcn.0055e620
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x5e89d8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x47fa30
test esi, esi
je 0x47fa3c
mov eax, dword [esi]
lea ecx, [esp + 0x248]
push 5
push 0
push ecx
mov eax, dword [eax + 0x24]
lea ecx, [esp + 0x45c]
push ecx
lea ecx, [esp + 0x668]
push ecx
push esi
call eax
xor ecx, ecx
test eax, eax
cmovns edi, ecx
test esi, esi
je 0x47fa3c
mov eax, dword [esi]
push esi
mov eax, dword [eax + 8]
call eax
test ebx, ebx
jne 0x47fa46
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov eax, 1
test edi, edi
cmove esi, eax
mov ecx, dword [esp + 0x864]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
Function at 0x498400
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00537290
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x498480
mov cl, byte [edi]
test cl, cl
je 0x498480
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x498430
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x498520
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00537290
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x4985a3
mov al, byte [ebx]
test al, al
je 0x4985a3
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.00497700
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x498547
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x50e100
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x50e114
mov dword [esp + 0x18], fcn.0050c8e0
jmp fcn.00505e70
mov dword [esp + 0x18], fcn.0050bb80
jmp fcn.00505b70

Function at 0x538c06
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x560312
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00537290
mov eax, dword [0x5f5ea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0055fe4a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x560354
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5604b0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00579830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5fc3d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0056b201
mov ecx, dword [esi*4 + 0x5fc3d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x5604a9
cmp eax, dword [edi + ecx + 0x24]
jne 0x5604a9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5604a9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056b201
add esp, 0x14
test edx, edx
jl 0x5604a9
jg 0x56041f
test eax, eax
jb 0x5604a9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5604a9
jl 0x560439
cmp dword [ebp - 0x1008], eax
ja 0x5604a9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x560457
test ebx, ebx
je 0x560490
cmp ecx, edi
jae 0x560490
mov al, byte [ecx]
cmp al, 0xd
jne 0x560471
lea eax, [edi - 1]
cmp ecx, eax
jae 0x56047d
cmp byte [ecx + 1], 0xa
jne 0x56047d
inc ecx
jmp 0x56047d
movzx eax, al
movsx eax, byte [eax + 0x5f61e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x560457
cmp edx, ebx
jne 0x560457
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5604ae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005368a5
leave
ret