joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403360
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.dbghelp.dll_SymGetModuleBase]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40338b
mov eax, dword [ebp - 0x20]
jmp 0x40345b
push 0x1c
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x403458
push 0x104
lea edx, [ebp - 0x330]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [ebp - 0x128]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x416978
lea edx, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x24]
neg edx
sbb edx, edx
lea eax, [ebp - 0x330]
and edx, eax
push edx
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.dbghelp.dll_SymLoadModule]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push edi
mov byte [ebp - 0x508], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x60c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x60b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x508]
mov dword [ebp - 0x618], eax
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x610], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x610]
push ecx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea edx, [ebp - 0x610]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
push edx
push str.C:SangforServiceClient__d_d_d.log
push 0x103
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
push 0x4169f4
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0
je 0x403ee7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_asctime]
add esp, 4
push eax
push str._n_n_s_n
push 0x3ff
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov ecx, dword [ebp - 0x614]
push ecx
push 1
lea edi, [ebp - 0x404]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x403efb
mov eax, dword [ebp - 0x618]
push eax
push str._OpenCrashLogFile__open_file__s_failed_
call fcn.00402970
add esp, 8
mov eax, dword [ebp - 0x614]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404a20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x404a2c
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CloseConfigFile
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.GetChildNodeByName
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetFirstChildNode
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 8]
push str.GetNextSiblingNode
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
push str.GetRootNode
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetSiblingNodeByName
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 8]
push str.LoadConfigMem
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push str.ReadNodeAttrConfig
push eax
call edi
mov ecx, dword [esi + 8]
push str.ReleasePtr
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 8]
push str.GetMapConfigSize
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 8]
push str.GetCurrentLine
push eax
call edi
mov ecx, dword [esi + 8]
push str.SetSvpnStatus
push ecx
mov dword [esi + 0x3c], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_SendMessageToWnd
push edx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 8]
push str.RunByHighPower
push eax
call edi
mov ecx, dword [esi + 8]
push str.SetCertInputOff
push ecx
mov dword [esi + 0x48], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_GetSCacheStatus
push edx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 8]
push str.CSCM_SetSCacheInfo
push eax
call edi
mov ecx, dword [esi + 8]
push str.MakeSCacheConfigOK
push ecx
mov dword [esi + 0x54], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_GetSecurityInfo
push edx
mov dword [esi + 0x58], eax
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 8]
push str.FreePSA
push eax
call edi
mov ecx, dword [esi + 8]
push str.DoFileLog
push ecx
mov dword [esi + 0x60], eax
call edi
mov edx, dword [esi + 8]
push str.CSCM_PutTypeRegValueOf
push edx
mov dword [esi + 0x64], eax
call edi
mov dword [esi + 0x68], eax
mov eax, dword [esi + 8]
push str.WriteFileLog
push eax
call edi
mov ecx, dword [esi + 8]
push str.RequestWebOption
push ecx
mov dword [esi + 0x6c], eax
call edi
mov edx, dword [esi + 8]
push str.GetSvpnDomain
push edx
mov dword [esi + 0x70], eax
call edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 8]
push str.CSCM_ShowTipInfo
push eax
call edi
mov ecx, dword [esi + 8]
push str.CSCM_PostMessageToWnd
push ecx
mov dword [esi + 0x78], eax
call edi
mov edx, dword [esi + 8]
push str.SetEnableCDC
push edx
mov dword [esi + 0x7c], eax
call edi
mov dword [esi + 0x80], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x4057c0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4057cc
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TcpStartSCacheManager
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.TcpQuerySCacheState
push eax
call edi
mov ecx, dword [esi + 4]
push str.TcpCleanSCache
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.TcpStartSCache
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.TcpStartCleanExpiredCache
push eax
call edi
mov ecx, dword [esi + 4]
push str.TcpStopSCache
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 4]
push str.TcpCleanAllCache
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push str.TcpSetWebOptState
push eax
call edi
mov dword [esi + 0x28], eax
pop edi
mov eax, 1
pop esi
ret

Function at 0x405e70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x405b60
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x405ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._StartL3VpnService__create_thread_StartL3VpnThread_failed__errno_d
call fcn.00402970
add esp, 8
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret

Function at 0x406b40
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x406910
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x406b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._StartL3VpnService__create_thread_StartL3VpnThread_failed__errno_d
call fcn.00402970
add esp, 8
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x406c60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4121c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
lea eax, [esp + 8]
mov dword [esp + 0x20], edi
push eax
push 0x20019
push edi
push str.SOFTWARESangforSZGSHTPINFO
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x406d10
mov esi, dword [esp + 8]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
push str.EnableHTP
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406cf2
cmp dword [esp + 0xc], edi
jne 0x406d36
push str._IsAutoStartHtp__User_Disable_HTP_n
call fcn.00402970
add esp, 4
cmp esi, edi
je 0x406cfd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push eax
push str.SOFTWARESangforSZGSHTPINFO
push str._IsAutoStartHtp__Open_Reg_faile___s__err_d_n
call fcn.00402970
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp esi, edi
je 0x406d41
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x406d80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4121eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e0
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe5]
mov byte [esp + 0xe4], bl
mov dword [esp + 0x1c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [0x41d6f0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
call fcn.004049b0
mov eax, dword [0x41d734]
mov dword [esp + 0x1f0], ebx
cmp eax, 3
mov dword [esp + 8], 0x13
je 0x406f54
cmp dword [0x41cd0c], ebx
je 0x406f47
cmp dword [0x41cd00], ebx
je 0x406f47
cmp dword [0x41ccf8], 1
jne 0x406e33
push str._StartHtpService__Htp_is_not_enable_In_IE_Proxy_Mode_n
jmp 0x406f4c
cmp dword [0x41cd08], ebx
jne 0x406e4e
call fcn.00406c60
cmp eax, ebx
jne 0x406e4e
push str._StartHtpService__Not_Auto_Start_Htp_n
jmp 0x406f4c
push esi
call fcn.00406890
mov esi, eax
cmp esi, 1
jne 0x406e68
mov dword [esp + 0xc], 0x14
jmp 0x406efd
lea edx, [esp + 0xe8]
push 0x104
push edx
call fcn.00402b90
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x406efd
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x108]
push ebx
push edx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, ebx
jne 0x406ecc
push str._StartHtpService__CreateProcess_Failed_n
call fcn.00402970
add esp, 4
jmp 0x406efd
push str._StartHtpService__CreateProcess_Success_n
call fcn.00402970
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x12
cmp dword [esp + 0x1fc], 1
jne 0x406f19
lea edx, [esp + 0xc]
push 4
push edx
push 6
lea ecx, [esp + 0x70]
call fcn.00405090
lea ecx, [esp + 0x64]
mov dword [esp + 0x1f4], 0xffffffff
call fcn.00404a00
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
add esp, 0x1ec
ret
push str._StartHtpService__Htp_is_not_enable_n
call fcn.00402970
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00404a00
mov ecx, dword [esp + 0x1e8]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ec
ret
Function at 0x406fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41220b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov ecx, dword [0x417e6c]
mov edx, dword [0x41d6f0]
mov eax, dword [str.StopHTP]
push esi
push edi
mov dword [esp + 0x10], ecx
push 0
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
call fcn.004049b0
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x18], eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x14]
dec ecx
push edx
push eax
mov dword [esp + 0x20], ecx
push 0x4a
lea ecx, [esp + 0x18]
push str.HTP_WND
mov dword [esp + 0x2c], eax
push str.HTP_CLASS_NAME
mov dword [esp + 0xc0], 0
mov dword [esp + 0x1c], 0x17
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
call fcn.00406f90
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40708a
mov dword [esp + 8], 0x16
push str._StopHtpService__SendMessageToWnd_Failed_n
jmp 0x40708f
push str._StopHtpService__SendMessageToWnd_Success_n
call fcn.00402970
mov eax, dword [esp + 0xb8]
add esp, 4
cmp eax, 1
jne 0x4070b5
lea eax, [esp + 8]
push 4
push eax
push 6
lea ecx, [esp + 0x2c]
call fcn.00405090
lea ecx, [esp + 0x20]
mov dword [esp + 0xac], 0xffffffff
call fcn.00404a00
mov ecx, dword [esp + 0xa4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xa8
ret

Function at 0x407170
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x4071b1
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x407220
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x4071fc
cmp dword [esp + 0x10], 1
jne 0x407220
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea ecx, [esp + 0x1c]
push str.Service_Pack_2
push ecx
call esi
test eax, eax
jne 0x407212
lea edx, [esp + 0x1c]
push str.Service_Pack_3
push edx
call esi
test eax, eax
jne 0x407212
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
dec eax
push eax
push ecx
push 0x6d
jmp 0x407233
cmp eax, 6
jne 0x407220
cmp dword [esp + 0x10], 1
jne 0x407220
cmp byte [esp + 0xa2], 1
jne 0x407220
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
dec edx
push edx
push eax
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
Function at 0x4075c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20019
push 0
push str.SOFTWARESangforSZGSDebug
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40762d
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.EnableBreakPoint
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40762d
mov ecx, dword [esp + 4]
push ecx
push str._EnbaleCheckSuspend_EnableBreakPoint___u
call fcn.00402970
add esp, 8
mov eax, dword [esp]
test eax, eax
je 0x40763c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
sete al
add esp, 0xc
ret

Function at 0x407650
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x407691
push 0
push 0
push eax
push 0x4074b0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x40768a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._BeginCheckSuspend__beginthreadex_fail_err___u
call fcn.00402970
add esp, 8
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret

Function at 0x4076a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
xor ebx, ebx
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
jne 0x4076d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetSDUIPid__CreateToolhelp32Snapshot_failed__err___d
call fcn.00402970
add esp, 8
xor eax, eax
pop esi
pop ebx
add esp, 0x128
ret
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407738
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea ecx, [esp + 0x30]
push str.SangforSDUI.exe
push ecx
call edi
test eax, eax
jne 0x407734
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407702
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x407890
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x20c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0x110]
push eax
push ecx
mov dword [esp + 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4078f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsLocalUser__GetComputerName_failed__err___d
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 2
mov dword [esp + 0x14], 0x103
call sub.Secur32.dll_GetUserNameExA
test al, al
jne 0x407942
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsLocalUser__GetUserNameEx_failed__err___d
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push edx
push str._IsLocalUser__ComputerName___s___user_name___s
call fcn.00402970
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc]
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jl 0x407988
pop edi
pop esi
add esp, 0x20c
ret
lea eax, [esp + 0x110]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x4079a8
pop edi
pop esi
add esp, 0x20c
ret
lea edx, [esp + 0xc]
cmp eax, edx
je 0x4079bb
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret
mov dl, byte [eax + esi]
xor ecx, ecx
cmp dl, 0x5c
pop edi
sete cl
mov eax, ecx
pop esi
add esp, 0x20c
ret
Function at 0x4079e0
Capabilities:
Check os version
Get session user name

Disassembly:
sub esp, 0x2a8
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
cmp eax, 6
jae 0x407a2a
push eax
push str._IsAdminAfterVista__lower_than_vista___dwMajorVersion___x
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x2a8
ret
lea ecx, [esp + 0xc]
xor esi, esi
push ecx
push 8
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsAdminAfterVista__OpenProcessToken_failed__err___d
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x2a8
ret
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push 4
push eax
push 0x12
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x407aa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsAdminAfterVista__GetTokenInformation_failed__err___d
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x2a8
ret
mov edx, dword [esp + 8]
push edx
push str._IsAdminAfterVista__ret___x
call fcn.00402970
mov eax, dword [esp + 0x10]
add esp, 8
cmp eax, 1
jne 0x407acd
pop edi
xor eax, eax
pop esi
add esp, 0x2a8
ret
call fcn.00407890
test eax, eax
jne 0x407aee
push str._IsAdminAfterVista__not_local_user
call fcn.00402970
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x2a8
ret
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xb2]
mov word [esp + 0xb0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xb0]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x407b4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsAdminAfterVista__GetUserNameW_failed__err___x
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x2a8
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0xb0]
push edx
push 1
push eax
push esi
call sub.NETAPI32.dll_NetUserGetInfo
cmp eax, esi
je 0x407b7c
push eax
push str._IsAdminAfterVista__NetUserGetInfo_failed__ret___x
call fcn.00402970
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x2a8
ret
mov eax, dword [esp + 0x10]
xor ecx, ecx
push eax
cmp dword [eax + 0xc], 2
sete cl
mov esi, ecx
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, esi
pop edi
pop esi
add esp, 0x2a8
ret