joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4962c4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x4963d8
push ebx
push edi
mov ecx, esi
call fcn.00495e00
test eax, eax
je 0x4963c5
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call ebx
test eax, eax
je 0x4963be
cmp dword [esp + 0x10], ebp
je 0x4963be
push 0xc
call fcn.004a3ce6
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x20], edi
call fcn.004a3d20
add esp, 8
mov dword [edi], eax
cmp eax, ebp
je 0x4963cd
mov ecx, dword [esp + 0x10]
push ebp
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x10]
push ecx
push eax
push edx
call ebx
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x4963ab
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x228]
mov edx, dword [ebx + 4]
lea edi, [esi + 0x214]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.004950e0
push 1
mov ecx, edi
mov ebp, eax
call fcn.004956d0
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
jmp 0x4963cd
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0xffffffff
jmp 0x4963cd
mov dword [esi + 0x10], 0xffffffff
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 8], ebp
jne 0x4962d4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret

Function at 0x496530
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x28
push esi
lea eax, [esp + 4]
push eax
push 0
push 0x28
mov dword [esp + 0x14], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49657d
call esi
cmp eax, 0x3f0
jne 0x4965d7
lea ecx, [esp + 4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4965d7
lea edx, [esp + 0x10]
push edx
push 0x5cbf90
push 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x20]
push ecx
push 0x10
lea edx, [esp + 0x18]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4965de
call esi
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 0x28
ret
call esi
cmp eax, 0x514
jne 0x496601
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
add esp, 0x28
ret
mov eax, 1
pop esi
add esp, 0x28
ret
Function at 0x496610
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push edi
push ebx
push 0
push 1
mov edi, ecx
call ebp
mov esi, eax
test esi, esi
jne 0x496647
mov ecx, edi
call fcn.00496530
push ebx
push esi
push 1
call ebp
mov esi, eax
test esi, esi
jne 0x496647
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push esi
call ebx
test eax, eax
jne 0x496662
mov ecx, edi
call fcn.00496530
push 0
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x496760
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x5aa9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
push 0
push 2
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x49681b
push 0x228
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004e5fc0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x496814
mov ebx, dword [esp + 0x254]
nop
cmp ebx, dword [esp + 0x18]
je 0x4967ff
mov eax, dword [esp + 0x250]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004e8728
add esp, 8
test eax, eax
je 0x496810
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4967e0
jmp 0x496814
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x250]
add eax, 0xfffffff0
mov dword [esp + 0x248], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x496849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x23c
ret 8
Function at 0x496b50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5aaa58
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
push 0
push 2
mov dword [esp + 0x260], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x496bde
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496bd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x496d18
lea ecx, [esp + 0x260]
call fcn.00414200
push 0x228
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004e5fc0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x496cde
mov edi, dword [esp + 0x268]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea esp, [esp]
cmp dword [esp + 0x264], 0
je 0x496c4a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x28], eax
je 0x496ccb
lea eax, [esp + 0x44]
push eax
call fcn.004e6eaf
mov eax, dword [esp + 0x264]
add esp, 4
cmp dword [eax - 0xc], 0
jl 0x496ccb
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.004e6559
add esp, 8
test eax, eax
je 0x496ccb
sub eax, dword [esp + 0x260]
sar eax, 1
js 0x496ccb
mov edx, dword [esp + 0x28]
push edx
push 0
push 1
call ebx
mov esi, eax
test esi, esi
jne 0x496cab
mov ecx, dword [esp + 0x18]
call fcn.00496530
mov eax, dword [esp + 0x28]
push eax
push esi
push 1
call ebx
mov esi, eax
test esi, esi
je 0x496cc7
push edi
push esi
call ebp
test eax, eax
jne 0x496cc0
mov ecx, dword [esp + 0x18]
call fcn.00496530
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x496c30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x260]
add eax, 0xfffffff0
mov dword [esp + 0x258], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x496d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x248
ret 0xc
Function at 0x496f30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x496f7e
cmp dword [esp + 8], 0
jne 0x496f7e
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.004e5fb0
add esp, 0x118
ret

Function at 0x496fb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.004e5fc0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], edx
add esp, 0xc
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x1040
mov dword [esp + 0x14], str.runas
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x49704e
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], 0x457
lea eax, [esi + 1]
je 0x497050
mov eax, esi
pop esi
add esp, 0x3c
ret

Function at 0x4970c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push edi
lea eax, [esp + 0x10]
push eax
push ebx
xor ebp, ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4970e4
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
push edi
call fcn.004e8a77
mov esi, eax
add esp, 4
test esi, esi
jne 0x4970fc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x497137
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x5bda1c
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
push esi
call fcn.004e8920
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x497740
Capabilities:
Check if file exists
Copy file
Delete directory
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
push 0x104
lea ecx, [esp + 0x218]
push ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4978a1
push str.driversefimon.sys
lea edx, [esp + 0x218]
push edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4978a1
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
push edi
xor ebp, ebp
xor edi, edi
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
call ebx
test eax, eax
je 0x4977fd
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4977e2
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4977fd
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x420
ret
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.004970c0
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [0x61f700]
push str.efimon.sys
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x497894
lea ecx, [esp + 0x18]
push ecx
call ebx
test eax, eax
je 0x497894
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
xor ebx, ebx
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.004970c0
add esp, 0xc
test eax, eax
je 0x4977c8
mov eax, dword [esp + 0x10]
cmp eax, edi
ja 0x497858
jne 0x497877
cmp dword [esp + 0xc], ebp
jbe 0x497877
push ebx
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4977c8
mov eax, dword [esp + 0x14]
mov dword [eax], 1
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x420
ret
test edi, edi
jne 0x497877
test ebp, ebp
jne 0x497877
jmp 0x4977c8
mov ecx, dword [esp + 0x41c]
xor ecx, esp
xor eax, eax
call fcn.004e5fb0
add esp, 0x420
ret
Function at 0x4978c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x41c
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x430]
push ebx
mov ebx, dword [esp + 0x428]
push ebp
mov ebp, dword [esp + 0x434]
push esi
push edi
mov edi, dword [esp + 0x430]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov word [esp + 0x24], cx
call fcn.004e5fc0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x236]
push ecx
mov word [esp + 0x238], ax
call fcn.004e5fc0
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x23c]
call fcn.00497740
add esp, 0x1c
test eax, eax
je 0x4979b9
mov eax, dword [0x61f700]
push str.efiproc.dll
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4979b9
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4979b9
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4979b9
push str.EfiLoadBitmap
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4979b9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x438]
push 0
push 0
push ecx
push edi
push ebp
push ebx
push edx
call eax
add esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
jmp 0x4979bb
xor eax, eax
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5fb0
add esp, 0x41c
ret

Function at 0x4985f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5aaaf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x104
call fcn.0040e080
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
test edx, edx
jne 0x498646
xor eax, eax
jmp 0x49865f
mov eax, edx
lea esi, [eax + 2]
jmp 0x498650
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498650
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.0040c9c0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x5c9898
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
mov eax, dword [esp + 8]
neg esi
sbb esi, esi
add eax, 0xfffffff0
inc esi
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4986bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x4986d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [esp + 0x228]
test esi, esi
je 0x4988b9
test edi, edi
je 0x4988b9
xor eax, eax
mov word [edi], ax
cmp word [esi], 0x25
jne 0x498873
push ebx
push ebp
push 0x25
lea ebx, [esi + 2]
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x49886f
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push 0x11
push str._360safebox_data_
push esi
call ebp
test eax, eax
jne 0x49878b
mov edx, dword [0x61f704]
mov esi, 0x104
mov eax, edi
mov edi, edi
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x49877d
movzx ecx, word [edx]
test cx, cx
je 0x49877d
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x498750
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x498802
test esi, esi
jne 0x498784
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x498802
push 0xb
push str._avp6_path_
push esi
call ebp
test eax, eax
jne 0x4987c0
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push str.Ins_ProductPath
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x208
push str.SOFTWAREKasperskyLabAVP6_settings
jmp 0x4987f3
push 0xb
push str._avp7_path_
push esi
call ebp
test eax, eax
jne 0x498840
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push str.Ins_ProductPath
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x208
push str.SOFTWAREKasperskyLabprotectedAVP7_settings
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x49886f
mov eax, dword [esp + 0x10]
add eax, 2
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x49886f
push 0x104
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x218
ret
mov ebp, dword [esp + 0x10]
mov ecx, ebp
sub ecx, esi
sar ecx, 1
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004985f0
add esp, 8
test eax, eax
je 0x49886f
add ebp, 2
push ebp
jmp 0x49880a
xor eax, eax
jmp 0x498827
mov edx, 0x104
mov eax, edi
sub esi, edi
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4988a0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4988a0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x498880
jmp 0x4988a4
test edx, edx
jne 0x4988a7
sub eax, 2
push 0x104
push edi
xor edx, edx
push edi
mov word [eax], dx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004e5fb0
add esp, 0x218
ret
Function at 0x49b3e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aae48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x60]
mov ebx, dword [esi + 0x5c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
call fcn.004b1643
cmp dword [esi + 0x58], 0
mov edi, dword [eax + 0xc]
je 0x49b44c
call fcn.004b1643
mov ecx, dword [esi + 0x58]
mov edi, dword [eax + 0xc]
push 5
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov ebx, eax
test ebx, ebx
je 0x49b45a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x49b475
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x61f708]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x49b492
mov ecx, esi
mov dword [0x61f708], esi
call fcn.004a7dcf
mov ebx, eax
jmp 0x49b49b
mov ebx, dword [eax + 0x20]
mov dword [0x61f708], esi
mov dword [ebp - 0x20], ebx
call fcn.004ab964
mov dword [ebp - 0x24], 0
test ebx, ebx
je 0x49b4c9
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x49b4c9
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x34]
call fcn.004a40a9
mov dword [ebp - 4], 0
push esi
mov byte [ebp - 4], 1
call fcn.004adce7
push ebx
call fcn.004ab8ab
mov edx, dword [ebp - 0x14]
push edi
push eax
push edx
mov ecx, esi
call fcn.004a80a9
test eax, eax
je 0x49b55e
test byte [esi + 0x3c], 0x10
je 0x49b51f
mov ecx, esi
mov edi, 4
call fcn.004afac2
test eax, 0x100
je 0x49b517
mov edi, 5
push edi
mov ecx, esi
call fcn.004ab30d
cmp dword [esi + 0x20], 0
je 0x49b55e
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.004aff91
jmp 0x49b55e
mov dword [ebp - 4], 0xffffffff
call fcn.004a40c1
cmp dword [ebp - 0x24], 0
je 0x49b579
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x49b58f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x49b58f
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov ecx, esi
call fcn.004a7e0b
cmp dword [esi + 0x58], 0
je 0x49b5af
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x28]
mov dword [0x61f708], edx
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49db30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5ab251
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x40c], eax
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x41c]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.004238b0
push str._safemon360realpro.exe
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x434], 0
call fcn.0040d150
add esp, 0x10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edi, 0xffffffff
mov byte [esp + 0x424], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49dbbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49dcd5
xor edx, edx
push 0x3fe
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004e5fc0
add esp, 0xc
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49dc02
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
push 0x200
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x430], 3
call fcn.004a0510
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x49dc40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49dc40
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040c660
mov esi, dword [esp + 0x10]
push str.9.2.0.1401
push esi
call fcn.004a0100
add esp, 8
test eax, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x424], 2
mov edx, edi
lea ecx, [eax + 0xc]
jl 0x49dcc2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dc97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x424], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x49dcbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x49dcfb
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dcd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x424], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x49dcf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x41c
ret