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

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov word [esp + 0x40], bx
rep stosd dword es:[edi], eax
mov ecx, 0x7f
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x244]
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x40af6c
mov ecx, dword [esp + 0x38]
push 1
push ebx
push ebx
push ecx
call fcn.00439300
push ebx
push 0x80
mov ebp, edx
mov edx, dword [esp + 0x44]
push 3
mov esi, eax
push ebx
xor eax, eax
push ebx
add esi, edx
push accept
push edi
adc ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40ae86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push str.CreateFile__s_failed__errno___d
jmp 0x40af7b
lea edi, [esi + 1]
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40aeaa
push str.ImportCertificate__:_new_failed
call fcn.00411930
add esp, 4
jmp 0x40af45
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1fe
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x24c]
lea eax, [esp + 0x44]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40aef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [esp + 0x14], eax
push str.MultiByteToWideChar_failed__errno___d
jmp 0x40af3d
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 0
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40af2d
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, esi
jne 0x40af2d
cmp ecx, ebp
jne 0x40af2d
lea ecx, [esp + 0x40]
push ecx
push esi
push ebx
call fcn.0040acd0
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x40af45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [esp + 0x14], eax
push str.ReadFile_failed__errno___d
call fcn.00411930
add esp, 8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40af5d
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push str.GetFileAttributesEx__s_failed__errno___d
call fcn.00411930
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
Function at 0x40b390
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x958
push esi
push edi
push str._OpenWithIE__Entering_OpenWithIE
call fcn.00411930
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0x5c]
push 0x103
push eax
push str._ProgramFiles_Internet_ExplorerIEXPLORE.EXE
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
ja 0x40b40d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._OpenWithIE__ExpandEnvironmentStrings_failed__Error_u_n
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x958
ret
mov esi, dword [esp + 0x964]
mov edx, 0x103
sub edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jae 0x40b444
push ecx
push str._OpenWithIE__Url_is_too_long__len_u_n
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x958
ret
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040e7f0
add esp, 4
test eax, eax
push esi
je 0x40b46f
lea edx, [esp + 0x60]
lea eax, [esp + 0x164]
push edx
push str.__s___nomerge__nohome__s
push 0x7ff
push eax
jmp 0x40b486
lea ecx, [esp + 0x60]
lea edx, [esp + 0x164]
push ecx
push str.__s___s
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x14
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x160]
mov dword [esp + 0x10], eax
push ecx
push str._OpenWithIE__Command___s
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x44
call fcn.00411930
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x160]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40b524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._OpenWithIE__CreateProcess_failed__error___d
call fcn.00411930
lea edx, [esp + 0x168]
push edx
push str._OpenWithIE__Command___s
call fcn.00411930
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x958
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x958
ret
Function at 0x40b550
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20019
push 0
push str.HTTP_shellopencommand
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b58f
push eax
push str._GetDefaultBrowserPath_RegOpenKeyEx_failed__errno___d
call fcn.00411930
add esp, 8
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
mov dword [esp + 4], ecx
mov ecx, dword [esp]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b5d2
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x40b5d2
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
push eax
push str._GetDefaultBrowserPath_RegQueryValueEx_failed__errno___d
call fcn.00411930
mov eax, dword [esp + 8]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
Function at 0x40b600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x228
mov eax, dword [esp + 0x22c]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x40b7b6
cmp dword [esp + 0x234], ebx
je 0x40b7b6
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov esi, 0x104
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push reloc.WS2_32.dll_accept
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
call ebp
cmp eax, ebx
jne 0x40b782
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push ebx
push str.Progid
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40b78a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 5
mov esi, str._shellopencommand
lea edi, [esp + 0x1c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x30]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebx
add edx, ecx
cmp edx, 0x104
jae 0x40b773
mov ecx, 0x40
lea edi, [esp + 0x135]
mov byte [esp + 0x134], bl
lea edx, [esp + 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0x446820
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x134]
push eax
push 0x20019
push ebx
push ecx
push accept
call ebp
cmp eax, ebx
jne 0x40b782
mov ecx, dword [esp + 0x23c]
mov edx, dword [esp + 0x240]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40b78a
cmp dword [esp + 0x14], ebx
je 0x40b78a
mov dword [esp + 0x18], 1
jmp 0x40b798
push str._GetWin7DefaultBrowserPath_path_is_too_long
call fcn.00411930
add esp, 4
jmp 0x40b798
push eax
push str._GetWin7DefaultBrowserPath_RegOpenKeyEx_failed__errno___d
jmp 0x40b790
push eax
push str._GetWin7DefaultBrowserPath_RegQueryValueEx_failed__errno___d
call fcn.00411930
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
cmp eax, ebx
pop ebp
je 0x40b7aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0x228
ret
xor eax, eax
pop ebx
add esp, 0x228
ret
Function at 0x40bec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push ebp
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
push 0x20019
push ebp
push str.SOFTWARESangforSSLSangforCSClient
push reloc.WS2_32.dll_accept
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bf2c
push eax
push str.SOFTWARESangforSSLSangforCSClient
push str.GetProxySetting:_RegOpenKeyEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
pop ebp
add esp, 0x108
ret
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push edx
push 0
push 0
push str.EnableProxy
push eax
mov dword [esp + 0x24], 4
call esi
test eax, eax
je 0x40bf71
push eax
push str.EnableProxy
push str.GetProxySetting:_RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
jmp 0x40bfba
mov edi, dword [esp + 0x11c]
test edi, edi
je 0x40bfb5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.ProxyUserInfo
push eax
mov dword [esp + 0x24], 0x100
call esi
test eax, eax
je 0x40bfd5
push eax
push str.ProxyUserInfo
push str.GetProxySetting:_RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
mov ebp, 1
mov eax, dword [esp + 0x10]
pop esi
test eax, eax
je 0x40bfca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop edi
pop ebp
add esp, 0x108
ret
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0xc]
push 0x80
push ecx
push 0x80
push edi
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00409050
add esp, 0x18
test eax, eax
jne 0x40bfb5
push str.GetProxySetting:_DecryptUserInfo_failed_
call fcn.00411930
add esp, 4
jmp 0x40bfba

Function at 0x40c010
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.SOFTWARESangforSSLSangforCSClient
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c065
push eax
push str.SOFTWARESangforSSLSangforCSClient
push str.GetAutoLoginAuthType:_RegOpenKeyEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
or eax, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.AutoLoginAuthType
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c0a2
push eax
push str.AutoLoginAuthType
push str.GetAutoLoginAuthType:_RegQueryValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
mov eax, dword [esp]
test eax, eax
je 0x40c0b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add esp, 0xc
ret
Function at 0x40c0c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
mov dword [esp + 8], ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0xf003f
push ebx
push str.SOFTWARESangforSSLSangforCSClient
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40c11d
push eax
push str.SOFTWARESangforSSLSangforCSClient
push str.SaveProxySetting:_RegOpenKeyEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [esp + 0x11c]
push 4
push ecx
push 4
push ebx
push str.EnableProxy
push edx
call ebp
cmp eax, ebx
je 0x40c15a
push eax
push str.EnableProxy
push str.SaveProxySetting:_RegSetValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
jmp 0x40c1e1
mov edi, dword [esp + 0x120]
cmp edi, ebx
je 0x40c1dc
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x14]
push eax
push esi
push edi
call fcn.004094e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40c190
push str.SaveProxySetting:_EncryptUserInfo_failed_
call fcn.00411930
add esp, 4
jmp 0x40c1e1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
inc edx
test esi, esi
je 0x40c1ad
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 3
push 0
push str.ProxyUserInfo
push edx
call ebp
test eax, eax
je 0x40c1dc
push eax
push str.ProxyUserInfo
push str.SaveProxySetting:_RegSetValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
jmp 0x40c1e1
mov ebx, 1
mov eax, dword [esp + 0x10]
pop esi
test eax, eax
pop ebp
je 0x40c1f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
add esp, 0x108
ret

Function at 0x40c200
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x104
push esi
push str._TEMP_WindowsModule.xml
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x40c22e
push 0x103
push str.C:WINDOWSTempWindowsModule.xml
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push edi
push 0x44fb78
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, eax
mov edi, 0x44fa74
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x44fb88
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x44fa74
push ecx
push 0x44fb88
push edx
call fcn.004147b0
add esp, 0x18
test eax, eax
pop edi
jne 0x40c274
pop esi
ret
push 0
push str._com_WindowsModule.xml
push esi
call fcn.00413890
mov esi, eax
mov eax, dword [0x44fbd4]
neg eax
sbb eax, eax
and eax, 0xffff8acf
add eax, 0x7530
push eax
push esi
call fcn.004146e0
add esp, 0x14
cmp eax, 2
push esi
je 0x40c2b2
call fcn.00414740
add esp, 4
xor eax, eax
pop esi
ret
call fcn.00414740
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x40c510
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x40c535
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
lea edi, [ebx + 1]
push eax
push edi
call fcn.00439630
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c553
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
push ebx
xor ebx, ebx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40c587
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.StringFileInfo040904B0FileVersion
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov edi, eax
test edi, edi
je 0x40c5b2
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40c5c7
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push str.StringFileInfo080404b0FileVersion
push esi
call sub.VERSION.dll_VerQueryValueA
cmp edi, 1
je 0x40c5d4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c61c
mov edx, dword [esp + 0x18]
mov ecx, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
inc edx
push ecx
push edx
call fcn.00439630
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c61c
mov eax, dword [esp + 0x18]
mov edi, ebx
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40c760
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x103
push esi
push str._TEMP_SangforUD.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x40c78e
push 0x103
push str.C:WINDOWSTempSangforUD.exe
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push edi
push 0x44fb78
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, eax
mov edi, 0x44fa74
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x44fb88
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x44fa74
push ecx
push 0x44fb88
push edx
call fcn.004147b0
add esp, 0x18
test eax, eax
pop edi
jne 0x40c7d4
pop esi
ret
push 0
push str._com_win_SangforUD.exe
push esi
call fcn.00413890
mov esi, eax
mov eax, dword [0x44fbd4]
neg eax
sbb eax, eax
and eax, 0xffff8acf
add eax, 0x7530
push eax
push esi
call fcn.004146e0
add esp, 0x14
cmp eax, 2
push esi
je 0x40c812
call fcn.00414740
add esp, 4
xor eax, eax
pop esi
ret
call fcn.00414740
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x40dc90
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
push esi
push edi
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
stosb byte es:[edi], al
mov eax, dword [esp + 0x118]
mov dword [esp + 8], 0
push eax
push 0
push 0x410
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40dcf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcessPathByPID__OpenProcess_failed__errno___d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push 4
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x40dd1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcessPathByPID__EnumProcessModules_failed__errno___d
jmp 0x40dd40
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jne 0x40dd5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcessPathByPID__GetModuleFileNameEx_failed__errno___d
call fcn.00411930
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push 0x103
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x10c
ret

Function at 0x40dd90
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
push eax
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
jne 0x40dddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcessFullPath__CreateToolhelp32Snapshot_failed__errno_d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push edi
call sub.KERNEL32.dll_Process32First
mov esi, eax
test esi, esi
jne 0x40de02
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret
push ebp
mov ebp, dword [esp + 0x140]
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40de35
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.0040dc90
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40de46
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
mov esi, eax
test esi, esi
jne 0x40de0a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop ebp
jne 0x40de73
mov edx, dword [esp + 0x138]
push edx
push str._GetProcessFullPath__cant_find_the_process__s
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x128
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x40e7a0
Capabilities:
Create thread

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

Function at 0x40e7f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x44]
push str.iexplore.exe
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x40e822
pop edi
add esp, 0x3c
ret
push ebx
lea eax, [esp + 8]
push esi
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40e8a1
push esi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e8a1
mov ecx, dword [esp + 0xc]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40e898
lea edx, [esp + 0x4c]
lea eax, [esp + 0x10]
push edx
push eax
push 0x4491a0
push ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e898
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x10]
mov edx, ecx
lea edi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x1c]
pop esi
and eax, 0xffff0000
pop ebx
cmp eax, 0x80000
pop edi
sbb eax, eax
inc eax
add esp, 0x3c
ret
Function at 0x40ed60
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov esi, dword [esp + 0xac]
push esi
push ebx
push ebp
call fcn.0040c0c0
add esp, 0xc
test eax, eax
jne 0x40ed9a
push str._SaveProxySettingEx__SaveProxySetting_failed
call fcn.00411930
add esp, 4
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x40edc7
cmp dword [esp + 0x10], 6
jb 0x40ede3
push esi
push ebx
push ebp
call fcn.0040eb00
add esp, 0xc
test eax, eax
jne 0x40ede3
push str._SaveProxySettingEx__SaveWin7ProxySetting_failed
call fcn.00411930
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x94
ret