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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
sub esp, 0x94
cmp dword [esi + 0x20], ecx
jne 0x46fb0b
xor eax, eax
leave
ret
mov eax, dword [esi + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov ebx, 0xaa0
cmp dword [esi + 4], ecx
jbe 0x46fb3d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ecx
je 0x46fb34
push dword [ebp - 4]
call fcn.0046f69e
xor ecx, ecx
add dword [ebp - 4], ebx
inc edi
cmp edi, dword [esi + 4]
jb 0x46fb25
cmp dword [esi + 0x24], 8
mov dword [ebp - 8], ecx
jb 0x46fb4b
mov eax, dword [esi + 0x10]
jmp 0x46fb4e
lea eax, [esi + 0x10]
push 3
push eax
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x90]
push eax
mov dword [ebp - 0x94], ecx
call fcn.004454cc
push 0x54d9fc
push dword [ebp - 0x94]
lea eax, [ebp - 8]
push eax
call fcn.004fab79
mov edi, eax
lea eax, [ebp - 0x90]
add esp, 0xc
cmp dword [ebp - 0x94], eax
je 0x46fb9c
push dword [ebp - 0x94]
call fcn.004f29a6
pop ecx
cmp dword [ebp - 8], 0
je 0x46fbd6
test edi, edi
jne 0x46fbd6
push dword [ebp - 8]
inc edi
push edi
lea eax, [ebp - 0xc]
push 4
push eax
mov dword [ebp - 0xc], edi
call fcn.004f7459
push dword [ebp - 8]
push dword [esi + 4]
push ebx
push dword [esi + 8]
call fcn.004f7459
push dword [ebp - 8]
call fcn.004f727b
add esp, 0x24
mov dword [ebp - 0xc], edi
xor edi, edi
cmp dword [esi + 4], edi
jbe 0x46fbfa
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46fbf1
push dword [ebp - 4]
call fcn.0046f69e
add dword [ebp - 4], ebx
inc edi
cmp edi, dword [esi + 4]
jb 0x46fbe3
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret

Function at 0x46fca1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.BlockTimes
push str.SOFTWARE360Safe_safemon
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [esi + 4]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
jbe 0x46fd1b
push edi
xor edi, edi
cmp dword [ebp - 4], ebx
jl 0x46fd0c
cmp dword [ebp - 4], edx
jae 0x46fd0c
mov ecx, dword [esi + 8]
add ecx, edi
cmp dword [ecx + 0xc], ebx
ja 0x46fd09
cmp dword [ecx + 0x14], ebx
jbe 0x46fd0c
inc dword [ebp - 8]
inc dword [ebp - 4]
add edi, 0xaa0
cmp dword [ebp - 4], edx
jb 0x46fcf0
pop edi
mov ecx, dword [ebp - 8]
add ecx, eax
push ecx
call fcn.0046ec8f
neg eax
sbb eax, eax
pop ecx
neg eax
dec eax
pop ebx
leave
ret
Function at 0x471187
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x520d2d
call fcn.004fc737
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x434], edi
call fcn.004048e0
xor eax, eax
mov dword [ebp - 4], edi
push 0x208
mov word [ebp - 0x424], ax
xor ebx, ebx
lea eax, [ebp - 0x422]
push edi
inc ebx
push eax
mov dword [ebp - 0x434], ebx
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x438]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x430], 0x209
mov dword [ebp - 0x438], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4712a1
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004f18b0
add esp, 0xc
push 0x549698
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], edi
push eax
lea edi, [ebp - 0x218]
call fcn.0040b3b3
pop ecx
pop ecx
cmp al, bl
jne 0x4712a1
mov eax, dword [ebp - 0x42c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x428]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push esi
call fcn.0040450f
add esp, 0x18
mov eax, esi
call fcn.004fc7ba
ret
Function at 0x475234
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x526479
call fcn.004fc737
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x220], edi
mov eax, dword [0x590e04]
mov esi, 0x590e04
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [ebp - 4], edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4752fd
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004056c8
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push 0x54e21c
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4752fd
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004056c8
lea eax, [ebp - 0x21c]
jmp 0x475324
mov eax, dword [0x590e04]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 1
mov eax, dword [eax]
sub eax, 0x10
call fcn.00404942
or dword [ebp - 0x220], 2
add eax, 0x10
test byte [ebp - 0x220], 1
mov dword [ebx], eax
je 0x475351
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00405521
mov eax, ebx
call fcn.004fc7ba
ret
Function at 0x47548e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x14
mov eax, 0x528fc6
call fcn.004fc6ce
xor esi, esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0xc], esi
je 0x47562f
cmp dword [ebp + 0x10], esi
je 0x47562f
mov eax, dword [0x590e04]
mov ebx, 0x590e04
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
push 0x80
push 3
push esi
push 1
mov dword [ebp - 4], esi
push SysReAllocString
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x475529
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x10]
call fcn.00428e31
cmp eax, esi
je 0x475529
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.00428e0c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], esi
je 0x47561d
cmp dword [ebp - 0x14], esi
je 0x47561d
mov eax, dword [0x590e04]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push str._language_font_face_
xor ecx, ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004299ad
or ebx, 0xffffffff
cmp eax, ebx
je 0x4755f2
push dword [ebp + 0x10]
mov ecx, eax
call fcn.004299ad
cmp eax, ebx
je 0x4755f2
push str.face_
mov ecx, eax
call fcn.004299ad
mov edi, eax
cmp edi, ebx
je 0x4755f2
add edi, 6
push 0x5481c4
mov ecx, edi
call fcn.004299ad
cmp eax, ebx
je 0x4755f2
mov ecx, eax
push edi
lea eax, [ebp + 0xc]
push eax
sub ecx, edi
mov eax, esi
call fcn.0042a1c6
push 0x54a890
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 2
and dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00427823
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00404477
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405521
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00405521
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
mov eax, esi
call fcn.00404942
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00405521
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405521
mov eax, edi
jmp 0x475639
mov esi, dword [ebp + 8]
call fcn.004048e0
lea eax, [edi - 0x10]
call fcn.00405521
jmp 0x475637
mov esi, dword [ebp + 8]
call fcn.004048e0
mov eax, esi
call fcn.004fc7a6
ret

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

Disassembly:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x475a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete al
ret
shr eax, 4
not al
and al, 1
ret
Function at 0x475a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x475a3d
xor al, al
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x475a5e
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
neg eax
sbb al, al
inc al
pop ebp
ret
shr al, 4
and al, 1
pop ebp
ret

Function at 0x475c12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004f18b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x475c5d
xor eax, eax
jmp 0x475c8c
push str.ntdll.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x475c59
push str.RtlGetVersion
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f189b
leave
ret

Function at 0x475c98
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004f18b0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004f189b
leave
ret

Function at 0x475faf
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
cmp esi, 0xffffffff
je 0x475fce
test esi, esi
jne 0x475ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x475fed
cmp esi, 0xffffffff
je 0x475fe9
test esi, esi
je 0x475fe9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x475fff
cmp esi, 0xffffffff
je 0x475ffd
test esi, esi
je 0x475ffd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
Function at 0x476002
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x527447
call fcn.004fc6ce
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x476026
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x476026
xor al, al
jmp 0x476178
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x47601f
xor eax, eax
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
jle 0x47616d
mov ebx, 0x590e04
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax*4]
cmp word [eax], 0x2f
jne 0x47615d
add eax, 2
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004056ee
and dword [ebp - 4], 0
mov eax, dword [0x590e04]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [0x590e04]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x3a
xor ecx, ecx
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0041ae60
mov esi, eax
cmp esi, 0xffffffff
je 0x476101
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0xc]
call fcn.00426d89
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00404477
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405521
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
lea eax, [ebp + 0xc]
call fcn.00404436
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00404477
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405521
jmp 0x47610c
lea eax, [ebp + 0xc]
lea edi, [ebp - 0x14]
call fcn.00404477
push 0x22
pop edx
push edx
lea eax, [ebp - 0x10]
call fcn.00476242
call fcn.004761ee
lea eax, [ebp - 0x14]
call fcn.0042a5b4
push eax
push dword [ebp + 8]
call fcn.0041b38e
mov edi, eax
lea eax, [ebp - 0x10]
call fcn.00404477
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405521
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x1c]
inc eax
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jl 0x47604f
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
call fcn.004fc7a6
ret 8
Function at 0x476a5b
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0xbc
mov eax, 0x5334eb
call fcn.004fc737
lea eax, [ebp - 0xc8]
push eax
call fcn.00439680
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x18], bl
je 0x476b13
cmp dword [ebp - 0xc4], ebx
jne 0x476ab4
push ebx
push ebx
push 0x1404
push str.Q360InternationSafeClass
call fcn.0043bf00
mov ecx, dword [edi]
add esp, 0x10
push 1
call fcn.00498862
lea eax, [ebp - 0xc8]
call fcn.004769d5
cmp dword [ebp - 0xc8], ebx
jne 0x476aeb
lea eax, [ebp - 0xc8]
push eax
call fcn.00476767
pop ecx
lea eax, [ebp - 0xc8]
call fcn.004768a3
lea esi, [ebp - 0xc8]
call fcn.00476810
call fcn.0047691e
mov esi, dword [edi]
call fcn.0049ab32
lea eax, [ebp - 0xc8]
push eax
call fcn.00476961
cmp dword [ebp - 0x20], 1
pop ecx
je 0x476b13
push str.360DesktopLite
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea esi, [ebp - 0xc8]
call fcn.004396c1
call fcn.004fc7ba
ret

Function at 0x476cd1
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x528f60
call fcn.004fc6ce
lea eax, [ebp - 0x30]
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call fcn.00476c52
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x2c]
inc esi
mov dword [esp], str.AVE360KP.dll
push ecx
mov edi, eax
mov dword [ebp - 0x14], esi
call fcn.00405a46
pop ecx
pop ecx
push 3
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
push dword [eax]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
je 0x476d96
lea eax, [ebp - 0x28]
push eax
call fcn.00476c52
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x24]
mov dword [esp], str.AVE360KPBase.dll
push ecx
mov edi, eax
mov dword [ebp - 0x14], 7
call fcn.00405a46
pop ecx
pop ecx
mov dword [ebp - 4], ebx
push 0xf
pop ebx
push dword [eax]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
je 0x476d96
lea eax, [ebp - 0x20]
push eax
call fcn.00476c52
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1c]
mov dword [esp], str.AVEkpb.def
push ecx
mov edi, eax
mov dword [ebp - 0x14], 0x1f
call fcn.00405a46
pop ecx
pop ecx
push 0x3f
pop ebx
push dword [eax]
call esi
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x476d9a
mov byte [ebp - 0xd], 0
test bl, 0x20
je 0x476dad
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
and ebx, 0xffffffdf
call fcn.00405521
test bl, 0x10
je 0x476dc0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
and ebx, 0xffffffef
call fcn.00405521
test bl, 8
je 0x476dd3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
and ebx, 0xfffffff7
call fcn.00405521
test bl, 4
je 0x476de6
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
and ebx, 0xfffffffb
call fcn.00405521
test bl, 2
je 0x476df9
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
and ebx, 0xfffffffd
call fcn.00405521
test bl, 1
je 0x476e09
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00405521
cmp byte [ebp - 0xd], 0
je 0x476e16
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.004fc7a6
ret
Function at 0x476ea4
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x528f60
call fcn.004fc6ce
lea eax, [ebp - 0x30]
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call fcn.00476e60
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x2c]
inc esi
mov dword [esp], str.vbase000.vdf
push ecx
mov edi, eax
mov dword [ebp - 0x14], esi
call fcn.00405a46
pop ecx
pop ecx
push 3
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
push dword [eax]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x476f69
lea eax, [ebp - 0x28]
push eax
call fcn.00476e60
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x24]
mov dword [esp], str.aeoffice.dll
push ecx
mov edi, eax
mov dword [ebp - 0x14], 7
call fcn.00405a46
pop ecx
pop ecx
mov dword [ebp - 4], ebx
push 0xf
pop ebx
push dword [eax]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x476f69
lea eax, [ebp - 0x20]
push eax
call fcn.00476e60
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1c]
mov dword [esp], str.aebb.dll
push ecx
mov edi, eax
mov dword [ebp - 0x14], 0x1f
call fcn.00405a46
pop ecx
pop ecx
push 0x3f
pop ebx
push dword [eax]
call esi
mov byte [ebp - 0xd], 0
test eax, eax
je 0x476f6d
mov byte [ebp - 0xd], 1
test bl, 0x20
je 0x476f80
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
and ebx, 0xffffffdf
call fcn.00405521
test bl, 0x10
je 0x476f93
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
and ebx, 0xffffffef
call fcn.00405521
test bl, 8
je 0x476fa6
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
and ebx, 0xfffffff7
call fcn.00405521
test bl, 4
je 0x476fb9
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
and ebx, 0xfffffffb
call fcn.00405521
test bl, 2
je 0x476fcc
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
and ebx, 0xfffffffd
call fcn.00405521
test bl, 1
je 0x476fdc
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00405521
cmp byte [ebp - 0xd], 0
je 0x476fe9
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.004fc7a6
ret
Function at 0x47757f
Capabilities:
Get logon sessions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xff0
mov eax, dword [0x585698]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xfc8], ecx
mov dword [ebp - 0xfc4], eax
mov dword [ebp - 0xfd4], edx
mov byte [ebp - 0xfad], 0
cmp eax, esi
jne 0x4775c2
cmp ecx, esi
jne 0x4775c2
xor al, al
jmp 0x477770
lea eax, [ebp - 0xfc0]
push eax
lea eax, [ebp - 0xfbc]
push eax
mov dword [ebp - 0xfbc], esi
mov dword [ebp - 0xfc0], esi
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
jne 0x4775bb
mov dword [ebp - 0xfb8], esi
cmp dword [ebp - 0xfbc], esi
jbe 0x47775f
mov ebx, 0x7ce
lea edi, [ebx + 2]
mov ecx, dword [ebp - 0xfb8]
lea eax, [ebp - 0xfb4]
push eax
mov eax, dword [ebp - 0xfc0]
lea eax, [eax + ecx*8]
push eax
mov dword [ebp - 0xfb4], esi
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
jne 0x477727
mov esi, dword [ebp - 0xfb4]
test esi, esi
je 0x477725
mov eax, dword [esi + 0x30]
mov dword [ebp - 0xfd0], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xfcc], eax
xor eax, eax
push ebx
push eax
mov word [ebp - 0x7dc], ax
lea eax, [ebp - 0x7da]
push eax
call fcn.004f18b0
add esp, 0xc
xor eax, eax
push ebx
push eax
mov word [ebp - 0xfac], ax
lea eax, [ebp - 0xfaa]
push eax
call fcn.004f18b0
add esp, 0xc
push dword [esi + 0x10]
lea eax, [ebp - 0x7dc]
push edi
push eax
call fcn.0042653b
mov eax, dword [ebp - 0xfb4]
push dword [eax + 0x18]
lea eax, [ebp - 0xfac]
push edi
push eax
call fcn.0042653b
push dword [ebp - 0xfb4]
call sub.Secur32.dll_LsaFreeReturnBuffer
and dword [ebp - 0xfb4], 0
cmp dword [ebp - 0xfc8], 0
je 0x4776d5
lea eax, [ebp - 0x7dc]
push eax
push dword [ebp - 0xfc8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x477725
cmp dword [ebp - 0xfc4], 0
je 0x4776f5
lea eax, [ebp - 0xfac]
push eax
push dword [ebp - 0xfc4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x477725
lea eax, [ebp - 0xfdc]
push eax
lea eax, [ebp - 0xfd0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x477725
lea eax, [ebp - 0xfec]
push eax
lea eax, [ebp - 0xfdc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x477741
xor esi, esi
inc dword [ebp - 0xfb8]
mov eax, dword [ebp - 0xfb8]
cmp eax, dword [ebp - 0xfbc]
jb 0x4775ff
jmp 0x47775f
mov ecx, dword [ebp - 0xfd0]
mov eax, dword [ebp - 0xfd4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xfcc]
mov dword [eax + 4], ecx
mov byte [ebp - 0xfad], 1
push dword [ebp - 0xfc0]
call sub.Secur32.dll_LsaFreeReturnBuffer
mov al, byte [ebp - 0xfad]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f189b
leave
ret 4
Function at 0x477bd2
Capabilities:
Create thread

Disassembly:
push 0x6c
mov eax, 0x532bae
call fcn.004fc737
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x74]
mov dword [ebx + 0x248], eax
call fcn.00436aba
xor edi, edi
lea esi, [ebp - 0x74]
mov dword [ebp - 4], edi
call fcn.0043bfc8
cmp eax, edi
je 0x477c2c
cmp eax, 1
je 0x477c2c
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 6
ja 0x477c2c
push edi
push edi
push ebx
push 0x478fda
push edi
push edi
call fcn.004f5629
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x477c4a
push ecx
mov eax, esp
mov dword [ebp - 0x78], esp
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [ebp - 0x78], esp
mov dword [eax], edi
push dword [ebx + 0x248]
lea esi, [ebx + 0x2c]
call fcn.0047a3b4
lea edi, [ebp - 0x74]
call fcn.0043841d
mov al, 1
call fcn.004fc7ba
ret 8