joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x24
push ebp
push esi
xor esi, esi
xor eax, eax
xor edx, edx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
cmp ebx, esi
je 0x405c19
push ebx
call fcn.0041c890
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
xor eax, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov byte [esp + 0xf], 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
cmp dword [ebx + 4], esi
jb 0x405c11
ja 0x405b1d
cmp dword [ebx], esi
jbe 0x405c11
cmp byte [esp + 0xf], 0
je 0x405c11
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ebx + 0x7f]
test byte [ecx + eax + 0x10], 2
je 0x405be8
mov edx, eax
mov edi, dword [ecx + edx]
mov ebp, dword [ecx + edx + 8]
add ecx, edx
mov ecx, dword [edi]
lea edx, [ecx - 8]
lea esi, [edi + 8]
not ecx
test edx, edx
je 0x405b70
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4abe38]
dec edx
inc esi
test edx, edx
jne 0x405b56
not ecx
cmp ecx, dword [edi + 4]
jne 0x405bde
mov ecx, dword [ebp]
lea edx, [ecx - 8]
lea esi, [ebp + 8]
not ecx
test edx, edx
je 0x405ba0
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4abe38]
dec edx
inc esi
test edx, edx
jne 0x405b86
not ecx
cmp ecx, dword [ebp + 4]
jne 0x405bde
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
add eax, 1
push edx
adc ecx, 0
push ecx
push eax
push ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
push edi
push eax
mov dword [esp + 0x38], ecx
call fcn.00418210
add esp, 0x1c
mov byte [esp + 0xf], al
jmp 0x405be8
add dword [esp + 0x10], 1
adc dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 1
adc ecx, 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 4]
jb 0x405b1d
ja 0x405c11
cmp eax, dword [ebx]
jb 0x405b1d
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, dword [esp + 0x10]
pop edi
sbb edx, dword [esp + 0x10]
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x406110
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x4aab30]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp byte [0x4b1d50], 0
jne 0x4061f8
push edi
push str.Path
mov ecx, str.SOFTWARESecureAge_TechnologySecureAgeApplicationsEverything
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040bbe0
mov edi, eax
add esp, 4
test edi, edi
je 0x4061dd
push esi
push edi
push str._sEverything.ini
lea edx, [esp + 0x30]
call fcn.004012e0
add esp, 8
lea eax, [esp + 0x28]
push eax
push 0x10
lea ecx, [esp + 0x10]
push ecx
push str.15485
push str.service_port
push str.Everything
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
call fcn.0047c108
mov esi, eax
add esp, 4
cmp esi, 0x400
jl 0x4061a9
cmp esi, 0xffff
je 0x4061a9
inc esi
jmp 0x4061ae
mov esi, 0x3c7e
push edi
mov dword [0x4aebc0], esi
mov byte [0x4b1d50], 1
call fcn.0047a868
add esp, 4
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0047a722
add esp, 0x230
ret
mov eax, dword [0x4aebc0]
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0047a722
add esp, 0x230
ret
mov ecx, dword [esp + 0x22c]
mov eax, dword [0x4aebc0]
xor ecx, esp
call fcn.0047a722
add esp, 0x230
ret

Function at 0x406220
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
push edi
push 1
mov dword [esp + 0x10], 0xffffffff
call fcn.00406110
push eax
lea edi, [esp + 0x14]
call fcn.00413460
mov edi, dword [esp + 0x14]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40626b
push 4
lea eax, [esp + 0x14]
push eax
push 0x1006
push 0xffff
push edi
mov dword [esp + 0x24], 0x1388
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x4068d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a82a8
push 0x47eeb0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4aab30]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], edi
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x80], edi
push 0x40
push edi
lea eax, [ebp - 0x7c]
push eax
call fcn.0047d730
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x406938
mov dword [esi], edi
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406940
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 8]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406957
sub eax, esi
sar eax, 1
lea esi, [eax + edx]
lea esi, [esi + esi + 8]
push esi
call fcn.0047a780
mov edi, eax
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 8]
push ecx
push ebx
push str.__s___s
shr esi, 1
push esi
push edi
call fcn.0047a84a
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
push 0x44
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.0047d730
add esp, 0x24
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 1
xor eax, eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x54], 0x100
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x8000000
push 1
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4069f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x4069ff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xfffffffe
call fcn.00406a23
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x4aab30]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
lea eax, [esp]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesSAPlus
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x1c], 0
mov dword [esp + 0x18], 0x18
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406c0b
push ebp
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.ExpiryDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test ebp, ebp
je 0x406bca
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047a722
add esp, 0x24
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
je 0x406be8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi], ecx
mov dword [esi + 4], edx
test ebx, ebx
je 0x406bf9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
test edi, edi
je 0x406c0a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], edx
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047a722
add esp, 0x24
ret

Function at 0x4072e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
lea eax, [esp + 0x18]
push eax
xor edi, edi
push ebp
mov dword [esp + 0x18], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40730b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407382
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push 0
push 0
push 0
push ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
cmp edi, ecx
ja 0x40737e
jb 0x407332
cmp esi, ebx
jae 0x40737e
mov eax, ebx
sub eax, esi
sbb ecx, edi
mov dword [esp + 0x2c], ecx
jne 0x407345
cmp eax, 0xfffc
jbe 0x40734c
mov eax, 0xfffc
jmp 0x407350
mov eax, ebx
sub eax, esi
push 0
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esi + eax]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
je 0x407374
add esi, dword [esp + 0x14]
adc edi, 0
jmp 0x407324
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x40738f
mov dword [ecx], esi
mov dword [ecx + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4077e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push eax
xor esi, esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x407858
push 4
call fcn.0047a780
mov esi, eax
add esp, 4
test esi, esi
jne 0x407829
lea ebx, [eax + 8]
jmp 0x407851
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407851
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call fcn.0047a868
add esp, 4
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x407863
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x407870
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
xor eax, eax
cmp byte [esp + 0x18], al
push 0xf003f
push 0
push 0
sete al
push 0
push str.SoftwareSecureAge_TechnologySecureAgeApplicationsUniversalAV
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4078cd
push 4
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.DisableGoodNews
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4078dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x408c0c
Capabilities:
Delete file

Disassembly:
cmp esi, edi
je 0x408c2e
mov eax, dword [ebp - 0x1060]
cmp eax, edi
je 0x408c2e
push esi
mov ecx, dword [ebp - 0x1054]
push ecx
mov edx, dword [ebp - 0x1058]
push edx
call eax
add esp, 0xc
mov eax, dword [ebp - 0x103c]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, edi
je 0x408c41
push eax
call ebx
mov eax, dword [ebp - 0x1034]
cmp eax, edi
je 0x408c4e
push eax
call ebx
mov eax, dword [ebp - 0x1030]
cmp eax, edi
je 0x408c5b
push eax
call ebx
mov eax, dword [ebp - 0x104c]
cmp eax, 0xffffffff
je 0x408c96
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x104c], 0xffffffff
cmp byte [ebp - 0x1022], 0
jne 0x408c89
cmp byte [ebp - 0x102c], 0
je 0x408c96
mov eax, dword [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret
Function at 0x409ad0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4aab30]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
xor eax, eax
push 0x4e
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.0047d730
add esp, 0xc
lea edx, [esp + 4]
push edx
push 1
push 0
push str.SYSTEMCurrentControlSetServicesSAAppCtlDb
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [esp + 0x1c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409b4a
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.InitialWhitelist
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409b5c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047a722
add esp, 0x5c
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x5c]
pop ebx
xor ecx, esp
mov al, 1
call fcn.0047a722
add esp, 0x5c
ret

Function at 0x409b80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCheckConnectionW]
push edi
push 0
push 1
push str.http:__uav.secureaplus.com
call esi
test eax, eax
jne 0x409c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.http:__uav.secureaplus.com
cmp eax, 0x2ee7
je 0x409bba
push str._Unable_to_connect_to__s.
push eax
call fcn.0040a310
add esp, 0xc
jmp 0x409bc7
push str.Unable_to_connect_to__s._r_n
call fcn.0040a210
add esp, 8
push 0
push 1
push str.http:__uav.secureaplus.com
call esi
test eax, eax
jne 0x409bf2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push ebx
call edi
push 0
push 1
push str.http:__uav.secureaplus.com
call esi
test eax, eax
je 0x409be0
push 0
push 1
push str.http:__uav.secureaplus.com
call esi
test eax, eax
je 0x409c0e
push str.Internet_connection_is_available_now_r_n
call fcn.0040a210
add esp, 4
pop edi
pop esi
pop ecx
ret
Function at 0x409c20
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x4aab30]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov eax, edx
push edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409c42
sub eax, esi
sar eax, 1
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + ebx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x6a09e667
mov dword [esp + 0x1c], 0xbb67ae85
mov dword [esp + 0x20], 0x3c6ef372
mov dword [esp + 0x24], 0xa54ff53a
mov dword [esp + 0x28], 0x510e527f
mov dword [esp + 0x2c], 0x9b05688c
mov dword [esp + 0x30], 0x1f83d9ab
mov dword [esp + 0x34], 0x5be0cd19
cmp eax, ecx
je 0x409cb1
push edx
lea esi, [esp + 0x14]
call fcn.00412200
add esp, 4
lea edi, [esp + 0x7c]
lea ecx, [esp + 0x10]
call fcn.00412290
cmp ebx, dword [0x4b1d60]
jne 0x409cfe
mov eax, 0x20
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [esp + ecx + 0x7c]
cmp edx, dword [ecx + 0x4b3884]
jne 0x409cfe
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x409cd0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0047a722
mov esp, ebp
pop ebp
ret
mov ecx, 8
lea esi, [esp + 0x7c]
mov edi, 0x4b3884
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword [0x4b1d60], ebx
pop ebx
xor ecx, esp
xor al, al
call fcn.0047a722
mov esp, ebp
pop ebp
ret

Function at 0x409d30
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4aab30]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x409d93
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047a722
add esp, 0x14
ret
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x409dac
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 4]
pop ebx
xor ecx, esp
call fcn.0047a722
add esp, 0x14
ret
Function at 0x409dd0
Capabilities:
Get common file path
Get session user name
Query environment variable

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4aab30]
xor eax, esp
mov dword [esp + 0x414], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.0047d730
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x12]
push eax
mov word [esp + 0x14], dx
call fcn.0047d730
add esp, 0xc
mov ecx, 0x49c864
mov eax, 0x4b1f70
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409e4e
test dx, dx
je 0x409e4a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409e4e
add eax, 4
add ecx, 4
test dx, dx
jne 0x409e28
xor eax, eax
jmp 0x409e53
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409eae
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 8]
push str.SYSTEM
push eax
call fcn.0047ba00
add esp, 8
test eax, eax
je 0x409e9b
call fcn.00409d30
test al, al
jne 0x409e9b
push 0x4b1f70
push 0
push 0
push 0x1a
jmp 0x409ea6
push 0x4b1f70
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x49c864
mov eax, 0x4b1d68
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409ede
test dx, dx
je 0x409eda
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409ede
add eax, 4
add ecx, 4
test dx, dx
jne 0x409eb8
xor eax, eax
jmp 0x409ee3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409f15
push 0x4b1f70
push 0x104
push 0x4b1d68
call fcn.0047a8f6
add esp, 0xc
push str.SecureAge_TechnologySecureAgelog
push 0x104
push 0x4b1d68
call fcn.0047ac75
add esp, 0xc
mov ecx, 0x49c864
mov eax, 0x4b1d68
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409f46
test dx, dx
je 0x409f42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409f46
add eax, 4
add ecx, 4
test dx, dx
jne 0x409f20
xor eax, eax
jmp 0x409f4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409f94
push 0x208
lea ecx, [esp + 0x20c]
push ecx
push 0x4b1d68
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x208]
push edx
push 0x104
push 0x4b1d68
call fcn.0047a8f6
add esp, 0xc
mov ecx, 0x4b1d68
call fcn.00406fa0
test al, al
jne 0x409f94
call fcn.004071b0
mov eax, 0x4b1d68
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409fa0
sub eax, edx
sar eax, 1
cmp word [eax*2 + 0x4b1d66], 0x5c
push str.UniversalAV.log
push 0x4b1d68
jne 0x409fcb
push 0x49db3c
jmp 0x409fd0
push 0x49d768
push 0x104
push 0x4b38b0
call fcn.0047a84a
mov ecx, dword [esp + 0x428]
add esp, 0x14
xor ecx, esp
mov eax, 0x4b38b0
call fcn.0047a722
add esp, 0x41c
ret
Function at 0x40a100
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
mov ebx, eax
mov byte [esp + 0x17], 0
push 0
push 0
push 4
push 0
push 5
push 0x40000000
call fcn.00409dd0
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a14d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x20
jne 0x40a1f9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a114
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40a189
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
call fcn.00405c80
test eax, eax
je 0x40a1f2
push str.Unable_to_move_file_pointer_to_the_end_of_the_file.
call ebx
mov ecx, eax
call fcn.00405e70
add esp, 4
jmp 0x40a1f2
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a194
push 0
lea ecx, [esp + 0x1c]
push ecx
sub eax, edx
push eax
push ebx
push edi
call ebp
test eax, eax
jne 0x40a1eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x20
je 0x40a1bf
cmp esi, 0x21
jne 0x40a1c7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x20
je 0x40a18f
cmp esi, 0x21
je 0x40a18f
call fcn.00405c80
test eax, eax
je 0x40a1f2
push str.Write_to_log_file_failed.
mov ecx, esi
call fcn.00405e70
add esp, 4
jmp 0x40a1f2
xor esi, esi
mov byte [esp + 0x17], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x40a700
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
xor edi, edi
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.0040a660
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x40a733
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a765
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x40a780
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SOFTWARESecureAge_TechnologySecureAgeApplicationsUniversalAVDialogProgressBar
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0
call edi
mov esi, eax
test esi, esi
jne 0x40a7de
mov edx, dword [esp + 0xc]
push 8
lea ecx, [esp + 0x1c]
push ecx
push 3
push eax
push 0x49ec0c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a7ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call ebp
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SOFTWARESecureAge_TechnologySecureAgeApplicationsUniversalAVDialogProgressBar
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call edi
mov esi, eax
test esi, esi
jne 0x40a840
mov edx, dword [esp + 0xc]
push 8
lea ecx, [esp + 0x24]
push ecx
push 3
push eax
push 0x49ec14
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a84f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebp
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SOFTWARESecureAge_TechnologySecureAgeApplicationsUniversalAVDialogProgressBar
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call edi
mov esi, eax
test esi, esi
jne 0x40a89c
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push eax
push str.InProgress
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a8ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x40a8c0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SOFTWARESecureAge_TechnologySecureAgeApplicationsUniversalAVDialogProgressBar
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40a91a
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push eax
push str.InProgress
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x40a929
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
add esp, 8
ret