joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491ea0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x491f23
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
je 0x491f23
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push 0
call fcn.00491af0
add esp, 4
test eax, eax
jne 0x491f4c
push eax
call fcn.00491a70
add esp, 4
test eax, eax
jne 0x491f4c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret

Function at 0x491f80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x12
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x491fe8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], edi
je 0x491fe8
lea esi, [edi + 2]
jmp 0x49200c
push 0
call fcn.00491af0
add esp, 4
test eax, eax
jne 0x492007
push eax
call fcn.00491a70
add esp, 4
test eax, eax
jne 0x492007
xor esi, esi
jmp 0x49200c
mov esi, 1
call fcn.004a82f8
test eax, eax
jne 0x49201e
call fcn.004a82fe
test eax, eax
je 0x492023
cmp esi, 1
je 0x492044
call fcn.004a7fd8
test eax, eax
je 0x492068
push 0
call fcn.00491b70
add esp, 4
cmp esi, 1
jne 0x492059
cmp eax, esi
je 0x492044
cmp eax, 2
jne 0x492068
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x492068
cmp eax, 3
mov ecx, 1
cmove edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret

Function at 0x493a90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, eax
mov dword [esi + 8], 0
xor eax, eax
mov dword [esi + 4], edx
test edx, edx
mov dword [esi + 0xc], 0
pop esi
sete al
pop ebp
ret 4
Function at 0x493c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
pop esi
test eax, eax
jne 0x493cd1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x493ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
pop esi
test eax, eax
jne 0x493d31
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x494190
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd5cb
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x830], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call fcn.004b493e
add esp, 0xc
mov dword [ebp - 0x82c], 0x800
xor edi, edi
lea eax, [ebp - 0x82c]
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x830]
push edi
push dword [eax + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x494218
xor eax, eax
jmp 0x494332
test eax, eax
jne 0x49432d
xor eax, eax
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494246
sub eax, edx
lea ecx, [ebp - 0x828]
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
call int.00410410
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
cmp dword [esi + 8], eax
je 0x4942a2
movups xmm0, xmmword [ebp - 0x828]
xor ecx, ecx
mov word [ebp - 0x828], cx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x818]
movq qword [eax + 0x10], xmm0
mov eax, 7
add dword [esi + 4], 0x18
jmp 0x4942b7
lea ecx, [ebp - 0x828]
push ecx
push eax
mov ecx, esi
call fcn.00417620
mov eax, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4942f4
mov ecx, dword [ebp - 0x828]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4942ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49434f
push edx
push ecx
call fcn.004aebf7
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0x800
push eax
lea eax, [ebp - 0x810]
inc edi
push eax
mov eax, dword [ebp - 0x830]
push edi
push dword [eax + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x494220
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 4
call dword [0x4c59b0]
int3
Function at 0x49bc40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x49bc7f
push 0x5dc
push eax
mov dword [esi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49bc6f
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
ret

Function at 0x49bcc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
mov dword [esi + 0x1c], 1
call fcn.004a80d0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x49bce8
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4
cmp dword [esi + 0xc], 0
jne 0x49bcff
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x49bd17
push 0x5dc
mov dword [esi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
push 0x49bca0
push 0
push 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x49c490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004b493e
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x49c4e2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49c4f0
sub eax, edx
lea ecx, [ebp - 0x20c]
sar eax, 1
mov edx, 0x4eab58
push ecx
mov ecx, str._sFCTInstall.log
cmp word [ebp + eax*2 - 0x20e], 0x5c
cmovne ecx, edx
push ecx
push dword [ebp + 0xc]
push esi
call fcn.00434600
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x49c760
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esi], 0x409
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [esi], eax
call fcn.004a7f84
neg eax
lea ecx, [ebp - 4]
push ecx
sbb eax, eax
and eax, 0x100
add eax, 0x20019
push eax
push 0
push str.softwareFortinetFortiClientFA_UI
push reloc.SHELL32.dll_SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49c7e5
mov eax, dword [ebp - 4]
test eax, eax
je 0x49c7e5
lea ecx, [ebp - 8]
push ecx
push str.LCID
push eax
call fcn.004a7ed6
add esp, 0xc
test al, al
je 0x49c7da
mov eax, dword [ebp - 8]
test eax, eax
je 0x49c7da
mov dword [esi], eax
push dword [ebp - 4]
call fcn.004a7ed0
add esp, 4
mov ecx, dword [esi]
xor eax, eax
nop dword [eax]
cmp dword [eax*8 + 0x4eaba0], ecx
je 0x49c80b
inc eax
cmp eax, 3
jb 0x49c7f0
mov dword [esi], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax*8 + 0x4eaba4]
mov dword [esi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49d310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, al
lea ecx, [esi + 0x80]
cmp edx, 4
mov dword [ebp - 0x420], ecx
sbb eax, eax
inc eax
mov dword [ecx], eax
cmp edx, 4
jae 0x49d35b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 0x14
call fcn.004a8274
test eax, eax
je 0x49d3f6
push 0x20a
lea eax, [ebp - 0x210]
mov dword [esi + 0x49c], 1
push 0
push eax
call fcn.004b493e
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49d3f6
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004b493e
lea eax, [ebp - 0x210]
push eax
push str._s_shell32.dll
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00453150
add esp, 0x1c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x49d3f6
push str.Shell_NotifyIconGetRect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x4a0], eax
jmp 0x49d400
mov dword [esi + 0x49c], 0
push ebx
push 0
push 0
push 0
push 0xa
push 0xa
push 0
push 0
push SHChangeNotifyRegister
push 0x4cc9ec
push 0
push 0
push 0
push 0
call fcn.004b3d1e
push eax
push 0
mov ecx, esi
call fcn.004b2b20
lea ebx, [esi + 0x88]
call fcn.004a7fd8
test eax, eax
je 0x49d44b
mov eax, 4
mov ecx, 0x3bc
jmp 0x49d455
mov eax, 3
mov ecx, 0x3b8
mov dword [ebx], ecx
mov dword [esi + 0x3a8], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x49d46b
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x49d46e
mov eax, dword [esi + 0x20]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esi + 0x8c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x90], eax
mov dword [esi + 0x9c], edi
mov dword [esi + 0x94], 0x17
call fcn.004a7fd8
test eax, eax
je 0x49d4a7
or dword [esi + 0x94], 0x40
mov dword [esi + 0x440], edi
mov dword [esi + 0x42c], 4
call fcn.004a831c
pop edi
test eax, eax
je 0x49d4c2
or dword [esi + 0x42c], 0x20
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x98], eax
sub esi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx + 0x9e], ax
test ax, ax
jne 0x49d4d0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 0x420]
pop ebx
pop esi
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4a09a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4a09d2
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
cmp esi, 0xfffffffe
jne 0x4a0a03
push edi
push 0x4a03f0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call dword [sym.imp.USER32.dll_EnumDesktopsW]
neg eax
pop edi
sbb eax, eax
and eax, 2
add eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push esi
call fcn.004a0cf0
add esp, 4
test eax, eax
je 0x4a0a25
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push esi
call fcn.004a01e0
add esp, 4
test eax, eax
jne 0x4a0a47
pop edi
mov eax, 0xfffffffb
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004b493e
push esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0049f9c0
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004b493e
lea eax, [ebp - 0x210]
push eax
push str..pipeFC_4F5765F1_F320_4f2f_A7BE_EFED8CA81770
push 0x4dc62c
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00434600
push dword [edi + 0x10]
lea eax, [ebp - 0x41c]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.004a8142
mov ecx, dword [ebp - 4]
add esp, 0x50
neg eax
sbb eax, eax
xor ecx, ebp
pop edi
and eax, 0xfffffffc
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x4a13d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be49b
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x294]
push 0x44
push 0
push eax
call fcn.004b493e
lea eax, [ebp - 0x23c]
xorps xmm0, xmm0
xor esi, esi
push eax
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x23c], esi
call fcn.004a7f00
xor eax, eax
mov dword [ebp - 0x238], esi
add esp, 0x10
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push 0x4f28a8
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x4a15b8
mov edx, dword [ebp - 0x238]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x240], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1486
sub ecx, dword [ebp - 0x240]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call int.00410410
push dword [ebp - 0x238]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004b493e
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push edi
cmovae eax, dword [ebp - 0x234]
push eax
push str._scmd.exe__c___s_
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.0042da70
add esp, 0x24
mov dword [ebp - 0x294], 0x44
xor eax, eax
mov dword [ebp - 0x268], 1
mov word [ebp - 0x264], ax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x294]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4a15aa
cmp dword [ebp - 0x250], 0
je 0x4a15a5
push 0x210
call fcn.004aebc7
mov esi, eax
add esp, 4
test esi, esi
je 0x4a15a5
push 0x210
push 0
push esi
call fcn.004b493e
mov eax, dword [ebp - 0x250]
push 0xffffffffffffffff
push edi
mov dword [esi], eax
lea eax, [esi + 4]
push 0x104
push eax
call dword [0x4c5af0]
add esp, 0x1c
push 0
push 0
push esi
push 0x4a0e30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4a15a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
push dword [ebp - 0x23c]
call fcn.004a7f06
add esp, 4
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4a15fa
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a15f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a15f0
call dword [0x4c59b0]
push edx
push ecx
call fcn.004aebf7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x4a3550
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be8ab
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
push esi
mov dword [ebp - 0x278], eax
call dword [0x4c593c]
add esp, 8
test eax, eax
jne 0x4a35f7
call fcn.004a7ec4
test eax, eax
je 0x4a35b2
lea eax, [ebp - 0x274]
push eax
call fcn.004a7f00
add esp, 4
lea eax, [ebp - 0x27c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
call fcn.004af950
mov edi, esp
test edi, edi
je 0x4a35f7
push edi
push ebx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4a35fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004a7ec4
test eax, eax
je 0x4a35f7
push dword [ebp - 0x274]
call fcn.004a7f06
add esp, 4
xor eax, eax
jmp 0x4a3790
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x26c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a36a6
mov edx, dword [ebp - 0x270]
xor eax, eax
mov esi, dword [ebp - 0x26c]
mov ecx, esi
shr edx, 2
test edx, edx
je 0x4a3664
mov ebx, 0x409
cmp word [ecx], bx
je 0x4a3664
inc eax
add ecx, 4
cmp eax, edx
jb 0x4a3657
cmp eax, edx
cmovae ecx, esi
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str._04x_04x
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00434600
lea ecx, [ebp - 0x50]
add esp, 0x14
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3690
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
jmp 0x4a36ad
push 8
push str.040904B0
lea ecx, [ebp - 0x268]
call int.00410410
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
push str.StringFileInfo_sProductName
lea eax, [ebp - 0x250]
push 0x100
push eax
call fcn.00434600
add esp, 0x10
xor eax, eax
mov word [ebp - 0x52], ax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x250]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a3732
mov esi, dword [ebp - 0x26c]
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a3716
mov ecx, dword [ebp - 0x278]
sub edx, edi
sar edx, 1
push edx
push esi
call int.00410410
call fcn.004a7ec4
test eax, eax
je 0x4a3749
push dword [ebp - 0x274]
call fcn.004a7f06
add esp, 4
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x4a378b
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a3781
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a3781
call dword [0x4c59b0]
push edx
push ecx
call fcn.004aebf7
add esp, 8
mov eax, 1
lea esp, [ebp - 0x28c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x4a4df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5400b4], 0
je 0x4a4eea
cmp dword [0x543a6c], 0
je 0x4a4eea
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
cmp eax, dword [0x543a64]
je 0x4a4e3b
cmp eax, dword [0x543a68]
jne 0x4a4e71
xorps xmm0, xmm0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
push eax
mov dword [ebp - 0xc], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul ecx, dword [0x50dbb0], 0x3e8
sub eax, dword [ebp - 8]
add ecx, 0x1f4
cmp eax, ecx
jbe 0x4a4eea
push esi
mov dword [0x543a6c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 0x1f4
mov esi, 0x50dbe4
sub edx, dword [0x543a48]
mov ecx, 0x50dbcc
push str.userbrowsed
lea edx, [edx + eax]
mov eax, 0x10624dd3
mul edx
mov eax, 0x50dbb4
shr edx, 6
cmp dword [0x50dbf8], 8
push edx
cmovae esi, dword [0x50dbe4]
cmp dword [0x50dbe0], 8
push esi
cmovae ecx, dword [0x50dbcc]
cmp dword [0x50dbc8], 8
push ecx
cmovae eax, dword [0x50dbb4]
push eax
call fcn.004a37c0
add esp, 0x14
call fcn.004a4d70
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a4ef0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x543a70], 0
jne 0x4a4feb
cmp dword [0x543a74], 0
jne 0x4a4feb
cmp dword [0x543a50], 0
je 0x4a4f22
push str.WfbeMsaaStartUrlMonitor___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push str.softwareFortinetFortiClientFA_WEBFILTER
push reloc.SHELL32.dll_SHChangeNotifyRegister
call fcn.004a7eca
mov esi, eax
add esp, 8
test esi, esi
je 0x4a4fa4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.browser_read_time_threshold
push esi
call fcn.004a7ed6
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x4a4f78
cmp eax, 0x708
jbe 0x4a4f69
mov eax, 0x708
jmp 0x4a4f73
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [0x50dbb0], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.MsaaDebugViewEnabled
push esi
call fcn.004a7ed6
xor eax, eax
cmp dword [ebp - 4], eax
push esi
setne al
mov dword [0x543a50], eax
call fcn.004a7ed0
add esp, 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 2
push 0
push 0
push 0x4a4980
push 0
push 0x8005
push 0x8005
call dword [sym.imp.USER32.dll_SetWinEventHook]
push 2
push 0
push 0
push 0x4a45f0
push 0
push 2
push 2
mov dword [0x543a70], eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov dword [0x543a74], eax
pop esi
xor eax, eax
mov esp, ebp
pop ebp
ret