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

Disassembly:
push 0xffffffffffffffff
push 0x4634d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ebp
je 0x42d9a4
call fcn.0042d840
mov eax, dword [esp + 0x28]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42da26
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00455403
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, eax
mov dword [esp + 0x14], 0
push 0
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42da14
cmp edi, dword [esp + 0x14]
jne 0x42da14
push edi
push ebp
mov ecx, esi
call fcn.0042dac0
test eax, eax
je 0x42da14
mov dword [esp + 0x10], 1
push ebp
call fcn.004535f0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov eax, dword [esi + 4]
mov dword [esi + 0xc], edi
cmp eax, ebp
je 0x42da6b
mov edx, dword [eax]
lea edi, [esi + 8]
push edi
push eax
call dword [edx + 0x1c]
mov eax, dword [esi + 4]
add esi, 0x10
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x60
push edx
call ebx
mov dword [edi], eax
mov eax, dword [esi]
push 0x9ec
push 0x60
push eax
call ebx
mov dword [esi], eax
jmp 0x42da75
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ebp
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x28]
mov eax, dword [0x46f430]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x42da9c
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42da9c
push esi
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4310c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4637f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 4]
push ecx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x43115b
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.004092c0
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov eax, dword [esi + 0x7c]
push ebp
cmp eax, ebx
push edi
je 0x4311c5
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, ebp
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x84], eax
push eax
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, eax
push edi
call ebp
test eax, eax
je 0x4311bb
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x7c], ebx
je 0x4311c5
push edi
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
push 0xcc0020
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
sub edx, ecx
mov ecx, dword [esi + 0x80]
sub eax, ebp
push edx
push eax
push ebx
push ebx
push ecx
call edi
mov edx, dword [esi + 0x80]
mov ecx, esi
push edx
call fcn.00431270
mov ecx, dword [esi + 0x80]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x80]
mov esi, dword [esp + 0x10]
push 0xcc0020
sub eax, ecx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov edx, dword [esp + 0x30]
sub ecx, esi
push eax
push ecx
push ebx
push ebx
push edx
call edi
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x68]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x431e70
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
ja 0x431e8d
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
push edi
call fcn.00455403
mov esi, eax
add esp, 4
test esi, esi
je 0x431f06
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x431efd
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x46f520
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x431ee7
push esi
call fcn.004535f0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
push esi
call fcn.004535f0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret

Function at 0x431f10
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push eax
push ebx
xor ebp, ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x431f36
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call fcn.0045525f
mov esi, eax
add esp, 4
test esi, esi
jne 0x431f4d
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x431f88
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x46f520
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push esi
call fcn.00455176
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x431fa0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
mov dx, word [0x47a15c]
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], dx
mov word [esp + 0x214], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x214]
push eax
push ecx
mov dword [esp + 0x10], esi
call fcn.00432060
add esp, 8
test eax, eax
je 0x43204e
push str.efiproc.dll
lea edx, [esp + 0x10]
push 0x47abb0
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x43204e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43204e
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x43204e
push str.EfiUnloadBitmap
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x43204e
call eax
pop edi
pop esi
add esp, 0x414
ret
mov eax, esi
pop edi
pop esi
add esp, 0x414
ret
Function at 0x432060
Capabilities:
Check if file exists
Copy file
Delete directory
Get common file path

Disassembly:
sub esp, 0x420
lea eax, [esp + 0x218]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4320cf
mov esi, dword [esp + 0x434]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x228]
push str.driversefimon.sys
push ecx
push esi
call ebx
test eax, eax
je 0x4320cf
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call edi
test eax, eax
je 0x4320ef
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4320dc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4320ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x420
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push esi
call fcn.00431f10
add esp, 0xc
push str.efimon.sys
lea ecx, [esp + 0x24]
push 0x47abb0
push ecx
call ebx
test eax, eax
je 0x432192
lea edx, [esp + 0x20]
push edx
call edi
test eax, eax
je 0x432192
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.00431f10
add esp, 0xc
test eax, eax
je 0x4320cf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
ja 0x432160
jne 0x432150
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
ja 0x432160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x420
ret
push ebp
lea ecx, [esp + 0x24]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4320cf
mov edx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
mov dword [edx], 1
mov eax, 1
pop ebx
add esp, 0x420
ret
cmp dword [esp + 0x10], ebp
jne 0x4321a2
cmp dword [esp + 0x14], ebp
je 0x4320cf
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x420
ret
Function at 0x4321c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
mov dx, word [0x47a15c]
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], dx
mov word [esp + 0x214], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x214]
push eax
push ecx
mov dword [esp + 0x10], esi
call fcn.00432060
add esp, 8
test eax, eax
je 0x43229a
push str.efiproc.dll
lea edx, [esp + 0x10]
push 0x47abb0
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x43229a
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43229a
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x43229a
push str.EfiLoadBitmap
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x43229a
mov edx, dword [esp + 0x430]
mov ecx, dword [esp + 0x420]
push esi
push esi
push edx
mov edx, dword [esp + 0x438]
push ecx
mov ecx, dword [esp + 0x434]
push edx
mov edx, dword [esp + 0x43c]
push ecx
push edx
call eax
add esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop edi
pop esi
add esp, 0x414
ret

Function at 0x4322b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov esi, dword [esp + 0x218]
test esi, esi
push edi
je 0x4323ee
mov edi, dword [esp + 0x220]
test edi, edi
je 0x4323ee
mov ebx, dword [esp + 0x224]
test ebx, ebx
je 0x4323ee
push 4
push 0x46fccc
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x43235e
cmp ebx, 0x7fffffff
jbe 0x43231a
mov eax, 0x80070057
xor ecx, ecx
test eax, eax
pop edi
pop esi
sete cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0x208
ret
xor ebp, ebp
sub esi, edi
mov eax, edi
lea edx, [esi + 8]
mov cx, word [edx + eax]
test cx, cx
je 0x432337
mov word [eax], cx
add eax, 2
dec ebx
jne 0x432323
jmp 0x43233b
test ebx, ebx
jne 0x432343
sub eax, 2
mov ebp, 0x8007007a
mov word [eax], 0
mov eax, ebp
xor ecx, ecx
pop edi
test eax, eax
sete cl
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push 0xc
push str._systemroot_
push esi
call ebp
test eax, eax
jne 0x4323bd
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4323ee
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
test eax, eax
je 0x4323ee
add esi, 0x18
lea ecx, [esp + 0x10]
push esi
push ecx
push str._s_s
push ebx
push edi
call fcn.004087d0
add esp, 0x14
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x208
ret
push 9
push str.system32_
push esi
call ebp
test eax, eax
jne 0x4323ee
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4323ee
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
test eax, eax
jne 0x432398
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
Function at 0x432400
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x628
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, 0x473de8
mov ebp, 2
mov ebx, 0x208
mov eax, dword [esi]
lea ecx, [esp + 0x228]
push eax
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push ecx
call fcn.004087d0
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x430]
lea ecx, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x234]
push str.ImagePath
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x4324c2
lea eax, [esp + 0x20]
push 0x104
lea ecx, [esp + 0x434]
push eax
push ecx
call fcn.004322b0
add esp, 0xc
test eax, eax
je 0x4324c2
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4324c2
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00431e70
add esp, 0xc
test al, al
je 0x4324c2
mov eax, dword [esp + 0x18]
shr eax, 0x10
cmp eax, 0xc
je 0x4324de
add esi, 4
cmp esi, 0x473df0
jb 0x43241f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x628
ret
mov ecx, 0x47405c
test ecx, ecx
jne 0x4324eb
xor ebx, ebx
jmp 0x4324f8
push 0x47405c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov ebp, dword [esp + 0x63c]
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x432512
cmp ebx, dword [eax - 4]
jle 0x43257a
mov edx, dword [0x46f430]
add eax, 0xfffffff4
cmp eax, edx
je 0x432541
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x432539
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.004535f0
add esp, 4
mov eax, dword [0x46f42c]
mov dword [ebp], eax
test ebx, ebx
jne 0x432550
mov ecx, dword [0x46f42c]
mov dword [ebp], ecx
jmp 0x43257a
lea edx, [ebx + ebx + 0xe]
push edx
call fcn.00455403
add esp, 4
test eax, eax
je 0x4325ac
mov dword [eax], 1
mov word [eax + ebx*2 + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [ebp], eax
lea eax, [ebx + ebx]
lea ecx, [ebx + ebx + 2]
cmp ecx, eax
jb 0x43259d
mov edi, dword [ebp]
mov ecx, eax
mov edx, ecx
mov esi, 0x47405c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x628
ret
Function at 0x4325c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46387b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov ax, word [0x47a15c]
push edi
mov word [esp + 0x10], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
stosw word es:[edi], ax
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push str.Home_Directory
push str.SOFTWARESymantecSymantec_Endpoint_ProtectionAV
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x43272e
lea ecx, [esp + 0xc]
push str.Rtvscan.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x43272e
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43272e
mov eax, dword [0x46f42c]
mov dword [esp], eax
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x224], 0
call fcn.00402170
add esp, 8
test eax, eax
je 0x4326ff
mov eax, dword [esp]
push str.11.0.1000.1112
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jl 0x4326ff
mov ecx, dword [esp + 0x224]
push str.Symantec_Endpoint_Protection
push 0xe8
push ecx
call fcn.00417960
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46f430]
add esp, 0xc
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4326e5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4326e5
mov eax, dword [esp]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
mov eax, dword [esp]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43272e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43272e
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x214]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x220
ret

Function at 0x432750
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov ax, word [0x47a15c]
push edi
mov word [esp + 0xc], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
stosw word es:[edi], ax
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.Path
push str.SOFTWAREMozheAnAnClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4327f3
lea ecx, [esp + 8]
push 0x4741f8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4327f3
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4327f3
mov eax, dword [esp + 0x214]
push 0x4741f0
push 0xe8
push eax
call fcn.00417960
add esp, 0xc
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
Function at 0x433ac0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x418
mov ecx, 0x47b780
push esi
call fcn.00444330
mov ecx, dword [0x47b858]
mov esi, dword [esp + 0x420]
push esi
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
je 0x433c46
push 0
push str.HideTray
push str.main
call fcn.004182f0
add esp, 0xc
test eax, eax
je 0x433b39
mov eax, dword [esp + 0x428]
test eax, eax
je 0x433b39
push 0
push str.HideTray
push str.main
call fcn.00408ac0
mov ecx, dword [0x47b854]
add esp, 0xc
push 0
push 0
push 0x547
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x47b864]
test eax, eax
je 0x433c39
mov dx, word [0x47a15c]
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], dx
rep stosd dword es:[edi], eax
push 0x46f7c8
lea edx, [esp + 0x14]
push 0x47a9a8
push edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0x208
stosw word es:[edi], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x218]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push str.360Safebox
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x433c0d
lea eax, [esp + 0xc]
lea ecx, [esp + 0x214]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x433c0d
push str.360Safebox
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0
push str.CheckRun
push str.main
call fcn.00408ac0
add esp, 0xc
push 1
push str.SoftProtect
push str.main
call fcn.004182f0
add esp, 0xc
test eax, eax
je 0x433c39
push 0
push str.SoftProtect
push str.main
call fcn.00408ac0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x418
ret
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x47b858]
push esi
mov edx, dword [ecx]
call dword [edx + 0x28]
test eax, eax
jne 0x433c99
push 1
push str.ProtectType
push str.main
call fcn.004182f0
add esp, 0xc
cmp eax, 1
jne 0x433c89
push eax
push 0x79
push 0xe3
push 0
call fcn.0043b230
add esp, 0x10
mov eax, dword [esp + 0x424]
push eax
call fcn.00433aa0
add esp, 4
xor eax, eax
pop esi
add esp, 0x418
ret
Function at 0x437700
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x463f1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push edi
lea ecx, [esp + 8]
call fcn.004116c0
push 0x2710
lea ecx, [esp + 0xc]
mov dword [esp + 0x238], 0
call fcn.004117b0
mov ebx, dword [esp + 0x240]
mov eax, dword [esp + 0x23c]
push ebx
push eax
lea ecx, [esp + 0x10]
call fcn.00411860
test eax, eax
je 0x4377d5
push esi
mov esi, dword [esp + 0x248]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x437783
mov eax, dword [esp + 0x24c]
test eax, eax
je 0x437783
push esi
call edi
push esi
call fcn.004376c0
add esp, 4
test eax, eax
jne 0x437793
push esi
call edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
pop esi
je 0x4377d0
lea ecx, [esp + 8]
mov dword [esp + 0x234], 0xffffffff
call fcn.00411710
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret
push ebx
call edi
jmp 0x4377dc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 8]
mov dword [esp + 0x234], 0xffffffff
call fcn.00411710
mov ecx, dword [esp + 0x22c]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x439440
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4394a1
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x439570
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.SafeboxKrnl.sys
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x47a9a8
push eax
call esi
push str.SafeboxKrnl.sys
lea ecx, [esp + 0xc]
push 0x47b1c8
push ecx
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 8]
push edx
call esi
test eax, eax
jne 0x439611
lea eax, [esp + 0x210]
push eax
call esi
test eax, eax
jne 0x439611
push 1
push 0x79
push 0xac
push eax
call fcn.0043b230
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x410
ret
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret