joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e90
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 0x4169d0
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 0x403fd7
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 0x403feb
mov eax, dword [ebp - 0x618]
push eax
push str._OpenCrashLogFile__open_file__s_failed_
call fcn.00402a60
add esp, 8
mov eax, dword [ebp - 0x614]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x404000
Capabilities:
Check for sandbox and av modules
Enumerate process modules
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb60
in al, dx
pushal
or eax, dword [eax]
add byte [edi - 0x3a], dl
test eax, ebp
call 0x1404007
Function at 0x404b10
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x404b1c
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 0x4058b0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4058bc
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 0x405f60
Capabilities:
Create thread

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

Function at 0x406c00
Capabilities:
Create thread

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

Disassembly:
push 0xffffffffffffffff
push 0x4124b8
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.SOFTWARESangforSSLHTPINFO
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x406dd0
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 0x406db2
cmp dword [esp + 0xc], edi
jne 0x406df6
push str._IsAutoStartHtp__User_Disable_HTP_n
call fcn.00402a60
add esp, 4
cmp esi, edi
je 0x406dbd
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.SOFTWARESangforSSLHTPINFO
push str._IsAutoStartHtp__Open_Reg_faile___s__err_d_n
call fcn.00402a60
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 0x406e01
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 0x406e40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4124db
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 [0x41d740]
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.00404aa0
mov eax, dword [0x41d784]
mov dword [esp + 0x1f0], ebx
cmp eax, 3
mov dword [esp + 8], 0x13
je 0x407014
cmp dword [0x41cd5c], ebx
je 0x407007
cmp dword [0x41cd50], ebx
je 0x407007
cmp dword [0x41cd48], 1
jne 0x406ef3
push str._StartHtpService__Htp_is_not_enable_In_IE_Proxy_Mode_n
jmp 0x40700c
cmp dword [0x41cd58], ebx
jne 0x406f0e
call fcn.00406d20
cmp eax, ebx
jne 0x406f0e
push str._StartHtpService__Not_Auto_Start_Htp_n
jmp 0x40700c
push esi
call fcn.00406950
mov esi, eax
cmp esi, 1
jne 0x406f28
mov dword [esp + 0xc], 0x14
jmp 0x406fbd
lea edx, [esp + 0xe8]
push 0x104
push edx
call fcn.00402c80
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x406fbd
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 0x406f8c
push str._StartHtpService__CreateProcess_Failed_n
call fcn.00402a60
add esp, 4
jmp 0x406fbd
push str._StartHtpService__CreateProcess_Success_n
call fcn.00402a60
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 0x406fd9
lea edx, [esp + 0xc]
push 4
push edx
push 6
lea ecx, [esp + 0x70]
call fcn.00405180
lea ecx, [esp + 0x64]
mov dword [esp + 0x1f4], 0xffffffff
call fcn.00404af0
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.00402a60
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00404af0
mov ecx, dword [esp + 0x1e8]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ec
ret
Function at 0x4070a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4124fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov ecx, dword [0x417e2c]
mov edx, dword [0x41d740]
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.00404aa0
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.00407050
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40714a
mov dword [esp + 8], 0x16
push str._StopHtpService__SendMessageToWnd_Failed_n
jmp 0x40714f
push str._StopHtpService__SendMessageToWnd_Success_n
call fcn.00402a60
mov eax, dword [esp + 0xb8]
add esp, 4
cmp eax, 1
jne 0x407175
lea eax, [esp + 8]
push 4
push eax
push 6
lea ecx, [esp + 0x2c]
call fcn.00405180
lea ecx, [esp + 0x20]
mov dword [esp + 0xac], 0xffffffff
call fcn.00404af0
mov ecx, dword [esp + 0xa4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xa8
ret

Function at 0x407230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407269
xor eax, eax
pop edi
add esp, 0x110
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.CurrentVersion
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4072c8
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x110
ret
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
lea esi, [esp + 0x14]
mov cl, byte [esi]
cmp cl, 0x2e
sete al
dec eax
and eax, ecx
mov byte [esi], al
inc esi
test al, al
jne 0x4072e0
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x120]
add esp, 4
mov dword [edx], eax
mov al, byte [esi]
test al, al
jne 0x40732a
mov ecx, dword [esp + 0x120]
xor eax, eax
pop esi
pop edi
mov dword [ecx], eax
mov eax, 1
add esp, 0x110
ret
push esi
call edi
mov ecx, dword [esp + 0x124]
add esp, 4
mov dword [ecx], eax
pop esi
mov eax, 1
pop edi
add esp, 0x110
ret
Function at 0x407350
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 0x407395
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x4074a6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
push str._ServiceClient__Version_GetVersionEx__d._d._d
call fcn.00402a60
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 5
jne 0x407418
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x407401
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 0x40740a
lea edx, [esp + 0x1c]
push str.Service_Pack_3
push edx
call esi
test eax, eax
jne 0x40740a
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
dec eax
push eax
push ecx
push 0x6d
jmp 0x4074b9
cmp eax, 2
jne 0x4074a6
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp eax, 6
jne 0x4074a6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40742f
cmp eax, 2
jne 0x4074a6
cmp byte [esp + 0xa2], 1
jne 0x4074a6
cmp eax, 2
jne 0x40740a
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.00407230
add esp, 8
test eax, eax
je 0x40740a
cmp dword [esp + 0xc], 6
jne 0x40740a
cmp dword [esp + 0x10], 3
jne 0x40740a
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
dec ecx
push ecx
push edx
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push str._ServiceClient__Version_GetVersionEx__d._d
call fcn.00402a60
add esp, 0xc
xor eax, eax
pop edi
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 0x407880
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.SOFTWARESangforSSLDebug
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 0x4078ed
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 0x4078ed
mov ecx, dword [esp + 4]
push ecx
push str._EnbaleCheckSuspend_EnableBreakPoint___u
call fcn.00402a60
add esp, 8
mov eax, dword [esp]
test eax, eax
je 0x4078fc
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 0x407910
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x407951
push 0
push 0
push eax
push 0x407740
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x40794a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._BeginCheckSuspend__beginthreadex_fail_err___u
call fcn.00402a60
add esp, 8
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret

Function at 0x407960
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 0x407997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetSDUIPid__CreateToolhelp32Snapshot_failed__err___d
call fcn.00402a60
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 0x4079f8
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea ecx, [esp + 0x30]
push str.SangforSDUI.exe
push ecx
call edi
test eax, eax
jne 0x4079f4
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4079c2
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 0x407b50
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 0x407bb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsLocalUser__GetComputerName_failed__err___d
call fcn.00402a60
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 0x407c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsLocalUser__GetUserNameEx_failed__err___d
call fcn.00402a60
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.00402a60
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 0x407c48
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 0x407c68
pop edi
pop esi
add esp, 0x20c
ret
lea edx, [esp + 0xc]
cmp eax, edx
je 0x407c7b
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 0x407ca0
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 0x407cea
push eax
push str._IsAdminAfterVista__lower_than_vista___dwMajorVersion___x
call fcn.00402a60
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 0x407d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsAdminAfterVista__OpenProcessToken_failed__err___d
call fcn.00402a60
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 0x407d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsAdminAfterVista__GetTokenInformation_failed__err___d
call fcn.00402a60
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.00402a60
mov eax, dword [esp + 0x10]
add esp, 8
cmp eax, 1
jne 0x407d8d
pop edi
xor eax, eax
pop esi
add esp, 0x2a8
ret
call fcn.00407b50
test eax, eax
jne 0x407dae
push str._IsAdminAfterVista__not_local_user
call fcn.00402a60
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 0x407e0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IsAdminAfterVista__GetUserNameW_failed__err___x
call fcn.00402a60
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 0x407e3c
push eax
push str._IsAdminAfterVista__NetUserGetInfo_failed__ret___x
call fcn.00402a60
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