joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481537
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push ebx
push eax
mov dword [ebp - 0x408], ebx
call fcn.004b4620
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
add esp, 0xc
push ebx
push ebx
call esi
mov edi, eax
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push edi
mov dword [ebp - 0x40c], eax
call esi
mov edi, eax
xor esi, esi
cmp edi, ebx
jbe 0x4815e4
mov eax, dword [ebp - 0x40c]
movzx eax, word [eax + esi*4]
cmp eax, 0x42a
jne 0x4815b5
or dword [ebp - 0x408], 1
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x400
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
inc esi
cmp esi, edi
jb 0x48159d
cmp dword [ebp - 0x40c], ebx
pop edi
pop esi
pop ebx
je 0x4815fb
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
call fcn.004b46ff
leave
ret

Function at 0x481a9d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x481b02
cmp dword [ebp - 0x118], 2
jne 0x481b02
call fcn.0043b72a
test al, al
je 0x481b02
cmp byte [ebp - 6], 1
jne 0x481b02
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x481c48
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe70
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004b4620
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x61c], si
je 0x481e1a
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x481e19
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x501174
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x481e19
push esi
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x540ca8
call fcn.004a6717
test eax, eax
je 0x481e06
push 0x800
lea eax, [ebp - 0xe1c]
push esi
push eax
call fcn.004b4620
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xe1c]
push str.__s___pid_clean_lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x40
lea eax, [ebp - 0xe6c]
push esi
push eax
call fcn.004b4620
xor eax, eax
mov dword [ebp - 0xe2c], esi
lea edi, [ebp - 0xe28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0xe40], ax
lea eax, [ebp - 0xe2c]
push eax
lea eax, [ebp - 0xe70]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xe1c]
push eax
push esi
mov dword [ebp - 0xe70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x481e06
cmp dword [ebp - 0xe2c], esi
je 0x481e06
push dword [ebp - 0xe28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xe2c]
call esi
push 1
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0043a359
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret

Function at 0x4824ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x482500
push 0xd
pop eax
jmp 0x48252b
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x482503
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48321a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
add esi, 0x104
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b1800
mov ebx, eax
lea eax, [esi + esi]
push eax
push 0
push ebx
call fcn.004b4620
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004b4620
add esp, 0x1c
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x4832cf
mov dword [ebp - 0x210], eax
cmp dword [edi], 0
je 0x4832c4
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.0040b640
push dword [edi]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
call fcn.0043b83c
xor eax, eax
mov word [ebx], ax
add edi, 4
dec dword [ebp - 0x210]
jne 0x48329d
push ebx
call fcn.004b5d21
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x48984c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4e4893
call fcn.004b528d
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x4898a5
call fcn.00439d4c
mov esi, eax
jmp 0x4899b5
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4898be
call fcn.00439d4c
jmp 0x4899a7
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, ebx
je 0x4898b4
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x48992b
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x48990d
lea ecx, [ebp - 0x418]
call fcn.00482a5d
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0048160d
mov eax, esi
call fcn.004b52e9
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.00483656
mov dword [ebp - 4], 1
jmp 0x489959
cmp dword [ebp - 0x418], ebx
jne 0x489968
mov esi, 0x8007000e
jmp 0x4899a9
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x428]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4898b4
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.00484e38
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x489912
lea ecx, [ebp - 0x418]
call fcn.00482a5d
jmp 0x489912
Function at 0x48ba12
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x22c
mov eax, 0x4e4d96
call fcn.004b5257
lea eax, [ebp - 0x220]
push eax
call fcn.0044a12e
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esp], str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00445250
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.0040d610
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x48bb86
lea ecx, [ebp - 0x224]
call fcn.0040c7d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x224]
push eax
push edi
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x220], esp
push eax
call fcn.0044bc85
mov byte [ebp - 4], 4
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
call fcn.004420c1
mov byte [ebp - 4], 5
mov esi, 0x80000003
push esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.00443769
mov byte [ebp - 4], 6
push eax
call fcn.0044b15c
pop ecx
pop ecx
mov ebx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.00443c39
cmp ebx, edi
je 0x48bb77
push edi
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
call fcn.0044bc85
mov byte [ebp - 4], 7
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x220], esp
push eax
call fcn.004420c1
mov byte [ebp - 4], 8
push esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.00443769
mov byte [ebp - 4], 9
push eax
call fcn.0043ea6a
pop ecx
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.00443c39
cmp esi, edi
je 0x48bb77
push 5
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d610
call fcn.004b52da
ret
Function at 0x48c872
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0x24
mov eax, 0x4e4ffd
call fcn.004b5257
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov ebx, ecx
mov dword [ebp - 0x30], edi
mov byte [ebp - 0x24], 0x17
mov byte [ebp - 0x23], 2
mov byte [ebp - 0x22], 0x23
mov byte [ebp - 0x21], 0x29
mov byte [ebp - 0x20], 0x28
mov byte [ebp - 0x1f], 0x3f
mov byte [ebp - 0x1e], 0x3c
mov byte [ebp - 0x1d], 0x21
mov byte [ebp - 0x1c], 0x15
mov byte [ebp - 0x1b], 0x11
mov byte [ebp - 0x1a], 5
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0x34
mov byte [ebp - 0x17], 4
mov byte [ebp - 0x16], 0x2d
mov byte [ebp - 0x15], 0x28
mov byte [ebp - 0x14], 0xb
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x3e
mov byte [ebp - 0x11], al
mov dword [ebp - 0x28], 0x444c5047
mov ecx, eax
and ecx, 3
mov cl, byte [ebp + ecx - 0x28]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x13
jb 0x48c8e1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446796
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x45a547
push eax
add ebx, 0x14
push ebx
push edi
call fcn.0048c66e
add esp, 0x10
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040d610
mov eax, edi
call fcn.004b52da
ret 4

Function at 0x48cc05
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x4e5145
call fcn.004b51ee
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call fcn.0040c7d0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Path
call fcn.0044bc85
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
call fcn.0044bc85
mov byte [ebp - 4], 3
push 0x80000002
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.00443769
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x14], ebx
call fcn.0044b15c
pop ecx
pop ecx
test eax, eax
je 0x48cc84
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x48cc88
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x30]
call fcn.00443c39
cmp byte [ebp - 0xd], 0
mov ecx, dword [ebp + 8]
je 0x48ccae
lea eax, [ebp - 0x18]
push eax
call fcn.004420c1
jmp 0x48ccb8
push 0x50ea0c
call fcn.0044bc85
or dword [ebp - 0x14], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040d610
mov eax, dword [ebp + 8]
call fcn.004b52c6
ret

Function at 0x48ce61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 0x28]
push eax
push 0
push esi
push 0x48b581
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 8], 0
mov dword [esi + 0x24], eax
je 0x48ce94
push 0x3e8
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
inc eax
pop esi
pop ebp
ret 4
Function at 0x48df9e
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x4e54bb
call fcn.004b51ee
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x48dfc7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
jne 0x48dfc7
xor al, al
jmp 0x48e0f5
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x48dfc0
xor edi, edi
cmp dword [ebp - 0x18], ebx
jle 0x48e0ea
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edi*4]
cmp word [eax], 0x2f
jne 0x48e0e0
add eax, 2
push eax
lea ecx, [ebp + 8]
call fcn.0044bc85
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.0040c7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040c7d0
mov byte [ebp - 4], 2
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.004420e7
mov esi, eax
cmp esi, 0xffffffff
je 0x48e082
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.00445149
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.004453ce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0040d610
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00443dba
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.004453ce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0040d610
jmp 0x48e08e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004453ce
push 0x22
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0046e752
mov ecx, eax
call fcn.0046e926
lea ecx, [ebp - 0x14]
call fcn.00445121
mov ecx, dword [ebp - 0x28]
push eax
call fcn.004575a2
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.004453ce
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040d610
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040d610
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d610
inc edi
cmp edi, dword [ebp - 0x18]
jl 0x48dfe7
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
call fcn.004b52c6
ret 8
Function at 0x48f896
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [esi], ebx
call edi
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
push esi
push 0x48e629
push eax
push eax
mov dword [ebp + 8], eax
call fcn.004ba7b9
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
jne 0x48f8d5
xor al, al
jmp 0x48f90e
add ebx, 2
imul ebx, ebx, 0x3e8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48f8fc
call edi
sub eax, dword [ebp - 4]
mov dword [esi + 8], 0xfffffffd
mov dword [esi + 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 8], 1
setge al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49291f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
cmp esi, ebx
je 0x492aec
cmp eax, ebx
je 0x492aec
cmp ecx, ebx
je 0x492aec
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], 1
call fcn.004b4620
mov eax, dword [ebp + 0x18]
push esi
push str.SOFTWARE360SafeLiveUpupdatecfg
add eax, eax
push 0x4f9538
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.004bbd1d
add esp, 0x20
lea eax, [ebp - 0x210]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x492a3a
cmp dword [ebp - 0x210], ebx
je 0x492a2f
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
mov dword [ebp - 0x22c], eax
call edi
cmp dword [ebp - 0x22c], ebx
jne 0x492a3a
mov eax, dword [ebp - 0x214]
jmp 0x492aee
cmp byte [ebp + 0x1c], bl
je 0x492aec
lea eax, [ebp - 0x210]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x492aec
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push str.Path
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x206
call esi
push dword [ebp - 0x210]
call edi
push 0xe
push 0x5047ac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004bcb69
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x492aee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x492afd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 8], eax
je 0x492bea
cmp dword [ebp + 0xc], eax
je 0x492bea
cmp dword [ebp + 0x10], eax
je 0x492bea
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 4]
push ecx
mov edi, 0x20206
push edi
push eax
push str.SOFTWARE360SafeLiveUpupdatecfg
mov ebx, 0x80000002
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x492b7d
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push str.SOFTWARE360SafeLiveUp
push ebx
call esi
test eax, eax
jne 0x492b7d
lea eax, [ebp - 4]
push eax
push str.updatecfg
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x492bea
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov esi, eax
cmp esi, ebx
je 0x492baa
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
cmp dword [ebp - 8], ebx
je 0x492bd8
push dword [ebp + 0x10]
call fcn.004b5d07
pop ecx
add eax, eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
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]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x492bec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x492da9
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x224], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call fcn.004b4620
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x20
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x492f01
push 1
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0x210]
call fcn.00492c97
add esp, 0xc
test eax, eax
je 0x492f01
push 1
push str.SeRestorePrivilege
push dword [ebp - 0x210]
call fcn.00492c97
add esp, 0xc
test eax, eax
je 0x492f01
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push ebx
push esi
call edi
test eax, eax
jne 0x492e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x492f00
push dword [ebp - 0x214]
call fcn.004b1800
pop ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push eax
push ebx
push esi
mov dword [ebp - 0x218], eax
call edi
test eax, eax
je 0x492eec
push esi
push esi
push esi
push dword [ebp - 0x218]
xor edi, edi
inc edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x492eec
mov dword [ebp - 0x220], edi
cmp dword [ebp - 0x218], esi
je 0x492f00
push dword [ebp - 0x218]
call fcn.004b5d21
pop ecx
pop edi
cmp dword [ebp - 0x210], esi
pop esi
pop ebx
je 0x492f17
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
call fcn.004b46ff
leave
ret 0xc

Function at 0x492f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
mov dword [ebp - 0xc], ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push str.PendingFileRenameOperations
mov ebx, 0x504a10
push ebx
mov edi, 0x80000002
push edi
call esi
test eax, eax
je 0x492f8e
xor al, al
jmp 0x492fe5
cmp dword [ebp - 8], 7
jne 0x492f8a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x492f9f
mov al, 1
jmp 0x492fe5
push 0x541444
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b60d0
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
test eax, eax
je 0x492f8a
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ecx + 4], edx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push str.PendingFileRenameOperations
push ebx
push edi
call esi
neg eax
sbb al, al
inc al
pop edi
pop esi
pop ebx
leave
ret