joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x41c
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
mov ecx, edx
stosw word es:[edi], ax
call fcn.0040c0b0
push eax
lea eax, [esp + 0x18]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov cx, word [0x56bc90]
xor eax, eax
mov word [esp + 0x228], cx
mov ecx, 0x81
lea edi, [esp + 0x22a]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [esp + 0x24]
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
call fcn.00495a30
mov eax, dword [esp + 0x24]
add esp, 0x1c
cmp eax, esi
je 0x40b59b
lea edx, [esp + 0x21c]
push 0x103
push edx
push 0x538b04
push str.Main
push eax
call fcn.00496270
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push str.UsedTime
push str.Main
push ecx
call fcn.00496460
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.00495c20
add esp, 0x2c
mov edi, dword [esp + 0x428]
mov eax, dword [0x585fa0]
cmp edi, esi
je 0x40b5bf
cmp eax, esi
je 0x40b5da
cmp dword [esp + 0x42c], esi
je 0x40b5da
call fcn.004c1d50
jmp 0x40b5da
cmp eax, esi
je 0x40b5d1
cmp dword [esp + 0x42c], esi
jne 0x40b5d1
call fcn.004c1d60
push esi
call fcn.00424fb0
add esp, 4
cmp dword [0x585fb0], esi
je 0x40b608
cmp edi, esi
je 0x40b608
lea eax, [esp + 0x10]
push 4
push eax
push 4
push str.160A
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
push SysReAllocStringLen
mov dword [esp + 0x28], esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
add esp, 0x41c
ret 8

Function at 0x40bb20
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0x60], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x5c], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x40b9c0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40bb62
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040bc30
pop esi
pop ecx
ret 4

Function at 0x40bbe0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 1
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 4], eax
je 0x40bc26
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x40bb80
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40bc26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x40be00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x470
push ebx
push esi
xor ebx, ebx
mov esi, ecx
xor eax, eax
push ebx
mov dword [esp + 0x20], eax
push ebx
lea ecx, [esp + 0x20]
push 1
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x40bf21
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6e]
mov word [esp + 0x6c], bx
mov word [esp + 0x274], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x276]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
push 0x103
push edx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [esi + 0x20]
push 0x538a40
push eax
push 0x538a2c
push 0xc
lea ecx, [esp + 0x80]
push str._tp:
push ecx
push str._s__s_d__s_d__s_d
lea edx, [esp + 0x294]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x54]
add esp, 0x28
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x28]
push ecx
mov dword [esp + 0x14], eax
push edx
push ebx
mov dword [esp + 0x20], eax
push ebx
push ebx
mov dword [esp + 0x2c], eax
push 1
push ebx
lea eax, [esp + 0x290]
push ebx
push eax
push ebx
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 0x80
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x40bf21
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop esi
pop ebx
add esp, 0x470
ret

Function at 0x40bf30
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0040db30
test eax, eax
je 0x40bf6a
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x40d940
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x40bf6a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x40bfa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x585f98]
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
jne 0x40bfba
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
push edi
mov dword [esp + 0x24], 0x4df0c730
mov word [esp + 0x28], 0xdf9d
mov word [esp + 0x2a], 0x4ae3
mov byte [esp + 0x2c], 0x91
mov byte [esp + 0x2d], 0x53
mov byte [esp + 0x2e], 0xaa
mov byte [esp + 0x2f], 0x6b
mov byte [esp + 0x30], 0x82
mov byte [esp + 0x31], 0xe9
mov byte [esp + 0x32], 0x79
mov byte [esp + 0x33], 0x5a
mov dword [esp + 0x14], 0x8be2d872
mov word [esp + 0x18], 0x86aa
mov word [esp + 0x1a], 0x4d47
mov byte [esp + 0x1c], 0xb7
mov byte [esp + 0x1d], 0x76
mov byte [esp + 0x1e], 0x32
mov byte [esp + 0x1f], 0xcc
mov byte [esp + 0x20], 0xa4
mov byte [esp + 0x21], 0xc
mov byte [esp + 0x22], 0x70
mov byte [esp + 0x23], 0x18
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
lea edx, [esp + 0x2c]
push edi
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40c09e
mov eax, dword [esp + 8]
cmp eax, edi
je 0x40c09e
lea edx, [esp + 0xc]
add esi, 0x26c
push edx
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x40c094
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40c094
mov ecx, dword [eax]
push eax
mov edi, 1
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
add esp, 0x28
ret

Function at 0x40c0b0
Capabilities:
Set file attributes

Disassembly:
cmp word [0x56f840], 0
jne 0x40c10e
push 0x103
push 0x56f840
call fcn.0040d4f0
push 0
push 0x56f840
mov dword [0x5bd9d8], eax
call fcn.0043f210
add esp, 8
test eax, eax
je 0x40c0f7
push 0x80
push 0x56f840
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x56f840
ret
push 0x56f840
call fcn.0043f620
push 0x56f840
call fcn.004515a0
add esp, 8
mov eax, 0x56f840
ret
Function at 0x40c1a0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
test eax, eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
push edi
mov edx, ecx
jne 0x40c240
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
add edx, 0x26c
push str.LoginEnrolLoginEnrol.dll
stosw word es:[edi], ax
push edx
push 0x538c6c
lea eax, [esp + 0x1c]
push 0x103
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, 0x56bcc8
call fcn.0040c9f0
test eax, eax
je 0x40c240
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c240
push str.GetProfilePath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c239
mov ecx, dword [esp + 0x224]
dec ecx
push ecx
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [ebx], 0
jne 0x40c28d
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x1a
push 0
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x10]
push str.360SE
push eax
dec ecx
push 0x538c40
push ecx
push ebx
call ebp
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 0xc
Function at 0x40c660
Capabilities:
Delete directory

Disassembly:
sub esp, 0x41c
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
test eax, eax
je 0x40c6cc
mov ecx, dword [esi + 0x5c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x29
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [esp + 0xc], ecx
jne 0x40c6a6
push 1
push 0x9057
mov dword [esi + 0x3c], 0x9057
call fcn.004c1710
add esp, 8
mov esi, dword [esi + 0x3c]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x5868fc]
push esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
add esp, 0x41c
ret 8
mov eax, dword [esp + 0x428]
test eax, eax
je 0x40c6e2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x42c]
push 0
lea ecx, [esp + 0x1c]
push 0x103
push ecx
push edi
mov ecx, esi
call fcn.0040c560
lea edx, [esp + 0x18]
push 1
push edx
call fcn.0043f390
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004c03f0
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x18
cmp edi, 0xffffffff
je 0x40c767
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push 0x103
push ecx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040c560
lea edx, [esp + 0x18]
push edx
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [esp + 0x224]
push 0x103
push eax
mov ecx, esi
call fcn.0040c4e0
lea ecx, [esp + 0x220]
push ecx
call ebx
pop edi
pop ebx
pop esi
add esp, 0x41c
ret 8

Function at 0x40c7b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x5bd780]
sub esp, 0x208
test eax, eax
je 0x40c7f4
push 0
push 0x538cfc
call fcn.0040c2a0
mov ecx, dword [esp + 0x20c]
push eax
mov eax, dword [esp + 0x214]
push 0x5384a4
dec eax
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
add esp, 0x208
ret 8
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 0x210]
lea eax, [esp + 4]
push 0x538cfc
push eax
dec ecx
push 0x538c6c
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
pop edi
add esp, 0x208
ret 8
Function at 0x40c9f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push eax
call fcn.004ad5f0
add esp, 4
test eax, eax
jne 0x40cab9
mov eax, dword [esp + 0x210]
test eax, eax
je 0x40caae
push esi
push edi
call fcn.00447160
mov eax, dword [eax + 0x298]
test eax, eax
je 0x40ca32
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x40ca3a
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov edx, dword [0x58bcc8]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0xc389
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40044
push 0xc38b
call fcn.0049b1f0
add esp, 4
push eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
cmp eax, 6
pop esi
jne 0x40ca9f
push str.http:__se.360.cn
call fcn.004508d0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add esp, 0x208
ret 8
mov eax, 1
add esp, 0x208
ret 8
Function at 0x40d4f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x824
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
push 0x56c13c
mov dword [esp + 0x14], ebx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
sub eax, 4
push eax
lea eax, [esp + 0x42c]
push 0x56c13c
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
push 5
lea ecx, [esp + 0x438]
push str..ini
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x1c
lea edx, [esp + 0x21c]
mov ecx, esi
push 0x103
push edx
push 1
call fcn.0040c1a0
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x424]
lea ecx, [esp + 0x21c]
push eax
push ecx
push 0x538c6c
lea edx, [esp + 0x20]
push 0x103
push edx
call ebp
add esp, 0x14
mov ecx, esi
call fcn.0040ac70
test eax, eax
je 0x40d5e4
lea ecx, [esp + 0x10]
push ecx
push 0x538ee8
push eax
call fcn.0044f970
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40d644
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62e]
mov word [esp + 0x62c], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x21c]
push str.ie6_mode
stosw word es:[edi], ax
push edx
push 0x538c6c
lea eax, [esp + 0x638]
push 0x103
push eax
call ebp
lea ecx, [esp + 0x640]
push 0
push ecx
call fcn.0043f210
add esp, 0x1c
test eax, eax
je 0x40d644
mov ebx, 1
mov eax, ebx
sub eax, 0
je 0x40d6a8
dec eax
jne 0x40d6a8
mov eax, dword [esp + 0x83c]
mov edi, dword [esp + 0x838]
lea edx, [esp + 0x21c]
push str.360seie6.ini
push edx
dec eax
push 0x538c6c
push eax
push edi
call ebp
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d6c8
push 1
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.0043fea0
add esp, 0xc
mov ecx, esi
push edi
call fcn.0040d410
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x824
ret 8
mov eax, dword [esp + 0x83c]
mov ecx, dword [esp + 0x838]
lea edx, [esp + 0x14]
dec eax
push edx
push 0x5384a4
push eax
push ecx
call ebp
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x824
ret 8

Function at 0x40d8c0
Capabilities:
Delete file

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
mov ecx, 0x56bcc8
stosw word es:[edi], ax
call fcn.0040c170
push eax
push str._sdataFavouriteBar_Bits.dat
lea eax, [esp + 0xc]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
add esp, 0x400
ret
Function at 0x40db30
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x424
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
mov word [esp + 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.GuardConfig.ini
lea ecx, [esp + 0x224]
push str.360SE
push ecx
push str._s_sdata_s
lea edx, [esp + 0x28]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0043f210
add esp, 0x20
test eax, eax
pop edi
je 0x40dbe1
lea ecx, [esp + 0x14]
push ecx
push 0
push str.Debug
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40dbe1
mov eax, 1
add esp, 0x424
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xe]
and eax, 0xffff
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
push edx
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
xor eax, eax
cmp edx, 5
setl al
add esp, 0x424
ret
Function at 0x40dda0
Capabilities:
Read .ini file

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x618
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
cmp al, bl
push edi
je 0x40ded2
push ebx
mov ecx, 0x56bcc8
call fcn.0040c0b0
push eax
push 0x56fe64
call fcn.00495a30
mov edx, dword [0x56fe64]
add esp, 0xc
cmp edx, ebx
je 0x40de35
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push str.auto_login
push 0x5389a8
push edx
call fcn.00496270
add esp, 0x14
test eax, eax
je 0x40de35
lea ecx, [esp + 0xc]
push 0x538ee4
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40df7e
jmp 0x40ded2
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
push esi
lea edx, [esp + 0x10]
push 0x103
push edx
push 1
mov ecx, 0x56bcc8
stosw word es:[edi], ax
call fcn.0040c1a0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x422]
mov word [esp + 0x420], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push str.login.ini
push eax
push 0x538c6c
lea ecx, [esp + 0x42c]
push 0x103
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x420]
push edx
push ebx
push str.IsAuto
push str.NowLogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push str.auto_login
push 0x5389a8
call fcn.0040e8c0
add esp, 0xc
cmp esi, ebx
pop esi
je 0x40df7e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], bx
rep stosd dword es:[edi], eax
push str.FavoritesFavorites.dll
push 0x56bf34
stosw word es:[edi], ax
push 0x538c6c
lea eax, [esp + 0x220]
push 0x103
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
mov dword [0x56fe60], eax
jne 0x40df59
lea edx, [esp + 0x214]
push ebx
push edx
mov ecx, 0x56bcc8
call fcn.0040c9f0
test eax, eax
je 0x40df50
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x56fe60], eax
jmp 0x40df55
mov eax, dword [0x56fe60]
cmp eax, ebx
je 0x40df7e
mov ecx, dword [0x56fe68]
cmp ecx, ebx
jne 0x40df7b
push str.InitSettinsProfileHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
cmp ecx, ebx
mov dword [0x56fe68], ecx
je 0x40df7e
push ebx
call ecx
pop edi
pop ebp
pop ebx
add esp, 0x618
ret
Function at 0x40e1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.Software360360se3
push SysReAllocStringLen
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e383
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x40e383
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push edi
push str.homepage
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
cmp eax, edi
jbe 0x40e379
cmp eax, 0x2800
jae 0x40e379
lea edx, [eax + eax + 2]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], esi
lea ecx, [eax + eax + 1]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
cmp esi, edi
mov ebx, eax
je 0x40e379
cmp ebx, edi
je 0x40e379
mov edx, dword [ebp - 4]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
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 [ebp - 4]
mov edi, ebx
lea ecx, [eax + 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 ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push str.homepage
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e36a
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x40e36a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0xc], eax
add eax, 3
and al, 0xfc
call fcn.0051c5a0
mov edx, dword [ebp - 0xc]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push ebx
call fcn.00481560
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0051c5a0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
dec eax
push 0x5384a4
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call fcn.0051c54a
push ebx
call fcn.0051c54a
add esp, 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
cmp word [eax], 0
jne 0x40e3a5
mov ecx, dword [ebp + 0xc]
push str.se:blank
dec ecx
push 0x5384a4
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea esp, [ebp - 0x1c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e3c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40e401
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0051c5a0
mov ebx, esp
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test ebx, ebx
jne 0x40e40d
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], ecx
lea edi, [ecx + ecx + 0xa]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp + 8], 0
je 0x40e4c6
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
push eax
push ebx
push esi
call fcn.00481480
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0051c5a0
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test ebx, ebx
je 0x40e4bd
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
push eax
push ebx
push 1
push str.homepage
push str.Software360360se3
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40e4bd
mov dword [ebp + 8], 1
push esi
call fcn.0051c54a
add esp, 4
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret