joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b25eb
mov eax, dword fs:[0]
push eax
sub esp, 0x8b4
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
lea ecx, [ebp - 0x8b8]
call fcn.004a8200
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
call sym.Install_adv.exe_private:_bool___thiscall_CNsLog::isLog_void_
movzx ecx, al
test ecx, ecx
jne 0x4a3dda
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8b8]
call fcn.004a8230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004195f0
jmp 0x4a3fac
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00412880
movzx edx, al
test edx, edx
je 0x4a3df4
mov ecx, dword [ebp + 8]
call sym.Install_adv.exe_private:_bool___thiscall_CNsLog::GetDefLogPath_void_
push 0x4d0d84
mov ecx, dword [ebp + 8]
add ecx, 0x10
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043ce99
add esp, 8
mov dword [ebp - 0x8ac], eax
cmp dword [ebp - 0x8ac], 0
je 0x4a3f8e
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.00433ca0
add esp, 0xc
lea ecx, [ebp + 0x2c]
mov dword [ebp - 0x8b0], ecx
mov edx, dword [ebp - 0x8b0]
push edx
mov eax, dword [ebp + 0x28]
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
call fcn.00425e10
add esp, 0x10
mov dword [ebp - 0x8b0], 0
lea edx, [ebp - 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xfde9
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x8a4]
call fcn.00425d90
mov dword [ebp - 0x8bc], eax
mov ecx, dword [ebp - 0x8bc]
mov dword [ebp - 0x8c0], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8c0]
call fcn.00418e30
push eax
lea ecx, [ebp - 0x8b4]
call fcn.004199f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8a4]
call fcn.00419d00
lea ecx, [ebp - 0x8a8]
call fcn.00425b00
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x8b4]
push edx
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.00419530
push eax
movzx ecx, word [ebp - 0x814]
push ecx
movzx edx, word [ebp - 0x816]
push edx
movzx eax, word [ebp - 0x818]
push eax
movzx ecx, word [ebp - 0x81a]
push ecx
movzx edx, word [ebp - 0x81e]
push edx
movzx eax, word [ebp - 0x820]
push eax
push str.__d__02d__02d__02d:_02d:_02d___s___d___s_r_n
lea ecx, [ebp - 0x8a8]
push ecx
call fcn.00425b20
add esp, 0x2c
mov edx, dword [ebp - 0x8ac]
push edx
lea ecx, [ebp - 0x8a8]
call fcn.00418e30
push eax
call fcn.0043d010
add esp, 4
push eax
push 1
lea ecx, [ebp - 0x8a8]
call fcn.00418e30
push eax
call fcn.0043ccbf
add esp, 0x10
mov eax, dword [ebp - 0x8ac]
push eax
call fcn.0043cf8f
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8a8]
call fcn.004199d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8b4]
call fcn.004199d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8b8]
call fcn.004a8230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004195f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a58a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a58be
xor al, al
jmp 0x4a5948
mov ecx, dword [ebp + 8]
push ecx
call sym.Install_adv.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 1
push edx
call fcn.0047ac4d
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.Install_adv.exe_int___cdecl_NsReadFile_wchar_t_const___void___unsigned_long_int_
add esp, 0xc
test eax, eax
je 0x4a5903
mov byte [ebp - 2], 1
jmp 0x4a5907
mov byte [ebp - 2], 0
mov cl, byte [ebp - 2]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4a5933
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], 0
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x14]
call sym.Install_adv.exe_public:_bool___thiscall_CNsStringManager::ParseStrings_unsigned_char_const___int__bool_
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0047ac48
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a73c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2b80
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.C:WindowsSystem32MacromedFlashFlash.ocx
lea ecx, [ebp - 0x288]
call fcn.004096a0
mov dword [ebp - 4], 0
push 0x64
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.00433ca0
add esp, 0xc
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x288]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_GetFileVer_wchar_t_const___wchar_t__
add esp, 8
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4a7525
lea eax, [ebp - 0x294]
push eax
push 0x20019
push 0
push str.CLSIDB019E3BF_E7E5_453C_A2E4_D2C18CA0866FLocalServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
je 0x4a748d
mov byte [ebp - 0x27d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.00409680
mov al, byte [ebp - 0x27d]
jmp 0x4a7552
mov dword [ebp - 0x28c], 0x208
mov ecx, dword [ebp - 0x28c]
push ecx
push 0
lea edx, [ebp - 0x27c]
push edx
call fcn.00433ca0
add esp, 0xc
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x27c]
push ecx
push 0
push 0
push 0x4d1424
mov edx, dword [ebp - 0x294]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x284]
call fcn.004096a0
mov byte [ebp - 4], 1
push 0x4d134c
push 0x4d142c
lea ecx, [ebp - 0x284]
call fcn.0040dc00
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x284]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_GetFileVer_wchar_t_const___wchar_t__
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00409680
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 0x27e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.00409680
mov al, byte [ebp - 0x27e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a7570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x70]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4a75ae
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4a7637
mov dword [ebp - 0x74], 0x64
mov edx, dword [ebp - 0x74]
push edx
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00433ca0
add esp, 0xc
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push str.svcVersion
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4a761d
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push str.Version
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4a761d
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4a7637
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a7960
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2c07
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x4a79ad
xor eax, eax
xor edx, edx
jmp 0x4a7b75
xorps xmm0, xmm0
movlpd qword [ebp - 0x278], xmm0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x264], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x260]
push eax
call fcn.00433ca0
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4a7a03
mov byte [ebp - 0x265], 1
jmp 0x4a7a0a
mov byte [ebp - 0x265], 0
mov al, byte [ebp - 0x265]
mov byte [ebp - 0x267], al
jmp 0x4a7a4c
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4a7a39
mov byte [ebp - 0x266], 1
jmp 0x4a7a40
mov byte [ebp - 0x266], 0
mov al, byte [ebp - 0x266]
mov byte [ebp - 0x267], al
movzx ecx, byte [ebp - 0x267]
test ecx, ecx
je 0x4a7b5c
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x26c]
call fcn.004096a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.0040dba0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0040f4b0
test eax, eax
jne 0x4a7b45
mov ecx, dword [ebp - 0x25c]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x27c], eax
push 0x28
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x274]
cmp eax, dword [ebp - 0x280]
jg 0x4a7b45
jl 0x4a7af4
mov ecx, dword [ebp - 0x278]
cmp ecx, dword [ebp - 0x284]
jae 0x4a7b45
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], eax
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x4a7b45
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00409680
mov eax, dword [ebp - 0x28c]
mov edx, dword [ebp - 0x288]
jmp 0x4a7b75
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00409680
jmp 0x4a7a18
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x278]
mov edx, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a7b90
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2c37
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x4a7bd4
xor al, al
jmp 0x4a7c6e
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
sbb edx, dword [ebp - 0x3c]
push 0
push 0x64
push edx
push ecx
call fcn.0047b0a0
mov ecx, eax
call fcn.0047b770
cvtsd2ss xmm0, xmm0
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
movss dword [ebp - 0x5c], xmm0
call fcn.0047b770
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebp - 0x5c]
divss xmm1, xmm0
movss dword [ebp - 0x60], xmm1
lea ecx, [ebp - 0x58]
call fcn.004097c0
mov dword [ebp - 4], 0
cvtss2sd xmm0, dword [ebp - 0x60]
sub esp, 8
movsd qword [esp], xmm0
push str._.0f__
lea eax, [ebp - 0x58]
push eax
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x58]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 0x51], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409680
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret

Function at 0x4a7f30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x808], 0x400
mov eax, dword [ebp - 0x808]
shl eax, 1
push eax
push 0
lea ecx, [ebp - 0x804]
push ecx
call fcn.00433ca0
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4a7f83
xor al, al
jmp 0x4a7f96
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a8390
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 1
shl eax, 3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sym.Install_adv.exe_public:_static_bool___cdecl_CNsEncrypt::EasyEncode_unsigned_char___unsigned_int__unsigned_char_
add esp, 0xc
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x14], 0x12
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x14], 0xa0
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x14], 0xab
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x14], 0x52
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x14], 0x24
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x14], 0x3c
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x14], 0x5a
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x14], 0x1c
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x14], 0x3f
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x14], 0x1f
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x14], 0x44
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x14], 0x32
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x14], 0x48
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x14], 0x4f
mov eax, 1
imul ecx, eax, 0xe
mov byte [ebp + ecx - 0x14], 0x5a
mov edx, 1
imul eax, edx, 0xf
mov byte [ebp + eax - 0x14], 0x8a
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.Install_adv.exe_public:_static_bool___cdecl_CNsEncrypt::AesDecode_unsigned_char_const___unsigned_char___unsigned_char_const___unsigned_char___unsigned_int___unsigned_int_
add esp, 0x18
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a84d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x14], 0x12
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x14], 0xa0
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x14], 0xab
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x14], 0x52
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x14], 0x24
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x14], 0x3c
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x14], 0x5a
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x14], 0x1c
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x14], 0x3f
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x14], 0x1f
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x14], 0x44
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x14], 0x32
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x14], 0x48
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x14], 0x4f
mov eax, 1
imul ecx, eax, 0xe
mov byte [ebp + ecx - 0x14], 0x5a
mov edx, 1
imul eax, edx, 0xf
mov byte [ebp + eax - 0x14], 0x8a
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.Install_adv.exe_public:_static_bool___cdecl_CNsEncrypt::AesEncode_unsigned_char_const___unsigned_char___unsigned_char_const___unsigned_char___unsigned_int___unsigned_int_
add esp, 0x18
mov byte [ebp - 0x15], al
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
jne 0x4a85de
xor al, al
jmp 0x4a8602
mov edx, 1
shl edx, 3
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sym.Install_adv.exe_public:_static_bool___cdecl_CNsEncrypt::EasyEncode_unsigned_char___unsigned_int__unsigned_char_
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret
Function at 0x4a9dd0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a9e17
xor eax, eax
jmp 0x4a9ed6
cmp dword [ebp + 0xc], 0
je 0x4a9eb3
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00433ca0
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x4a9e53
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4a9e64
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4a9eb1
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4a9ed6
jmp 0x4a9ec4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a9f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
push 0x26c
call fcn.0042f65b
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x25c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x260], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x264], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x268], eax
mov ecx, dword [ebp - 8]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push sym.Install_adv.exe_public:_static_unsigned_long_int___stdcall_CNsReg::MonitorThread_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a9fad
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4aa290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ec00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x214], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x4aa2d6
mov eax, dword [ebp - 0x214]
or eax, 0x100
mov dword [ebp - 0x214], eax
jmp 0x4aa2f1
call sym.Install_adv.exe_int___cdecl_isWow64_void_
test eax, eax
je 0x4aa2f1
mov ecx, dword [ebp - 0x214]
or ecx, 0x200
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x214]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4aa391
mov dword [ebp - 0x21c], 0x104
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00433ca0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4aa384
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4aa393
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret 0x14