joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa491b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a49140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a49140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a49140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a49140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa49bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa49c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa5b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa49c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa49c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x41537e
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, al
inc ecx
mov eax, ecx
inc esp
xor eax, dword [esi + ecx*4 + 0x1400]
dec eax
shr eax, 0x18
inc esp
xor eax, dword [esi + eax*4 + 0x1c00]
inc ecx
movzx eax, cl
inc esp
xor eax, dword [esi + eax*4 + 0x1000]
inc esp
xor eax, dword [ebx + 0x18]
inc ecx
mov eax, eax
inc ebp
mov ecx, eax
dec eax
shr eax, 0x10
movzx edx, al
inc ecx
mov eax, eax
dec eax
shr eax, 8
inc esp
mov eax, dword [esi + edx*4 + 0x1800]
movzx ecx, al
inc ecx
mov eax, ecx
inc esp
xor eax, dword [esi + ecx*4 + 0x1400]
dec eax
shr eax, 0x18
dec eax
add ebx, 0x20
inc esp
xor eax, dword [esi + eax*4 + 0x1c00]

Function at 0x415e5d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x10], edx
push ebp
push ebx
push esi
push edi
inc ecx
push esp
inc ecx
push ebp
inc ecx
push esi
inc ecx
push edi
dec eax
mov ebp, esp
dec eax
sub esp, 0x58
inc ebp
xor ebx, ebx
mov ebx, edx
dec esp
mov esi, ecx
dec eax
test ecx, ecx
je 0x415f48
dec eax
mov edi, dword [ecx + 0x28]
dec eax
test edi, edi
je 0x415f48
dec esp
cmp dword [ecx + 0x10], ebx
je 0x415f48
dec esp
cmp dword [ecx], ebx
jne 0x415eab
inc esp
cmp dword [ecx + 8], ebx
jne 0x415f48
mov eax, dword [edi]
inc esp
mov esp, dword [edi + 0x40]
mov esi, dword [edi + 0x44]
cmp eax, 0xb
mov ecx, 0xc
inc esp
mov dword [ebp + 0x48], ebx
cmove eax, ecx
mov dword [edi], eax
inc ebp
mov ecx, dword [esi + 0x18]
dec ebp
mov edx, dword [esi + 0x10]
dec ebp
mov ebp, dword [esi]
inc ebp
mov edi, dword [esi + 8]
dec esp
mov dword [ebp - 0x10], edx
inc esp
mov dword [ebp + 0x58], ecx
dec esp
mov dword [ebp - 0x18], ebp
inc esp
mov dword [ebp - 0x20], edi
inc ebp
mov eax, ecx
inc esp
mov dword [ebp + 0x60], ecx
Function at 0x42fec5
Capabilities:
Parse pe header

Disassembly:
test cx, cx
jne 0x42ffa9
dec eax
mov dword [esp + 8], ebx
push edi
dec eax
sub esp, 0x20
mov eax, 0x5a4d
dec eax
mov edi, ecx
cmp word [ecx], ax
jne 0x42ff9f
test byte [ecx + 0x3c], 3
jne 0x42ff9f
dec eax
arpl word [ecx + 0x3c], dx
dec eax
add edx, ecx
cmp dword [edx], 0x4550
jne 0x42ff9f
cmp dword [edx + 0x84], 6
jb 0x42ff9f
inc esp
mov eax, dword [edx + 0x50]
inc esp
mov ecx, dword [edx + 0xb8]
inc ecx
lea eax, [eax - 1]
inc ecx
lea ecx, [ecx - 1]
cmp ecx, eax
jae 0x42ff9f
mov ecx, dword [edx + 0xbc]
inc ecx
mov eax, eax
inc ecx
sub eax, ecx
cmp ecx, eax
ja 0x42ff9f
dec eax
mov eax, 0x92492493
and al, 0x49
xchg edx, eax
and al, 0x4e
lea edx, [edi + ecx]
dec eax
mul ecx
dec eax
sub ecx, edx
dec eax
shr ecx, 1
dec eax
add ecx, edx
dec eax
shr ecx, 4
test ecx, ecx
je 0x42ff9f
dec ecx
mov eax, ecx
dec eax
imul ebx, eax, 0x1c
dec ecx
add ebx, edx
cmp dword [ebx + 0xc], 2
jne 0x42ff58
inc esp
cmp dword [ebx + 0x14], eax
jae 0x42ff58
inc ecx
mov eax, eax
sub eax, dword [ebx + 0x14]
cmp dword [ebx + 0x10], eax
ja 0x42ff58
mov edx, 0x1c
dec eax
mov ecx, ebx
call dword [0x7175]
test eax, eax
je 0x42ff9f
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
dec eax
add ecx, edi
call dword [0x7162]
dec eax
mov ebx, dword [esp + 0x30]
dec eax
add esp, 0x20
pop edi
ret
Function at 0x401000
Capabilities:
Check os version
Get token membership

Disassembly:
sub esp, 0xf4
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0xf0], eax
push esi
push edi
lea eax, [esp + 8]
push eax
xor edi, edi
push 1
push 0xa
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40105a
lea ecx, [esp + 8]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401111
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401111
cmp dword [esp + 0x24], 6
jb 0x4010bb
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x401111
cmp dword [esp + 0x14], 3
jne 0x4010bb
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x401111
cmp dword [esp + 0xc], edi
jne 0x4010d7
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x401111
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xb8]
push eax
push edi
push 0x1a
mov dword [esp + 0x28], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x401111
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], edi
jne 0x401124
push edi
call esi
mov dword [esp + 8], edi
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40112f
push eax
call esi
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.00409279
add esp, 0xf4
ret
Function at 0x4022b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [esp + 0x54]
push esi
push edi
mov edi, dword [esp + 0x54]
push 0x1000
call fcn.0040a2b5
mov esi, eax
add esp, 4
test esi, esi
jne 0x4022ee
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00409279
add esp, 0x44
ret
test byte [esp + 0x58], 1
je 0x402309
push 0
push 0
push 0
push 0
push esi
push edi
call fcn.00401f90
add esp, 0x18
jmp 0x402311
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebx, ebx
je 0x402352
push ebx
lea eax, [esp + 0x10]
push str.Src_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x3f
push esi
call fcn.0040a3b0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x14
test eax, eax
je 0x402342
push 0x41f5b4
jmp 0x402347
push 0x41f5b8
push esi
call edi
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.0040a163
mov ecx, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00409279
add esp, 0x44
ret

Function at 0x4023d0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x10c
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
xor esi, esi
mov dword [esp + 0xc], 0x104
mov byte [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
push str.SYSTEM
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea eax, [esi + 1]
je 0x402428
mov eax, esi
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.00409279
add esp, 0x10c
ret

Function at 0x402440
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push ebp
mov ebp, dword [esp + 8]
test edi, edi
je 0x4024a4
test ebp, ebp
je 0x4024a4
mov ecx, dword [ebp]
cmp ecx, 8
jb 0x4024a4
cmp dword [edi], 0x4b374454
jne 0x4024a4
push ebx
mov ebx, 1
push esi
lea esi, [ecx - 8]
cmp dword [edi + 4], ebx
jne 0x4024a2
lea edx, [edi + 8]
mov ecx, 0x76dcce6e
test esi, esi
jbe 0x402492
lea ebx, [ebx]
xor byte [eax + edx], cl
shr ecx, 4
add eax, ebx
imul ecx, ecx, 0x82b7831e
cmp eax, esi
jb 0x402480
push esi
push edx
push edi
call fcn.0040ab20
add esp, 0xc
mov dword [ebp], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x402560
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push edi
push 0x421420
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4025cb
push str.KiUserApcDispatcher
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4025cb
push esi
push eax
call fcn.004024f0
mov esi, eax
add esp, 4
test esi, esi
je 0x4025d0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 2
push esi
call edi
test eax, eax
je 0x4025c2
mov cx, word [0x424be8]
lea edx, [esp + 8]
push edx
mov word [esi], cx
mov eax, dword [esp + 0xc]
push eax
push 2
push esi
call edi
pop esi
mov eax, 1
pop edi
pop ecx
ret
mov eax, edi
pop edi
pop ecx
ret
pop esi
mov eax, edi
pop edi
pop ecx
ret

Function at 0x403280
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebx, ebx
push ebx
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push 0x80000002
call fcn.00408ef0
mov ebp, eax
test ebp, ebp
je 0x403392
push edi
push 0x8000
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40338a
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.UserInfo
push ebp
mov dword [esp + 0x24], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40337a
cmp dword [esp + 0x10], 3
jne 0x40337a
mov eax, dword [esp + 0xc]
cmp eax, 0xfc
jb 0x40337a
mov ecx, dword [edi]
push esi
lea edx, [eax + edi]
lea esi, [edi + 4]
mov eax, esi
cmp eax, edx
jae 0x40331c
lea esp, [esp]
xor dword [eax], ecx
add eax, 4
add ecx, 7
cmp eax, edx
jb 0x403310
cmp dword [esi], 0x4b375249
jne 0x403379
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esi, 4
test eax, eax
je 0x40333b
push 0x40
push esi
push eax
call ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40334c
push 0x50
lea edx, [esi + 0x40]
push edx
push eax
call ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403360
push 0x3c
lea ecx, [esi + 0x90]
push ecx
push eax
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403374
push 0x28
add esi, 0xcc
push esi
push eax
call ebx
mov ebx, 1
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x403550
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
xor edi, edi
test ebp, ebp
jbe 0x4035ef
push ebx
push esi
mov edx, ebp
sub edx, edi
mov esi, edx
cmp edx, 4
jb 0x403572
mov esi, 4
movzx edx, byte [eax]
shr edx, 2
movzx edx, byte [edx + 0x420ef0]
mov byte [ecx], dl
movzx edx, byte [eax]
movzx ebx, byte [eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
cmp esi, 1
movzx edx, byte [edx + 0x420ef0]
mov byte [ecx + 1], dl
jle 0x4035be
movzx edx, byte [eax + 1]
movzx ebx, byte [eax + 2]
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
mov dl, byte [edx + 0x420ef0]
jmp 0x4035c0
mov dl, 0x3d
cmp esi, 2
mov byte [ecx + 2], dl
jle 0x4035d7
movzx edx, byte [eax + 2]
and edx, 0x3f
mov dl, byte [edx + 0x420ef0]
jmp 0x4035d9
mov dl, 0x3d
mov byte [ecx + 3], dl
add edi, 3
add ecx, 4
add eax, 3
cmp edi, ebp
jb 0x403562
pop esi
pop ebx
pop edi
mov byte [ecx], 0
pop ebp
ret

Function at 0x403ac0
Capabilities:
Check os version

Disassembly:
sub esp, 0x108
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
push esi
cmp eax, 5
jb 0x403af1
push str..Global_s
lea eax, [esp + 8]
push eax
jmp 0x403afb
push str.._s
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00409279
add esp, 0x108
ret

Function at 0x403ce0
Capabilities:
Get common file path

Disassembly:
push esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push 0
push 0x41b53c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x4e
push esi
call fcn.00408dd0
mov eax, dword [esp + 0xc]
push esi
push str._INIFile_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, 1
ret

Function at 0x403d60
Capabilities:
Shutdown system

Disassembly:
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004038d0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0
test eax, eax
jns 0x403d8a
push 0x19
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
ret
push 0x18
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
ret
Function at 0x405860
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0x14], 1
jne 0x4058bb
cmp byte [esi + 0x10], 0x41
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
push eax
jne 0x405885
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x40588b
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058bb
test al, 0x10
jne 0x4058bb
pop edi
mov byte [esi + 0x4a], bl
mov byte [esi + 0x44], bl
mov byte [esi + 0x47], bl
mov byte [esi + 0x4b], bl
mov byte [esi + 0x43], bl
mov byte [esi + 0x45], bl
mov byte [esi + 0x49], bl
mov byte [esi + 0x46], bl
mov byte [esi + 0x48], bl
mov byte [esi + 0x4c], bl
pop esi
mov eax, 1
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4060c0
Capabilities:
Check mutex on windows

Disassembly:
call fcn.00405f80
test eax, eax
je 0x4060cf
or eax, 0xffffffff
ret 0x10
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [str.GlobalK7AVScanRunning]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x406103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406103
mov byte [0x425c14], 1
mov ecx, dword [esp + 0x14]
push str._nodapc
push ecx
call fcn.004092c0
add esp, 8
test eax, eax
jne 0x40611e
call fcn.00402560
call fcn.00403d20
call fcn.00403d40
call fcn.00405950
mov edi, eax
call fcn.00403d50
call fcn.00403d30
test esi, esi
je 0x406144
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x406290
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push 0x2000000
push 3
push ebx
push 3
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4062e1
push 0x47
push 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x1c], ebx
call sub.ntdll.dll_NtQueryInformationFile
test eax, eax
jne 0x4062da
test byte [esp + 8], 1
je 0x4062da
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x4063b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
call fcn.004091b0
test al, al
je 0x406451
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x800
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40644b
push ebx
push 0x19
push esi
push ebx
mov byte [esi], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x5c
push esi
call fcn.0040a52a
add esp, 8
test eax, eax
je 0x40643f
inc eax
push 0x5c
push eax
call fcn.0040a52a
add esp, 8
test eax, eax
je 0x40643f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.All_Users
inc eax
push eax
call edi
push str.K7_ComputingK7TSecurityK7AntiVirusQuarantine
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40643e
mov eax, dword [esp + 0x14]
push esi
push eax
call edi
mov ebx, 1
pop edi
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
mov eax, ebx
pop ebx
ret

Function at 0x406800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406816
test al, 0x10
lea eax, [esi + 1]
je 0x406818
mov eax, esi
pop esi
ret

Function at 0x406a10
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov cl, 0x77
test esi, esi
jbe 0x406a22
xor byte [eax + edx], cl
add cl, al
inc eax
cmp eax, esi
jb 0x406a18
ret
Function at 0x406b30
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
sub esp, 8
push ebp
push esi
xor ebp, ebp
push 0x1000
push ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebp
je 0x406c8b
push ebx
push edi
push esi
lea edi, [esi + 0x400]
mov byte [esi], 0
call fcn.00402390
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push 0x421738
push esi
call ebx
push str.K7OemCfg.dat
push esi
call ebx
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call fcn.00402e90
add esp, 0xc
cmp eax, 1
jne 0x406c79
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx]
xor ebx, ebx
push ebx
push 0x41f59c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov byte [edi], bl
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x18], 0x400
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push esi
push str.DynaExclude
call edx
cmp eax, 1
jne 0x406c6e
lea esp, [esp]
cmp byte [edi], 0
je 0x406c6e
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x406c02
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x406c32
push esi
push ebp
push 1
call fcn.00406460
add esp, 0xc
cmp eax, 1
jne 0x406c32
mov eax, dword [esp + 0x24]
inc dword [eax]
mov eax, dword [esp + 0x20]
add ebp, dword [ebp]
inc dword [eax]
inc ebx
push ebx
push 0x41f59c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov byte [edi], 0
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x18], 0x400
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push esi
push str.DynaExclude
call eax
cmp eax, 1
je 0x406be0
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebp
mov ebp, 1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x406c9a
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x407380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4073b1
sub eax, esi
cmp eax, 0x26
jne 0x40743e
push ecx
lea eax, [esp + 0x1c]
push str.CLSID_sInProcServer32
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40742f
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x421364
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40742f
push ebp
lea ecx, [esp + 0x1c]
call fcn.00407060
add esp, 4
test eax, eax
je 0x40742f
mov edi, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40743e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x418]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00409279
add esp, 0x410
ret

Function at 0x407460
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x808
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x400
lea ecx, [esp + 8]
push ecx
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push eax
mov word [esp + 0x1c], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4074a8
push esi
lea edx, [esp + 8]
push 0x41caec
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebp
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.0040936c
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4074ff
push ebx
lea edx, [esp + 0xb]
xor ecx, ecx
push edx
lea ebx, [esp + 0x10]
mov word [ebp], cx
call fcn.00406a90
add esp, 4
pop ebx
test eax, eax
je 0x4074f6
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00409279
add esp, 0x808
ret
mov eax, 0x5c
mov word [ebp], ax
lea ecx, [esp + 8]
push ecx
call fcn.00406a30
add esp, 4
test eax, eax
jne 0x4074db
push edi
push 0x104
lea edx, [esp + 0x10]
push edx
push 0x41cb94
push esi
push str.K7QSCNLST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407587
push 0x41cb94
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4074db
mov ecx, dword [esp + 0x810]
push ecx
lea edx, [esp + 0xc]
push 0x421458
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
lea eax, [esp + 0xc]
push eax
push esi
push str.K7QSCNLST
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop ebp
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00409279
add esp, 0x808
ret
mov ecx, dword [esp + 0x808]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00409279
add esp, 0x808
ret
Function at 0x4075a0
Capabilities:
Read .ini file

Disassembly:
push ebp
push edi
push 0x8000
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40766b
push ebx
lea ebx, [ebp + 0x400]
push esi
push ebx
lea esi, [ebx + 0x400]
mov byte [ebx], 0
call fcn.00409230
add esp, 4
cmp byte [ebx], 0
je 0x407659
push str.K7ExecInfo.dat
push str.K7AntiVirus
push str.K7TSecurity
push str.K7_Computing
push ebx
push str._s_s_s_s_s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push ebp
push 0x7800
push esi
push str.ExecApps
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp byte [esi], 0
je 0x407654
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x3d
push esi
mov ebx, eax
call fcn.0040a52a
add esp, 8
test eax, eax
je 0x407649
mov edi, dword [esp + 0x14]
push 5
mov byte [eax], 0
call fcn.00407460
add esp, 4
cmp byte [esi + ebx + 1], 0
lea esi, [esi + ebx + 1]
jne 0x407620
mov edi, 1
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret